init
This commit is contained in:
Vendored
+527
@@ -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'];
|
||||
+1
@@ -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"}
|
||||
Reference in New Issue
Block a user