| 1 | // ⚠️ GENERATED FILE - DO NOT EDIT |
| 2 | // This file is automatically generated by 'prisma contract emit'. |
| 3 | // To regenerate, run: prisma contract emit |
| 4 | import type { QueryOperationTypes as PgAdapterQueryOps } from '@prisma/orm-postgres/adapter/operation-types'; |
| 5 | import type { |
| 6 | Bit, |
| 7 | Char, |
| 8 | CodecTypes as PgTypes, |
| 9 | Interval, |
| 10 | JsonValue, |
| 11 | Numeric, |
| 12 | Time, |
| 13 | TimeString, |
| 14 | Timestamp, |
| 15 | TimestampString, |
| 16 | Timestamptz, |
| 17 | TimestamptzString, |
| 18 | Timetz, |
| 19 | VarBit, |
| 20 | Varchar, |
| 21 | } from '@prisma/orm-postgres/target/codec-types'; |
| 22 | |
| 23 | import type { |
| 24 | ContractWithTypeMaps, |
| 25 | RelationKeys, |
| 26 | TypeMaps as TypeMapsType, |
| 27 | } from '@prisma/orm-postgres/family-contract/types'; |
| 28 | import type { |
| 29 | Contract as ContractType, |
| 30 | ExecutionHashBase, |
| 31 | NamespaceId, |
| 32 | ProfileHashBase, |
| 33 | StorageHashBase, |
| 34 | } from '@prisma/orm-postgres/contract/types'; |
| 35 | |
| 36 | export type StorageHash = |
| 37 | StorageHashBase<'66e56baf5738e4a1532031ff94449ba28606415894bcee88665631247dc3da89'>; |
| 38 | export type ExecutionHash = ExecutionHashBase<string>; |
| 39 | export type ProfileHash = |
| 40 | ProfileHashBase<'3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2'>; |
| 41 | |
| 42 | export type CodecTypes = PgTypes; |
| 43 | export type LaneCodecTypes = CodecTypes; |
| 44 | export type QueryOperationTypes = PgAdapterQueryOps<CodecTypes>; |
| 45 | export type AggregateTypes = { |
| 46 | readonly avg: { |
| 47 | readonly byCodec: { |
| 48 | readonly 'pg/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 49 | readonly 'pg/float4@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 50 | readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 51 | readonly 'pg/int@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 52 | readonly 'pg/int2@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 53 | readonly 'pg/int4@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 54 | readonly 'pg/int8@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 55 | readonly 'pg/int8number@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 56 | readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; |
| 57 | readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 58 | readonly 'pg/time-string@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; |
| 59 | readonly 'pg/time-temporal@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; |
| 60 | readonly 'pg/unboundedint@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 61 | readonly 'sql/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 62 | readonly 'sql/int@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 63 | }; |
| 64 | }; |
| 65 | readonly avgDecimal: { |
| 66 | readonly byCodec: { |
| 67 | readonly 'pg/int@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 68 | readonly 'pg/int2@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 69 | readonly 'pg/int4@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 70 | readonly 'pg/int8@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 71 | readonly 'pg/int8number@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 72 | readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 73 | readonly 'pg/unboundedint@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 74 | readonly 'sql/int@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 75 | }; |
| 76 | }; |
| 77 | readonly count: { |
| 78 | readonly byCodec: {}; |
| 79 | readonly withoutInput: { readonly output: 'pg/int8number@1'; readonly nullable: false }; |
| 80 | readonly anyInput: { readonly output: 'pg/int8number@1'; readonly nullable: false }; |
| 81 | }; |
| 82 | readonly countBigInt: { |
| 83 | readonly byCodec: {}; |
| 84 | readonly withoutInput: { readonly output: 'pg/int8@1'; readonly nullable: false }; |
| 85 | readonly anyInput: { readonly output: 'pg/int8@1'; readonly nullable: false }; |
| 86 | }; |
| 87 | readonly max: { |
| 88 | readonly byCodec: { |
| 89 | readonly 'pg/char@1': { readonly output: 'pg/char@1'; readonly nullable: true }; |
| 90 | readonly 'pg/date-string@1': { readonly output: 'pg/date-string@1'; readonly nullable: true }; |
| 91 | readonly 'pg/date-temporal@1': { |
| 92 | readonly output: 'pg/date-temporal@1'; |
| 93 | readonly nullable: true; |
| 94 | }; |
| 95 | readonly 'pg/enum@1': { readonly output: 'pg/enum@1'; readonly nullable: true }; |
| 96 | readonly 'pg/float@1': { readonly output: 'pg/float@1'; readonly nullable: true }; |
| 97 | readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true }; |
| 98 | readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 99 | readonly 'pg/inet@1': { readonly output: 'pg/inet@1'; readonly nullable: true }; |
| 100 | readonly 'pg/int@1': { readonly output: 'pg/int@1'; readonly nullable: true }; |
| 101 | readonly 'pg/int2@1': { readonly output: 'pg/int2@1'; readonly nullable: true }; |
| 102 | readonly 'pg/int4@1': { readonly output: 'pg/int4@1'; readonly nullable: true }; |
| 103 | readonly 'pg/int8@1': { readonly output: 'pg/int8@1'; readonly nullable: true }; |
| 104 | readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; |
| 105 | readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; |
| 106 | readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 107 | readonly 'pg/text-array@1': { readonly output: 'pg/text-array@1'; readonly nullable: true }; |
| 108 | readonly 'pg/text@1': { readonly output: 'pg/text@1'; readonly nullable: true }; |
| 109 | readonly 'pg/time-string@1': { readonly output: 'pg/time-string@1'; readonly nullable: true }; |
| 110 | readonly 'pg/time-temporal@1': { |
| 111 | readonly output: 'pg/time-temporal@1'; |
| 112 | readonly nullable: true; |
| 113 | }; |
| 114 | readonly 'pg/timestamp-string@1': { |
| 115 | readonly output: 'pg/timestamp-string@1'; |
| 116 | readonly nullable: true; |
| 117 | }; |
| 118 | readonly 'pg/timestamp-temporal@1': { |
| 119 | readonly output: 'pg/timestamp-temporal@1'; |
| 120 | readonly nullable: true; |
| 121 | }; |
| 122 | readonly 'pg/timestamptz-string@1': { |
| 123 | readonly output: 'pg/timestamptz-string@1'; |
| 124 | readonly nullable: true; |
| 125 | }; |
| 126 | readonly 'pg/timestamptz-temporal@1': { |
| 127 | readonly output: 'pg/timestamptz-temporal@1'; |
| 128 | readonly nullable: true; |
| 129 | }; |
| 130 | readonly 'pg/timetz@1': { readonly output: 'pg/timetz@1'; readonly nullable: true }; |
| 131 | readonly 'pg/unboundedint@1': { |
| 132 | readonly output: 'pg/unboundedint@1'; |
| 133 | readonly nullable: true; |
| 134 | }; |
| 135 | readonly 'pg/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true }; |
| 136 | readonly 'sql/char@1': { readonly output: 'sql/char@1'; readonly nullable: true }; |
| 137 | readonly 'sql/float@1': { readonly output: 'sql/float@1'; readonly nullable: true }; |
| 138 | readonly 'sql/int@1': { readonly output: 'sql/int@1'; readonly nullable: true }; |
| 139 | readonly 'sql/text@1': { readonly output: 'sql/text@1'; readonly nullable: true }; |
| 140 | readonly 'sql/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true }; |
| 141 | }; |
| 142 | }; |
| 143 | readonly min: { |
| 144 | readonly byCodec: { |
| 145 | readonly 'pg/char@1': { readonly output: 'pg/char@1'; readonly nullable: true }; |
| 146 | readonly 'pg/date-string@1': { readonly output: 'pg/date-string@1'; readonly nullable: true }; |
| 147 | readonly 'pg/date-temporal@1': { |
| 148 | readonly output: 'pg/date-temporal@1'; |
| 149 | readonly nullable: true; |
| 150 | }; |
| 151 | readonly 'pg/enum@1': { readonly output: 'pg/enum@1'; readonly nullable: true }; |
| 152 | readonly 'pg/float@1': { readonly output: 'pg/float@1'; readonly nullable: true }; |
| 153 | readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true }; |
| 154 | readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 155 | readonly 'pg/inet@1': { readonly output: 'pg/inet@1'; readonly nullable: true }; |
| 156 | readonly 'pg/int@1': { readonly output: 'pg/int@1'; readonly nullable: true }; |
| 157 | readonly 'pg/int2@1': { readonly output: 'pg/int2@1'; readonly nullable: true }; |
| 158 | readonly 'pg/int4@1': { readonly output: 'pg/int4@1'; readonly nullable: true }; |
| 159 | readonly 'pg/int8@1': { readonly output: 'pg/int8@1'; readonly nullable: true }; |
| 160 | readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; |
| 161 | readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; |
| 162 | readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 163 | readonly 'pg/text-array@1': { readonly output: 'pg/text-array@1'; readonly nullable: true }; |
| 164 | readonly 'pg/text@1': { readonly output: 'pg/text@1'; readonly nullable: true }; |
| 165 | readonly 'pg/time-string@1': { readonly output: 'pg/time-string@1'; readonly nullable: true }; |
| 166 | readonly 'pg/time-temporal@1': { |
| 167 | readonly output: 'pg/time-temporal@1'; |
| 168 | readonly nullable: true; |
| 169 | }; |
| 170 | readonly 'pg/timestamp-string@1': { |
| 171 | readonly output: 'pg/timestamp-string@1'; |
| 172 | readonly nullable: true; |
| 173 | }; |
| 174 | readonly 'pg/timestamp-temporal@1': { |
| 175 | readonly output: 'pg/timestamp-temporal@1'; |
| 176 | readonly nullable: true; |
| 177 | }; |
| 178 | readonly 'pg/timestamptz-string@1': { |
| 179 | readonly output: 'pg/timestamptz-string@1'; |
| 180 | readonly nullable: true; |
| 181 | }; |
| 182 | readonly 'pg/timestamptz-temporal@1': { |
| 183 | readonly output: 'pg/timestamptz-temporal@1'; |
| 184 | readonly nullable: true; |
| 185 | }; |
| 186 | readonly 'pg/timetz@1': { readonly output: 'pg/timetz@1'; readonly nullable: true }; |
| 187 | readonly 'pg/unboundedint@1': { |
| 188 | readonly output: 'pg/unboundedint@1'; |
| 189 | readonly nullable: true; |
| 190 | }; |
| 191 | readonly 'pg/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true }; |
| 192 | readonly 'sql/char@1': { readonly output: 'sql/char@1'; readonly nullable: true }; |
| 193 | readonly 'sql/float@1': { readonly output: 'sql/float@1'; readonly nullable: true }; |
| 194 | readonly 'sql/int@1': { readonly output: 'sql/int@1'; readonly nullable: true }; |
| 195 | readonly 'sql/text@1': { readonly output: 'sql/text@1'; readonly nullable: true }; |
| 196 | readonly 'sql/varchar@1': { readonly output: 'pg/text@1'; readonly nullable: true }; |
| 197 | }; |
| 198 | }; |
| 199 | readonly sum: { |
| 200 | readonly byCodec: { |
| 201 | readonly 'pg/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 202 | readonly 'pg/float4@1': { readonly output: 'pg/float4@1'; readonly nullable: true }; |
| 203 | readonly 'pg/float8@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 204 | readonly 'pg/int@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; |
| 205 | readonly 'pg/int2@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; |
| 206 | readonly 'pg/int4@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; |
| 207 | readonly 'pg/int8@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; |
| 208 | readonly 'pg/int8number@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; |
| 209 | readonly 'pg/interval@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; |
| 210 | readonly 'pg/numeric@1': { readonly output: 'pg/numeric@1'; readonly nullable: true }; |
| 211 | readonly 'pg/time-string@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; |
| 212 | readonly 'pg/time-temporal@1': { readonly output: 'pg/interval@1'; readonly nullable: true }; |
| 213 | readonly 'pg/unboundedint@1': { |
| 214 | readonly output: 'pg/unboundedint@1'; |
| 215 | readonly nullable: true; |
| 216 | }; |
| 217 | readonly 'sql/float@1': { readonly output: 'pg/float8@1'; readonly nullable: true }; |
| 218 | readonly 'sql/int@1': { readonly output: 'pg/int8number@1'; readonly nullable: true }; |
| 219 | }; |
| 220 | }; |
| 221 | readonly sumBigInt: { |
| 222 | readonly byCodec: { |
| 223 | readonly 'pg/int@1': { readonly output: 'pg/int8@1'; readonly nullable: true }; |
| 224 | readonly 'pg/int2@1': { readonly output: 'pg/int8@1'; readonly nullable: true }; |
| 225 | readonly 'pg/int4@1': { readonly output: 'pg/int8@1'; readonly nullable: true }; |
| 226 | readonly 'pg/int8@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true }; |
| 227 | readonly 'pg/int8number@1': { readonly output: 'pg/unboundedint@1'; readonly nullable: true }; |
| 228 | readonly 'pg/unboundedint@1': { |
| 229 | readonly output: 'pg/unboundedint@1'; |
| 230 | readonly nullable: true; |
| 231 | }; |
| 232 | readonly 'sql/int@1': { readonly output: 'pg/int8@1'; readonly nullable: true }; |
| 233 | }; |
| 234 | }; |
| 235 | }; |
| 236 | type DefaultLiteralValue<CodecId extends string, Encoded> = CodecId extends keyof CodecTypes |
| 237 | ? Encoded extends CodecTypes[CodecId]['json'] |
| 238 | ? Encoded |
| 239 | : CodecTypes[CodecId]['json'] |
| 240 | : Encoded; |
| 241 | |
| 242 | export type FieldOutputTypes = { |
| 243 | readonly public: { |
| 244 | readonly Assignee: { |
| 245 | readonly id: CodecTypes['pg/int4@1']['output']; |
| 246 | readonly name: CodecTypes['pg/text@1']['output']; |
| 247 | }; |
| 248 | readonly Bug: { |
| 249 | readonly severity: CodecTypes['pg/text@1']['output']; |
| 250 | readonly assigneeId: CodecTypes['pg/int4@1']['output'] | null; |
| 251 | }; |
| 252 | readonly Feature: { readonly priority: CodecTypes['pg/int4@1']['output'] }; |
| 253 | readonly Task: { |
| 254 | readonly id: CodecTypes['pg/int4@1']['output']; |
| 255 | readonly title: CodecTypes['pg/text@1']['output']; |
| 256 | readonly type: CodecTypes['pg/text@1']['output']; |
| 257 | }; |
| 258 | }; |
| 259 | }; |
| 260 | export type FieldInputTypes = { |
| 261 | readonly public: { |
| 262 | readonly Assignee: { |
| 263 | readonly id: CodecTypes['pg/int4@1']['input']; |
| 264 | readonly name: CodecTypes['pg/text@1']['input']; |
| 265 | }; |
| 266 | readonly Bug: { |
| 267 | readonly severity: CodecTypes['pg/text@1']['input']; |
| 268 | readonly assigneeId: CodecTypes['pg/int4@1']['input'] | null; |
| 269 | }; |
| 270 | readonly Feature: { readonly priority: CodecTypes['pg/int4@1']['input'] }; |
| 271 | readonly Task: { |
| 272 | readonly id: CodecTypes['pg/int4@1']['input']; |
| 273 | readonly title: CodecTypes['pg/text@1']['input']; |
| 274 | readonly type: CodecTypes['pg/text@1']['input']; |
| 275 | }; |
| 276 | }; |
| 277 | }; |
| 278 | export type StorageColumnTypes = { |
| 279 | readonly public: { |
| 280 | readonly assignee: { |
| 281 | readonly id: CodecTypes['pg/int4@1']['output']; |
| 282 | readonly name: CodecTypes['pg/text@1']['output']; |
| 283 | }; |
| 284 | readonly features: { |
| 285 | readonly id: CodecTypes['pg/int4@1']['output']; |
| 286 | readonly priority: CodecTypes['pg/int4@1']['output']; |
| 287 | }; |
| 288 | readonly tasks: { |
| 289 | readonly assigneeId: CodecTypes['pg/int4@1']['output'] | null; |
| 290 | readonly id: CodecTypes['pg/int4@1']['output']; |
| 291 | readonly severity: CodecTypes['pg/text@1']['output'] | null; |
| 292 | readonly title: CodecTypes['pg/text@1']['output']; |
| 293 | readonly type: CodecTypes['pg/text@1']['output']; |
| 294 | }; |
| 295 | }; |
| 296 | }; |
| 297 | export type StorageColumnInputTypes = { |
| 298 | readonly public: { |
| 299 | readonly assignee: { |
| 300 | readonly id: CodecTypes['pg/int4@1']['input']; |
| 301 | readonly name: CodecTypes['pg/text@1']['input']; |
| 302 | }; |
| 303 | readonly features: { |
| 304 | readonly id: CodecTypes['pg/int4@1']['input']; |
| 305 | readonly priority: CodecTypes['pg/int4@1']['input']; |
| 306 | }; |
| 307 | readonly tasks: { |
| 308 | readonly assigneeId: CodecTypes['pg/int4@1']['input'] | null; |
| 309 | readonly id: CodecTypes['pg/int4@1']['input']; |
| 310 | readonly severity: CodecTypes['pg/text@1']['input'] | null; |
| 311 | readonly title: CodecTypes['pg/text@1']['input']; |
| 312 | readonly type: CodecTypes['pg/text@1']['input']; |
| 313 | }; |
| 314 | }; |
| 315 | }; |
| 316 | |
| 317 | export namespace Models { |
| 318 | export type public_Task = { |
| 319 | id: CodecTypes['pg/int4@1']['output']; |
| 320 | title: CodecTypes['pg/text@1']['output']; |
| 321 | type: 'bug' | 'feature'; |
| 322 | readonly [RelationKeys]?: never; |
| 323 | }; |
| 324 | export type public_Bug = { |
| 325 | id: CodecTypes['pg/int4@1']['output']; |
| 326 | title: CodecTypes['pg/text@1']['output']; |
| 327 | type: 'bug'; |
| 328 | severity: CodecTypes['pg/text@1']['output']; |
| 329 | assigneeId: CodecTypes['pg/int4@1']['output'] | null; |
| 330 | assignee: public_Assignee | null; |
| 331 | readonly [RelationKeys]?: 'assignee'; |
| 332 | }; |
| 333 | export type public_Feature = { |
| 334 | id: CodecTypes['pg/int4@1']['output']; |
| 335 | title: CodecTypes['pg/text@1']['output']; |
| 336 | type: 'feature'; |
| 337 | priority: CodecTypes['pg/int4@1']['output']; |
| 338 | readonly [RelationKeys]?: never; |
| 339 | }; |
| 340 | export type public_Assignee = { |
| 341 | id: CodecTypes['pg/int4@1']['output']; |
| 342 | name: CodecTypes['pg/text@1']['output']; |
| 343 | bugs: public_Bug[]; |
| 344 | readonly [RelationKeys]?: 'bugs'; |
| 345 | }; |
| 346 | export type public_AnyTask = public_Bug | public_Feature; |
| 347 | } |
| 348 | |
| 349 | export declare const models: { |
| 350 | public: { |
| 351 | Task: Models.public_Task; |
| 352 | Bug: Models.public_Bug; |
| 353 | Feature: Models.public_Feature; |
| 354 | Assignee: Models.public_Assignee; |
| 355 | AnyTask: Models.public_AnyTask; |
| 356 | }; |
| 357 | }; |
| 358 | |
| 359 | export type TypeMaps = TypeMapsType< |
| 360 | CodecTypes, |
| 361 | QueryOperationTypes, |
| 362 | FieldOutputTypes, |
| 363 | FieldInputTypes, |
| 364 | StorageColumnTypes, |
| 365 | StorageColumnInputTypes, |
| 366 | AggregateTypes |
| 367 | >; |
| 368 | |
| 369 | type ContractBase = Omit< |
| 370 | ContractType<{ |
| 371 | readonly namespaces: { |
| 372 | readonly public: { |
| 373 | readonly id: 'public'; |
| 374 | readonly kind: 'postgres-schema'; |
| 375 | readonly entries: { |
| 376 | readonly table: { |
| 377 | readonly assignee: { |
| 378 | columns: { |
| 379 | readonly id: { |
| 380 | readonly nativeType: 'int4'; |
| 381 | readonly codecId: 'pg/int4@1'; |
| 382 | readonly nullable: false; |
| 383 | readonly default: { |
| 384 | readonly kind: 'function'; |
| 385 | readonly expression: 'autoincrement()'; |
| 386 | }; |
| 387 | }; |
| 388 | readonly name: { |
| 389 | readonly nativeType: 'text'; |
| 390 | readonly codecId: 'pg/text@1'; |
| 391 | readonly nullable: false; |
| 392 | }; |
| 393 | }; |
| 394 | primaryKey: { readonly columns: readonly ['id'] }; |
| 395 | uniques: readonly []; |
| 396 | indexes: readonly []; |
| 397 | foreignKeys: readonly []; |
| 398 | }; |
| 399 | readonly features: { |
| 400 | columns: { |
| 401 | readonly id: { |
| 402 | readonly nativeType: 'int4'; |
| 403 | readonly codecId: 'pg/int4@1'; |
| 404 | readonly nullable: false; |
| 405 | }; |
| 406 | readonly priority: { |
| 407 | readonly nativeType: 'int4'; |
| 408 | readonly codecId: 'pg/int4@1'; |
| 409 | readonly nullable: false; |
| 410 | }; |
| 411 | }; |
| 412 | primaryKey: { readonly columns: readonly ['id'] }; |
| 413 | uniques: readonly []; |
| 414 | indexes: readonly []; |
| 415 | foreignKeys: readonly [ |
| 416 | { |
| 417 | readonly source: { |
| 418 | readonly namespaceId: 'public' & NamespaceId; |
| 419 | readonly tableName: 'features'; |
| 420 | readonly columns: readonly ['id']; |
| 421 | }; |
| 422 | readonly target: { |
| 423 | readonly namespaceId: 'public' & NamespaceId; |
| 424 | readonly tableName: 'tasks'; |
| 425 | readonly columns: readonly ['id']; |
| 426 | }; |
| 427 | }, |
| 428 | ]; |
| 429 | }; |
| 430 | readonly tasks: { |
| 431 | columns: { |
| 432 | readonly id: { |
| 433 | readonly nativeType: 'int4'; |
| 434 | readonly codecId: 'pg/int4@1'; |
| 435 | readonly nullable: false; |
| 436 | readonly default: { |
| 437 | readonly kind: 'function'; |
| 438 | readonly expression: 'autoincrement()'; |
| 439 | }; |
| 440 | }; |
| 441 | readonly title: { |
| 442 | readonly nativeType: 'text'; |
| 443 | readonly codecId: 'pg/text@1'; |
| 444 | readonly nullable: false; |
| 445 | }; |
| 446 | readonly type: { |
| 447 | readonly nativeType: 'text'; |
| 448 | readonly codecId: 'pg/text@1'; |
| 449 | readonly nullable: false; |
| 450 | }; |
| 451 | readonly severity: { |
| 452 | readonly nativeType: 'text'; |
| 453 | readonly codecId: 'pg/text@1'; |
| 454 | readonly nullable: true; |
| 455 | }; |
| 456 | readonly assigneeId: { |
| 457 | readonly nativeType: 'int4'; |
| 458 | readonly codecId: 'pg/int4@1'; |
| 459 | readonly nullable: true; |
| 460 | }; |
| 461 | }; |
| 462 | primaryKey: { readonly columns: readonly ['id'] }; |
| 463 | uniques: readonly []; |
| 464 | indexes: readonly []; |
| 465 | foreignKeys: readonly []; |
| 466 | }; |
| 467 | }; |
| 468 | }; |
| 469 | }; |
| 470 | }; |
| 471 | readonly storageHash: StorageHash; |
| 472 | }>, |
| 473 | 'roots' | 'domain' |
| 474 | > & { |
| 475 | readonly target: 'postgres'; |
| 476 | readonly targetFamily: 'sql'; |
| 477 | readonly roots: { |
| 478 | readonly tasks: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; |
| 479 | readonly assignee: { readonly namespace: 'public' & NamespaceId; readonly model: 'Assignee' }; |
| 480 | }; |
| 481 | readonly domain: { |
| 482 | readonly namespaces: { |
| 483 | readonly public: { |
| 484 | readonly models: { |
| 485 | readonly Assignee: { |
| 486 | readonly fields: { |
| 487 | readonly id: { |
| 488 | readonly nullable: false; |
| 489 | readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; |
| 490 | }; |
| 491 | readonly name: { |
| 492 | readonly nullable: false; |
| 493 | readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; |
| 494 | }; |
| 495 | }; |
| 496 | readonly relations: { |
| 497 | readonly bugs: { |
| 498 | readonly to: { readonly namespace: 'public' & NamespaceId; readonly model: 'Bug' }; |
| 499 | readonly cardinality: '1:N'; |
| 500 | readonly on: { |
| 501 | readonly localFields: readonly ['id']; |
| 502 | readonly targetFields: readonly ['assigneeId']; |
| 503 | }; |
| 504 | }; |
| 505 | }; |
| 506 | readonly storage: { |
| 507 | readonly table: 'assignee'; |
| 508 | readonly namespaceId: 'public'; |
| 509 | readonly fields: { |
| 510 | readonly id: { readonly column: 'id' }; |
| 511 | readonly name: { readonly column: 'name' }; |
| 512 | }; |
| 513 | }; |
| 514 | }; |
| 515 | readonly Bug: { |
| 516 | readonly fields: { |
| 517 | readonly severity: { |
| 518 | readonly nullable: false; |
| 519 | readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; |
| 520 | }; |
| 521 | readonly assigneeId: { |
| 522 | readonly nullable: true; |
| 523 | readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; |
| 524 | }; |
| 525 | }; |
| 526 | readonly relations: { |
| 527 | readonly assignee: { |
| 528 | readonly to: { |
| 529 | readonly namespace: 'public' & NamespaceId; |
| 530 | readonly model: 'Assignee'; |
| 531 | }; |
| 532 | readonly cardinality: 'N:1'; |
| 533 | readonly nullable: true; |
| 534 | readonly on: { |
| 535 | readonly localFields: readonly ['assigneeId']; |
| 536 | readonly targetFields: readonly ['id']; |
| 537 | }; |
| 538 | }; |
| 539 | }; |
| 540 | readonly storage: { |
| 541 | readonly table: 'tasks'; |
| 542 | readonly namespaceId: 'public'; |
| 543 | readonly fields: { |
| 544 | readonly severity: { readonly column: 'severity' }; |
| 545 | readonly assigneeId: { readonly column: 'assigneeId' }; |
| 546 | }; |
| 547 | }; |
| 548 | readonly base: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; |
| 549 | }; |
| 550 | readonly Feature: { |
| 551 | readonly fields: { |
| 552 | readonly priority: { |
| 553 | readonly nullable: false; |
| 554 | readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; |
| 555 | }; |
| 556 | }; |
| 557 | readonly relations: Record<string, never>; |
| 558 | readonly storage: { |
| 559 | readonly table: 'features'; |
| 560 | readonly namespaceId: 'public'; |
| 561 | readonly fields: { readonly priority: { readonly column: 'priority' } }; |
| 562 | }; |
| 563 | readonly base: { readonly namespace: 'public' & NamespaceId; readonly model: 'Task' }; |
| 564 | }; |
| 565 | readonly Task: { |
| 566 | readonly fields: { |
| 567 | readonly id: { |
| 568 | readonly nullable: false; |
| 569 | readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/int4@1' }; |
| 570 | }; |
| 571 | readonly title: { |
| 572 | readonly nullable: false; |
| 573 | readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; |
| 574 | }; |
| 575 | readonly type: { |
| 576 | readonly nullable: false; |
| 577 | readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' }; |
| 578 | }; |
| 579 | }; |
| 580 | readonly relations: Record<string, never>; |
| 581 | readonly storage: { |
| 582 | readonly table: 'tasks'; |
| 583 | readonly namespaceId: 'public'; |
| 584 | readonly fields: { |
| 585 | readonly id: { readonly column: 'id' }; |
| 586 | readonly title: { readonly column: 'title' }; |
| 587 | readonly type: { readonly column: 'type' }; |
| 588 | }; |
| 589 | }; |
| 590 | readonly discriminator: { readonly field: 'type' }; |
| 591 | readonly variants: { |
| 592 | readonly Bug: { readonly value: 'bug' }; |
| 593 | readonly Feature: { readonly value: 'feature' }; |
| 594 | }; |
| 595 | }; |
| 596 | }; |
| 597 | }; |
| 598 | }; |
| 599 | }; |
| 600 | readonly capabilities: { |
| 601 | readonly postgres: { |
| 602 | readonly distinctOn: true; |
| 603 | readonly jsonAgg: true; |
| 604 | readonly lateral: true; |
| 605 | readonly limit: true; |
| 606 | readonly orderBy: true; |
| 607 | readonly returning: true; |
| 608 | }; |
| 609 | readonly sql: { |
| 610 | readonly checkConstraint: true; |
| 611 | readonly defaultInInsert: true; |
| 612 | readonly enums: true; |
| 613 | readonly lateral: true; |
| 614 | readonly returning: true; |
| 615 | readonly scalarList: true; |
| 616 | }; |
| 617 | }; |
| 618 | readonly extensions: {}; |
| 619 | readonly meta: {}; |
| 620 | |
| 621 | readonly profileHash: ProfileHash; |
| 622 | }; |
| 623 | |
| 624 | export type Contract = ContractWithTypeMaps<ContractBase, TypeMaps>; |
| 625 | |
| 626 | export type Namespaces = Contract['storage']['namespaces']; |