init
This commit is contained in:
Vendored
+561
@@ -0,0 +1,561 @@
|
||||
// ⚠️ GENERATED FILE - DO NOT EDIT
|
||||
// This file is automatically generated by 'prisma contract emit'.
|
||||
// To regenerate, run: prisma contract emit
|
||||
import type { QueryOperationTypes as PgAdapterQueryOps } from '@prisma/orm-postgres/adapter/operation-types';
|
||||
import type {
|
||||
Bit,
|
||||
Char,
|
||||
CodecTypes as PgTypes,
|
||||
Interval,
|
||||
JsonValue,
|
||||
Numeric,
|
||||
Time,
|
||||
TimeString,
|
||||
Timestamp,
|
||||
TimestampString,
|
||||
Timestamptz,
|
||||
TimestamptzString,
|
||||
Timetz,
|
||||
VarBit,
|
||||
Varchar,
|
||||
} from '@prisma/orm-postgres/target/codec-types';
|
||||
|
||||
import type {
|
||||
ContractWithTypeMaps,
|
||||
RelationKeys,
|
||||
TypeMaps as TypeMapsType,
|
||||
} from '@prisma/orm-postgres/family-contract/types';
|
||||
import type {
|
||||
Contract as ContractType,
|
||||
ExecutionHashBase,
|
||||
NamespaceId,
|
||||
ProfileHashBase,
|
||||
StorageHashBase,
|
||||
} from '@prisma/orm-postgres/contract/types';
|
||||
|
||||
export type StorageHash =
|
||||
StorageHashBase<'66cb816949cf8f6a536fcdd60eeb1bb528c3e58ae9bc6737273a2fe0a26f5843'>;
|
||||
export type ExecutionHash = ExecutionHashBase<string>;
|
||||
export type ProfileHash =
|
||||
ProfileHashBase<'3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2'>;
|
||||
|
||||
export type CodecTypes = PgTypes;
|
||||
export type LaneCodecTypes = CodecTypes;
|
||||
export type QueryOperationTypes = PgAdapterQueryOps<CodecTypes>;
|
||||
export type AggregateTypes = {
|
||||
readonly avg: {
|
||||
readonly byCodec: {
|
||||
readonly 'pg/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/float4@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/int@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/int2@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/int4@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/int8@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/int8number@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true };
|
||||
readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/time-string@1': { readonly output: 'pg/interval@1'; readonly nullable: true };
|
||||
readonly 'pg/time-temporal@1': { readonly output: 'pg/interval@1'; readonly nullable: true };
|
||||
readonly 'pg/unboundedint@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'sql/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'sql/int@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
};
|
||||
};
|
||||
readonly avgDecimal: {
|
||||
readonly byCodec: {
|
||||
readonly 'pg/int@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/int2@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/int4@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/int8@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/int8number@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/unboundedint@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'sql/int@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
};
|
||||
};
|
||||
readonly count: {
|
||||
readonly byCodec: {};
|
||||
readonly withoutInput: { readonly output: 'pg/int8number@1'; readonly nullable: false };
|
||||
readonly anyInput: { readonly output: 'pg/int8number@1'; readonly nullable: false };
|
||||
};
|
||||
readonly countBigInt: {
|
||||
readonly byCodec: {};
|
||||
readonly withoutInput: { readonly output: 'pg/int8@1'; readonly nullable: false };
|
||||
readonly anyInput: { readonly output: 'pg/int8@1'; readonly nullable: false };
|
||||
};
|
||||
readonly max: {
|
||||
readonly byCodec: {
|
||||
readonly 'pg/char@1': { readonly output: 'pg/char@1'; readonly nullable: true };
|
||||
readonly 'pg/date-string@1': { readonly output: 'pg/date-string@1'; readonly nullable: true };
|
||||
readonly 'pg/date-temporal@1': {
|
||||
readonly output: 'pg/date-temporal@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/enum@1': { readonly output: 'pg/enum@1'; readonly nullable: true };
|
||||
readonly 'pg/float@1': { readonly output: 'pg/float@1'; readonly nullable: true };
|
||||
readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true };
|
||||
readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/inet@1': { readonly output: 'pg/inet@1'; readonly nullable: true };
|
||||
readonly 'pg/int@1': { readonly output: 'pg/int@1'; readonly nullable: true };
|
||||
readonly 'pg/int2@1': { readonly output: 'pg/int2@1'; readonly nullable: true };
|
||||
readonly 'pg/int4@1': { readonly output: 'pg/int4@1'; readonly nullable: true };
|
||||
readonly 'pg/int8@1': { readonly output: 'pg/int8@1'; readonly nullable: true };
|
||||
readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true };
|
||||
readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true };
|
||||
readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/text-array@1': { readonly output: 'pg/text-array@1'; readonly nullable: true };
|
||||
readonly 'pg/text@1': { readonly output: 'pg/text@1'; readonly nullable: true };
|
||||
readonly 'pg/time-string@1': { readonly output: 'pg/time-string@1'; readonly nullable: true };
|
||||
readonly 'pg/time-temporal@1': {
|
||||
readonly output: 'pg/time-temporal@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timestamp-string@1': {
|
||||
readonly output: 'pg/timestamp-string@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timestamp-temporal@1': {
|
||||
readonly output: 'pg/timestamp-temporal@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timestamptz-string@1': {
|
||||
readonly output: 'pg/timestamptz-string@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timestamptz-temporal@1': {
|
||||
readonly output: 'pg/timestamptz-temporal@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timetz@1': { readonly output: 'pg/timetz@1'; readonly nullable: true };
|
||||
readonly 'pg/unboundedint@1': {
|
||||
readonly output: 'pg/unboundedint@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true };
|
||||
readonly 'sql/char@1': { readonly output: 'sql/char@1'; readonly nullable: true };
|
||||
readonly 'sql/float@1': { readonly output: 'sql/float@1'; readonly nullable: true };
|
||||
readonly 'sql/int@1': { readonly output: 'sql/int@1'; readonly nullable: true };
|
||||
readonly 'sql/text@1': { readonly output: 'sql/text@1'; readonly nullable: true };
|
||||
readonly 'sql/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true };
|
||||
};
|
||||
};
|
||||
readonly min: {
|
||||
readonly byCodec: {
|
||||
readonly 'pg/char@1': { readonly output: 'pg/char@1'; readonly nullable: true };
|
||||
readonly 'pg/date-string@1': { readonly output: 'pg/date-string@1'; readonly nullable: true };
|
||||
readonly 'pg/date-temporal@1': {
|
||||
readonly output: 'pg/date-temporal@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/enum@1': { readonly output: 'pg/enum@1'; readonly nullable: true };
|
||||
readonly 'pg/float@1': { readonly output: 'pg/float@1'; readonly nullable: true };
|
||||
readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true };
|
||||
readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/inet@1': { readonly output: 'pg/inet@1'; readonly nullable: true };
|
||||
readonly 'pg/int@1': { readonly output: 'pg/int@1'; readonly nullable: true };
|
||||
readonly 'pg/int2@1': { readonly output: 'pg/int2@1'; readonly nullable: true };
|
||||
readonly 'pg/int4@1': { readonly output: 'pg/int4@1'; readonly nullable: true };
|
||||
readonly 'pg/int8@1': { readonly output: 'pg/int8@1'; readonly nullable: true };
|
||||
readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true };
|
||||
readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true };
|
||||
readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/text-array@1': { readonly output: 'pg/text-array@1'; readonly nullable: true };
|
||||
readonly 'pg/text@1': { readonly output: 'pg/text@1'; readonly nullable: true };
|
||||
readonly 'pg/time-string@1': { readonly output: 'pg/time-string@1'; readonly nullable: true };
|
||||
readonly 'pg/time-temporal@1': {
|
||||
readonly output: 'pg/time-temporal@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timestamp-string@1': {
|
||||
readonly output: 'pg/timestamp-string@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timestamp-temporal@1': {
|
||||
readonly output: 'pg/timestamp-temporal@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timestamptz-string@1': {
|
||||
readonly output: 'pg/timestamptz-string@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timestamptz-temporal@1': {
|
||||
readonly output: 'pg/timestamptz-temporal@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/timetz@1': { readonly output: 'pg/timetz@1'; readonly nullable: true };
|
||||
readonly 'pg/unboundedint@1': {
|
||||
readonly output: 'pg/unboundedint@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'pg/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true };
|
||||
readonly 'sql/char@1': { readonly output: 'sql/char@1'; readonly nullable: true };
|
||||
readonly 'sql/float@1': { readonly output: 'sql/float@1'; readonly nullable: true };
|
||||
readonly 'sql/int@1': { readonly output: 'sql/int@1'; readonly nullable: true };
|
||||
readonly 'sql/text@1': { readonly output: 'sql/text@1'; readonly nullable: true };
|
||||
readonly 'sql/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true };
|
||||
};
|
||||
};
|
||||
readonly sum: {
|
||||
readonly byCodec: {
|
||||
readonly 'pg/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true };
|
||||
readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'pg/int@1': { readonly output: 'pg/int8number@1'; readonly nullable: true };
|
||||
readonly 'pg/int2@1': { readonly output: 'pg/int8number@1'; readonly nullable: true };
|
||||
readonly 'pg/int4@1': { readonly output: 'pg/int8number@1'; readonly nullable: true };
|
||||
readonly 'pg/int8@1': { readonly output: 'pg/int8number@1'; readonly nullable: true };
|
||||
readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true };
|
||||
readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true };
|
||||
readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true };
|
||||
readonly 'pg/time-string@1': { readonly output: 'pg/interval@1'; readonly nullable: true };
|
||||
readonly 'pg/time-temporal@1': { readonly output: 'pg/interval@1'; readonly nullable: true };
|
||||
readonly 'pg/unboundedint@1': {
|
||||
readonly output: 'pg/unboundedint@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'sql/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true };
|
||||
readonly 'sql/int@1': { readonly output: 'pg/int8number@1'; readonly nullable: true };
|
||||
};
|
||||
};
|
||||
readonly sumBigInt: {
|
||||
readonly byCodec: {
|
||||
readonly 'pg/int@1': { readonly output: 'pg/int8@1'; readonly nullable: true };
|
||||
readonly 'pg/int2@1': { readonly output: 'pg/int8@1'; readonly nullable: true };
|
||||
readonly 'pg/int4@1': { readonly output: 'pg/int8@1'; readonly nullable: true };
|
||||
readonly 'pg/int8@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true };
|
||||
readonly 'pg/int8number@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true };
|
||||
readonly 'pg/unboundedint@1': {
|
||||
readonly output: 'pg/unboundedint@1';
|
||||
readonly nullable: true;
|
||||
};
|
||||
readonly 'sql/int@1': { readonly output: 'pg/int8@1'; readonly nullable: true };
|
||||
};
|
||||
};
|
||||
};
|
||||
type DefaultLiteralValue<CodecId extends string, Encoded> = CodecId extends keyof CodecTypes
|
||||
? Encoded extends CodecTypes[CodecId]['json']
|
||||
? Encoded
|
||||
: CodecTypes[CodecId]['json']
|
||||
: Encoded;
|
||||
|
||||
export type FieldOutputTypes = {
|
||||
readonly public: {
|
||||
readonly Post: {
|
||||
readonly id: CodecTypes['pg/int4@1']['output'];
|
||||
readonly user_id: CodecTypes['pg/int4@1']['output'];
|
||||
readonly title: CodecTypes['pg/text@1']['output'];
|
||||
readonly context: CodecTypes['pg/text@1']['output'];
|
||||
readonly is_public: CodecTypes['pg/bool@1']['output'];
|
||||
readonly status: CodecTypes['pg/int4@1']['output'];
|
||||
};
|
||||
readonly User: {
|
||||
readonly id: CodecTypes['pg/int4@1']['output'];
|
||||
readonly nickname: CodecTypes['pg/text@1']['output'];
|
||||
readonly username: CodecTypes['pg/text@1']['output'];
|
||||
readonly password: CodecTypes['pg/text@1']['output'];
|
||||
};
|
||||
};
|
||||
};
|
||||
export type FieldInputTypes = {
|
||||
readonly public: {
|
||||
readonly Post: {
|
||||
readonly id: CodecTypes['pg/int4@1']['input'];
|
||||
readonly user_id: CodecTypes['pg/int4@1']['input'];
|
||||
readonly title: CodecTypes['pg/text@1']['input'];
|
||||
readonly context: CodecTypes['pg/text@1']['input'];
|
||||
readonly is_public: CodecTypes['pg/bool@1']['input'];
|
||||
readonly status: CodecTypes['pg/int4@1']['input'];
|
||||
};
|
||||
readonly User: {
|
||||
readonly id: CodecTypes['pg/int4@1']['input'];
|
||||
readonly nickname: CodecTypes['pg/text@1']['input'];
|
||||
readonly username: CodecTypes['pg/text@1']['input'];
|
||||
readonly password: CodecTypes['pg/text@1']['input'];
|
||||
};
|
||||
};
|
||||
};
|
||||
export type StorageColumnTypes = {
|
||||
readonly public: {
|
||||
readonly post: {
|
||||
readonly context: CodecTypes['pg/text@1']['output'];
|
||||
readonly id: CodecTypes['pg/int4@1']['output'];
|
||||
readonly is_public: CodecTypes['pg/bool@1']['output'];
|
||||
readonly status: CodecTypes['pg/int4@1']['output'];
|
||||
readonly title: CodecTypes['pg/text@1']['output'];
|
||||
readonly user_id: CodecTypes['pg/int4@1']['output'];
|
||||
};
|
||||
readonly user: {
|
||||
readonly id: CodecTypes['pg/int4@1']['output'];
|
||||
readonly nickname: CodecTypes['pg/text@1']['output'];
|
||||
readonly password: CodecTypes['pg/text@1']['output'];
|
||||
readonly username: CodecTypes['pg/text@1']['output'];
|
||||
};
|
||||
};
|
||||
};
|
||||
export type StorageColumnInputTypes = {
|
||||
readonly public: {
|
||||
readonly post: {
|
||||
readonly context: CodecTypes['pg/text@1']['input'];
|
||||
readonly id: CodecTypes['pg/int4@1']['input'];
|
||||
readonly is_public: CodecTypes['pg/bool@1']['input'];
|
||||
readonly status: CodecTypes['pg/int4@1']['input'];
|
||||
readonly title: CodecTypes['pg/text@1']['input'];
|
||||
readonly user_id: CodecTypes['pg/int4@1']['input'];
|
||||
};
|
||||
readonly user: {
|
||||
readonly id: CodecTypes['pg/int4@1']['input'];
|
||||
readonly nickname: CodecTypes['pg/text@1']['input'];
|
||||
readonly password: CodecTypes['pg/text@1']['input'];
|
||||
readonly username: CodecTypes['pg/text@1']['input'];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export namespace Models {
|
||||
export type public_User = {
|
||||
id: CodecTypes['pg/int4@1']['output'];
|
||||
nickname: CodecTypes['pg/text@1']['output'];
|
||||
username: CodecTypes['pg/text@1']['output'];
|
||||
password: CodecTypes['pg/text@1']['output'];
|
||||
readonly [RelationKeys]?: never;
|
||||
};
|
||||
export type public_Post = {
|
||||
id: CodecTypes['pg/int4@1']['output'];
|
||||
user_id: CodecTypes['pg/int4@1']['output'];
|
||||
title: CodecTypes['pg/text@1']['output'];
|
||||
context: CodecTypes['pg/text@1']['output'];
|
||||
is_public: CodecTypes['pg/bool@1']['output'];
|
||||
status: CodecTypes['pg/int4@1']['output'];
|
||||
readonly [RelationKeys]?: never;
|
||||
};
|
||||
}
|
||||
|
||||
export declare const models: {
|
||||
public: {
|
||||
User: Models.public_User;
|
||||
Post: Models.public_Post;
|
||||
};
|
||||
};
|
||||
|
||||
export type TypeMaps = TypeMapsType<
|
||||
CodecTypes,
|
||||
QueryOperationTypes,
|
||||
FieldOutputTypes,
|
||||
FieldInputTypes,
|
||||
StorageColumnTypes,
|
||||
StorageColumnInputTypes,
|
||||
AggregateTypes
|
||||
>;
|
||||
|
||||
type ContractBase = Omit<
|
||||
ContractType<{
|
||||
readonly namespaces: {
|
||||
readonly public: {
|
||||
readonly id: 'public';
|
||||
readonly kind: 'postgres-schema';
|
||||
readonly entries: {
|
||||
readonly table: {
|
||||
readonly post: {
|
||||
columns: {
|
||||
readonly id: {
|
||||
readonly nativeType: 'int4';
|
||||
readonly codecId: 'pg/int4@1';
|
||||
readonly nullable: false;
|
||||
readonly default: {
|
||||
readonly kind: 'function';
|
||||
readonly expression: 'autoincrement()';
|
||||
};
|
||||
};
|
||||
readonly user_id: {
|
||||
readonly nativeType: 'int4';
|
||||
readonly codecId: 'pg/int4@1';
|
||||
readonly nullable: false;
|
||||
};
|
||||
readonly title: {
|
||||
readonly nativeType: 'text';
|
||||
readonly codecId: 'pg/text@1';
|
||||
readonly nullable: false;
|
||||
};
|
||||
readonly context: {
|
||||
readonly nativeType: 'text';
|
||||
readonly codecId: 'pg/text@1';
|
||||
readonly nullable: false;
|
||||
};
|
||||
readonly is_public: {
|
||||
readonly nativeType: 'bool';
|
||||
readonly codecId: 'pg/bool@1';
|
||||
readonly nullable: false;
|
||||
readonly default: {
|
||||
readonly kind: 'literal';
|
||||
readonly value: DefaultLiteralValue<'pg/bool@1', true>;
|
||||
};
|
||||
};
|
||||
readonly status: {
|
||||
readonly nativeType: 'int4';
|
||||
readonly codecId: 'pg/int4@1';
|
||||
readonly nullable: false;
|
||||
readonly default: {
|
||||
readonly kind: 'literal';
|
||||
readonly value: DefaultLiteralValue<'pg/int4@1', 0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
primaryKey: { readonly columns: readonly ['id'] };
|
||||
uniques: readonly [];
|
||||
indexes: readonly [];
|
||||
foreignKeys: readonly [];
|
||||
};
|
||||
readonly user: {
|
||||
columns: {
|
||||
readonly id: {
|
||||
readonly nativeType: 'int4';
|
||||
readonly codecId: 'pg/int4@1';
|
||||
readonly nullable: false;
|
||||
readonly default: {
|
||||
readonly kind: 'function';
|
||||
readonly expression: 'autoincrement()';
|
||||
};
|
||||
};
|
||||
readonly nickname: {
|
||||
readonly nativeType: 'text';
|
||||
readonly codecId: 'pg/text@1';
|
||||
readonly nullable: false;
|
||||
};
|
||||
readonly username: {
|
||||
readonly nativeType: 'text';
|
||||
readonly codecId: 'pg/text@1';
|
||||
readonly nullable: false;
|
||||
};
|
||||
readonly password: {
|
||||
readonly nativeType: 'text';
|
||||
readonly codecId: 'pg/text@1';
|
||||
readonly nullable: false;
|
||||
};
|
||||
};
|
||||
primaryKey: { readonly columns: readonly ['id'] };
|
||||
uniques: readonly [{ readonly columns: readonly ['username'] }];
|
||||
indexes: readonly [];
|
||||
foreignKeys: readonly [];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
readonly storageHash: StorageHash;
|
||||
}>,
|
||||
'roots' | 'domain'
|
||||
> & {
|
||||
readonly target: 'postgres';
|
||||
readonly targetFamily: 'sql';
|
||||
readonly roots: {
|
||||
readonly user: { readonly namespace: 'public' & NamespaceId; readonly model: 'User' };
|
||||
readonly post: { readonly namespace: 'public' & NamespaceId; readonly model: 'Post' };
|
||||
};
|
||||
readonly domain: {
|
||||
readonly namespaces: {
|
||||
readonly public: {
|
||||
readonly models: {
|
||||
readonly Post: {
|
||||
readonly fields: {
|
||||
readonly id: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' };
|
||||
};
|
||||
readonly user_id: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' };
|
||||
};
|
||||
readonly title: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
||||
};
|
||||
readonly context: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
||||
};
|
||||
readonly is_public: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/bool@1' };
|
||||
};
|
||||
readonly status: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' };
|
||||
};
|
||||
};
|
||||
readonly relations: Record<string, never>;
|
||||
readonly storage: {
|
||||
readonly table: 'post';
|
||||
readonly namespaceId: 'public';
|
||||
readonly fields: {
|
||||
readonly id: { readonly column: 'id' };
|
||||
readonly user_id: { readonly column: 'user_id' };
|
||||
readonly title: { readonly column: 'title' };
|
||||
readonly context: { readonly column: 'context' };
|
||||
readonly is_public: { readonly column: 'is_public' };
|
||||
readonly status: { readonly column: 'status' };
|
||||
};
|
||||
};
|
||||
};
|
||||
readonly User: {
|
||||
readonly fields: {
|
||||
readonly id: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' };
|
||||
};
|
||||
readonly nickname: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
||||
};
|
||||
readonly username: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
||||
};
|
||||
readonly password: {
|
||||
readonly nullable: false;
|
||||
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
||||
};
|
||||
};
|
||||
readonly relations: Record<string, never>;
|
||||
readonly storage: {
|
||||
readonly table: 'user';
|
||||
readonly namespaceId: 'public';
|
||||
readonly fields: {
|
||||
readonly id: { readonly column: 'id' };
|
||||
readonly nickname: { readonly column: 'nickname' };
|
||||
readonly username: { readonly column: 'username' };
|
||||
readonly password: { readonly column: 'password' };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
readonly capabilities: {
|
||||
readonly postgres: {
|
||||
readonly distinctOn: true;
|
||||
readonly jsonAgg: true;
|
||||
readonly lateral: true;
|
||||
readonly limit: true;
|
||||
readonly orderBy: true;
|
||||
readonly returning: true;
|
||||
};
|
||||
readonly sql: {
|
||||
readonly checkConstraint: true;
|
||||
readonly defaultInInsert: true;
|
||||
readonly enums: true;
|
||||
readonly lateral: true;
|
||||
readonly returning: true;
|
||||
readonly scalarList: true;
|
||||
};
|
||||
};
|
||||
readonly extensions: {};
|
||||
readonly meta: {};
|
||||
|
||||
readonly profileHash: ProfileHash;
|
||||
};
|
||||
|
||||
export type Contract = ContractWithTypeMaps<ContractBase, TypeMaps>;
|
||||
|
||||
export type Namespaces = Contract['storage']['namespaces'];
|
||||
Reference in New Issue
Block a user