| 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<"b09d1a81a21c191e35c6d2e6bbb462154b005582529fa8120638576d8ee3cd1d">; |
| 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": { |
| 49 | readonly output: "pg/float8@1"; |
| 50 | readonly nullable: true; |
| 51 | }; |
| 52 | readonly "pg/float4@1": { |
| 53 | readonly output: "pg/float8@1"; |
| 54 | readonly nullable: true; |
| 55 | }; |
| 56 | readonly "pg/float8@1": { |
| 57 | readonly output: "pg/float8@1"; |
| 58 | readonly nullable: true; |
| 59 | }; |
| 60 | readonly "pg/int@1": { |
| 61 | readonly output: "pg/float8@1"; |
| 62 | readonly nullable: true; |
| 63 | }; |
| 64 | readonly "pg/int2@1": { |
| 65 | readonly output: "pg/float8@1"; |
| 66 | readonly nullable: true; |
| 67 | }; |
| 68 | readonly "pg/int4@1": { |
| 69 | readonly output: "pg/float8@1"; |
| 70 | readonly nullable: true; |
| 71 | }; |
| 72 | readonly "pg/int8@1": { |
| 73 | readonly output: "pg/float8@1"; |
| 74 | readonly nullable: true; |
| 75 | }; |
| 76 | readonly "pg/int8number@1": { |
| 77 | readonly output: "pg/float8@1"; |
| 78 | readonly nullable: true; |
| 79 | }; |
| 80 | readonly "pg/interval@1": { |
| 81 | readonly output: "pg/interval@1"; |
| 82 | readonly nullable: true; |
| 83 | }; |
| 84 | readonly "pg/numeric@1": { |
| 85 | readonly output: "pg/numeric@1"; |
| 86 | readonly nullable: true; |
| 87 | }; |
| 88 | readonly "pg/time-string@1": { |
| 89 | readonly output: "pg/interval@1"; |
| 90 | readonly nullable: true; |
| 91 | }; |
| 92 | readonly "pg/time-temporal@1": { |
| 93 | readonly output: "pg/interval@1"; |
| 94 | readonly nullable: true; |
| 95 | }; |
| 96 | readonly "pg/unboundedint@1": { |
| 97 | readonly output: "pg/float8@1"; |
| 98 | readonly nullable: true; |
| 99 | }; |
| 100 | readonly "sql/float@1": { |
| 101 | readonly output: "pg/float8@1"; |
| 102 | readonly nullable: true; |
| 103 | }; |
| 104 | readonly "sql/int@1": { |
| 105 | readonly output: "pg/float8@1"; |
| 106 | readonly nullable: true; |
| 107 | }; |
| 108 | }; |
| 109 | }; |
| 110 | readonly avgDecimal: { |
| 111 | readonly byCodec: { |
| 112 | readonly "pg/int@1": { |
| 113 | readonly output: "pg/numeric@1"; |
| 114 | readonly nullable: true; |
| 115 | }; |
| 116 | readonly "pg/int2@1": { |
| 117 | readonly output: "pg/numeric@1"; |
| 118 | readonly nullable: true; |
| 119 | }; |
| 120 | readonly "pg/int4@1": { |
| 121 | readonly output: "pg/numeric@1"; |
| 122 | readonly nullable: true; |
| 123 | }; |
| 124 | readonly "pg/int8@1": { |
| 125 | readonly output: "pg/numeric@1"; |
| 126 | readonly nullable: true; |
| 127 | }; |
| 128 | readonly "pg/int8number@1": { |
| 129 | readonly output: "pg/numeric@1"; |
| 130 | readonly nullable: true; |
| 131 | }; |
| 132 | readonly "pg/numeric@1": { |
| 133 | readonly output: "pg/numeric@1"; |
| 134 | readonly nullable: true; |
| 135 | }; |
| 136 | readonly "pg/unboundedint@1": { |
| 137 | readonly output: "pg/numeric@1"; |
| 138 | readonly nullable: true; |
| 139 | }; |
| 140 | readonly "sql/int@1": { |
| 141 | readonly output: "pg/numeric@1"; |
| 142 | readonly nullable: true; |
| 143 | }; |
| 144 | }; |
| 145 | }; |
| 146 | readonly count: { |
| 147 | readonly byCodec: {}; |
| 148 | readonly withoutInput: { |
| 149 | readonly output: "pg/int8number@1"; |
| 150 | readonly nullable: false; |
| 151 | }; |
| 152 | readonly anyInput: { |
| 153 | readonly output: "pg/int8number@1"; |
| 154 | readonly nullable: false; |
| 155 | }; |
| 156 | }; |
| 157 | readonly countBigInt: { |
| 158 | readonly byCodec: {}; |
| 159 | readonly withoutInput: { |
| 160 | readonly output: "pg/int8@1"; |
| 161 | readonly nullable: false; |
| 162 | }; |
| 163 | readonly anyInput: { |
| 164 | readonly output: "pg/int8@1"; |
| 165 | readonly nullable: false; |
| 166 | }; |
| 167 | }; |
| 168 | readonly max: { |
| 169 | readonly byCodec: { |
| 170 | readonly "pg/char@1": { |
| 171 | readonly output: "pg/char@1"; |
| 172 | readonly nullable: true; |
| 173 | }; |
| 174 | readonly "pg/date-string@1": { |
| 175 | readonly output: "pg/date-string@1"; |
| 176 | readonly nullable: true; |
| 177 | }; |
| 178 | readonly "pg/date-temporal@1": { |
| 179 | readonly output: "pg/date-temporal@1"; |
| 180 | readonly nullable: true; |
| 181 | }; |
| 182 | readonly "pg/enum@1": { |
| 183 | readonly output: "pg/enum@1"; |
| 184 | readonly nullable: true; |
| 185 | }; |
| 186 | readonly "pg/float@1": { |
| 187 | readonly output: "pg/float@1"; |
| 188 | readonly nullable: true; |
| 189 | }; |
| 190 | readonly "pg/float4@1": { |
| 191 | readonly output: "pg/float4@1"; |
| 192 | readonly nullable: true; |
| 193 | }; |
| 194 | readonly "pg/float8@1": { |
| 195 | readonly output: "pg/float8@1"; |
| 196 | readonly nullable: true; |
| 197 | }; |
| 198 | readonly "pg/inet@1": { |
| 199 | readonly output: "pg/inet@1"; |
| 200 | readonly nullable: true; |
| 201 | }; |
| 202 | readonly "pg/int@1": { |
| 203 | readonly output: "pg/int@1"; |
| 204 | readonly nullable: true; |
| 205 | }; |
| 206 | readonly "pg/int2@1": { |
| 207 | readonly output: "pg/int2@1"; |
| 208 | readonly nullable: true; |
| 209 | }; |
| 210 | readonly "pg/int4@1": { |
| 211 | readonly output: "pg/int4@1"; |
| 212 | readonly nullable: true; |
| 213 | }; |
| 214 | readonly "pg/int8@1": { |
| 215 | readonly output: "pg/int8@1"; |
| 216 | readonly nullable: true; |
| 217 | }; |
| 218 | readonly "pg/int8number@1": { |
| 219 | readonly output: "pg/int8number@1"; |
| 220 | readonly nullable: true; |
| 221 | }; |
| 222 | readonly "pg/interval@1": { |
| 223 | readonly output: "pg/interval@1"; |
| 224 | readonly nullable: true; |
| 225 | }; |
| 226 | readonly "pg/numeric@1": { |
| 227 | readonly output: "pg/numeric@1"; |
| 228 | readonly nullable: true; |
| 229 | }; |
| 230 | readonly "pg/text-array@1": { |
| 231 | readonly output: "pg/text-array@1"; |
| 232 | readonly nullable: true; |
| 233 | }; |
| 234 | readonly "pg/text@1": { |
| 235 | readonly output: "pg/text@1"; |
| 236 | readonly nullable: true; |
| 237 | }; |
| 238 | readonly "pg/time-string@1": { |
| 239 | readonly output: "pg/time-string@1"; |
| 240 | readonly nullable: true; |
| 241 | }; |
| 242 | readonly "pg/time-temporal@1": { |
| 243 | readonly output: "pg/time-temporal@1"; |
| 244 | readonly nullable: true; |
| 245 | }; |
| 246 | readonly "pg/timestamp-string@1": { |
| 247 | readonly output: "pg/timestamp-string@1"; |
| 248 | readonly nullable: true; |
| 249 | }; |
| 250 | readonly "pg/timestamp-temporal@1": { |
| 251 | readonly output: "pg/timestamp-temporal@1"; |
| 252 | readonly nullable: true; |
| 253 | }; |
| 254 | readonly "pg/timestamptz-string@1": { |
| 255 | readonly output: "pg/timestamptz-string@1"; |
| 256 | readonly nullable: true; |
| 257 | }; |
| 258 | readonly "pg/timestamptz-temporal@1": { |
| 259 | readonly output: "pg/timestamptz-temporal@1"; |
| 260 | readonly nullable: true; |
| 261 | }; |
| 262 | readonly "pg/timetz@1": { |
| 263 | readonly output: "pg/timetz@1"; |
| 264 | readonly nullable: true; |
| 265 | }; |
| 266 | readonly "pg/unboundedint@1": { |
| 267 | readonly output: "pg/unboundedint@1"; |
| 268 | readonly nullable: true; |
| 269 | }; |
| 270 | readonly "pg/varchar@1": { |
| 271 | readonly output: "pg/text@1"; |
| 272 | readonly nullable: true; |
| 273 | }; |
| 274 | readonly "sql/char@1": { |
| 275 | readonly output: "sql/char@1"; |
| 276 | readonly nullable: true; |
| 277 | }; |
| 278 | readonly "sql/float@1": { |
| 279 | readonly output: "sql/float@1"; |
| 280 | readonly nullable: true; |
| 281 | }; |
| 282 | readonly "sql/int@1": { |
| 283 | readonly output: "sql/int@1"; |
| 284 | readonly nullable: true; |
| 285 | }; |
| 286 | readonly "sql/text@1": { |
| 287 | readonly output: "sql/text@1"; |
| 288 | readonly nullable: true; |
| 289 | }; |
| 290 | readonly "sql/varchar@1": { |
| 291 | readonly output: "pg/text@1"; |
| 292 | readonly nullable: true; |
| 293 | }; |
| 294 | }; |
| 295 | }; |
| 296 | readonly min: { |
| 297 | readonly byCodec: { |
| 298 | readonly "pg/char@1": { |
| 299 | readonly output: "pg/char@1"; |
| 300 | readonly nullable: true; |
| 301 | }; |
| 302 | readonly "pg/date-string@1": { |
| 303 | readonly output: "pg/date-string@1"; |
| 304 | readonly nullable: true; |
| 305 | }; |
| 306 | readonly "pg/date-temporal@1": { |
| 307 | readonly output: "pg/date-temporal@1"; |
| 308 | readonly nullable: true; |
| 309 | }; |
| 310 | readonly "pg/enum@1": { |
| 311 | readonly output: "pg/enum@1"; |
| 312 | readonly nullable: true; |
| 313 | }; |
| 314 | readonly "pg/float@1": { |
| 315 | readonly output: "pg/float@1"; |
| 316 | readonly nullable: true; |
| 317 | }; |
| 318 | readonly "pg/float4@1": { |
| 319 | readonly output: "pg/float4@1"; |
| 320 | readonly nullable: true; |
| 321 | }; |
| 322 | readonly "pg/float8@1": { |
| 323 | readonly output: "pg/float8@1"; |
| 324 | readonly nullable: true; |
| 325 | }; |
| 326 | readonly "pg/inet@1": { |
| 327 | readonly output: "pg/inet@1"; |
| 328 | readonly nullable: true; |
| 329 | }; |
| 330 | readonly "pg/int@1": { |
| 331 | readonly output: "pg/int@1"; |
| 332 | readonly nullable: true; |
| 333 | }; |
| 334 | readonly "pg/int2@1": { |
| 335 | readonly output: "pg/int2@1"; |
| 336 | readonly nullable: true; |
| 337 | }; |
| 338 | readonly "pg/int4@1": { |
| 339 | readonly output: "pg/int4@1"; |
| 340 | readonly nullable: true; |
| 341 | }; |
| 342 | readonly "pg/int8@1": { |
| 343 | readonly output: "pg/int8@1"; |
| 344 | readonly nullable: true; |
| 345 | }; |
| 346 | readonly "pg/int8number@1": { |
| 347 | readonly output: "pg/int8number@1"; |
| 348 | readonly nullable: true; |
| 349 | }; |
| 350 | readonly "pg/interval@1": { |
| 351 | readonly output: "pg/interval@1"; |
| 352 | readonly nullable: true; |
| 353 | }; |
| 354 | readonly "pg/numeric@1": { |
| 355 | readonly output: "pg/numeric@1"; |
| 356 | readonly nullable: true; |
| 357 | }; |
| 358 | readonly "pg/text-array@1": { |
| 359 | readonly output: "pg/text-array@1"; |
| 360 | readonly nullable: true; |
| 361 | }; |
| 362 | readonly "pg/text@1": { |
| 363 | readonly output: "pg/text@1"; |
| 364 | readonly nullable: true; |
| 365 | }; |
| 366 | readonly "pg/time-string@1": { |
| 367 | readonly output: "pg/time-string@1"; |
| 368 | readonly nullable: true; |
| 369 | }; |
| 370 | readonly "pg/time-temporal@1": { |
| 371 | readonly output: "pg/time-temporal@1"; |
| 372 | readonly nullable: true; |
| 373 | }; |
| 374 | readonly "pg/timestamp-string@1": { |
| 375 | readonly output: "pg/timestamp-string@1"; |
| 376 | readonly nullable: true; |
| 377 | }; |
| 378 | readonly "pg/timestamp-temporal@1": { |
| 379 | readonly output: "pg/timestamp-temporal@1"; |
| 380 | readonly nullable: true; |
| 381 | }; |
| 382 | readonly "pg/timestamptz-string@1": { |
| 383 | readonly output: "pg/timestamptz-string@1"; |
| 384 | readonly nullable: true; |
| 385 | }; |
| 386 | readonly "pg/timestamptz-temporal@1": { |
| 387 | readonly output: "pg/timestamptz-temporal@1"; |
| 388 | readonly nullable: true; |
| 389 | }; |
| 390 | readonly "pg/timetz@1": { |
| 391 | readonly output: "pg/timetz@1"; |
| 392 | readonly nullable: true; |
| 393 | }; |
| 394 | readonly "pg/unboundedint@1": { |
| 395 | readonly output: "pg/unboundedint@1"; |
| 396 | readonly nullable: true; |
| 397 | }; |
| 398 | readonly "pg/varchar@1": { |
| 399 | readonly output: "pg/text@1"; |
| 400 | readonly nullable: true; |
| 401 | }; |
| 402 | readonly "sql/char@1": { |
| 403 | readonly output: "sql/char@1"; |
| 404 | readonly nullable: true; |
| 405 | }; |
| 406 | readonly "sql/float@1": { |
| 407 | readonly output: "sql/float@1"; |
| 408 | readonly nullable: true; |
| 409 | }; |
| 410 | readonly "sql/int@1": { |
| 411 | readonly output: "sql/int@1"; |
| 412 | readonly nullable: true; |
| 413 | }; |
| 414 | readonly "sql/text@1": { |
| 415 | readonly output: "sql/text@1"; |
| 416 | readonly nullable: true; |
| 417 | }; |
| 418 | readonly "sql/varchar@1": { |
| 419 | readonly output: "pg/text@1"; |
| 420 | readonly nullable: true; |
| 421 | }; |
| 422 | }; |
| 423 | }; |
| 424 | readonly sum: { |
| 425 | readonly byCodec: { |
| 426 | readonly "pg/float@1": { |
| 427 | readonly output: "pg/float8@1"; |
| 428 | readonly nullable: true; |
| 429 | }; |
| 430 | readonly "pg/float4@1": { |
| 431 | readonly output: "pg/float4@1"; |
| 432 | readonly nullable: true; |
| 433 | }; |
| 434 | readonly "pg/float8@1": { |
| 435 | readonly output: "pg/float8@1"; |
| 436 | readonly nullable: true; |
| 437 | }; |
| 438 | readonly "pg/int@1": { |
| 439 | readonly output: "pg/int8number@1"; |
| 440 | readonly nullable: true; |
| 441 | }; |
| 442 | readonly "pg/int2@1": { |
| 443 | readonly output: "pg/int8number@1"; |
| 444 | readonly nullable: true; |
| 445 | }; |
| 446 | readonly "pg/int4@1": { |
| 447 | readonly output: "pg/int8number@1"; |
| 448 | readonly nullable: true; |
| 449 | }; |
| 450 | readonly "pg/int8@1": { |
| 451 | readonly output: "pg/int8number@1"; |
| 452 | readonly nullable: true; |
| 453 | }; |
| 454 | readonly "pg/int8number@1": { |
| 455 | readonly output: "pg/int8number@1"; |
| 456 | readonly nullable: true; |
| 457 | }; |
| 458 | readonly "pg/interval@1": { |
| 459 | readonly output: "pg/interval@1"; |
| 460 | readonly nullable: true; |
| 461 | }; |
| 462 | readonly "pg/numeric@1": { |
| 463 | readonly output: "pg/numeric@1"; |
| 464 | readonly nullable: true; |
| 465 | }; |
| 466 | readonly "pg/time-string@1": { |
| 467 | readonly output: "pg/interval@1"; |
| 468 | readonly nullable: true; |
| 469 | }; |
| 470 | readonly "pg/time-temporal@1": { |
| 471 | readonly output: "pg/interval@1"; |
| 472 | readonly nullable: true; |
| 473 | }; |
| 474 | readonly "pg/unboundedint@1": { |
| 475 | readonly output: "pg/unboundedint@1"; |
| 476 | readonly nullable: true; |
| 477 | }; |
| 478 | readonly "sql/float@1": { |
| 479 | readonly output: "pg/float8@1"; |
| 480 | readonly nullable: true; |
| 481 | }; |
| 482 | readonly "sql/int@1": { |
| 483 | readonly output: "pg/int8number@1"; |
| 484 | readonly nullable: true; |
| 485 | }; |
| 486 | }; |
| 487 | }; |
| 488 | readonly sumBigInt: { |
| 489 | readonly byCodec: { |
| 490 | readonly "pg/int@1": { |
| 491 | readonly output: "pg/int8@1"; |
| 492 | readonly nullable: true; |
| 493 | }; |
| 494 | readonly "pg/int2@1": { |
| 495 | readonly output: "pg/int8@1"; |
| 496 | readonly nullable: true; |
| 497 | }; |
| 498 | readonly "pg/int4@1": { |
| 499 | readonly output: "pg/int8@1"; |
| 500 | readonly nullable: true; |
| 501 | }; |
| 502 | readonly "pg/int8@1": { |
| 503 | readonly output: "pg/unboundedint@1"; |
| 504 | readonly nullable: true; |
| 505 | }; |
| 506 | readonly "pg/int8number@1": { |
| 507 | readonly output: "pg/unboundedint@1"; |
| 508 | readonly nullable: true; |
| 509 | }; |
| 510 | readonly "pg/unboundedint@1": { |
| 511 | readonly output: "pg/unboundedint@1"; |
| 512 | readonly nullable: true; |
| 513 | }; |
| 514 | readonly "sql/int@1": { |
| 515 | readonly output: "pg/int8@1"; |
| 516 | readonly nullable: true; |
| 517 | }; |
| 518 | }; |
| 519 | }; |
| 520 | }; |
| 521 | type DefaultLiteralValue< |
| 522 | CodecId extends string, |
| 523 | Encoded, |
| 524 | > = CodecId extends keyof CodecTypes |
| 525 | ? Encoded extends CodecTypes[CodecId]["json"] |
| 526 | ? Encoded |
| 527 | : CodecTypes[CodecId]["json"] |
| 528 | : Encoded; |
| 529 | |
| 530 | export type FieldOutputTypes = { |
| 531 | readonly public: { |
| 532 | readonly Post: { |
| 533 | readonly id: CodecTypes["pg/int4@1"]["output"]; |
| 534 | readonly title: CodecTypes["pg/text@1"]["output"]; |
| 535 | readonly authorId: CodecTypes["pg/int4@1"]["output"]; |
| 536 | }; |
| 537 | readonly User: { |
| 538 | readonly id: CodecTypes["pg/int4@1"]["output"]; |
| 539 | readonly email: CodecTypes["pg/text@1"]["output"]; |
| 540 | readonly name: CodecTypes["pg/text@1"]["output"] | null; |
| 541 | }; |
| 542 | }; |
| 543 | }; |
| 544 | export type FieldInputTypes = { |
| 545 | readonly public: { |
| 546 | readonly Post: { |
| 547 | readonly id: CodecTypes["pg/int4@1"]["input"]; |
| 548 | readonly title: CodecTypes["pg/text@1"]["input"]; |
| 549 | readonly authorId: CodecTypes["pg/int4@1"]["input"]; |
| 550 | }; |
| 551 | readonly User: { |
| 552 | readonly id: CodecTypes["pg/int4@1"]["input"]; |
| 553 | readonly email: CodecTypes["pg/text@1"]["input"]; |
| 554 | readonly name: CodecTypes["pg/text@1"]["input"] | null; |
| 555 | }; |
| 556 | }; |
| 557 | }; |
| 558 | export type StorageColumnTypes = { |
| 559 | readonly public: { |
| 560 | readonly post: { |
| 561 | readonly authorId: CodecTypes["pg/int4@1"]["output"]; |
| 562 | readonly id: CodecTypes["pg/int4@1"]["output"]; |
| 563 | readonly title: CodecTypes["pg/text@1"]["output"]; |
| 564 | }; |
| 565 | readonly user: { |
| 566 | readonly email: CodecTypes["pg/text@1"]["output"]; |
| 567 | readonly id: CodecTypes["pg/int4@1"]["output"]; |
| 568 | readonly name: CodecTypes["pg/text@1"]["output"] | null; |
| 569 | }; |
| 570 | }; |
| 571 | }; |
| 572 | export type StorageColumnInputTypes = { |
| 573 | readonly public: { |
| 574 | readonly post: { |
| 575 | readonly authorId: CodecTypes["pg/int4@1"]["input"]; |
| 576 | readonly id: CodecTypes["pg/int4@1"]["input"]; |
| 577 | readonly title: CodecTypes["pg/text@1"]["input"]; |
| 578 | }; |
| 579 | readonly user: { |
| 580 | readonly email: CodecTypes["pg/text@1"]["input"]; |
| 581 | readonly id: CodecTypes["pg/int4@1"]["input"]; |
| 582 | readonly name: CodecTypes["pg/text@1"]["input"] | null; |
| 583 | }; |
| 584 | }; |
| 585 | }; |
| 586 | |
| 587 | export namespace Models { |
| 588 | export type public_User = { |
| 589 | id: CodecTypes["pg/int4@1"]["output"]; |
| 590 | email: CodecTypes["pg/text@1"]["output"]; |
| 591 | name: CodecTypes["pg/text@1"]["output"] | null; |
| 592 | posts: public_Post[]; |
| 593 | readonly [RelationKeys]?: "posts"; |
| 594 | }; |
| 595 | export type public_Post = { |
| 596 | id: CodecTypes["pg/int4@1"]["output"]; |
| 597 | title: CodecTypes["pg/text@1"]["output"]; |
| 598 | authorId: CodecTypes["pg/int4@1"]["output"]; |
| 599 | author: public_User; |
| 600 | readonly [RelationKeys]?: "author"; |
| 601 | }; |
| 602 | } |
| 603 | |
| 604 | export declare const models: { |
| 605 | public: { |
| 606 | User: Models.public_User; |
| 607 | Post: Models.public_Post; |
| 608 | }; |
| 609 | }; |
| 610 | |
| 611 | export type TypeMaps = TypeMapsType< |
| 612 | CodecTypes, |
| 613 | QueryOperationTypes, |
| 614 | FieldOutputTypes, |
| 615 | FieldInputTypes, |
| 616 | StorageColumnTypes, |
| 617 | StorageColumnInputTypes, |
| 618 | AggregateTypes |
| 619 | >; |
| 620 | |
| 621 | type ContractBase = Omit< |
| 622 | ContractType<{ |
| 623 | readonly namespaces: { |
| 624 | readonly public: { |
| 625 | readonly id: "public"; |
| 626 | readonly kind: "postgres-schema"; |
| 627 | readonly entries: { |
| 628 | readonly table: { |
| 629 | readonly post: { |
| 630 | columns: { |
| 631 | readonly id: { |
| 632 | readonly nativeType: "int4"; |
| 633 | readonly codecId: "pg/int4@1"; |
| 634 | readonly nullable: false; |
| 635 | readonly default: { |
| 636 | readonly kind: "function"; |
| 637 | readonly expression: "autoincrement()"; |
| 638 | }; |
| 639 | }; |
| 640 | readonly title: { |
| 641 | readonly nativeType: "text"; |
| 642 | readonly codecId: "pg/text@1"; |
| 643 | readonly nullable: false; |
| 644 | }; |
| 645 | readonly authorId: { |
| 646 | readonly nativeType: "int4"; |
| 647 | readonly codecId: "pg/int4@1"; |
| 648 | readonly nullable: false; |
| 649 | }; |
| 650 | }; |
| 651 | primaryKey: { readonly columns: readonly ["id"] }; |
| 652 | uniques: readonly []; |
| 653 | indexes: readonly [ |
| 654 | { |
| 655 | readonly name: "post_authorId_idx_e47547ed"; |
| 656 | readonly prefix: "post_authorId_idx"; |
| 657 | readonly columns: readonly ["authorId"]; |
| 658 | readonly unique: false; |
| 659 | }, |
| 660 | ]; |
| 661 | foreignKeys: readonly [ |
| 662 | { |
| 663 | readonly source: { |
| 664 | readonly namespaceId: "public" & NamespaceId; |
| 665 | readonly tableName: "post"; |
| 666 | readonly columns: readonly ["authorId"]; |
| 667 | }; |
| 668 | readonly target: { |
| 669 | readonly namespaceId: "public" & NamespaceId; |
| 670 | readonly tableName: "user"; |
| 671 | readonly columns: readonly ["id"]; |
| 672 | }; |
| 673 | }, |
| 674 | ]; |
| 675 | }; |
| 676 | readonly user: { |
| 677 | columns: { |
| 678 | readonly id: { |
| 679 | readonly nativeType: "int4"; |
| 680 | readonly codecId: "pg/int4@1"; |
| 681 | readonly nullable: false; |
| 682 | readonly default: { |
| 683 | readonly kind: "function"; |
| 684 | readonly expression: "autoincrement()"; |
| 685 | }; |
| 686 | }; |
| 687 | readonly email: { |
| 688 | readonly nativeType: "text"; |
| 689 | readonly codecId: "pg/text@1"; |
| 690 | readonly nullable: false; |
| 691 | }; |
| 692 | readonly name: { |
| 693 | readonly nativeType: "text"; |
| 694 | readonly codecId: "pg/text@1"; |
| 695 | readonly nullable: true; |
| 696 | }; |
| 697 | }; |
| 698 | primaryKey: { readonly columns: readonly ["id"] }; |
| 699 | uniques: readonly [{ readonly columns: readonly ["email"] }]; |
| 700 | indexes: readonly []; |
| 701 | foreignKeys: readonly []; |
| 702 | }; |
| 703 | }; |
| 704 | }; |
| 705 | }; |
| 706 | }; |
| 707 | readonly storageHash: StorageHash; |
| 708 | }>, |
| 709 | "roots" | "domain" |
| 710 | > & { |
| 711 | readonly target: "postgres"; |
| 712 | readonly targetFamily: "sql"; |
| 713 | readonly roots: { |
| 714 | readonly user: { |
| 715 | readonly namespace: "public" & NamespaceId; |
| 716 | readonly model: "User"; |
| 717 | }; |
| 718 | readonly post: { |
| 719 | readonly namespace: "public" & NamespaceId; |
| 720 | readonly model: "Post"; |
| 721 | }; |
| 722 | }; |
| 723 | readonly domain: { |
| 724 | readonly namespaces: { |
| 725 | readonly public: { |
| 726 | readonly models: { |
| 727 | readonly Post: { |
| 728 | readonly fields: { |
| 729 | readonly id: { |
| 730 | readonly nullable: false; |
| 731 | readonly type: { |
| 732 | readonly kind: "scalar"; |
| 733 | readonly codecId: "pg/int4@1"; |
| 734 | }; |
| 735 | }; |
| 736 | readonly title: { |
| 737 | readonly nullable: false; |
| 738 | readonly type: { |
| 739 | readonly kind: "scalar"; |
| 740 | readonly codecId: "pg/text@1"; |
| 741 | }; |
| 742 | }; |
| 743 | readonly authorId: { |
| 744 | readonly nullable: false; |
| 745 | readonly type: { |
| 746 | readonly kind: "scalar"; |
| 747 | readonly codecId: "pg/int4@1"; |
| 748 | }; |
| 749 | }; |
| 750 | }; |
| 751 | readonly relations: { |
| 752 | readonly author: { |
| 753 | readonly to: { |
| 754 | readonly namespace: "public" & NamespaceId; |
| 755 | readonly model: "User"; |
| 756 | }; |
| 757 | readonly cardinality: "N:1"; |
| 758 | readonly nullable: false; |
| 759 | readonly on: { |
| 760 | readonly localFields: readonly ["authorId"]; |
| 761 | readonly targetFields: readonly ["id"]; |
| 762 | }; |
| 763 | }; |
| 764 | }; |
| 765 | readonly storage: { |
| 766 | readonly table: "post"; |
| 767 | readonly namespaceId: "public"; |
| 768 | readonly fields: { |
| 769 | readonly id: { readonly column: "id" }; |
| 770 | readonly title: { readonly column: "title" }; |
| 771 | readonly authorId: { readonly column: "authorId" }; |
| 772 | }; |
| 773 | }; |
| 774 | }; |
| 775 | readonly User: { |
| 776 | readonly fields: { |
| 777 | readonly id: { |
| 778 | readonly nullable: false; |
| 779 | readonly type: { |
| 780 | readonly kind: "scalar"; |
| 781 | readonly codecId: "pg/int4@1"; |
| 782 | }; |
| 783 | }; |
| 784 | readonly email: { |
| 785 | readonly nullable: false; |
| 786 | readonly type: { |
| 787 | readonly kind: "scalar"; |
| 788 | readonly codecId: "pg/text@1"; |
| 789 | }; |
| 790 | }; |
| 791 | readonly name: { |
| 792 | readonly nullable: true; |
| 793 | readonly type: { |
| 794 | readonly kind: "scalar"; |
| 795 | readonly codecId: "pg/text@1"; |
| 796 | }; |
| 797 | }; |
| 798 | }; |
| 799 | readonly relations: { |
| 800 | readonly posts: { |
| 801 | readonly to: { |
| 802 | readonly namespace: "public" & NamespaceId; |
| 803 | readonly model: "Post"; |
| 804 | }; |
| 805 | readonly cardinality: "1:N"; |
| 806 | readonly on: { |
| 807 | readonly localFields: readonly ["id"]; |
| 808 | readonly targetFields: readonly ["authorId"]; |
| 809 | }; |
| 810 | }; |
| 811 | }; |
| 812 | readonly storage: { |
| 813 | readonly table: "user"; |
| 814 | readonly namespaceId: "public"; |
| 815 | readonly fields: { |
| 816 | readonly id: { readonly column: "id" }; |
| 817 | readonly email: { readonly column: "email" }; |
| 818 | readonly name: { readonly column: "name" }; |
| 819 | }; |
| 820 | }; |
| 821 | }; |
| 822 | }; |
| 823 | }; |
| 824 | }; |
| 825 | }; |
| 826 | readonly capabilities: { |
| 827 | readonly postgres: { |
| 828 | readonly distinctOn: true; |
| 829 | readonly jsonAgg: true; |
| 830 | readonly lateral: true; |
| 831 | readonly limit: true; |
| 832 | readonly orderBy: true; |
| 833 | readonly returning: true; |
| 834 | }; |
| 835 | readonly sql: { |
| 836 | readonly checkConstraint: true; |
| 837 | readonly defaultInInsert: true; |
| 838 | readonly enums: true; |
| 839 | readonly lateral: true; |
| 840 | readonly returning: true; |
| 841 | readonly scalarList: true; |
| 842 | }; |
| 843 | }; |
| 844 | readonly extensions: {}; |
| 845 | readonly meta: {}; |
| 846 | |
| 847 | readonly profileHash: ProfileHash; |
| 848 | }; |
| 849 | |
| 850 | export type Contract = ContractWithTypeMaps<ContractBase, TypeMaps>; |
| 851 | |
| 852 | export type Namespaces = Contract["storage"]["namespaces"]; |