This commit is contained in:
2026-10-21 20:44:41 +08:00
commit 59c6973e74
28 changed files with 4681 additions and 0 deletions
@@ -0,0 +1,527 @@
// ⚠️ 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<'08bb890f11bf10c43aee5adbb94faac367bb4c96a4886208291c8435d9e06fbf'>;
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 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 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 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 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'];
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 default: {
readonly kind: 'function';
readonly expression: 'autoincrement()';
};
};
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;
};
};
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 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 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'];
@@ -0,0 +1 @@
{"_generated":{"message":"This file is automatically generated by \"prisma contract emit\".","regenerate":"To regenerate, run: prisma contract emit","warning":"⚠️ GENERATED FILE - DO NOT EDIT"},"capabilities":{"postgres":{"distinctOn":true,"jsonAgg":true,"lateral":true,"limit":true,"orderBy":true,"returning":true},"sql":{"checkConstraint":true,"defaultInInsert":true,"enums":true,"lateral":true,"returning":true,"scalarList":true}},"domain":{"namespaces":{"public":{"models":{"Post":{"fields":{"context":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"title":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"user_id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}}},"relations":{},"storage":{"fields":{"context":{"column":"context"},"id":{"column":"id"},"title":{"column":"title"},"user_id":{"column":"user_id"}},"namespaceId":"public","table":"post"}},"User":{"fields":{"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"nickname":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"password":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"username":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}}},"relations":{},"storage":{"fields":{"id":{"column":"id"},"nickname":{"column":"nickname"},"password":{"column":"password"},"username":{"column":"username"}},"namespaceId":"public","table":"user"}}}}}},"extensions":{},"meta":{},"profileHash":"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2","roots":{"post":{"model":"Post","namespace":"public"},"user":{"model":"User","namespace":"public"}},"schemaVersion":"1","storage":{"namespaces":{"public":{"entries":{"table":{"post":{"columns":{"context":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"title":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"user_id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[]},"user":{"columns":{"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"nickname":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"password":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"username":{"codecId":"pg/text@1","nativeType":"text","nullable":false}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[{"columns":["username"]}]}}},"id":"public","kind":"postgres-schema"}},"storageHash":"08bb890f11bf10c43aee5adbb94faac367bb4c96a4886208291c8435d9e06fbf"},"target":"postgres","targetFamily":"sql"}
@@ -0,0 +1,508 @@
// ⚠️ 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<'0a0d5f715195fa3e27bfec1d19e8ff84c81e40676c4a3b5ae59513606881efca'>;
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 title: CodecTypes['pg/text@1']['output'];
readonly context: CodecTypes['pg/text@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 title: CodecTypes['pg/text@1']['input'];
readonly context: CodecTypes['pg/text@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 title: CodecTypes['pg/text@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 title: CodecTypes['pg/text@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'];
title: CodecTypes['pg/text@1']['output'];
context: CodecTypes['pg/text@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 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;
};
};
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 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 relations: Record<string, never>;
readonly storage: {
readonly table: 'post';
readonly namespaceId: 'public';
readonly fields: {
readonly id: { readonly column: 'id' };
readonly title: { readonly column: 'title' };
readonly context: { readonly column: 'context' };
};
};
};
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'];
@@ -0,0 +1 @@
{"_generated":{"message":"This file is automatically generated by \"prisma contract emit\".","regenerate":"To regenerate, run: prisma contract emit","warning":"⚠️ GENERATED FILE - DO NOT EDIT"},"capabilities":{"postgres":{"distinctOn":true,"jsonAgg":true,"lateral":true,"limit":true,"orderBy":true,"returning":true},"sql":{"checkConstraint":true,"defaultInInsert":true,"enums":true,"lateral":true,"returning":true,"scalarList":true}},"domain":{"namespaces":{"public":{"models":{"Post":{"fields":{"context":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"title":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}}},"relations":{},"storage":{"fields":{"context":{"column":"context"},"id":{"column":"id"},"title":{"column":"title"}},"namespaceId":"public","table":"post"}},"User":{"fields":{"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"nickname":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"password":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"username":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}}},"relations":{},"storage":{"fields":{"id":{"column":"id"},"nickname":{"column":"nickname"},"password":{"column":"password"},"username":{"column":"username"}},"namespaceId":"public","table":"user"}}}}}},"extensions":{},"meta":{},"profileHash":"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2","roots":{"post":{"model":"Post","namespace":"public"},"user":{"model":"User","namespace":"public"}},"schemaVersion":"1","storage":{"namespaces":{"public":{"entries":{"table":{"post":{"columns":{"context":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"title":{"codecId":"pg/text@1","nativeType":"text","nullable":false}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[]},"user":{"columns":{"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"nickname":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"password":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"username":{"codecId":"pg/text@1","nativeType":"text","nullable":false}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[{"columns":["username"]}]}}},"id":"public","kind":"postgres-schema"}},"storageHash":"0a0d5f715195fa3e27bfec1d19e8ff84c81e40676c4a3b5ae59513606881efca"},"target":"postgres","targetFamily":"sql"}
@@ -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'];
@@ -0,0 +1 @@
{"_generated":{"message":"This file is automatically generated by \"prisma contract emit\".","regenerate":"To regenerate, run: prisma contract emit","warning":"⚠️ GENERATED FILE - DO NOT EDIT"},"capabilities":{"postgres":{"distinctOn":true,"jsonAgg":true,"lateral":true,"limit":true,"orderBy":true,"returning":true},"sql":{"checkConstraint":true,"defaultInInsert":true,"enums":true,"lateral":true,"returning":true,"scalarList":true}},"domain":{"namespaces":{"public":{"models":{"Post":{"fields":{"context":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"is_public":{"nullable":false,"type":{"codecId":"pg/bool@1","kind":"scalar"}},"status":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"title":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"user_id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}}},"relations":{},"storage":{"fields":{"context":{"column":"context"},"id":{"column":"id"},"is_public":{"column":"is_public"},"status":{"column":"status"},"title":{"column":"title"},"user_id":{"column":"user_id"}},"namespaceId":"public","table":"post"}},"User":{"fields":{"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"nickname":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"password":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"username":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}}},"relations":{},"storage":{"fields":{"id":{"column":"id"},"nickname":{"column":"nickname"},"password":{"column":"password"},"username":{"column":"username"}},"namespaceId":"public","table":"user"}}}}}},"extensions":{},"meta":{},"profileHash":"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2","roots":{"post":{"model":"Post","namespace":"public"},"user":{"model":"User","namespace":"public"}},"schemaVersion":"1","storage":{"namespaces":{"public":{"entries":{"table":{"post":{"columns":{"context":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"is_public":{"codecId":"pg/bool@1","default":{"kind":"literal","value":true},"nativeType":"bool","nullable":false},"status":{"codecId":"pg/int4@1","default":{"kind":"literal","value":0},"nativeType":"int4","nullable":false},"title":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"user_id":{"codecId":"pg/int4@1","nativeType":"int4","nullable":false}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[]},"user":{"columns":{"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"nickname":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"password":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"username":{"codecId":"pg/text@1","nativeType":"text","nullable":false}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[{"columns":["username"]}]}}},"id":"public","kind":"postgres-schema"}},"storageHash":"66cb816949cf8f6a536fcdd60eeb1bb528c3e58ae9bc6737273a2fe0a26f5843"},"target":"postgres","targetFamily":"sql"}
@@ -0,0 +1,427 @@
// ⚠️ 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<'6d4e64348cacbe8efec961e207dadcb208487796fec57113519e0f12fbfaeee8'>;
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 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 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 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 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 declare const models: {
public: {
User: Models.public_User;
};
};
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 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 domain: {
readonly namespaces: {
readonly public: {
readonly models: {
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'];
@@ -0,0 +1 @@
{"_generated":{"message":"This file is automatically generated by \"prisma contract emit\".","regenerate":"To regenerate, run: prisma contract emit","warning":"⚠️ GENERATED FILE - DO NOT EDIT"},"capabilities":{"postgres":{"distinctOn":true,"jsonAgg":true,"lateral":true,"limit":true,"orderBy":true,"returning":true},"sql":{"checkConstraint":true,"defaultInInsert":true,"enums":true,"lateral":true,"returning":true,"scalarList":true}},"domain":{"namespaces":{"public":{"models":{"User":{"fields":{"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"nickname":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"password":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"username":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}}},"relations":{},"storage":{"fields":{"id":{"column":"id"},"nickname":{"column":"nickname"},"password":{"column":"password"},"username":{"column":"username"}},"namespaceId":"public","table":"user"}}}}}},"extensions":{},"meta":{},"profileHash":"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2","roots":{"user":{"model":"User","namespace":"public"}},"schemaVersion":"1","storage":{"namespaces":{"public":{"entries":{"table":{"user":{"columns":{"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"nickname":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"password":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"username":{"codecId":"pg/text@1","nativeType":"text","nullable":false}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[{"columns":["username"]}]}}},"id":"public","kind":"postgres-schema"}},"storageHash":"6d4e64348cacbe8efec961e207dadcb208487796fec57113519e0f12fbfaeee8"},"target":"postgres","targetFamily":"sql"}