// ⚠️ GENERATED FILE - DO NOT EDIT // This file is automatically generated by 'prisma contract emit'. // To regenerate, run: prisma contract emit import type { ColumnTypesFromStorage, Contract as ContractType, ContractWithTypeMaps, ExecutionHashBase, FieldTypesFromDomain, NamespaceId, ProfileHashBase, RelationKeys, StorageHashBase, TypeMaps as TypeMapsType, } from '#fixture-contract-types'; import type { CodecTypes as PgTypes, ParameterizedOutputTypesForTypeParams as PgParameterizedOutputTypes, } from '@internal/target-postgres/codec-types'; import type { QueryOperationTypes as PgTargetQueryOps } from '@internal/target-postgres/operation-types'; export type StorageHash = StorageHashBase<'5e1e59007251086853ee4ed0aafbb7c0a1153034d8c68e9d58c19e7c693cdbf9'>; export type ExecutionHash = ExecutionHashBase; export type ProfileHash = ProfileHashBase<'3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2'>; export type CodecTypes = PgTypes; export type LaneCodecTypes = CodecTypes; export type QueryOperationTypes = PgTargetQueryOps; export type AggregateTypes = { readonly avg: { readonly byCodec: { 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/float@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/int@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; readonly 'pg/interval-string@1': { readonly output: 'pg/interval-string@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/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/int@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/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true }; readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; readonly 'pg/float@1': { readonly output: 'pg/float@1'; readonly nullable: true }; readonly 'pg/inet@1': { readonly output: 'pg/inet@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/int@1': { readonly output: 'pg/int@1'; readonly nullable: true }; readonly 'pg/interval-string@1': { readonly output: 'pg/interval-string@1'; readonly nullable: true; }; readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; readonly 'pg/money@1': { readonly output: 'pg/money@1'; readonly nullable: true }; readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; readonly 'pg/oid@1': { readonly output: 'pg/oid@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-date@1': { readonly output: 'pg/timestamp-date@1'; readonly nullable: true; }; readonly 'pg/timestamp-instant@1': { readonly output: 'pg/timestamp-instant@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-date@1': { readonly output: 'pg/timestamptz-date@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/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true }; readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; readonly 'pg/float@1': { readonly output: 'pg/float@1'; readonly nullable: true }; readonly 'pg/inet@1': { readonly output: 'pg/inet@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/int@1': { readonly output: 'pg/int@1'; readonly nullable: true }; readonly 'pg/interval-string@1': { readonly output: 'pg/interval-string@1'; readonly nullable: true; }; readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; readonly 'pg/money@1': { readonly output: 'pg/money@1'; readonly nullable: true }; readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; readonly 'pg/oid@1': { readonly output: 'pg/oid@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-date@1': { readonly output: 'pg/timestamp-date@1'; readonly nullable: true; }; readonly 'pg/timestamp-instant@1': { readonly output: 'pg/timestamp-instant@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-date@1': { readonly output: 'pg/timestamptz-date@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/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true }; readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; readonly 'pg/float@1': { readonly output: 'pg/float8@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/int@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; readonly 'pg/interval-string@1': { readonly output: 'pg/interval-string@1'; readonly nullable: true; }; readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; readonly 'pg/money@1': { readonly output: 'pg/money@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/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/int@1': { readonly output: 'pg/int8@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 keyof CodecTypes ? Encoded extends CodecTypes[CodecId]['json'] ? Encoded : CodecTypes[CodecId]['json'] : Encoded; type ParameterizedOutputTypeFunctions = PgParameterizedOutputTypes; type FieldTypeOverrides = { readonly public: { readonly models: { readonly Task: { readonly type: { readonly output: 'bug' | 'epic' | 'feature'; readonly input: 'bug' | 'epic' | 'feature'; }; }; readonly User: { readonly kind: { readonly output: 'admin' | 'regular'; readonly input: 'admin' | 'regular'; }; }; }; }; }; export type FieldOutputTypes = FieldTypesFromDomain< ContractBase['domain']['namespaces'], CodecTypes, ParameterizedOutputTypeFunctions, FieldTypeOverrides, 'output', ContractBase['storage']['namespaces'] >; export type FieldInputTypes = FieldTypesFromDomain< ContractBase['domain']['namespaces'], CodecTypes, ParameterizedOutputTypeFunctions, FieldTypeOverrides, 'input', ContractBase['storage']['namespaces'] >; type ColumnTypeOverrides = { readonly public: { readonly tasks: { readonly type: { readonly output: 'bug' | 'epic' | 'feature'; readonly input: 'bug' | 'epic' | 'feature'; }; }; readonly users: { readonly kind: { readonly output: 'admin' | 'regular'; readonly input: 'admin' | 'regular' }; }; }; }; export type StorageColumnTypes = ColumnTypesFromStorage< ContractBase['storage'], CodecTypes, ParameterizedOutputTypeFunctions, ColumnTypeOverrides, 'output' >; export type StorageColumnInputTypes = ColumnTypesFromStorage< ContractBase['storage'], CodecTypes, ParameterizedOutputTypeFunctions, ColumnTypeOverrides, 'input' >; export namespace Models { export type public_Account = { id: FieldOutputTypes['public']['Account']['id']; name: FieldOutputTypes['public']['Account']['name']; members: public_AnyUser[]; readonly [RelationKeys]?: 'members'; }; export type public_Admin = { accountId: FieldOutputTypes['public']['User']['accountId']; email: FieldOutputTypes['public']['User']['email']; id: FieldOutputTypes['public']['User']['id']; kind: 'admin'; name: FieldOutputTypes['public']['User']['name']; role: FieldOutputTypes['public']['Admin']['role']; account: public_Account | null; readonly [RelationKeys]?: 'account'; }; export type public_Bug = { id: FieldOutputTypes['public']['Task']['id']; pinnedById: FieldOutputTypes['public']['Task']['pinnedById']; projectId: FieldOutputTypes['public']['Task']['projectId']; reporterId: FieldOutputTypes['public']['Task']['reporterId']; title: FieldOutputTypes['public']['Task']['title']; type: 'bug'; assigneeId: FieldOutputTypes['public']['Bug']['assigneeId']; severity: FieldOutputTypes['public']['Bug']['severity']; comments: public_TaskComment[]; labels: public_Label[]; pinnedBy: public_Person | null; project: public_Project | null; reporter: public_Person | null; assignee: public_Person | null; readonly [RelationKeys]?: 'comments' | 'labels' | 'pinnedBy' | 'project' | 'reporter' | 'assignee'; }; export type public_Epic = { id: FieldOutputTypes['public']['Task']['id']; pinnedById: FieldOutputTypes['public']['Task']['pinnedById']; projectId: FieldOutputTypes['public']['Task']['projectId']; reporterId: FieldOutputTypes['public']['Task']['reporterId']; title: FieldOutputTypes['public']['Task']['title']; type: 'epic'; scope: FieldOutputTypes['public']['Epic']['scope']; comments: public_TaskComment[]; labels: public_Label[]; pinnedBy: public_Person | null; project: public_Project | null; reporter: public_Person | null; readonly [RelationKeys]?: 'comments' | 'labels' | 'pinnedBy' | 'project' | 'reporter'; }; export type public_Feature = { id: FieldOutputTypes['public']['Task']['id']; pinnedById: FieldOutputTypes['public']['Task']['pinnedById']; projectId: FieldOutputTypes['public']['Task']['projectId']; reporterId: FieldOutputTypes['public']['Task']['reporterId']; title: FieldOutputTypes['public']['Task']['title']; type: 'feature'; assigneeId: FieldOutputTypes['public']['Feature']['assigneeId']; priority: FieldOutputTypes['public']['Feature']['priority']; comments: public_TaskComment[]; labels: public_Label[]; pinnedBy: public_Person | null; project: public_Project | null; reporter: public_Person | null; assignee: public_Person | null; readonly [RelationKeys]?: 'comments' | 'labels' | 'pinnedBy' | 'project' | 'reporter' | 'assignee'; }; export type public_Label = { id: FieldOutputTypes['public']['Label']['id']; name: FieldOutputTypes['public']['Label']['name']; tasks: public_AnyTask[]; readonly [RelationKeys]?: 'tasks'; }; export type public_Person = { id: FieldOutputTypes['public']['Person']['id']; name: FieldOutputTypes['public']['Person']['name']; pinnedTask: public_AnyTask | null; tasks: public_AnyTask[]; readonly [RelationKeys]?: 'pinnedTask' | 'tasks'; }; export type public_Project = { id: FieldOutputTypes['public']['Project']['id']; name: FieldOutputTypes['public']['Project']['name']; tasks: public_AnyTask[]; readonly [RelationKeys]?: 'tasks'; }; export type public_Regular = { accountId: FieldOutputTypes['public']['User']['accountId']; email: FieldOutputTypes['public']['User']['email']; id: FieldOutputTypes['public']['User']['id']; kind: 'regular'; name: FieldOutputTypes['public']['User']['name']; plan: FieldOutputTypes['public']['Regular']['plan']; account: public_Account | null; readonly [RelationKeys]?: 'account'; }; export type public_Task = { id: FieldOutputTypes['public']['Task']['id']; pinnedById: FieldOutputTypes['public']['Task']['pinnedById']; projectId: FieldOutputTypes['public']['Task']['projectId']; reporterId: FieldOutputTypes['public']['Task']['reporterId']; title: FieldOutputTypes['public']['Task']['title']; type: 'bug' | 'epic' | 'feature'; comments: public_TaskComment[]; labels: public_Label[]; pinnedBy: public_Person | null; project: public_Project | null; reporter: public_Person | null; readonly [RelationKeys]?: 'comments' | 'labels' | 'pinnedBy' | 'project' | 'reporter'; }; export type public_TaskComment = { body: FieldOutputTypes['public']['TaskComment']['body']; id: FieldOutputTypes['public']['TaskComment']['id']; taskId: FieldOutputTypes['public']['TaskComment']['taskId']; task: public_AnyTask | null; readonly [RelationKeys]?: 'task'; }; export type public_TaskLabel = { labelId: FieldOutputTypes['public']['TaskLabel']['labelId']; taskId: FieldOutputTypes['public']['TaskLabel']['taskId']; label: public_Label; task: public_AnyTask; readonly [RelationKeys]?: 'label' | 'task'; }; export type public_Ticket = { id: FieldOutputTypes['public']['Ticket']['id']; ownerId: FieldOutputTypes['public']['Ticket']['ownerId']; subject: FieldOutputTypes['public']['Ticket']['subject']; owner: public_AnyUser | null; readonly [RelationKeys]?: 'owner'; }; export type public_User = { accountId: FieldOutputTypes['public']['User']['accountId']; email: FieldOutputTypes['public']['User']['email']; id: FieldOutputTypes['public']['User']['id']; kind: 'admin' | 'regular'; name: FieldOutputTypes['public']['User']['name']; account: public_Account | null; readonly [RelationKeys]?: 'account'; }; export type public_AnyTask = public_Bug | public_Epic | public_Feature; export type public_AnyUser = public_Admin | public_Regular; } export declare const models: { public: { Account: Models.public_Account; Admin: Models.public_Admin; Bug: Models.public_Bug; Epic: Models.public_Epic; Feature: Models.public_Feature; Label: Models.public_Label; Person: Models.public_Person; Project: Models.public_Project; Regular: Models.public_Regular; Task: Models.public_Task; TaskComment: Models.public_TaskComment; TaskLabel: Models.public_TaskLabel; Ticket: Models.public_Ticket; User: Models.public_User; AnyTask: Models.public_AnyTask; AnyUser: Models.public_AnyUser; }; }; 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 accounts: { columns: { readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly []; }; readonly epics: { columns: { readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly many: false; }; readonly scope: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly [ { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'epics'; readonly columns: readonly ['id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tasks'; readonly columns: readonly ['id']; }; }, ]; }; readonly features: { columns: { readonly feature_assignee_person_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly many: false; }; readonly priority: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly [ { readonly name: 'features_feature_assignee_person_id_idx_7fcd7a77'; readonly prefix: 'features_feature_assignee_person_id_idx'; readonly columns: readonly ['feature_assignee_person_id']; readonly unique: false; }, ]; foreignKeys: readonly [ { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'features'; readonly columns: readonly ['feature_assignee_person_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'people'; readonly columns: readonly ['id']; }; }, { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'features'; readonly columns: readonly ['id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tasks'; readonly columns: readonly ['id']; }; }, ]; }; readonly labels: { columns: { readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly []; }; readonly people: { columns: { readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly []; }; readonly projects_tbl: { columns: { readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly []; foreignKeys: readonly []; }; readonly task_comments: { columns: { readonly body: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly task_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly [ { readonly name: 'task_comments_task_id_idx_5d5ac774'; readonly prefix: 'task_comments_task_id_idx'; readonly columns: readonly ['task_id']; readonly unique: false; }, ]; foreignKeys: readonly [ { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'task_comments'; readonly columns: readonly ['task_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tasks'; readonly columns: readonly ['id']; }; }, ]; }; readonly task_labels: { columns: { readonly label_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly many: false; }; readonly task_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['task_id', 'label_id'] }; uniques: readonly []; indexes: readonly [ { readonly name: 'task_labels_label_id_idx_c7720d3e'; readonly prefix: 'task_labels_label_id_idx'; readonly columns: readonly ['label_id']; readonly unique: false; }, { readonly name: 'task_labels_task_id_idx_5d5ac774'; readonly prefix: 'task_labels_task_id_idx'; readonly columns: readonly ['task_id']; readonly unique: false; }, ]; foreignKeys: readonly [ { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'task_labels'; readonly columns: readonly ['task_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tasks'; readonly columns: readonly ['id']; }; }, { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'task_labels'; readonly columns: readonly ['label_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'labels'; readonly columns: readonly ['id']; }; }, ]; }; readonly tasks: { columns: { readonly bug_assignee_person_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: true; readonly many: false; }; readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly pinned_by_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: true; readonly many: false; }; readonly project_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: true; readonly many: false; }; readonly reporter_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: true; readonly many: false; }; readonly severity: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly title: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly type: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly [{ readonly columns: readonly ['pinned_by_id'] }]; indexes: readonly [ { readonly name: 'tasks_bug_assignee_person_id_idx_ce44cebc'; readonly prefix: 'tasks_bug_assignee_person_id_idx'; readonly columns: readonly ['bug_assignee_person_id']; readonly unique: false; }, { readonly name: 'tasks_project_id_idx_6ad92603'; readonly prefix: 'tasks_project_id_idx'; readonly columns: readonly ['project_id']; readonly unique: false; }, { readonly name: 'tasks_reporter_id_idx_3eeed9a0'; readonly prefix: 'tasks_reporter_id_idx'; readonly columns: readonly ['reporter_id']; readonly unique: false; }, ]; foreignKeys: readonly [ { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tasks'; readonly columns: readonly ['project_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'projects_tbl'; readonly columns: readonly ['id']; }; }, { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tasks'; readonly columns: readonly ['reporter_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'people'; readonly columns: readonly ['id']; }; }, { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tasks'; readonly columns: readonly ['pinned_by_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'people'; readonly columns: readonly ['id']; }; }, { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tasks'; readonly columns: readonly ['bug_assignee_person_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'people'; readonly columns: readonly ['id']; }; }, ]; }; readonly tickets: { columns: { readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly owner_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: true; readonly many: false; }; readonly subject: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly [ { readonly name: 'tickets_owner_id_idx_ade9f347'; readonly prefix: 'tickets_owner_id_idx'; readonly columns: readonly ['owner_id']; readonly unique: false; }, ]; foreignKeys: readonly [ { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'tickets'; readonly columns: readonly ['owner_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['id']; }; }, ]; }; readonly users: { columns: { readonly account_id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: true; readonly many: false; }; readonly email: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly id: { readonly dataType: 'pg/int4'; readonly codecId: 'pg/int4@1'; readonly nullable: false; readonly default: { readonly kind: 'function'; readonly expression: 'autoincrement()'; }; readonly many: false; }; readonly kind: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly name: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: false; readonly many: false; }; readonly plan: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; readonly role: { readonly dataType: 'pg/text'; readonly codecId: 'pg/text@1'; readonly nullable: true; readonly many: false; }; }; primaryKey: { readonly columns: readonly ['id'] }; uniques: readonly []; indexes: readonly [ { readonly name: 'users_account_id_idx_3b48271c'; readonly prefix: 'users_account_id_idx'; readonly columns: readonly ['account_id']; readonly unique: false; }, ]; foreignKeys: readonly [ { readonly source: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'users'; readonly columns: readonly ['account_id']; }; readonly target: { readonly namespaceId: 'public' & NamespaceId; readonly tableName: 'accounts'; readonly columns: readonly ['id']; }; }, ]; }; }; readonly valueSet: { readonly 'Task.type': { readonly kind: 'valueSet'; readonly values: readonly ['bug', 'epic', 'feature']; }; readonly 'User.kind': { readonly kind: 'valueSet'; readonly values: readonly ['admin', 'regular']; }; }; }; }; }; readonly storageHash: StorageHash; }>, 'roots' | 'domain' > & { readonly target: 'postgres'; readonly targetFamily: 'sql'; readonly roots: { readonly accounts: { readonly namespace: 'public' & NamespaceId; readonly model: 'Account' }; readonly labels: { readonly namespace: 'public' & NamespaceId; readonly model: 'Label' }; readonly people: { readonly namespace: 'public' & NamespaceId; readonly model: 'Person' }; readonly projects_tbl: { readonly namespace: 'public' & NamespaceId; readonly model: 'Project'; }; readonly task_comments: { readonly namespace: 'public' & NamespaceId; readonly model: 'TaskComment'; }; readonly task_labels: { readonly namespace: 'public' & NamespaceId; readonly model: 'TaskLabel'; }; readonly tasks: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; readonly tickets: { readonly namespace: 'public' & NamespaceId; readonly model: 'Ticket' }; readonly users: { readonly namespace: 'public' & NamespaceId; readonly model: 'User' }; }; readonly domain: { readonly namespaces: { readonly public: { readonly models: { readonly Account: { readonly fields: { readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: { readonly members: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'User' }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['accountId']; }; }; }; readonly storage: { readonly table: 'accounts'; readonly namespaceId: 'public'; readonly fields: { readonly id: { readonly column: 'id' }; readonly name: { readonly column: 'name' }; }; }; }; readonly Admin: { readonly fields: { readonly role: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: Record; readonly storage: { readonly table: 'users'; readonly namespaceId: 'public'; readonly fields: { readonly role: { readonly column: 'role' } }; }; readonly base: { readonly namespace: 'public' & NamespaceId; readonly model: 'User' }; }; readonly Bug: { readonly fields: { readonly assigneeId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly severity: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: { readonly assignee: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Person'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['assigneeId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'tasks'; readonly namespaceId: 'public'; readonly fields: { readonly assigneeId: { readonly column: 'bug_assignee_person_id' }; readonly severity: { readonly column: 'severity' }; }; }; readonly base: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; }; readonly Epic: { readonly fields: { readonly scope: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: Record; readonly storage: { readonly table: 'epics'; readonly namespaceId: 'public'; readonly fields: { readonly scope: { readonly column: 'scope' } }; }; readonly base: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; }; readonly Feature: { readonly fields: { readonly assigneeId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly priority: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; }; readonly relations: { readonly assignee: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Person'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['assigneeId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'features'; readonly namespaceId: 'public'; readonly fields: { readonly assigneeId: { readonly column: 'feature_assignee_person_id' }; readonly priority: { readonly column: 'priority' }; }; }; readonly base: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; }; readonly Label: { readonly fields: { readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: { readonly tasks: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; readonly cardinality: 'N:M'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['label_id']; }; readonly through: { readonly table: 'task_labels'; readonly namespaceId: 'public'; readonly parentColumns: readonly ['label_id']; readonly childColumns: readonly ['task_id']; readonly targetColumns: readonly ['id']; }; }; }; readonly storage: { readonly table: 'labels'; readonly namespaceId: 'public'; readonly fields: { readonly id: { readonly column: 'id' }; readonly name: { readonly column: 'name' }; }; }; }; readonly Person: { readonly fields: { readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: { readonly pinnedTask: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; readonly cardinality: '1:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['pinnedById']; }; }; readonly tasks: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['reporterId']; }; }; }; readonly storage: { readonly table: 'people'; readonly namespaceId: 'public'; readonly fields: { readonly id: { readonly column: 'id' }; readonly name: { readonly column: 'name' }; }; }; }; readonly Project: { readonly fields: { readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: { readonly tasks: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['projectId']; }; }; }; readonly storage: { readonly table: 'projects_tbl'; readonly namespaceId: 'public'; readonly fields: { readonly id: { readonly column: 'id' }; readonly name: { readonly column: 'name' }; }; }; }; readonly Regular: { readonly fields: { readonly plan: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: Record; readonly storage: { readonly table: 'users'; readonly namespaceId: 'public'; readonly fields: { readonly plan: { readonly column: 'plan' } }; }; readonly base: { readonly namespace: 'public' & NamespaceId; readonly model: 'User' }; }; readonly Task: { readonly fields: { readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly pinnedById: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly projectId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly reporterId: { readonly nullable: true; 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 type: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: { readonly comments: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'TaskComment'; }; readonly cardinality: '1:N'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['taskId']; }; }; readonly labels: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Label'; }; readonly cardinality: 'N:M'; readonly on: { readonly localFields: readonly ['id']; readonly targetFields: readonly ['task_id']; }; readonly through: { readonly table: 'task_labels'; readonly namespaceId: 'public'; readonly parentColumns: readonly ['task_id']; readonly childColumns: readonly ['label_id']; readonly targetColumns: readonly ['id']; }; }; readonly pinnedBy: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Person'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['pinnedById']; readonly targetFields: readonly ['id']; }; }; readonly project: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Project'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['projectId']; readonly targetFields: readonly ['id']; }; }; readonly reporter: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Person'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['reporterId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'tasks'; readonly namespaceId: 'public'; readonly fields: { readonly id: { readonly column: 'id' }; readonly pinnedById: { readonly column: 'pinned_by_id' }; readonly projectId: { readonly column: 'project_id' }; readonly reporterId: { readonly column: 'reporter_id' }; readonly title: { readonly column: 'title' }; readonly type: { readonly column: 'type' }; }; }; readonly discriminator: { readonly field: 'type' }; readonly variants: { readonly bug: { readonly namespace: 'public' & NamespaceId; readonly model: 'Bug' }; readonly epic: { readonly namespace: 'public' & NamespaceId; readonly model: 'Epic' }; readonly feature: { readonly namespace: 'public' & NamespaceId; readonly model: 'Feature'; }; }; }; readonly TaskComment: { readonly fields: { readonly body: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly taskId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; }; readonly relations: { readonly task: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['taskId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'task_comments'; readonly namespaceId: 'public'; readonly fields: { readonly body: { readonly column: 'body' }; readonly id: { readonly column: 'id' }; readonly taskId: { readonly column: 'task_id' }; }; }; }; readonly TaskLabel: { readonly fields: { readonly labelId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly taskId: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; }; readonly relations: { readonly label: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Label'; }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['labelId']; readonly targetFields: readonly ['id']; }; }; readonly task: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; readonly cardinality: 'N:1'; readonly nullable: false; readonly on: { readonly localFields: readonly ['taskId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'task_labels'; readonly namespaceId: 'public'; readonly fields: { readonly labelId: { readonly column: 'label_id' }; readonly taskId: { readonly column: 'task_id' }; }; }; }; readonly Ticket: { readonly fields: { readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly ownerId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly subject: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: { readonly owner: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'User' }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['ownerId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'tickets'; readonly namespaceId: 'public'; readonly fields: { readonly id: { readonly column: 'id' }; readonly ownerId: { readonly column: 'owner_id' }; readonly subject: { readonly column: 'subject' }; }; }; }; readonly User: { readonly fields: { readonly accountId: { readonly nullable: true; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly email: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; readonly id: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; }; readonly kind: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; readonly name: { readonly nullable: false; readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; }; }; readonly relations: { readonly account: { readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Account'; }; readonly cardinality: 'N:1'; readonly nullable: true; readonly on: { readonly localFields: readonly ['accountId']; readonly targetFields: readonly ['id']; }; }; }; readonly storage: { readonly table: 'users'; readonly namespaceId: 'public'; readonly fields: { readonly accountId: { readonly column: 'account_id' }; readonly email: { readonly column: 'email' }; readonly id: { readonly column: 'id' }; readonly kind: { readonly column: 'kind' }; readonly name: { readonly column: 'name' }; }; }; readonly discriminator: { readonly field: 'kind' }; readonly variants: { readonly admin: { readonly namespace: 'public' & NamespaceId; readonly model: 'Admin'; }; readonly regular: { readonly namespace: 'public' & NamespaceId; readonly model: 'Regular'; }; }; }; }; }; }; }; readonly capabilities: { readonly postgres: { readonly distinctOn: true; readonly forKeyShare: true; readonly forNoKeyUpdate: 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 forShare: true; readonly forUpdate: true; readonly insertOnConflictSkip: true; readonly insertOnConflictTarget: true; readonly insertOnConflictWithoutTarget: true; readonly jsonAgg: true; readonly jsonAggWithoutTruncation: true; readonly lateral: true; readonly lockNowait: true; readonly lockOf: true; readonly lockSkipLocked: true; readonly outerReferencesInDerivedTables: true; readonly returning: true; readonly scalarList: true; }; }; readonly extensions: {}; readonly meta: {}; readonly profileHash: ProfileHash; }; export type Contract = ContractWithTypeMaps; export type Namespaces = Contract['storage']['namespaces'];