drizzle-kit 0.19.13 → 0.20.0-3aac705

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/@types/utils.d.ts +12 -0
  2. package/cli/commands/migrate.d.ts +260 -0
  3. package/cli/commands/mysqlUp.d.ts +4 -0
  4. package/cli/commands/pgIntrospect.d.ts +118 -0
  5. package/cli/commands/pgPushUtils.d.ts +14 -0
  6. package/cli/commands/pgUp.d.ts +4 -0
  7. package/cli/commands/sqliteIntrospect.d.ts +102 -0
  8. package/cli/commands/sqliteUtils.d.ts +162 -0
  9. package/cli/commands/upFolders.d.ts +27 -0
  10. package/cli/commands/utils.d.ts +265 -0
  11. package/cli/selector-ui.d.ts +13 -0
  12. package/cli/validations/common.d.ts +13 -0
  13. package/cli/validations/mysql.d.ts +414 -0
  14. package/cli/validations/outputs.d.ts +40 -0
  15. package/cli/validations/pg.d.ts +438 -0
  16. package/cli/validations/sqlite.d.ts +220 -0
  17. package/cli/validations/studio.d.ts +548 -0
  18. package/cli/views.d.ts +61 -0
  19. package/drivers/index.d.ts +25 -0
  20. package/global.d.ts +2 -0
  21. package/index.cjs +39211 -31721
  22. package/index.d.ts +53 -0
  23. package/introspect.d.ts +4 -0
  24. package/jsonDiffer.d.ts +76 -0
  25. package/jsonStatements.d.ts +349 -0
  26. package/migrationPreparator.d.ts +35 -0
  27. package/orm-extenstions/d1-driver/driver.d.ts +8 -0
  28. package/orm-extenstions/d1-driver/session.d.ts +52 -0
  29. package/orm-extenstions/d1-driver/wrangler-client.d.ts +3 -0
  30. package/package.json +7 -4
  31. package/schemaValidator.d.ts +1306 -0
  32. package/serializer/index.d.ts +9 -0
  33. package/serializer/mysqlImports.d.ts +6 -0
  34. package/serializer/mysqlSchema.d.ts +3833 -0
  35. package/serializer/mysqlSerializer.d.ts +7 -0
  36. package/serializer/pgImports.d.ts +11 -0
  37. package/serializer/pgSchema.d.ts +4244 -0
  38. package/serializer/pgSerializer.d.ts +9 -0
  39. package/serializer/sqliteImports.d.ts +5 -0
  40. package/serializer/sqliteSchema.d.ts +3227 -0
  41. package/serializer/sqliteSerializer.d.ts +8 -0
  42. package/serializer/studioUtils.d.ts +35 -0
  43. package/snapshotsDiffer.d.ts +2660 -0
  44. package/sqlgenerator.d.ts +33 -0
  45. package/sqlite-introspect.d.ts +5 -0
  46. package/utils/words.d.ts +7 -0
  47. package/utils.d.ts +33 -0
  48. package/utils.js +51709 -11732
  49. package/utilsR.d.ts +232 -0
@@ -0,0 +1,4244 @@
1
+ import { TypeOf } from "zod";
2
+ declare const enumSchema: import("zod").ZodObject<{
3
+ name: import("zod").ZodString;
4
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
5
+ }, "strict", import("zod").ZodTypeAny, {
6
+ name: string;
7
+ values: Record<string, string>;
8
+ }, {
9
+ name: string;
10
+ values: Record<string, string>;
11
+ }>;
12
+ export declare const pgSchemaV2: import("zod").ZodObject<{
13
+ version: import("zod").ZodLiteral<"2">;
14
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
15
+ name: import("zod").ZodString;
16
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
17
+ name: import("zod").ZodString;
18
+ type: import("zod").ZodString;
19
+ primaryKey: import("zod").ZodBoolean;
20
+ notNull: import("zod").ZodBoolean;
21
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
22
+ references: import("zod").ZodOptional<import("zod").ZodString>;
23
+ }, "strict", import("zod").ZodTypeAny, {
24
+ default?: any;
25
+ references?: string | undefined;
26
+ name: string;
27
+ type: string;
28
+ primaryKey: boolean;
29
+ notNull: boolean;
30
+ }, {
31
+ default?: any;
32
+ references?: string | undefined;
33
+ name: string;
34
+ type: string;
35
+ primaryKey: boolean;
36
+ notNull: boolean;
37
+ }>>;
38
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
39
+ name: import("zod").ZodString;
40
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
41
+ name: import("zod").ZodString;
42
+ }, "strip", import("zod").ZodTypeAny, {
43
+ name: string;
44
+ }, {
45
+ name: string;
46
+ }>>;
47
+ isUnique: import("zod").ZodBoolean;
48
+ }, "strict", import("zod").ZodTypeAny, {
49
+ name: string;
50
+ columns: Record<string, {
51
+ name: string;
52
+ }>;
53
+ isUnique: boolean;
54
+ }, {
55
+ name: string;
56
+ columns: Record<string, {
57
+ name: string;
58
+ }>;
59
+ isUnique: boolean;
60
+ }>>;
61
+ }, "strict", import("zod").ZodTypeAny, {
62
+ name: string;
63
+ columns: Record<string, {
64
+ default?: any;
65
+ references?: string | undefined;
66
+ name: string;
67
+ type: string;
68
+ primaryKey: boolean;
69
+ notNull: boolean;
70
+ }>;
71
+ indexes: Record<string, {
72
+ name: string;
73
+ columns: Record<string, {
74
+ name: string;
75
+ }>;
76
+ isUnique: boolean;
77
+ }>;
78
+ }, {
79
+ name: string;
80
+ columns: Record<string, {
81
+ default?: any;
82
+ references?: string | undefined;
83
+ name: string;
84
+ type: string;
85
+ primaryKey: boolean;
86
+ notNull: boolean;
87
+ }>;
88
+ indexes: Record<string, {
89
+ name: string;
90
+ columns: Record<string, {
91
+ name: string;
92
+ }>;
93
+ isUnique: boolean;
94
+ }>;
95
+ }>>;
96
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
97
+ name: import("zod").ZodString;
98
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
99
+ }, "strict", import("zod").ZodTypeAny, {
100
+ name: string;
101
+ values: Record<string, string>;
102
+ }, {
103
+ name: string;
104
+ values: Record<string, string>;
105
+ }>>;
106
+ }, "strict", import("zod").ZodTypeAny, {
107
+ version: "2";
108
+ tables: Record<string, {
109
+ name: string;
110
+ columns: Record<string, {
111
+ default?: any;
112
+ references?: string | undefined;
113
+ name: string;
114
+ type: string;
115
+ primaryKey: boolean;
116
+ notNull: boolean;
117
+ }>;
118
+ indexes: Record<string, {
119
+ name: string;
120
+ columns: Record<string, {
121
+ name: string;
122
+ }>;
123
+ isUnique: boolean;
124
+ }>;
125
+ }>;
126
+ enums: Record<string, {
127
+ name: string;
128
+ values: Record<string, string>;
129
+ }>;
130
+ }, {
131
+ version: "2";
132
+ tables: Record<string, {
133
+ name: string;
134
+ columns: Record<string, {
135
+ default?: any;
136
+ references?: string | undefined;
137
+ name: string;
138
+ type: string;
139
+ primaryKey: boolean;
140
+ notNull: boolean;
141
+ }>;
142
+ indexes: Record<string, {
143
+ name: string;
144
+ columns: Record<string, {
145
+ name: string;
146
+ }>;
147
+ isUnique: boolean;
148
+ }>;
149
+ }>;
150
+ enums: Record<string, {
151
+ name: string;
152
+ values: Record<string, string>;
153
+ }>;
154
+ }>;
155
+ export declare const pgSchemaV1: import("zod").ZodObject<{
156
+ version: import("zod").ZodLiteral<"1">;
157
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
158
+ name: import("zod").ZodString;
159
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
160
+ name: import("zod").ZodString;
161
+ type: import("zod").ZodString;
162
+ primaryKey: import("zod").ZodBoolean;
163
+ notNull: import("zod").ZodBoolean;
164
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
165
+ references: import("zod").ZodOptional<import("zod").ZodObject<{
166
+ foreignKeyName: import("zod").ZodString;
167
+ table: import("zod").ZodString;
168
+ column: import("zod").ZodString;
169
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
170
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
171
+ }, "strict", import("zod").ZodTypeAny, {
172
+ onUpdate?: string | undefined;
173
+ onDelete?: string | undefined;
174
+ column: string;
175
+ foreignKeyName: string;
176
+ table: string;
177
+ }, {
178
+ onUpdate?: string | undefined;
179
+ onDelete?: string | undefined;
180
+ column: string;
181
+ foreignKeyName: string;
182
+ table: string;
183
+ }>>;
184
+ }, "strict", import("zod").ZodTypeAny, {
185
+ default?: any;
186
+ references?: {
187
+ onUpdate?: string | undefined;
188
+ onDelete?: string | undefined;
189
+ column: string;
190
+ foreignKeyName: string;
191
+ table: string;
192
+ } | undefined;
193
+ name: string;
194
+ type: string;
195
+ primaryKey: boolean;
196
+ notNull: boolean;
197
+ }, {
198
+ default?: any;
199
+ references?: {
200
+ onUpdate?: string | undefined;
201
+ onDelete?: string | undefined;
202
+ column: string;
203
+ foreignKeyName: string;
204
+ table: string;
205
+ } | undefined;
206
+ name: string;
207
+ type: string;
208
+ primaryKey: boolean;
209
+ notNull: boolean;
210
+ }>>;
211
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
212
+ name: import("zod").ZodString;
213
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
214
+ name: import("zod").ZodString;
215
+ }, "strip", import("zod").ZodTypeAny, {
216
+ name: string;
217
+ }, {
218
+ name: string;
219
+ }>>;
220
+ isUnique: import("zod").ZodBoolean;
221
+ }, "strict", import("zod").ZodTypeAny, {
222
+ name: string;
223
+ columns: Record<string, {
224
+ name: string;
225
+ }>;
226
+ isUnique: boolean;
227
+ }, {
228
+ name: string;
229
+ columns: Record<string, {
230
+ name: string;
231
+ }>;
232
+ isUnique: boolean;
233
+ }>>;
234
+ }, "strict", import("zod").ZodTypeAny, {
235
+ name: string;
236
+ columns: Record<string, {
237
+ default?: any;
238
+ references?: {
239
+ onUpdate?: string | undefined;
240
+ onDelete?: string | undefined;
241
+ column: string;
242
+ foreignKeyName: string;
243
+ table: string;
244
+ } | undefined;
245
+ name: string;
246
+ type: string;
247
+ primaryKey: boolean;
248
+ notNull: boolean;
249
+ }>;
250
+ indexes: Record<string, {
251
+ name: string;
252
+ columns: Record<string, {
253
+ name: string;
254
+ }>;
255
+ isUnique: boolean;
256
+ }>;
257
+ }, {
258
+ name: string;
259
+ columns: Record<string, {
260
+ default?: any;
261
+ references?: {
262
+ onUpdate?: string | undefined;
263
+ onDelete?: string | undefined;
264
+ column: string;
265
+ foreignKeyName: string;
266
+ table: string;
267
+ } | undefined;
268
+ name: string;
269
+ type: string;
270
+ primaryKey: boolean;
271
+ notNull: boolean;
272
+ }>;
273
+ indexes: Record<string, {
274
+ name: string;
275
+ columns: Record<string, {
276
+ name: string;
277
+ }>;
278
+ isUnique: boolean;
279
+ }>;
280
+ }>>;
281
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
282
+ name: import("zod").ZodString;
283
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
284
+ }, "strict", import("zod").ZodTypeAny, {
285
+ name: string;
286
+ values: Record<string, string>;
287
+ }, {
288
+ name: string;
289
+ values: Record<string, string>;
290
+ }>>;
291
+ }, "strict", import("zod").ZodTypeAny, {
292
+ version: "1";
293
+ tables: Record<string, {
294
+ name: string;
295
+ columns: Record<string, {
296
+ default?: any;
297
+ references?: {
298
+ onUpdate?: string | undefined;
299
+ onDelete?: string | undefined;
300
+ column: string;
301
+ foreignKeyName: string;
302
+ table: string;
303
+ } | undefined;
304
+ name: string;
305
+ type: string;
306
+ primaryKey: boolean;
307
+ notNull: boolean;
308
+ }>;
309
+ indexes: Record<string, {
310
+ name: string;
311
+ columns: Record<string, {
312
+ name: string;
313
+ }>;
314
+ isUnique: boolean;
315
+ }>;
316
+ }>;
317
+ enums: Record<string, {
318
+ name: string;
319
+ values: Record<string, string>;
320
+ }>;
321
+ }, {
322
+ version: "1";
323
+ tables: Record<string, {
324
+ name: string;
325
+ columns: Record<string, {
326
+ default?: any;
327
+ references?: {
328
+ onUpdate?: string | undefined;
329
+ onDelete?: string | undefined;
330
+ column: string;
331
+ foreignKeyName: string;
332
+ table: string;
333
+ } | undefined;
334
+ name: string;
335
+ type: string;
336
+ primaryKey: boolean;
337
+ notNull: boolean;
338
+ }>;
339
+ indexes: Record<string, {
340
+ name: string;
341
+ columns: Record<string, {
342
+ name: string;
343
+ }>;
344
+ isUnique: boolean;
345
+ }>;
346
+ }>;
347
+ enums: Record<string, {
348
+ name: string;
349
+ values: Record<string, string>;
350
+ }>;
351
+ }>;
352
+ declare const index: import("zod").ZodObject<{
353
+ name: import("zod").ZodString;
354
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
355
+ isUnique: import("zod").ZodBoolean;
356
+ }, "strict", import("zod").ZodTypeAny, {
357
+ name: string;
358
+ columns: string[];
359
+ isUnique: boolean;
360
+ }, {
361
+ name: string;
362
+ columns: string[];
363
+ isUnique: boolean;
364
+ }>;
365
+ declare const fk: import("zod").ZodObject<{
366
+ name: import("zod").ZodString;
367
+ tableFrom: import("zod").ZodString;
368
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
369
+ tableTo: import("zod").ZodString;
370
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
371
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
372
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
373
+ }, "strict", import("zod").ZodTypeAny, {
374
+ onUpdate?: string | undefined;
375
+ onDelete?: string | undefined;
376
+ name: string;
377
+ tableFrom: string;
378
+ columnsFrom: string[];
379
+ tableTo: string;
380
+ columnsTo: string[];
381
+ }, {
382
+ onUpdate?: string | undefined;
383
+ onDelete?: string | undefined;
384
+ name: string;
385
+ tableFrom: string;
386
+ columnsFrom: string[];
387
+ tableTo: string;
388
+ columnsTo: string[];
389
+ }>;
390
+ declare const column: import("zod").ZodObject<{
391
+ name: import("zod").ZodString;
392
+ type: import("zod").ZodString;
393
+ primaryKey: import("zod").ZodBoolean;
394
+ notNull: import("zod").ZodBoolean;
395
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
396
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
397
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
398
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
399
+ }, "strict", import("zod").ZodTypeAny, {
400
+ isUnique?: any;
401
+ default?: any;
402
+ uniqueName?: string | undefined;
403
+ nullsNotDistinct?: boolean | undefined;
404
+ name: string;
405
+ type: string;
406
+ primaryKey: boolean;
407
+ notNull: boolean;
408
+ }, {
409
+ isUnique?: any;
410
+ default?: any;
411
+ uniqueName?: string | undefined;
412
+ nullsNotDistinct?: boolean | undefined;
413
+ name: string;
414
+ type: string;
415
+ primaryKey: boolean;
416
+ notNull: boolean;
417
+ }>;
418
+ declare const tableV3: import("zod").ZodObject<{
419
+ name: import("zod").ZodString;
420
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
421
+ name: import("zod").ZodString;
422
+ type: import("zod").ZodString;
423
+ primaryKey: import("zod").ZodBoolean;
424
+ notNull: import("zod").ZodBoolean;
425
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
426
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
427
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
428
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
429
+ }, "strict", import("zod").ZodTypeAny, {
430
+ isUnique?: any;
431
+ default?: any;
432
+ uniqueName?: string | undefined;
433
+ nullsNotDistinct?: boolean | undefined;
434
+ name: string;
435
+ type: string;
436
+ primaryKey: boolean;
437
+ notNull: boolean;
438
+ }, {
439
+ isUnique?: any;
440
+ default?: any;
441
+ uniqueName?: string | undefined;
442
+ nullsNotDistinct?: boolean | undefined;
443
+ name: string;
444
+ type: string;
445
+ primaryKey: boolean;
446
+ notNull: boolean;
447
+ }>>;
448
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
449
+ name: import("zod").ZodString;
450
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
451
+ isUnique: import("zod").ZodBoolean;
452
+ }, "strict", import("zod").ZodTypeAny, {
453
+ name: string;
454
+ columns: string[];
455
+ isUnique: boolean;
456
+ }, {
457
+ name: string;
458
+ columns: string[];
459
+ isUnique: boolean;
460
+ }>>;
461
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
462
+ name: import("zod").ZodString;
463
+ tableFrom: import("zod").ZodString;
464
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
465
+ tableTo: import("zod").ZodString;
466
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
467
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
468
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
469
+ }, "strict", import("zod").ZodTypeAny, {
470
+ onUpdate?: string | undefined;
471
+ onDelete?: string | undefined;
472
+ name: string;
473
+ tableFrom: string;
474
+ columnsFrom: string[];
475
+ tableTo: string;
476
+ columnsTo: string[];
477
+ }, {
478
+ onUpdate?: string | undefined;
479
+ onDelete?: string | undefined;
480
+ name: string;
481
+ tableFrom: string;
482
+ columnsFrom: string[];
483
+ tableTo: string;
484
+ columnsTo: string[];
485
+ }>>;
486
+ }, "strict", import("zod").ZodTypeAny, {
487
+ name: string;
488
+ columns: Record<string, {
489
+ isUnique?: any;
490
+ default?: any;
491
+ uniqueName?: string | undefined;
492
+ nullsNotDistinct?: boolean | undefined;
493
+ name: string;
494
+ type: string;
495
+ primaryKey: boolean;
496
+ notNull: boolean;
497
+ }>;
498
+ indexes: Record<string, {
499
+ name: string;
500
+ columns: string[];
501
+ isUnique: boolean;
502
+ }>;
503
+ foreignKeys: Record<string, {
504
+ onUpdate?: string | undefined;
505
+ onDelete?: string | undefined;
506
+ name: string;
507
+ tableFrom: string;
508
+ columnsFrom: string[];
509
+ tableTo: string;
510
+ columnsTo: string[];
511
+ }>;
512
+ }, {
513
+ name: string;
514
+ columns: Record<string, {
515
+ isUnique?: any;
516
+ default?: any;
517
+ uniqueName?: string | undefined;
518
+ nullsNotDistinct?: boolean | undefined;
519
+ name: string;
520
+ type: string;
521
+ primaryKey: boolean;
522
+ notNull: boolean;
523
+ }>;
524
+ indexes: Record<string, {
525
+ name: string;
526
+ columns: string[];
527
+ isUnique: boolean;
528
+ }>;
529
+ foreignKeys: Record<string, {
530
+ onUpdate?: string | undefined;
531
+ onDelete?: string | undefined;
532
+ name: string;
533
+ tableFrom: string;
534
+ columnsFrom: string[];
535
+ tableTo: string;
536
+ columnsTo: string[];
537
+ }>;
538
+ }>;
539
+ declare const compositePK: import("zod").ZodObject<{
540
+ name: import("zod").ZodString;
541
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
542
+ }, "strict", import("zod").ZodTypeAny, {
543
+ name: string;
544
+ columns: string[];
545
+ }, {
546
+ name: string;
547
+ columns: string[];
548
+ }>;
549
+ declare const uniqueConstraint: import("zod").ZodObject<{
550
+ name: import("zod").ZodString;
551
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
552
+ nullsNotDistinct: import("zod").ZodBoolean;
553
+ }, "strict", import("zod").ZodTypeAny, {
554
+ name: string;
555
+ columns: string[];
556
+ nullsNotDistinct: boolean;
557
+ }, {
558
+ name: string;
559
+ columns: string[];
560
+ nullsNotDistinct: boolean;
561
+ }>;
562
+ declare const tableV4: import("zod").ZodObject<{
563
+ name: import("zod").ZodString;
564
+ schema: import("zod").ZodString;
565
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
566
+ name: import("zod").ZodString;
567
+ type: import("zod").ZodString;
568
+ primaryKey: import("zod").ZodBoolean;
569
+ notNull: import("zod").ZodBoolean;
570
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
571
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
572
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
573
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
574
+ }, "strict", import("zod").ZodTypeAny, {
575
+ isUnique?: any;
576
+ default?: any;
577
+ uniqueName?: string | undefined;
578
+ nullsNotDistinct?: boolean | undefined;
579
+ name: string;
580
+ type: string;
581
+ primaryKey: boolean;
582
+ notNull: boolean;
583
+ }, {
584
+ isUnique?: any;
585
+ default?: any;
586
+ uniqueName?: string | undefined;
587
+ nullsNotDistinct?: boolean | undefined;
588
+ name: string;
589
+ type: string;
590
+ primaryKey: boolean;
591
+ notNull: boolean;
592
+ }>>;
593
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
594
+ name: import("zod").ZodString;
595
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
596
+ isUnique: import("zod").ZodBoolean;
597
+ }, "strict", import("zod").ZodTypeAny, {
598
+ name: string;
599
+ columns: string[];
600
+ isUnique: boolean;
601
+ }, {
602
+ name: string;
603
+ columns: string[];
604
+ isUnique: boolean;
605
+ }>>;
606
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
607
+ name: import("zod").ZodString;
608
+ tableFrom: import("zod").ZodString;
609
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
610
+ tableTo: import("zod").ZodString;
611
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
612
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
613
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
614
+ }, "strict", import("zod").ZodTypeAny, {
615
+ onUpdate?: string | undefined;
616
+ onDelete?: string | undefined;
617
+ name: string;
618
+ tableFrom: string;
619
+ columnsFrom: string[];
620
+ tableTo: string;
621
+ columnsTo: string[];
622
+ }, {
623
+ onUpdate?: string | undefined;
624
+ onDelete?: string | undefined;
625
+ name: string;
626
+ tableFrom: string;
627
+ columnsFrom: string[];
628
+ tableTo: string;
629
+ columnsTo: string[];
630
+ }>>;
631
+ }, "strict", import("zod").ZodTypeAny, {
632
+ name: string;
633
+ columns: Record<string, {
634
+ isUnique?: any;
635
+ default?: any;
636
+ uniqueName?: string | undefined;
637
+ nullsNotDistinct?: boolean | undefined;
638
+ name: string;
639
+ type: string;
640
+ primaryKey: boolean;
641
+ notNull: boolean;
642
+ }>;
643
+ indexes: Record<string, {
644
+ name: string;
645
+ columns: string[];
646
+ isUnique: boolean;
647
+ }>;
648
+ foreignKeys: Record<string, {
649
+ onUpdate?: string | undefined;
650
+ onDelete?: string | undefined;
651
+ name: string;
652
+ tableFrom: string;
653
+ columnsFrom: string[];
654
+ tableTo: string;
655
+ columnsTo: string[];
656
+ }>;
657
+ schema: string;
658
+ }, {
659
+ name: string;
660
+ columns: Record<string, {
661
+ isUnique?: any;
662
+ default?: any;
663
+ uniqueName?: string | undefined;
664
+ nullsNotDistinct?: boolean | undefined;
665
+ name: string;
666
+ type: string;
667
+ primaryKey: boolean;
668
+ notNull: boolean;
669
+ }>;
670
+ indexes: Record<string, {
671
+ name: string;
672
+ columns: string[];
673
+ isUnique: boolean;
674
+ }>;
675
+ foreignKeys: Record<string, {
676
+ onUpdate?: string | undefined;
677
+ onDelete?: string | undefined;
678
+ name: string;
679
+ tableFrom: string;
680
+ columnsFrom: string[];
681
+ tableTo: string;
682
+ columnsTo: string[];
683
+ }>;
684
+ schema: string;
685
+ }>;
686
+ declare const table: import("zod").ZodObject<{
687
+ name: import("zod").ZodString;
688
+ schema: import("zod").ZodString;
689
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
690
+ name: import("zod").ZodString;
691
+ type: import("zod").ZodString;
692
+ primaryKey: import("zod").ZodBoolean;
693
+ notNull: import("zod").ZodBoolean;
694
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
695
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
696
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
697
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
698
+ }, "strict", import("zod").ZodTypeAny, {
699
+ isUnique?: any;
700
+ default?: any;
701
+ uniqueName?: string | undefined;
702
+ nullsNotDistinct?: boolean | undefined;
703
+ name: string;
704
+ type: string;
705
+ primaryKey: boolean;
706
+ notNull: boolean;
707
+ }, {
708
+ isUnique?: any;
709
+ default?: any;
710
+ uniqueName?: string | undefined;
711
+ nullsNotDistinct?: boolean | undefined;
712
+ name: string;
713
+ type: string;
714
+ primaryKey: boolean;
715
+ notNull: boolean;
716
+ }>>;
717
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
718
+ name: import("zod").ZodString;
719
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
720
+ isUnique: import("zod").ZodBoolean;
721
+ }, "strict", import("zod").ZodTypeAny, {
722
+ name: string;
723
+ columns: string[];
724
+ isUnique: boolean;
725
+ }, {
726
+ name: string;
727
+ columns: string[];
728
+ isUnique: boolean;
729
+ }>>;
730
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
731
+ name: import("zod").ZodString;
732
+ tableFrom: import("zod").ZodString;
733
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
734
+ tableTo: import("zod").ZodString;
735
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
736
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
737
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
738
+ }, "strict", import("zod").ZodTypeAny, {
739
+ onUpdate?: string | undefined;
740
+ onDelete?: string | undefined;
741
+ name: string;
742
+ tableFrom: string;
743
+ columnsFrom: string[];
744
+ tableTo: string;
745
+ columnsTo: string[];
746
+ }, {
747
+ onUpdate?: string | undefined;
748
+ onDelete?: string | undefined;
749
+ name: string;
750
+ tableFrom: string;
751
+ columnsFrom: string[];
752
+ tableTo: string;
753
+ columnsTo: string[];
754
+ }>>;
755
+ compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
756
+ name: import("zod").ZodString;
757
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
758
+ }, "strict", import("zod").ZodTypeAny, {
759
+ name: string;
760
+ columns: string[];
761
+ }, {
762
+ name: string;
763
+ columns: string[];
764
+ }>>;
765
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
766
+ name: import("zod").ZodString;
767
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
768
+ nullsNotDistinct: import("zod").ZodBoolean;
769
+ }, "strict", import("zod").ZodTypeAny, {
770
+ name: string;
771
+ columns: string[];
772
+ nullsNotDistinct: boolean;
773
+ }, {
774
+ name: string;
775
+ columns: string[];
776
+ nullsNotDistinct: boolean;
777
+ }>>>;
778
+ }, "strict", import("zod").ZodTypeAny, {
779
+ name: string;
780
+ columns: Record<string, {
781
+ isUnique?: any;
782
+ default?: any;
783
+ uniqueName?: string | undefined;
784
+ nullsNotDistinct?: boolean | undefined;
785
+ name: string;
786
+ type: string;
787
+ primaryKey: boolean;
788
+ notNull: boolean;
789
+ }>;
790
+ indexes: Record<string, {
791
+ name: string;
792
+ columns: string[];
793
+ isUnique: boolean;
794
+ }>;
795
+ foreignKeys: Record<string, {
796
+ onUpdate?: string | undefined;
797
+ onDelete?: string | undefined;
798
+ name: string;
799
+ tableFrom: string;
800
+ columnsFrom: string[];
801
+ tableTo: string;
802
+ columnsTo: string[];
803
+ }>;
804
+ schema: string;
805
+ compositePrimaryKeys: Record<string, {
806
+ name: string;
807
+ columns: string[];
808
+ }>;
809
+ uniqueConstraints: Record<string, {
810
+ name: string;
811
+ columns: string[];
812
+ nullsNotDistinct: boolean;
813
+ }>;
814
+ }, {
815
+ uniqueConstraints?: Record<string, {
816
+ name: string;
817
+ columns: string[];
818
+ nullsNotDistinct: boolean;
819
+ }> | undefined;
820
+ name: string;
821
+ columns: Record<string, {
822
+ isUnique?: any;
823
+ default?: any;
824
+ uniqueName?: string | undefined;
825
+ nullsNotDistinct?: boolean | undefined;
826
+ name: string;
827
+ type: string;
828
+ primaryKey: boolean;
829
+ notNull: boolean;
830
+ }>;
831
+ indexes: Record<string, {
832
+ name: string;
833
+ columns: string[];
834
+ isUnique: boolean;
835
+ }>;
836
+ foreignKeys: Record<string, {
837
+ onUpdate?: string | undefined;
838
+ onDelete?: string | undefined;
839
+ name: string;
840
+ tableFrom: string;
841
+ columnsFrom: string[];
842
+ tableTo: string;
843
+ columnsTo: string[];
844
+ }>;
845
+ schema: string;
846
+ compositePrimaryKeys: Record<string, {
847
+ name: string;
848
+ columns: string[];
849
+ }>;
850
+ }>;
851
+ export declare const pgSchemaInternalV3: import("zod").ZodObject<{
852
+ version: import("zod").ZodLiteral<"3">;
853
+ dialect: import("zod").ZodLiteral<"pg">;
854
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
855
+ name: import("zod").ZodString;
856
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
857
+ name: import("zod").ZodString;
858
+ type: import("zod").ZodString;
859
+ primaryKey: import("zod").ZodBoolean;
860
+ notNull: import("zod").ZodBoolean;
861
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
862
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
863
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
864
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
865
+ }, "strict", import("zod").ZodTypeAny, {
866
+ isUnique?: any;
867
+ default?: any;
868
+ uniqueName?: string | undefined;
869
+ nullsNotDistinct?: boolean | undefined;
870
+ name: string;
871
+ type: string;
872
+ primaryKey: boolean;
873
+ notNull: boolean;
874
+ }, {
875
+ isUnique?: any;
876
+ default?: any;
877
+ uniqueName?: string | undefined;
878
+ nullsNotDistinct?: boolean | undefined;
879
+ name: string;
880
+ type: string;
881
+ primaryKey: boolean;
882
+ notNull: boolean;
883
+ }>>;
884
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
885
+ name: import("zod").ZodString;
886
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
887
+ isUnique: import("zod").ZodBoolean;
888
+ }, "strict", import("zod").ZodTypeAny, {
889
+ name: string;
890
+ columns: string[];
891
+ isUnique: boolean;
892
+ }, {
893
+ name: string;
894
+ columns: string[];
895
+ isUnique: boolean;
896
+ }>>;
897
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
898
+ name: import("zod").ZodString;
899
+ tableFrom: import("zod").ZodString;
900
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
901
+ tableTo: import("zod").ZodString;
902
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
903
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
904
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
905
+ }, "strict", import("zod").ZodTypeAny, {
906
+ onUpdate?: string | undefined;
907
+ onDelete?: string | undefined;
908
+ name: string;
909
+ tableFrom: string;
910
+ columnsFrom: string[];
911
+ tableTo: string;
912
+ columnsTo: string[];
913
+ }, {
914
+ onUpdate?: string | undefined;
915
+ onDelete?: string | undefined;
916
+ name: string;
917
+ tableFrom: string;
918
+ columnsFrom: string[];
919
+ tableTo: string;
920
+ columnsTo: string[];
921
+ }>>;
922
+ }, "strict", import("zod").ZodTypeAny, {
923
+ name: string;
924
+ columns: Record<string, {
925
+ isUnique?: any;
926
+ default?: any;
927
+ uniqueName?: string | undefined;
928
+ nullsNotDistinct?: boolean | undefined;
929
+ name: string;
930
+ type: string;
931
+ primaryKey: boolean;
932
+ notNull: boolean;
933
+ }>;
934
+ indexes: Record<string, {
935
+ name: string;
936
+ columns: string[];
937
+ isUnique: boolean;
938
+ }>;
939
+ foreignKeys: Record<string, {
940
+ onUpdate?: string | undefined;
941
+ onDelete?: string | undefined;
942
+ name: string;
943
+ tableFrom: string;
944
+ columnsFrom: string[];
945
+ tableTo: string;
946
+ columnsTo: string[];
947
+ }>;
948
+ }, {
949
+ name: string;
950
+ columns: Record<string, {
951
+ isUnique?: any;
952
+ default?: any;
953
+ uniqueName?: string | undefined;
954
+ nullsNotDistinct?: boolean | undefined;
955
+ name: string;
956
+ type: string;
957
+ primaryKey: boolean;
958
+ notNull: boolean;
959
+ }>;
960
+ indexes: Record<string, {
961
+ name: string;
962
+ columns: string[];
963
+ isUnique: boolean;
964
+ }>;
965
+ foreignKeys: Record<string, {
966
+ onUpdate?: string | undefined;
967
+ onDelete?: string | undefined;
968
+ name: string;
969
+ tableFrom: string;
970
+ columnsFrom: string[];
971
+ tableTo: string;
972
+ columnsTo: string[];
973
+ }>;
974
+ }>>;
975
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
976
+ name: import("zod").ZodString;
977
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
978
+ }, "strict", import("zod").ZodTypeAny, {
979
+ name: string;
980
+ values: Record<string, string>;
981
+ }, {
982
+ name: string;
983
+ values: Record<string, string>;
984
+ }>>;
985
+ }, "strict", import("zod").ZodTypeAny, {
986
+ version: "3";
987
+ dialect: "pg";
988
+ tables: Record<string, {
989
+ name: string;
990
+ columns: Record<string, {
991
+ isUnique?: any;
992
+ default?: any;
993
+ uniqueName?: string | undefined;
994
+ nullsNotDistinct?: boolean | undefined;
995
+ name: string;
996
+ type: string;
997
+ primaryKey: boolean;
998
+ notNull: boolean;
999
+ }>;
1000
+ indexes: Record<string, {
1001
+ name: string;
1002
+ columns: string[];
1003
+ isUnique: boolean;
1004
+ }>;
1005
+ foreignKeys: Record<string, {
1006
+ onUpdate?: string | undefined;
1007
+ onDelete?: string | undefined;
1008
+ name: string;
1009
+ tableFrom: string;
1010
+ columnsFrom: string[];
1011
+ tableTo: string;
1012
+ columnsTo: string[];
1013
+ }>;
1014
+ }>;
1015
+ enums: Record<string, {
1016
+ name: string;
1017
+ values: Record<string, string>;
1018
+ }>;
1019
+ }, {
1020
+ version: "3";
1021
+ dialect: "pg";
1022
+ tables: Record<string, {
1023
+ name: string;
1024
+ columns: Record<string, {
1025
+ isUnique?: any;
1026
+ default?: any;
1027
+ uniqueName?: string | undefined;
1028
+ nullsNotDistinct?: boolean | undefined;
1029
+ name: string;
1030
+ type: string;
1031
+ primaryKey: boolean;
1032
+ notNull: boolean;
1033
+ }>;
1034
+ indexes: Record<string, {
1035
+ name: string;
1036
+ columns: string[];
1037
+ isUnique: boolean;
1038
+ }>;
1039
+ foreignKeys: Record<string, {
1040
+ onUpdate?: string | undefined;
1041
+ onDelete?: string | undefined;
1042
+ name: string;
1043
+ tableFrom: string;
1044
+ columnsFrom: string[];
1045
+ tableTo: string;
1046
+ columnsTo: string[];
1047
+ }>;
1048
+ }>;
1049
+ enums: Record<string, {
1050
+ name: string;
1051
+ values: Record<string, string>;
1052
+ }>;
1053
+ }>;
1054
+ export declare const pgSchemaInternalV4: import("zod").ZodObject<{
1055
+ version: import("zod").ZodLiteral<"4">;
1056
+ dialect: import("zod").ZodLiteral<"pg">;
1057
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1058
+ name: import("zod").ZodString;
1059
+ schema: import("zod").ZodString;
1060
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1061
+ name: import("zod").ZodString;
1062
+ type: import("zod").ZodString;
1063
+ primaryKey: import("zod").ZodBoolean;
1064
+ notNull: import("zod").ZodBoolean;
1065
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
1066
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
1067
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
1068
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
1069
+ }, "strict", import("zod").ZodTypeAny, {
1070
+ isUnique?: any;
1071
+ default?: any;
1072
+ uniqueName?: string | undefined;
1073
+ nullsNotDistinct?: boolean | undefined;
1074
+ name: string;
1075
+ type: string;
1076
+ primaryKey: boolean;
1077
+ notNull: boolean;
1078
+ }, {
1079
+ isUnique?: any;
1080
+ default?: any;
1081
+ uniqueName?: string | undefined;
1082
+ nullsNotDistinct?: boolean | undefined;
1083
+ name: string;
1084
+ type: string;
1085
+ primaryKey: boolean;
1086
+ notNull: boolean;
1087
+ }>>;
1088
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1089
+ name: import("zod").ZodString;
1090
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1091
+ isUnique: import("zod").ZodBoolean;
1092
+ }, "strict", import("zod").ZodTypeAny, {
1093
+ name: string;
1094
+ columns: string[];
1095
+ isUnique: boolean;
1096
+ }, {
1097
+ name: string;
1098
+ columns: string[];
1099
+ isUnique: boolean;
1100
+ }>>;
1101
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1102
+ name: import("zod").ZodString;
1103
+ tableFrom: import("zod").ZodString;
1104
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
1105
+ tableTo: import("zod").ZodString;
1106
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
1107
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
1108
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
1109
+ }, "strict", import("zod").ZodTypeAny, {
1110
+ onUpdate?: string | undefined;
1111
+ onDelete?: string | undefined;
1112
+ name: string;
1113
+ tableFrom: string;
1114
+ columnsFrom: string[];
1115
+ tableTo: string;
1116
+ columnsTo: string[];
1117
+ }, {
1118
+ onUpdate?: string | undefined;
1119
+ onDelete?: string | undefined;
1120
+ name: string;
1121
+ tableFrom: string;
1122
+ columnsFrom: string[];
1123
+ tableTo: string;
1124
+ columnsTo: string[];
1125
+ }>>;
1126
+ }, "strict", import("zod").ZodTypeAny, {
1127
+ name: string;
1128
+ columns: Record<string, {
1129
+ isUnique?: any;
1130
+ default?: any;
1131
+ uniqueName?: string | undefined;
1132
+ nullsNotDistinct?: boolean | undefined;
1133
+ name: string;
1134
+ type: string;
1135
+ primaryKey: boolean;
1136
+ notNull: boolean;
1137
+ }>;
1138
+ indexes: Record<string, {
1139
+ name: string;
1140
+ columns: string[];
1141
+ isUnique: boolean;
1142
+ }>;
1143
+ foreignKeys: Record<string, {
1144
+ onUpdate?: string | undefined;
1145
+ onDelete?: string | undefined;
1146
+ name: string;
1147
+ tableFrom: string;
1148
+ columnsFrom: string[];
1149
+ tableTo: string;
1150
+ columnsTo: string[];
1151
+ }>;
1152
+ schema: string;
1153
+ }, {
1154
+ name: string;
1155
+ columns: Record<string, {
1156
+ isUnique?: any;
1157
+ default?: any;
1158
+ uniqueName?: string | undefined;
1159
+ nullsNotDistinct?: boolean | undefined;
1160
+ name: string;
1161
+ type: string;
1162
+ primaryKey: boolean;
1163
+ notNull: boolean;
1164
+ }>;
1165
+ indexes: Record<string, {
1166
+ name: string;
1167
+ columns: string[];
1168
+ isUnique: boolean;
1169
+ }>;
1170
+ foreignKeys: Record<string, {
1171
+ onUpdate?: string | undefined;
1172
+ onDelete?: string | undefined;
1173
+ name: string;
1174
+ tableFrom: string;
1175
+ columnsFrom: string[];
1176
+ tableTo: string;
1177
+ columnsTo: string[];
1178
+ }>;
1179
+ schema: string;
1180
+ }>>;
1181
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1182
+ name: import("zod").ZodString;
1183
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1184
+ }, "strict", import("zod").ZodTypeAny, {
1185
+ name: string;
1186
+ values: Record<string, string>;
1187
+ }, {
1188
+ name: string;
1189
+ values: Record<string, string>;
1190
+ }>>;
1191
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1192
+ }, "strict", import("zod").ZodTypeAny, {
1193
+ version: "4";
1194
+ dialect: "pg";
1195
+ tables: Record<string, {
1196
+ name: string;
1197
+ columns: Record<string, {
1198
+ isUnique?: any;
1199
+ default?: any;
1200
+ uniqueName?: string | undefined;
1201
+ nullsNotDistinct?: boolean | undefined;
1202
+ name: string;
1203
+ type: string;
1204
+ primaryKey: boolean;
1205
+ notNull: boolean;
1206
+ }>;
1207
+ indexes: Record<string, {
1208
+ name: string;
1209
+ columns: string[];
1210
+ isUnique: boolean;
1211
+ }>;
1212
+ foreignKeys: Record<string, {
1213
+ onUpdate?: string | undefined;
1214
+ onDelete?: string | undefined;
1215
+ name: string;
1216
+ tableFrom: string;
1217
+ columnsFrom: string[];
1218
+ tableTo: string;
1219
+ columnsTo: string[];
1220
+ }>;
1221
+ schema: string;
1222
+ }>;
1223
+ schemas: Record<string, string>;
1224
+ enums: Record<string, {
1225
+ name: string;
1226
+ values: Record<string, string>;
1227
+ }>;
1228
+ }, {
1229
+ version: "4";
1230
+ dialect: "pg";
1231
+ tables: Record<string, {
1232
+ name: string;
1233
+ columns: Record<string, {
1234
+ isUnique?: any;
1235
+ default?: any;
1236
+ uniqueName?: string | undefined;
1237
+ nullsNotDistinct?: boolean | undefined;
1238
+ name: string;
1239
+ type: string;
1240
+ primaryKey: boolean;
1241
+ notNull: boolean;
1242
+ }>;
1243
+ indexes: Record<string, {
1244
+ name: string;
1245
+ columns: string[];
1246
+ isUnique: boolean;
1247
+ }>;
1248
+ foreignKeys: Record<string, {
1249
+ onUpdate?: string | undefined;
1250
+ onDelete?: string | undefined;
1251
+ name: string;
1252
+ tableFrom: string;
1253
+ columnsFrom: string[];
1254
+ tableTo: string;
1255
+ columnsTo: string[];
1256
+ }>;
1257
+ schema: string;
1258
+ }>;
1259
+ schemas: Record<string, string>;
1260
+ enums: Record<string, {
1261
+ name: string;
1262
+ values: Record<string, string>;
1263
+ }>;
1264
+ }>;
1265
+ export declare const pgSchemaExternal: import("zod").ZodObject<{
1266
+ version: import("zod").ZodLiteral<"5">;
1267
+ dialect: import("zod").ZodLiteral<"pg">;
1268
+ tables: import("zod").ZodArray<import("zod").ZodObject<{
1269
+ name: import("zod").ZodString;
1270
+ schema: import("zod").ZodString;
1271
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1272
+ name: import("zod").ZodString;
1273
+ type: import("zod").ZodString;
1274
+ primaryKey: import("zod").ZodBoolean;
1275
+ notNull: import("zod").ZodBoolean;
1276
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
1277
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
1278
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
1279
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
1280
+ }, "strict", import("zod").ZodTypeAny, {
1281
+ isUnique?: any;
1282
+ default?: any;
1283
+ uniqueName?: string | undefined;
1284
+ nullsNotDistinct?: boolean | undefined;
1285
+ name: string;
1286
+ type: string;
1287
+ primaryKey: boolean;
1288
+ notNull: boolean;
1289
+ }, {
1290
+ isUnique?: any;
1291
+ default?: any;
1292
+ uniqueName?: string | undefined;
1293
+ nullsNotDistinct?: boolean | undefined;
1294
+ name: string;
1295
+ type: string;
1296
+ primaryKey: boolean;
1297
+ notNull: boolean;
1298
+ }>>;
1299
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1300
+ name: import("zod").ZodString;
1301
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1302
+ isUnique: import("zod").ZodBoolean;
1303
+ }, "strict", import("zod").ZodTypeAny, {
1304
+ name: string;
1305
+ columns: string[];
1306
+ isUnique: boolean;
1307
+ }, {
1308
+ name: string;
1309
+ columns: string[];
1310
+ isUnique: boolean;
1311
+ }>>;
1312
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1313
+ name: import("zod").ZodString;
1314
+ tableFrom: import("zod").ZodString;
1315
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
1316
+ tableTo: import("zod").ZodString;
1317
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
1318
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
1319
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
1320
+ }, "strict", import("zod").ZodTypeAny, {
1321
+ onUpdate?: string | undefined;
1322
+ onDelete?: string | undefined;
1323
+ name: string;
1324
+ tableFrom: string;
1325
+ columnsFrom: string[];
1326
+ tableTo: string;
1327
+ columnsTo: string[];
1328
+ }, {
1329
+ onUpdate?: string | undefined;
1330
+ onDelete?: string | undefined;
1331
+ name: string;
1332
+ tableFrom: string;
1333
+ columnsFrom: string[];
1334
+ tableTo: string;
1335
+ columnsTo: string[];
1336
+ }>>;
1337
+ compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1338
+ name: import("zod").ZodString;
1339
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1340
+ }, "strict", import("zod").ZodTypeAny, {
1341
+ name: string;
1342
+ columns: string[];
1343
+ }, {
1344
+ name: string;
1345
+ columns: string[];
1346
+ }>>;
1347
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1348
+ name: import("zod").ZodString;
1349
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1350
+ nullsNotDistinct: import("zod").ZodBoolean;
1351
+ }, "strict", import("zod").ZodTypeAny, {
1352
+ name: string;
1353
+ columns: string[];
1354
+ nullsNotDistinct: boolean;
1355
+ }, {
1356
+ name: string;
1357
+ columns: string[];
1358
+ nullsNotDistinct: boolean;
1359
+ }>>>;
1360
+ }, "strict", import("zod").ZodTypeAny, {
1361
+ name: string;
1362
+ columns: Record<string, {
1363
+ isUnique?: any;
1364
+ default?: any;
1365
+ uniqueName?: string | undefined;
1366
+ nullsNotDistinct?: boolean | undefined;
1367
+ name: string;
1368
+ type: string;
1369
+ primaryKey: boolean;
1370
+ notNull: boolean;
1371
+ }>;
1372
+ indexes: Record<string, {
1373
+ name: string;
1374
+ columns: string[];
1375
+ isUnique: boolean;
1376
+ }>;
1377
+ foreignKeys: Record<string, {
1378
+ onUpdate?: string | undefined;
1379
+ onDelete?: string | undefined;
1380
+ name: string;
1381
+ tableFrom: string;
1382
+ columnsFrom: string[];
1383
+ tableTo: string;
1384
+ columnsTo: string[];
1385
+ }>;
1386
+ schema: string;
1387
+ compositePrimaryKeys: Record<string, {
1388
+ name: string;
1389
+ columns: string[];
1390
+ }>;
1391
+ uniqueConstraints: Record<string, {
1392
+ name: string;
1393
+ columns: string[];
1394
+ nullsNotDistinct: boolean;
1395
+ }>;
1396
+ }, {
1397
+ uniqueConstraints?: Record<string, {
1398
+ name: string;
1399
+ columns: string[];
1400
+ nullsNotDistinct: boolean;
1401
+ }> | undefined;
1402
+ name: string;
1403
+ columns: Record<string, {
1404
+ isUnique?: any;
1405
+ default?: any;
1406
+ uniqueName?: string | undefined;
1407
+ nullsNotDistinct?: boolean | undefined;
1408
+ name: string;
1409
+ type: string;
1410
+ primaryKey: boolean;
1411
+ notNull: boolean;
1412
+ }>;
1413
+ indexes: Record<string, {
1414
+ name: string;
1415
+ columns: string[];
1416
+ isUnique: boolean;
1417
+ }>;
1418
+ foreignKeys: Record<string, {
1419
+ onUpdate?: string | undefined;
1420
+ onDelete?: string | undefined;
1421
+ name: string;
1422
+ tableFrom: string;
1423
+ columnsFrom: string[];
1424
+ tableTo: string;
1425
+ columnsTo: string[];
1426
+ }>;
1427
+ schema: string;
1428
+ compositePrimaryKeys: Record<string, {
1429
+ name: string;
1430
+ columns: string[];
1431
+ }>;
1432
+ }>, "many">;
1433
+ enums: import("zod").ZodArray<import("zod").ZodObject<{
1434
+ name: import("zod").ZodString;
1435
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1436
+ }, "strict", import("zod").ZodTypeAny, {
1437
+ name: string;
1438
+ values: Record<string, string>;
1439
+ }, {
1440
+ name: string;
1441
+ values: Record<string, string>;
1442
+ }>, "many">;
1443
+ schemas: import("zod").ZodArray<import("zod").ZodObject<{
1444
+ name: import("zod").ZodString;
1445
+ }, "strip", import("zod").ZodTypeAny, {
1446
+ name: string;
1447
+ }, {
1448
+ name: string;
1449
+ }>, "many">;
1450
+ _meta: import("zod").ZodObject<{
1451
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1452
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1453
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1454
+ }, "strip", import("zod").ZodTypeAny, {
1455
+ columns: Record<string, string>;
1456
+ tables: Record<string, string>;
1457
+ schemas: Record<string, string>;
1458
+ }, {
1459
+ columns: Record<string, string>;
1460
+ tables: Record<string, string>;
1461
+ schemas: Record<string, string>;
1462
+ }>;
1463
+ }, "strict", import("zod").ZodTypeAny, {
1464
+ version: "5";
1465
+ dialect: "pg";
1466
+ tables: {
1467
+ name: string;
1468
+ columns: Record<string, {
1469
+ isUnique?: any;
1470
+ default?: any;
1471
+ uniqueName?: string | undefined;
1472
+ nullsNotDistinct?: boolean | undefined;
1473
+ name: string;
1474
+ type: string;
1475
+ primaryKey: boolean;
1476
+ notNull: boolean;
1477
+ }>;
1478
+ indexes: Record<string, {
1479
+ name: string;
1480
+ columns: string[];
1481
+ isUnique: boolean;
1482
+ }>;
1483
+ foreignKeys: Record<string, {
1484
+ onUpdate?: string | undefined;
1485
+ onDelete?: string | undefined;
1486
+ name: string;
1487
+ tableFrom: string;
1488
+ columnsFrom: string[];
1489
+ tableTo: string;
1490
+ columnsTo: string[];
1491
+ }>;
1492
+ schema: string;
1493
+ compositePrimaryKeys: Record<string, {
1494
+ name: string;
1495
+ columns: string[];
1496
+ }>;
1497
+ uniqueConstraints: Record<string, {
1498
+ name: string;
1499
+ columns: string[];
1500
+ nullsNotDistinct: boolean;
1501
+ }>;
1502
+ }[];
1503
+ schemas: {
1504
+ name: string;
1505
+ }[];
1506
+ _meta: {
1507
+ columns: Record<string, string>;
1508
+ tables: Record<string, string>;
1509
+ schemas: Record<string, string>;
1510
+ };
1511
+ enums: {
1512
+ name: string;
1513
+ values: Record<string, string>;
1514
+ }[];
1515
+ }, {
1516
+ version: "5";
1517
+ dialect: "pg";
1518
+ tables: {
1519
+ uniqueConstraints?: Record<string, {
1520
+ name: string;
1521
+ columns: string[];
1522
+ nullsNotDistinct: boolean;
1523
+ }> | undefined;
1524
+ name: string;
1525
+ columns: Record<string, {
1526
+ isUnique?: any;
1527
+ default?: any;
1528
+ uniqueName?: string | undefined;
1529
+ nullsNotDistinct?: boolean | undefined;
1530
+ name: string;
1531
+ type: string;
1532
+ primaryKey: boolean;
1533
+ notNull: boolean;
1534
+ }>;
1535
+ indexes: Record<string, {
1536
+ name: string;
1537
+ columns: string[];
1538
+ isUnique: boolean;
1539
+ }>;
1540
+ foreignKeys: Record<string, {
1541
+ onUpdate?: string | undefined;
1542
+ onDelete?: string | undefined;
1543
+ name: string;
1544
+ tableFrom: string;
1545
+ columnsFrom: string[];
1546
+ tableTo: string;
1547
+ columnsTo: string[];
1548
+ }>;
1549
+ schema: string;
1550
+ compositePrimaryKeys: Record<string, {
1551
+ name: string;
1552
+ columns: string[];
1553
+ }>;
1554
+ }[];
1555
+ schemas: {
1556
+ name: string;
1557
+ }[];
1558
+ _meta: {
1559
+ columns: Record<string, string>;
1560
+ tables: Record<string, string>;
1561
+ schemas: Record<string, string>;
1562
+ };
1563
+ enums: {
1564
+ name: string;
1565
+ values: Record<string, string>;
1566
+ }[];
1567
+ }>;
1568
+ export declare const kitInternals: import("zod").ZodOptional<import("zod").ZodObject<{
1569
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
1570
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
1571
+ isArray: import("zod").ZodOptional<import("zod").ZodBoolean>;
1572
+ dimensions: import("zod").ZodOptional<import("zod").ZodNumber>;
1573
+ rawType: import("zod").ZodOptional<import("zod").ZodString>;
1574
+ }, "strip", import("zod").ZodTypeAny, {
1575
+ isArray?: boolean | undefined;
1576
+ dimensions?: number | undefined;
1577
+ rawType?: string | undefined;
1578
+ }, {
1579
+ isArray?: boolean | undefined;
1580
+ dimensions?: number | undefined;
1581
+ rawType?: string | undefined;
1582
+ }>>>;
1583
+ }, "strip", import("zod").ZodTypeAny, {
1584
+ columns: Record<string, {
1585
+ isArray?: boolean | undefined;
1586
+ dimensions?: number | undefined;
1587
+ rawType?: string | undefined;
1588
+ } | undefined>;
1589
+ }, {
1590
+ columns: Record<string, {
1591
+ isArray?: boolean | undefined;
1592
+ dimensions?: number | undefined;
1593
+ rawType?: string | undefined;
1594
+ } | undefined>;
1595
+ }>>>;
1596
+ }, "strip", import("zod").ZodTypeAny, {
1597
+ tables: Record<string, {
1598
+ columns: Record<string, {
1599
+ isArray?: boolean | undefined;
1600
+ dimensions?: number | undefined;
1601
+ rawType?: string | undefined;
1602
+ } | undefined>;
1603
+ } | undefined>;
1604
+ }, {
1605
+ tables: Record<string, {
1606
+ columns: Record<string, {
1607
+ isArray?: boolean | undefined;
1608
+ dimensions?: number | undefined;
1609
+ rawType?: string | undefined;
1610
+ } | undefined>;
1611
+ } | undefined>;
1612
+ }>>;
1613
+ export declare const pgSchemaInternal: import("zod").ZodObject<{
1614
+ version: import("zod").ZodLiteral<"5">;
1615
+ dialect: import("zod").ZodLiteral<"pg">;
1616
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1617
+ name: import("zod").ZodString;
1618
+ schema: import("zod").ZodString;
1619
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1620
+ name: import("zod").ZodString;
1621
+ type: import("zod").ZodString;
1622
+ primaryKey: import("zod").ZodBoolean;
1623
+ notNull: import("zod").ZodBoolean;
1624
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
1625
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
1626
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
1627
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
1628
+ }, "strict", import("zod").ZodTypeAny, {
1629
+ isUnique?: any;
1630
+ default?: any;
1631
+ uniqueName?: string | undefined;
1632
+ nullsNotDistinct?: boolean | undefined;
1633
+ name: string;
1634
+ type: string;
1635
+ primaryKey: boolean;
1636
+ notNull: boolean;
1637
+ }, {
1638
+ isUnique?: any;
1639
+ default?: any;
1640
+ uniqueName?: string | undefined;
1641
+ nullsNotDistinct?: boolean | undefined;
1642
+ name: string;
1643
+ type: string;
1644
+ primaryKey: boolean;
1645
+ notNull: boolean;
1646
+ }>>;
1647
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1648
+ name: import("zod").ZodString;
1649
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1650
+ isUnique: import("zod").ZodBoolean;
1651
+ }, "strict", import("zod").ZodTypeAny, {
1652
+ name: string;
1653
+ columns: string[];
1654
+ isUnique: boolean;
1655
+ }, {
1656
+ name: string;
1657
+ columns: string[];
1658
+ isUnique: boolean;
1659
+ }>>;
1660
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1661
+ name: import("zod").ZodString;
1662
+ tableFrom: import("zod").ZodString;
1663
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
1664
+ tableTo: import("zod").ZodString;
1665
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
1666
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
1667
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
1668
+ }, "strict", import("zod").ZodTypeAny, {
1669
+ onUpdate?: string | undefined;
1670
+ onDelete?: string | undefined;
1671
+ name: string;
1672
+ tableFrom: string;
1673
+ columnsFrom: string[];
1674
+ tableTo: string;
1675
+ columnsTo: string[];
1676
+ }, {
1677
+ onUpdate?: string | undefined;
1678
+ onDelete?: string | undefined;
1679
+ name: string;
1680
+ tableFrom: string;
1681
+ columnsFrom: string[];
1682
+ tableTo: string;
1683
+ columnsTo: string[];
1684
+ }>>;
1685
+ compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1686
+ name: import("zod").ZodString;
1687
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1688
+ }, "strict", import("zod").ZodTypeAny, {
1689
+ name: string;
1690
+ columns: string[];
1691
+ }, {
1692
+ name: string;
1693
+ columns: string[];
1694
+ }>>;
1695
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1696
+ name: import("zod").ZodString;
1697
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1698
+ nullsNotDistinct: import("zod").ZodBoolean;
1699
+ }, "strict", import("zod").ZodTypeAny, {
1700
+ name: string;
1701
+ columns: string[];
1702
+ nullsNotDistinct: boolean;
1703
+ }, {
1704
+ name: string;
1705
+ columns: string[];
1706
+ nullsNotDistinct: boolean;
1707
+ }>>>;
1708
+ }, "strict", import("zod").ZodTypeAny, {
1709
+ name: string;
1710
+ columns: Record<string, {
1711
+ isUnique?: any;
1712
+ default?: any;
1713
+ uniqueName?: string | undefined;
1714
+ nullsNotDistinct?: boolean | undefined;
1715
+ name: string;
1716
+ type: string;
1717
+ primaryKey: boolean;
1718
+ notNull: boolean;
1719
+ }>;
1720
+ indexes: Record<string, {
1721
+ name: string;
1722
+ columns: string[];
1723
+ isUnique: boolean;
1724
+ }>;
1725
+ foreignKeys: Record<string, {
1726
+ onUpdate?: string | undefined;
1727
+ onDelete?: string | undefined;
1728
+ name: string;
1729
+ tableFrom: string;
1730
+ columnsFrom: string[];
1731
+ tableTo: string;
1732
+ columnsTo: string[];
1733
+ }>;
1734
+ schema: string;
1735
+ compositePrimaryKeys: Record<string, {
1736
+ name: string;
1737
+ columns: string[];
1738
+ }>;
1739
+ uniqueConstraints: Record<string, {
1740
+ name: string;
1741
+ columns: string[];
1742
+ nullsNotDistinct: boolean;
1743
+ }>;
1744
+ }, {
1745
+ uniqueConstraints?: Record<string, {
1746
+ name: string;
1747
+ columns: string[];
1748
+ nullsNotDistinct: boolean;
1749
+ }> | undefined;
1750
+ name: string;
1751
+ columns: Record<string, {
1752
+ isUnique?: any;
1753
+ default?: any;
1754
+ uniqueName?: string | undefined;
1755
+ nullsNotDistinct?: boolean | undefined;
1756
+ name: string;
1757
+ type: string;
1758
+ primaryKey: boolean;
1759
+ notNull: boolean;
1760
+ }>;
1761
+ indexes: Record<string, {
1762
+ name: string;
1763
+ columns: string[];
1764
+ isUnique: boolean;
1765
+ }>;
1766
+ foreignKeys: Record<string, {
1767
+ onUpdate?: string | undefined;
1768
+ onDelete?: string | undefined;
1769
+ name: string;
1770
+ tableFrom: string;
1771
+ columnsFrom: string[];
1772
+ tableTo: string;
1773
+ columnsTo: string[];
1774
+ }>;
1775
+ schema: string;
1776
+ compositePrimaryKeys: Record<string, {
1777
+ name: string;
1778
+ columns: string[];
1779
+ }>;
1780
+ }>>;
1781
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1782
+ name: import("zod").ZodString;
1783
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1784
+ }, "strict", import("zod").ZodTypeAny, {
1785
+ name: string;
1786
+ values: Record<string, string>;
1787
+ }, {
1788
+ name: string;
1789
+ values: Record<string, string>;
1790
+ }>>;
1791
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1792
+ _meta: import("zod").ZodObject<{
1793
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1794
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1795
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1796
+ }, "strip", import("zod").ZodTypeAny, {
1797
+ columns: Record<string, string>;
1798
+ tables: Record<string, string>;
1799
+ schemas: Record<string, string>;
1800
+ }, {
1801
+ columns: Record<string, string>;
1802
+ tables: Record<string, string>;
1803
+ schemas: Record<string, string>;
1804
+ }>;
1805
+ internal: import("zod").ZodOptional<import("zod").ZodObject<{
1806
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
1807
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
1808
+ isArray: import("zod").ZodOptional<import("zod").ZodBoolean>;
1809
+ dimensions: import("zod").ZodOptional<import("zod").ZodNumber>;
1810
+ rawType: import("zod").ZodOptional<import("zod").ZodString>;
1811
+ }, "strip", import("zod").ZodTypeAny, {
1812
+ isArray?: boolean | undefined;
1813
+ dimensions?: number | undefined;
1814
+ rawType?: string | undefined;
1815
+ }, {
1816
+ isArray?: boolean | undefined;
1817
+ dimensions?: number | undefined;
1818
+ rawType?: string | undefined;
1819
+ }>>>;
1820
+ }, "strip", import("zod").ZodTypeAny, {
1821
+ columns: Record<string, {
1822
+ isArray?: boolean | undefined;
1823
+ dimensions?: number | undefined;
1824
+ rawType?: string | undefined;
1825
+ } | undefined>;
1826
+ }, {
1827
+ columns: Record<string, {
1828
+ isArray?: boolean | undefined;
1829
+ dimensions?: number | undefined;
1830
+ rawType?: string | undefined;
1831
+ } | undefined>;
1832
+ }>>>;
1833
+ }, "strip", import("zod").ZodTypeAny, {
1834
+ tables: Record<string, {
1835
+ columns: Record<string, {
1836
+ isArray?: boolean | undefined;
1837
+ dimensions?: number | undefined;
1838
+ rawType?: string | undefined;
1839
+ } | undefined>;
1840
+ } | undefined>;
1841
+ }, {
1842
+ tables: Record<string, {
1843
+ columns: Record<string, {
1844
+ isArray?: boolean | undefined;
1845
+ dimensions?: number | undefined;
1846
+ rawType?: string | undefined;
1847
+ } | undefined>;
1848
+ } | undefined>;
1849
+ }>>;
1850
+ }, "strict", import("zod").ZodTypeAny, {
1851
+ internal?: {
1852
+ tables: Record<string, {
1853
+ columns: Record<string, {
1854
+ isArray?: boolean | undefined;
1855
+ dimensions?: number | undefined;
1856
+ rawType?: string | undefined;
1857
+ } | undefined>;
1858
+ } | undefined>;
1859
+ } | undefined;
1860
+ version: "5";
1861
+ dialect: "pg";
1862
+ tables: Record<string, {
1863
+ name: string;
1864
+ columns: Record<string, {
1865
+ isUnique?: any;
1866
+ default?: any;
1867
+ uniqueName?: string | undefined;
1868
+ nullsNotDistinct?: boolean | undefined;
1869
+ name: string;
1870
+ type: string;
1871
+ primaryKey: boolean;
1872
+ notNull: boolean;
1873
+ }>;
1874
+ indexes: Record<string, {
1875
+ name: string;
1876
+ columns: string[];
1877
+ isUnique: boolean;
1878
+ }>;
1879
+ foreignKeys: Record<string, {
1880
+ onUpdate?: string | undefined;
1881
+ onDelete?: string | undefined;
1882
+ name: string;
1883
+ tableFrom: string;
1884
+ columnsFrom: string[];
1885
+ tableTo: string;
1886
+ columnsTo: string[];
1887
+ }>;
1888
+ schema: string;
1889
+ compositePrimaryKeys: Record<string, {
1890
+ name: string;
1891
+ columns: string[];
1892
+ }>;
1893
+ uniqueConstraints: Record<string, {
1894
+ name: string;
1895
+ columns: string[];
1896
+ nullsNotDistinct: boolean;
1897
+ }>;
1898
+ }>;
1899
+ schemas: Record<string, string>;
1900
+ _meta: {
1901
+ columns: Record<string, string>;
1902
+ tables: Record<string, string>;
1903
+ schemas: Record<string, string>;
1904
+ };
1905
+ enums: Record<string, {
1906
+ name: string;
1907
+ values: Record<string, string>;
1908
+ }>;
1909
+ }, {
1910
+ internal?: {
1911
+ tables: Record<string, {
1912
+ columns: Record<string, {
1913
+ isArray?: boolean | undefined;
1914
+ dimensions?: number | undefined;
1915
+ rawType?: string | undefined;
1916
+ } | undefined>;
1917
+ } | undefined>;
1918
+ } | undefined;
1919
+ version: "5";
1920
+ dialect: "pg";
1921
+ tables: Record<string, {
1922
+ uniqueConstraints?: Record<string, {
1923
+ name: string;
1924
+ columns: string[];
1925
+ nullsNotDistinct: boolean;
1926
+ }> | undefined;
1927
+ name: string;
1928
+ columns: Record<string, {
1929
+ isUnique?: any;
1930
+ default?: any;
1931
+ uniqueName?: string | undefined;
1932
+ nullsNotDistinct?: boolean | undefined;
1933
+ name: string;
1934
+ type: string;
1935
+ primaryKey: boolean;
1936
+ notNull: boolean;
1937
+ }>;
1938
+ indexes: Record<string, {
1939
+ name: string;
1940
+ columns: string[];
1941
+ isUnique: boolean;
1942
+ }>;
1943
+ foreignKeys: Record<string, {
1944
+ onUpdate?: string | undefined;
1945
+ onDelete?: string | undefined;
1946
+ name: string;
1947
+ tableFrom: string;
1948
+ columnsFrom: string[];
1949
+ tableTo: string;
1950
+ columnsTo: string[];
1951
+ }>;
1952
+ schema: string;
1953
+ compositePrimaryKeys: Record<string, {
1954
+ name: string;
1955
+ columns: string[];
1956
+ }>;
1957
+ }>;
1958
+ schemas: Record<string, string>;
1959
+ _meta: {
1960
+ columns: Record<string, string>;
1961
+ tables: Record<string, string>;
1962
+ schemas: Record<string, string>;
1963
+ };
1964
+ enums: Record<string, {
1965
+ name: string;
1966
+ values: Record<string, string>;
1967
+ }>;
1968
+ }>;
1969
+ export declare const pgSchemaSquashedV4: import("zod").ZodObject<{
1970
+ version: import("zod").ZodLiteral<"4">;
1971
+ dialect: import("zod").ZodEnum<["pg"]>;
1972
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1973
+ name: import("zod").ZodString;
1974
+ schema: import("zod").ZodString;
1975
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1976
+ name: import("zod").ZodString;
1977
+ type: import("zod").ZodString;
1978
+ primaryKey: import("zod").ZodBoolean;
1979
+ notNull: import("zod").ZodBoolean;
1980
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
1981
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
1982
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
1983
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
1984
+ }, "strict", import("zod").ZodTypeAny, {
1985
+ isUnique?: any;
1986
+ default?: any;
1987
+ uniqueName?: string | undefined;
1988
+ nullsNotDistinct?: boolean | undefined;
1989
+ name: string;
1990
+ type: string;
1991
+ primaryKey: boolean;
1992
+ notNull: boolean;
1993
+ }, {
1994
+ isUnique?: any;
1995
+ default?: any;
1996
+ uniqueName?: string | undefined;
1997
+ nullsNotDistinct?: boolean | undefined;
1998
+ name: string;
1999
+ type: string;
2000
+ primaryKey: boolean;
2001
+ notNull: boolean;
2002
+ }>>;
2003
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2004
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2005
+ }, "strict", import("zod").ZodTypeAny, {
2006
+ name: string;
2007
+ columns: Record<string, {
2008
+ isUnique?: any;
2009
+ default?: any;
2010
+ uniqueName?: string | undefined;
2011
+ nullsNotDistinct?: boolean | undefined;
2012
+ name: string;
2013
+ type: string;
2014
+ primaryKey: boolean;
2015
+ notNull: boolean;
2016
+ }>;
2017
+ indexes: Record<string, string>;
2018
+ foreignKeys: Record<string, string>;
2019
+ schema: string;
2020
+ }, {
2021
+ name: string;
2022
+ columns: Record<string, {
2023
+ isUnique?: any;
2024
+ default?: any;
2025
+ uniqueName?: string | undefined;
2026
+ nullsNotDistinct?: boolean | undefined;
2027
+ name: string;
2028
+ type: string;
2029
+ primaryKey: boolean;
2030
+ notNull: boolean;
2031
+ }>;
2032
+ indexes: Record<string, string>;
2033
+ foreignKeys: Record<string, string>;
2034
+ schema: string;
2035
+ }>>;
2036
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2037
+ name: import("zod").ZodString;
2038
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2039
+ }, "strict", import("zod").ZodTypeAny, {
2040
+ name: string;
2041
+ values: Record<string, string>;
2042
+ }, {
2043
+ name: string;
2044
+ values: Record<string, string>;
2045
+ }>>;
2046
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2047
+ }, "strict", import("zod").ZodTypeAny, {
2048
+ version: "4";
2049
+ dialect: "pg";
2050
+ tables: Record<string, {
2051
+ name: string;
2052
+ columns: Record<string, {
2053
+ isUnique?: any;
2054
+ default?: any;
2055
+ uniqueName?: string | undefined;
2056
+ nullsNotDistinct?: boolean | undefined;
2057
+ name: string;
2058
+ type: string;
2059
+ primaryKey: boolean;
2060
+ notNull: boolean;
2061
+ }>;
2062
+ indexes: Record<string, string>;
2063
+ foreignKeys: Record<string, string>;
2064
+ schema: string;
2065
+ }>;
2066
+ schemas: Record<string, string>;
2067
+ enums: Record<string, {
2068
+ name: string;
2069
+ values: Record<string, string>;
2070
+ }>;
2071
+ }, {
2072
+ version: "4";
2073
+ dialect: "pg";
2074
+ tables: Record<string, {
2075
+ name: string;
2076
+ columns: Record<string, {
2077
+ isUnique?: any;
2078
+ default?: any;
2079
+ uniqueName?: string | undefined;
2080
+ nullsNotDistinct?: boolean | undefined;
2081
+ name: string;
2082
+ type: string;
2083
+ primaryKey: boolean;
2084
+ notNull: boolean;
2085
+ }>;
2086
+ indexes: Record<string, string>;
2087
+ foreignKeys: Record<string, string>;
2088
+ schema: string;
2089
+ }>;
2090
+ schemas: Record<string, string>;
2091
+ enums: Record<string, {
2092
+ name: string;
2093
+ values: Record<string, string>;
2094
+ }>;
2095
+ }>;
2096
+ export declare const pgSchemaSquashed: import("zod").ZodObject<{
2097
+ version: import("zod").ZodLiteral<"5">;
2098
+ dialect: import("zod").ZodEnum<["pg"]>;
2099
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2100
+ name: import("zod").ZodString;
2101
+ schema: import("zod").ZodString;
2102
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2103
+ name: import("zod").ZodString;
2104
+ type: import("zod").ZodString;
2105
+ primaryKey: import("zod").ZodBoolean;
2106
+ notNull: import("zod").ZodBoolean;
2107
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
2108
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
2109
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
2110
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
2111
+ }, "strict", import("zod").ZodTypeAny, {
2112
+ isUnique?: any;
2113
+ default?: any;
2114
+ uniqueName?: string | undefined;
2115
+ nullsNotDistinct?: boolean | undefined;
2116
+ name: string;
2117
+ type: string;
2118
+ primaryKey: boolean;
2119
+ notNull: boolean;
2120
+ }, {
2121
+ isUnique?: any;
2122
+ default?: any;
2123
+ uniqueName?: string | undefined;
2124
+ nullsNotDistinct?: boolean | undefined;
2125
+ name: string;
2126
+ type: string;
2127
+ primaryKey: boolean;
2128
+ notNull: boolean;
2129
+ }>>;
2130
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2131
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2132
+ compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2133
+ uniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2134
+ }, "strict", import("zod").ZodTypeAny, {
2135
+ name: string;
2136
+ columns: Record<string, {
2137
+ isUnique?: any;
2138
+ default?: any;
2139
+ uniqueName?: string | undefined;
2140
+ nullsNotDistinct?: boolean | undefined;
2141
+ name: string;
2142
+ type: string;
2143
+ primaryKey: boolean;
2144
+ notNull: boolean;
2145
+ }>;
2146
+ indexes: Record<string, string>;
2147
+ foreignKeys: Record<string, string>;
2148
+ schema: string;
2149
+ compositePrimaryKeys: Record<string, string>;
2150
+ uniqueConstraints: Record<string, string>;
2151
+ }, {
2152
+ name: string;
2153
+ columns: Record<string, {
2154
+ isUnique?: any;
2155
+ default?: any;
2156
+ uniqueName?: string | undefined;
2157
+ nullsNotDistinct?: boolean | undefined;
2158
+ name: string;
2159
+ type: string;
2160
+ primaryKey: boolean;
2161
+ notNull: boolean;
2162
+ }>;
2163
+ indexes: Record<string, string>;
2164
+ foreignKeys: Record<string, string>;
2165
+ schema: string;
2166
+ compositePrimaryKeys: Record<string, string>;
2167
+ uniqueConstraints: Record<string, string>;
2168
+ }>>;
2169
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2170
+ name: import("zod").ZodString;
2171
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2172
+ }, "strict", import("zod").ZodTypeAny, {
2173
+ name: string;
2174
+ values: Record<string, string>;
2175
+ }, {
2176
+ name: string;
2177
+ values: Record<string, string>;
2178
+ }>>;
2179
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2180
+ }, "strict", import("zod").ZodTypeAny, {
2181
+ version: "5";
2182
+ dialect: "pg";
2183
+ tables: Record<string, {
2184
+ name: string;
2185
+ columns: Record<string, {
2186
+ isUnique?: any;
2187
+ default?: any;
2188
+ uniqueName?: string | undefined;
2189
+ nullsNotDistinct?: boolean | undefined;
2190
+ name: string;
2191
+ type: string;
2192
+ primaryKey: boolean;
2193
+ notNull: boolean;
2194
+ }>;
2195
+ indexes: Record<string, string>;
2196
+ foreignKeys: Record<string, string>;
2197
+ schema: string;
2198
+ compositePrimaryKeys: Record<string, string>;
2199
+ uniqueConstraints: Record<string, string>;
2200
+ }>;
2201
+ schemas: Record<string, string>;
2202
+ enums: Record<string, {
2203
+ name: string;
2204
+ values: Record<string, string>;
2205
+ }>;
2206
+ }, {
2207
+ version: "5";
2208
+ dialect: "pg";
2209
+ tables: Record<string, {
2210
+ name: string;
2211
+ columns: Record<string, {
2212
+ isUnique?: any;
2213
+ default?: any;
2214
+ uniqueName?: string | undefined;
2215
+ nullsNotDistinct?: boolean | undefined;
2216
+ name: string;
2217
+ type: string;
2218
+ primaryKey: boolean;
2219
+ notNull: boolean;
2220
+ }>;
2221
+ indexes: Record<string, string>;
2222
+ foreignKeys: Record<string, string>;
2223
+ schema: string;
2224
+ compositePrimaryKeys: Record<string, string>;
2225
+ uniqueConstraints: Record<string, string>;
2226
+ }>;
2227
+ schemas: Record<string, string>;
2228
+ enums: Record<string, {
2229
+ name: string;
2230
+ values: Record<string, string>;
2231
+ }>;
2232
+ }>;
2233
+ export declare const pgSchemaV3: import("zod").ZodObject<import("zod").extendShape<{
2234
+ version: import("zod").ZodLiteral<"3">;
2235
+ dialect: import("zod").ZodLiteral<"pg">;
2236
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2237
+ name: import("zod").ZodString;
2238
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2239
+ name: import("zod").ZodString;
2240
+ type: import("zod").ZodString;
2241
+ primaryKey: import("zod").ZodBoolean;
2242
+ notNull: import("zod").ZodBoolean;
2243
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
2244
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
2245
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
2246
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
2247
+ }, "strict", import("zod").ZodTypeAny, {
2248
+ isUnique?: any;
2249
+ default?: any;
2250
+ uniqueName?: string | undefined;
2251
+ nullsNotDistinct?: boolean | undefined;
2252
+ name: string;
2253
+ type: string;
2254
+ primaryKey: boolean;
2255
+ notNull: boolean;
2256
+ }, {
2257
+ isUnique?: any;
2258
+ default?: any;
2259
+ uniqueName?: string | undefined;
2260
+ nullsNotDistinct?: boolean | undefined;
2261
+ name: string;
2262
+ type: string;
2263
+ primaryKey: boolean;
2264
+ notNull: boolean;
2265
+ }>>;
2266
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2267
+ name: import("zod").ZodString;
2268
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2269
+ isUnique: import("zod").ZodBoolean;
2270
+ }, "strict", import("zod").ZodTypeAny, {
2271
+ name: string;
2272
+ columns: string[];
2273
+ isUnique: boolean;
2274
+ }, {
2275
+ name: string;
2276
+ columns: string[];
2277
+ isUnique: boolean;
2278
+ }>>;
2279
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2280
+ name: import("zod").ZodString;
2281
+ tableFrom: import("zod").ZodString;
2282
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
2283
+ tableTo: import("zod").ZodString;
2284
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
2285
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
2286
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
2287
+ }, "strict", import("zod").ZodTypeAny, {
2288
+ onUpdate?: string | undefined;
2289
+ onDelete?: string | undefined;
2290
+ name: string;
2291
+ tableFrom: string;
2292
+ columnsFrom: string[];
2293
+ tableTo: string;
2294
+ columnsTo: string[];
2295
+ }, {
2296
+ onUpdate?: string | undefined;
2297
+ onDelete?: string | undefined;
2298
+ name: string;
2299
+ tableFrom: string;
2300
+ columnsFrom: string[];
2301
+ tableTo: string;
2302
+ columnsTo: string[];
2303
+ }>>;
2304
+ }, "strict", import("zod").ZodTypeAny, {
2305
+ name: string;
2306
+ columns: Record<string, {
2307
+ isUnique?: any;
2308
+ default?: any;
2309
+ uniqueName?: string | undefined;
2310
+ nullsNotDistinct?: boolean | undefined;
2311
+ name: string;
2312
+ type: string;
2313
+ primaryKey: boolean;
2314
+ notNull: boolean;
2315
+ }>;
2316
+ indexes: Record<string, {
2317
+ name: string;
2318
+ columns: string[];
2319
+ isUnique: boolean;
2320
+ }>;
2321
+ foreignKeys: Record<string, {
2322
+ onUpdate?: string | undefined;
2323
+ onDelete?: string | undefined;
2324
+ name: string;
2325
+ tableFrom: string;
2326
+ columnsFrom: string[];
2327
+ tableTo: string;
2328
+ columnsTo: string[];
2329
+ }>;
2330
+ }, {
2331
+ name: string;
2332
+ columns: Record<string, {
2333
+ isUnique?: any;
2334
+ default?: any;
2335
+ uniqueName?: string | undefined;
2336
+ nullsNotDistinct?: boolean | undefined;
2337
+ name: string;
2338
+ type: string;
2339
+ primaryKey: boolean;
2340
+ notNull: boolean;
2341
+ }>;
2342
+ indexes: Record<string, {
2343
+ name: string;
2344
+ columns: string[];
2345
+ isUnique: boolean;
2346
+ }>;
2347
+ foreignKeys: Record<string, {
2348
+ onUpdate?: string | undefined;
2349
+ onDelete?: string | undefined;
2350
+ name: string;
2351
+ tableFrom: string;
2352
+ columnsFrom: string[];
2353
+ tableTo: string;
2354
+ columnsTo: string[];
2355
+ }>;
2356
+ }>>;
2357
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2358
+ name: import("zod").ZodString;
2359
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2360
+ }, "strict", import("zod").ZodTypeAny, {
2361
+ name: string;
2362
+ values: Record<string, string>;
2363
+ }, {
2364
+ name: string;
2365
+ values: Record<string, string>;
2366
+ }>>;
2367
+ }, {
2368
+ id: import("zod").ZodString;
2369
+ prevId: import("zod").ZodString;
2370
+ }>, "strip", import("zod").ZodTypeAny, {
2371
+ id: string;
2372
+ prevId: string;
2373
+ version: "3";
2374
+ dialect: "pg";
2375
+ tables: Record<string, {
2376
+ name: string;
2377
+ columns: Record<string, {
2378
+ isUnique?: any;
2379
+ default?: any;
2380
+ uniqueName?: string | undefined;
2381
+ nullsNotDistinct?: boolean | undefined;
2382
+ name: string;
2383
+ type: string;
2384
+ primaryKey: boolean;
2385
+ notNull: boolean;
2386
+ }>;
2387
+ indexes: Record<string, {
2388
+ name: string;
2389
+ columns: string[];
2390
+ isUnique: boolean;
2391
+ }>;
2392
+ foreignKeys: Record<string, {
2393
+ onUpdate?: string | undefined;
2394
+ onDelete?: string | undefined;
2395
+ name: string;
2396
+ tableFrom: string;
2397
+ columnsFrom: string[];
2398
+ tableTo: string;
2399
+ columnsTo: string[];
2400
+ }>;
2401
+ }>;
2402
+ enums: Record<string, {
2403
+ name: string;
2404
+ values: Record<string, string>;
2405
+ }>;
2406
+ }, {
2407
+ id: string;
2408
+ prevId: string;
2409
+ version: "3";
2410
+ dialect: "pg";
2411
+ tables: Record<string, {
2412
+ name: string;
2413
+ columns: Record<string, {
2414
+ isUnique?: any;
2415
+ default?: any;
2416
+ uniqueName?: string | undefined;
2417
+ nullsNotDistinct?: boolean | undefined;
2418
+ name: string;
2419
+ type: string;
2420
+ primaryKey: boolean;
2421
+ notNull: boolean;
2422
+ }>;
2423
+ indexes: Record<string, {
2424
+ name: string;
2425
+ columns: string[];
2426
+ isUnique: boolean;
2427
+ }>;
2428
+ foreignKeys: Record<string, {
2429
+ onUpdate?: string | undefined;
2430
+ onDelete?: string | undefined;
2431
+ name: string;
2432
+ tableFrom: string;
2433
+ columnsFrom: string[];
2434
+ tableTo: string;
2435
+ columnsTo: string[];
2436
+ }>;
2437
+ }>;
2438
+ enums: Record<string, {
2439
+ name: string;
2440
+ values: Record<string, string>;
2441
+ }>;
2442
+ }>;
2443
+ export declare const pgSchemaV4: import("zod").ZodObject<import("zod").extendShape<{
2444
+ version: import("zod").ZodLiteral<"4">;
2445
+ dialect: import("zod").ZodLiteral<"pg">;
2446
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2447
+ name: import("zod").ZodString;
2448
+ schema: import("zod").ZodString;
2449
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2450
+ name: import("zod").ZodString;
2451
+ type: import("zod").ZodString;
2452
+ primaryKey: import("zod").ZodBoolean;
2453
+ notNull: import("zod").ZodBoolean;
2454
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
2455
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
2456
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
2457
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
2458
+ }, "strict", import("zod").ZodTypeAny, {
2459
+ isUnique?: any;
2460
+ default?: any;
2461
+ uniqueName?: string | undefined;
2462
+ nullsNotDistinct?: boolean | undefined;
2463
+ name: string;
2464
+ type: string;
2465
+ primaryKey: boolean;
2466
+ notNull: boolean;
2467
+ }, {
2468
+ isUnique?: any;
2469
+ default?: any;
2470
+ uniqueName?: string | undefined;
2471
+ nullsNotDistinct?: boolean | undefined;
2472
+ name: string;
2473
+ type: string;
2474
+ primaryKey: boolean;
2475
+ notNull: boolean;
2476
+ }>>;
2477
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2478
+ name: import("zod").ZodString;
2479
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2480
+ isUnique: import("zod").ZodBoolean;
2481
+ }, "strict", import("zod").ZodTypeAny, {
2482
+ name: string;
2483
+ columns: string[];
2484
+ isUnique: boolean;
2485
+ }, {
2486
+ name: string;
2487
+ columns: string[];
2488
+ isUnique: boolean;
2489
+ }>>;
2490
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2491
+ name: import("zod").ZodString;
2492
+ tableFrom: import("zod").ZodString;
2493
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
2494
+ tableTo: import("zod").ZodString;
2495
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
2496
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
2497
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
2498
+ }, "strict", import("zod").ZodTypeAny, {
2499
+ onUpdate?: string | undefined;
2500
+ onDelete?: string | undefined;
2501
+ name: string;
2502
+ tableFrom: string;
2503
+ columnsFrom: string[];
2504
+ tableTo: string;
2505
+ columnsTo: string[];
2506
+ }, {
2507
+ onUpdate?: string | undefined;
2508
+ onDelete?: string | undefined;
2509
+ name: string;
2510
+ tableFrom: string;
2511
+ columnsFrom: string[];
2512
+ tableTo: string;
2513
+ columnsTo: string[];
2514
+ }>>;
2515
+ }, "strict", import("zod").ZodTypeAny, {
2516
+ name: string;
2517
+ columns: Record<string, {
2518
+ isUnique?: any;
2519
+ default?: any;
2520
+ uniqueName?: string | undefined;
2521
+ nullsNotDistinct?: boolean | undefined;
2522
+ name: string;
2523
+ type: string;
2524
+ primaryKey: boolean;
2525
+ notNull: boolean;
2526
+ }>;
2527
+ indexes: Record<string, {
2528
+ name: string;
2529
+ columns: string[];
2530
+ isUnique: boolean;
2531
+ }>;
2532
+ foreignKeys: Record<string, {
2533
+ onUpdate?: string | undefined;
2534
+ onDelete?: string | undefined;
2535
+ name: string;
2536
+ tableFrom: string;
2537
+ columnsFrom: string[];
2538
+ tableTo: string;
2539
+ columnsTo: string[];
2540
+ }>;
2541
+ schema: string;
2542
+ }, {
2543
+ name: string;
2544
+ columns: Record<string, {
2545
+ isUnique?: any;
2546
+ default?: any;
2547
+ uniqueName?: string | undefined;
2548
+ nullsNotDistinct?: boolean | undefined;
2549
+ name: string;
2550
+ type: string;
2551
+ primaryKey: boolean;
2552
+ notNull: boolean;
2553
+ }>;
2554
+ indexes: Record<string, {
2555
+ name: string;
2556
+ columns: string[];
2557
+ isUnique: boolean;
2558
+ }>;
2559
+ foreignKeys: Record<string, {
2560
+ onUpdate?: string | undefined;
2561
+ onDelete?: string | undefined;
2562
+ name: string;
2563
+ tableFrom: string;
2564
+ columnsFrom: string[];
2565
+ tableTo: string;
2566
+ columnsTo: string[];
2567
+ }>;
2568
+ schema: string;
2569
+ }>>;
2570
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2571
+ name: import("zod").ZodString;
2572
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2573
+ }, "strict", import("zod").ZodTypeAny, {
2574
+ name: string;
2575
+ values: Record<string, string>;
2576
+ }, {
2577
+ name: string;
2578
+ values: Record<string, string>;
2579
+ }>>;
2580
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2581
+ }, {
2582
+ id: import("zod").ZodString;
2583
+ prevId: import("zod").ZodString;
2584
+ }>, "strip", import("zod").ZodTypeAny, {
2585
+ id: string;
2586
+ prevId: string;
2587
+ version: "4";
2588
+ dialect: "pg";
2589
+ tables: Record<string, {
2590
+ name: string;
2591
+ columns: Record<string, {
2592
+ isUnique?: any;
2593
+ default?: any;
2594
+ uniqueName?: string | undefined;
2595
+ nullsNotDistinct?: boolean | undefined;
2596
+ name: string;
2597
+ type: string;
2598
+ primaryKey: boolean;
2599
+ notNull: boolean;
2600
+ }>;
2601
+ indexes: Record<string, {
2602
+ name: string;
2603
+ columns: string[];
2604
+ isUnique: boolean;
2605
+ }>;
2606
+ foreignKeys: Record<string, {
2607
+ onUpdate?: string | undefined;
2608
+ onDelete?: string | undefined;
2609
+ name: string;
2610
+ tableFrom: string;
2611
+ columnsFrom: string[];
2612
+ tableTo: string;
2613
+ columnsTo: string[];
2614
+ }>;
2615
+ schema: string;
2616
+ }>;
2617
+ schemas: Record<string, string>;
2618
+ enums: Record<string, {
2619
+ name: string;
2620
+ values: Record<string, string>;
2621
+ }>;
2622
+ }, {
2623
+ id: string;
2624
+ prevId: string;
2625
+ version: "4";
2626
+ dialect: "pg";
2627
+ tables: Record<string, {
2628
+ name: string;
2629
+ columns: Record<string, {
2630
+ isUnique?: any;
2631
+ default?: any;
2632
+ uniqueName?: string | undefined;
2633
+ nullsNotDistinct?: boolean | undefined;
2634
+ name: string;
2635
+ type: string;
2636
+ primaryKey: boolean;
2637
+ notNull: boolean;
2638
+ }>;
2639
+ indexes: Record<string, {
2640
+ name: string;
2641
+ columns: string[];
2642
+ isUnique: boolean;
2643
+ }>;
2644
+ foreignKeys: Record<string, {
2645
+ onUpdate?: string | undefined;
2646
+ onDelete?: string | undefined;
2647
+ name: string;
2648
+ tableFrom: string;
2649
+ columnsFrom: string[];
2650
+ tableTo: string;
2651
+ columnsTo: string[];
2652
+ }>;
2653
+ schema: string;
2654
+ }>;
2655
+ schemas: Record<string, string>;
2656
+ enums: Record<string, {
2657
+ name: string;
2658
+ values: Record<string, string>;
2659
+ }>;
2660
+ }>;
2661
+ export declare const pgSchema: import("zod").ZodObject<import("zod").extendShape<{
2662
+ version: import("zod").ZodLiteral<"5">;
2663
+ dialect: import("zod").ZodLiteral<"pg">;
2664
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2665
+ name: import("zod").ZodString;
2666
+ schema: import("zod").ZodString;
2667
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2668
+ name: import("zod").ZodString;
2669
+ type: import("zod").ZodString;
2670
+ primaryKey: import("zod").ZodBoolean;
2671
+ notNull: import("zod").ZodBoolean;
2672
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
2673
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
2674
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
2675
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
2676
+ }, "strict", import("zod").ZodTypeAny, {
2677
+ isUnique?: any;
2678
+ default?: any;
2679
+ uniqueName?: string | undefined;
2680
+ nullsNotDistinct?: boolean | undefined;
2681
+ name: string;
2682
+ type: string;
2683
+ primaryKey: boolean;
2684
+ notNull: boolean;
2685
+ }, {
2686
+ isUnique?: any;
2687
+ default?: any;
2688
+ uniqueName?: string | undefined;
2689
+ nullsNotDistinct?: boolean | undefined;
2690
+ name: string;
2691
+ type: string;
2692
+ primaryKey: boolean;
2693
+ notNull: boolean;
2694
+ }>>;
2695
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2696
+ name: import("zod").ZodString;
2697
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2698
+ isUnique: import("zod").ZodBoolean;
2699
+ }, "strict", import("zod").ZodTypeAny, {
2700
+ name: string;
2701
+ columns: string[];
2702
+ isUnique: boolean;
2703
+ }, {
2704
+ name: string;
2705
+ columns: string[];
2706
+ isUnique: boolean;
2707
+ }>>;
2708
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2709
+ name: import("zod").ZodString;
2710
+ tableFrom: import("zod").ZodString;
2711
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
2712
+ tableTo: import("zod").ZodString;
2713
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
2714
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
2715
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
2716
+ }, "strict", import("zod").ZodTypeAny, {
2717
+ onUpdate?: string | undefined;
2718
+ onDelete?: string | undefined;
2719
+ name: string;
2720
+ tableFrom: string;
2721
+ columnsFrom: string[];
2722
+ tableTo: string;
2723
+ columnsTo: string[];
2724
+ }, {
2725
+ onUpdate?: string | undefined;
2726
+ onDelete?: string | undefined;
2727
+ name: string;
2728
+ tableFrom: string;
2729
+ columnsFrom: string[];
2730
+ tableTo: string;
2731
+ columnsTo: string[];
2732
+ }>>;
2733
+ compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2734
+ name: import("zod").ZodString;
2735
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2736
+ }, "strict", import("zod").ZodTypeAny, {
2737
+ name: string;
2738
+ columns: string[];
2739
+ }, {
2740
+ name: string;
2741
+ columns: string[];
2742
+ }>>;
2743
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2744
+ name: import("zod").ZodString;
2745
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2746
+ nullsNotDistinct: import("zod").ZodBoolean;
2747
+ }, "strict", import("zod").ZodTypeAny, {
2748
+ name: string;
2749
+ columns: string[];
2750
+ nullsNotDistinct: boolean;
2751
+ }, {
2752
+ name: string;
2753
+ columns: string[];
2754
+ nullsNotDistinct: boolean;
2755
+ }>>>;
2756
+ }, "strict", import("zod").ZodTypeAny, {
2757
+ name: string;
2758
+ columns: Record<string, {
2759
+ isUnique?: any;
2760
+ default?: any;
2761
+ uniqueName?: string | undefined;
2762
+ nullsNotDistinct?: boolean | undefined;
2763
+ name: string;
2764
+ type: string;
2765
+ primaryKey: boolean;
2766
+ notNull: boolean;
2767
+ }>;
2768
+ indexes: Record<string, {
2769
+ name: string;
2770
+ columns: string[];
2771
+ isUnique: boolean;
2772
+ }>;
2773
+ foreignKeys: Record<string, {
2774
+ onUpdate?: string | undefined;
2775
+ onDelete?: string | undefined;
2776
+ name: string;
2777
+ tableFrom: string;
2778
+ columnsFrom: string[];
2779
+ tableTo: string;
2780
+ columnsTo: string[];
2781
+ }>;
2782
+ schema: string;
2783
+ compositePrimaryKeys: Record<string, {
2784
+ name: string;
2785
+ columns: string[];
2786
+ }>;
2787
+ uniqueConstraints: Record<string, {
2788
+ name: string;
2789
+ columns: string[];
2790
+ nullsNotDistinct: boolean;
2791
+ }>;
2792
+ }, {
2793
+ uniqueConstraints?: Record<string, {
2794
+ name: string;
2795
+ columns: string[];
2796
+ nullsNotDistinct: boolean;
2797
+ }> | undefined;
2798
+ name: string;
2799
+ columns: Record<string, {
2800
+ isUnique?: any;
2801
+ default?: any;
2802
+ uniqueName?: string | undefined;
2803
+ nullsNotDistinct?: boolean | undefined;
2804
+ name: string;
2805
+ type: string;
2806
+ primaryKey: boolean;
2807
+ notNull: boolean;
2808
+ }>;
2809
+ indexes: Record<string, {
2810
+ name: string;
2811
+ columns: string[];
2812
+ isUnique: boolean;
2813
+ }>;
2814
+ foreignKeys: Record<string, {
2815
+ onUpdate?: string | undefined;
2816
+ onDelete?: string | undefined;
2817
+ name: string;
2818
+ tableFrom: string;
2819
+ columnsFrom: string[];
2820
+ tableTo: string;
2821
+ columnsTo: string[];
2822
+ }>;
2823
+ schema: string;
2824
+ compositePrimaryKeys: Record<string, {
2825
+ name: string;
2826
+ columns: string[];
2827
+ }>;
2828
+ }>>;
2829
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2830
+ name: import("zod").ZodString;
2831
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2832
+ }, "strict", import("zod").ZodTypeAny, {
2833
+ name: string;
2834
+ values: Record<string, string>;
2835
+ }, {
2836
+ name: string;
2837
+ values: Record<string, string>;
2838
+ }>>;
2839
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2840
+ _meta: import("zod").ZodObject<{
2841
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2842
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2843
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2844
+ }, "strip", import("zod").ZodTypeAny, {
2845
+ columns: Record<string, string>;
2846
+ tables: Record<string, string>;
2847
+ schemas: Record<string, string>;
2848
+ }, {
2849
+ columns: Record<string, string>;
2850
+ tables: Record<string, string>;
2851
+ schemas: Record<string, string>;
2852
+ }>;
2853
+ internal: import("zod").ZodOptional<import("zod").ZodObject<{
2854
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
2855
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
2856
+ isArray: import("zod").ZodOptional<import("zod").ZodBoolean>;
2857
+ dimensions: import("zod").ZodOptional<import("zod").ZodNumber>;
2858
+ rawType: import("zod").ZodOptional<import("zod").ZodString>;
2859
+ }, "strip", import("zod").ZodTypeAny, {
2860
+ isArray?: boolean | undefined;
2861
+ dimensions?: number | undefined;
2862
+ rawType?: string | undefined;
2863
+ }, {
2864
+ isArray?: boolean | undefined;
2865
+ dimensions?: number | undefined;
2866
+ rawType?: string | undefined;
2867
+ }>>>;
2868
+ }, "strip", import("zod").ZodTypeAny, {
2869
+ columns: Record<string, {
2870
+ isArray?: boolean | undefined;
2871
+ dimensions?: number | undefined;
2872
+ rawType?: string | undefined;
2873
+ } | undefined>;
2874
+ }, {
2875
+ columns: Record<string, {
2876
+ isArray?: boolean | undefined;
2877
+ dimensions?: number | undefined;
2878
+ rawType?: string | undefined;
2879
+ } | undefined>;
2880
+ }>>>;
2881
+ }, "strip", import("zod").ZodTypeAny, {
2882
+ tables: Record<string, {
2883
+ columns: Record<string, {
2884
+ isArray?: boolean | undefined;
2885
+ dimensions?: number | undefined;
2886
+ rawType?: string | undefined;
2887
+ } | undefined>;
2888
+ } | undefined>;
2889
+ }, {
2890
+ tables: Record<string, {
2891
+ columns: Record<string, {
2892
+ isArray?: boolean | undefined;
2893
+ dimensions?: number | undefined;
2894
+ rawType?: string | undefined;
2895
+ } | undefined>;
2896
+ } | undefined>;
2897
+ }>>;
2898
+ }, {
2899
+ id: import("zod").ZodString;
2900
+ prevId: import("zod").ZodString;
2901
+ }>, "strip", import("zod").ZodTypeAny, {
2902
+ internal?: {
2903
+ tables: Record<string, {
2904
+ columns: Record<string, {
2905
+ isArray?: boolean | undefined;
2906
+ dimensions?: number | undefined;
2907
+ rawType?: string | undefined;
2908
+ } | undefined>;
2909
+ } | undefined>;
2910
+ } | undefined;
2911
+ id: string;
2912
+ prevId: string;
2913
+ version: "5";
2914
+ dialect: "pg";
2915
+ tables: Record<string, {
2916
+ name: string;
2917
+ columns: Record<string, {
2918
+ isUnique?: any;
2919
+ default?: any;
2920
+ uniqueName?: string | undefined;
2921
+ nullsNotDistinct?: boolean | undefined;
2922
+ name: string;
2923
+ type: string;
2924
+ primaryKey: boolean;
2925
+ notNull: boolean;
2926
+ }>;
2927
+ indexes: Record<string, {
2928
+ name: string;
2929
+ columns: string[];
2930
+ isUnique: boolean;
2931
+ }>;
2932
+ foreignKeys: Record<string, {
2933
+ onUpdate?: string | undefined;
2934
+ onDelete?: string | undefined;
2935
+ name: string;
2936
+ tableFrom: string;
2937
+ columnsFrom: string[];
2938
+ tableTo: string;
2939
+ columnsTo: string[];
2940
+ }>;
2941
+ schema: string;
2942
+ compositePrimaryKeys: Record<string, {
2943
+ name: string;
2944
+ columns: string[];
2945
+ }>;
2946
+ uniqueConstraints: Record<string, {
2947
+ name: string;
2948
+ columns: string[];
2949
+ nullsNotDistinct: boolean;
2950
+ }>;
2951
+ }>;
2952
+ schemas: Record<string, string>;
2953
+ _meta: {
2954
+ columns: Record<string, string>;
2955
+ tables: Record<string, string>;
2956
+ schemas: Record<string, string>;
2957
+ };
2958
+ enums: Record<string, {
2959
+ name: string;
2960
+ values: Record<string, string>;
2961
+ }>;
2962
+ }, {
2963
+ internal?: {
2964
+ tables: Record<string, {
2965
+ columns: Record<string, {
2966
+ isArray?: boolean | undefined;
2967
+ dimensions?: number | undefined;
2968
+ rawType?: string | undefined;
2969
+ } | undefined>;
2970
+ } | undefined>;
2971
+ } | undefined;
2972
+ id: string;
2973
+ prevId: string;
2974
+ version: "5";
2975
+ dialect: "pg";
2976
+ tables: Record<string, {
2977
+ uniqueConstraints?: Record<string, {
2978
+ name: string;
2979
+ columns: string[];
2980
+ nullsNotDistinct: boolean;
2981
+ }> | undefined;
2982
+ name: string;
2983
+ columns: Record<string, {
2984
+ isUnique?: any;
2985
+ default?: any;
2986
+ uniqueName?: string | undefined;
2987
+ nullsNotDistinct?: boolean | undefined;
2988
+ name: string;
2989
+ type: string;
2990
+ primaryKey: boolean;
2991
+ notNull: boolean;
2992
+ }>;
2993
+ indexes: Record<string, {
2994
+ name: string;
2995
+ columns: string[];
2996
+ isUnique: boolean;
2997
+ }>;
2998
+ foreignKeys: Record<string, {
2999
+ onUpdate?: string | undefined;
3000
+ onDelete?: string | undefined;
3001
+ name: string;
3002
+ tableFrom: string;
3003
+ columnsFrom: string[];
3004
+ tableTo: string;
3005
+ columnsTo: string[];
3006
+ }>;
3007
+ schema: string;
3008
+ compositePrimaryKeys: Record<string, {
3009
+ name: string;
3010
+ columns: string[];
3011
+ }>;
3012
+ }>;
3013
+ schemas: Record<string, string>;
3014
+ _meta: {
3015
+ columns: Record<string, string>;
3016
+ tables: Record<string, string>;
3017
+ schemas: Record<string, string>;
3018
+ };
3019
+ enums: Record<string, {
3020
+ name: string;
3021
+ values: Record<string, string>;
3022
+ }>;
3023
+ }>;
3024
+ export type Enum = TypeOf<typeof enumSchema>;
3025
+ export type Column = TypeOf<typeof column>;
3026
+ export type TableV3 = TypeOf<typeof tableV3>;
3027
+ export type TableV4 = TypeOf<typeof tableV4>;
3028
+ export type Table = TypeOf<typeof table>;
3029
+ export type PgSchema = TypeOf<typeof pgSchema>;
3030
+ export type PgSchemaInternal = TypeOf<typeof pgSchemaInternal>;
3031
+ export type PgSchemaExternal = TypeOf<typeof pgSchemaExternal>;
3032
+ export type PgSchemaSquashed = TypeOf<typeof pgSchemaSquashed>;
3033
+ export type PgSchemaSquashedV4 = TypeOf<typeof pgSchemaSquashedV4>;
3034
+ export type Index = TypeOf<typeof index>;
3035
+ export type ForeignKey = TypeOf<typeof fk>;
3036
+ export type PrimaryKey = TypeOf<typeof compositePK>;
3037
+ export type UniqueConstraint = TypeOf<typeof uniqueConstraint>;
3038
+ export type PgKitInternals = TypeOf<typeof kitInternals>;
3039
+ export type PgSchemaV1 = TypeOf<typeof pgSchemaV1>;
3040
+ export type PgSchemaV2 = TypeOf<typeof pgSchemaV2>;
3041
+ export type PgSchemaV3 = TypeOf<typeof pgSchemaV3>;
3042
+ export type PgSchemaV4 = TypeOf<typeof pgSchemaV4>;
3043
+ export declare const backwardCompatiblePgSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
3044
+ version: import("zod").ZodLiteral<"1">;
3045
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3046
+ name: import("zod").ZodString;
3047
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3048
+ name: import("zod").ZodString;
3049
+ type: import("zod").ZodString;
3050
+ primaryKey: import("zod").ZodBoolean;
3051
+ notNull: import("zod").ZodBoolean;
3052
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
3053
+ references: import("zod").ZodOptional<import("zod").ZodObject<{
3054
+ foreignKeyName: import("zod").ZodString;
3055
+ table: import("zod").ZodString;
3056
+ column: import("zod").ZodString;
3057
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
3058
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
3059
+ }, "strict", import("zod").ZodTypeAny, {
3060
+ onUpdate?: string | undefined;
3061
+ onDelete?: string | undefined;
3062
+ column: string;
3063
+ foreignKeyName: string;
3064
+ table: string;
3065
+ }, {
3066
+ onUpdate?: string | undefined;
3067
+ onDelete?: string | undefined;
3068
+ column: string;
3069
+ foreignKeyName: string;
3070
+ table: string;
3071
+ }>>;
3072
+ }, "strict", import("zod").ZodTypeAny, {
3073
+ default?: any;
3074
+ references?: {
3075
+ onUpdate?: string | undefined;
3076
+ onDelete?: string | undefined;
3077
+ column: string;
3078
+ foreignKeyName: string;
3079
+ table: string;
3080
+ } | undefined;
3081
+ name: string;
3082
+ type: string;
3083
+ primaryKey: boolean;
3084
+ notNull: boolean;
3085
+ }, {
3086
+ default?: any;
3087
+ references?: {
3088
+ onUpdate?: string | undefined;
3089
+ onDelete?: string | undefined;
3090
+ column: string;
3091
+ foreignKeyName: string;
3092
+ table: string;
3093
+ } | undefined;
3094
+ name: string;
3095
+ type: string;
3096
+ primaryKey: boolean;
3097
+ notNull: boolean;
3098
+ }>>;
3099
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3100
+ name: import("zod").ZodString;
3101
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3102
+ name: import("zod").ZodString;
3103
+ }, "strip", import("zod").ZodTypeAny, {
3104
+ name: string;
3105
+ }, {
3106
+ name: string;
3107
+ }>>;
3108
+ isUnique: import("zod").ZodBoolean;
3109
+ }, "strict", import("zod").ZodTypeAny, {
3110
+ name: string;
3111
+ columns: Record<string, {
3112
+ name: string;
3113
+ }>;
3114
+ isUnique: boolean;
3115
+ }, {
3116
+ name: string;
3117
+ columns: Record<string, {
3118
+ name: string;
3119
+ }>;
3120
+ isUnique: boolean;
3121
+ }>>;
3122
+ }, "strict", import("zod").ZodTypeAny, {
3123
+ name: string;
3124
+ columns: Record<string, {
3125
+ default?: any;
3126
+ references?: {
3127
+ onUpdate?: string | undefined;
3128
+ onDelete?: string | undefined;
3129
+ column: string;
3130
+ foreignKeyName: string;
3131
+ table: string;
3132
+ } | undefined;
3133
+ name: string;
3134
+ type: string;
3135
+ primaryKey: boolean;
3136
+ notNull: boolean;
3137
+ }>;
3138
+ indexes: Record<string, {
3139
+ name: string;
3140
+ columns: Record<string, {
3141
+ name: string;
3142
+ }>;
3143
+ isUnique: boolean;
3144
+ }>;
3145
+ }, {
3146
+ name: string;
3147
+ columns: Record<string, {
3148
+ default?: any;
3149
+ references?: {
3150
+ onUpdate?: string | undefined;
3151
+ onDelete?: string | undefined;
3152
+ column: string;
3153
+ foreignKeyName: string;
3154
+ table: string;
3155
+ } | undefined;
3156
+ name: string;
3157
+ type: string;
3158
+ primaryKey: boolean;
3159
+ notNull: boolean;
3160
+ }>;
3161
+ indexes: Record<string, {
3162
+ name: string;
3163
+ columns: Record<string, {
3164
+ name: string;
3165
+ }>;
3166
+ isUnique: boolean;
3167
+ }>;
3168
+ }>>;
3169
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3170
+ name: import("zod").ZodString;
3171
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3172
+ }, "strict", import("zod").ZodTypeAny, {
3173
+ name: string;
3174
+ values: Record<string, string>;
3175
+ }, {
3176
+ name: string;
3177
+ values: Record<string, string>;
3178
+ }>>;
3179
+ }, "strict", import("zod").ZodTypeAny, {
3180
+ version: "1";
3181
+ tables: Record<string, {
3182
+ name: string;
3183
+ columns: Record<string, {
3184
+ default?: any;
3185
+ references?: {
3186
+ onUpdate?: string | undefined;
3187
+ onDelete?: string | undefined;
3188
+ column: string;
3189
+ foreignKeyName: string;
3190
+ table: string;
3191
+ } | undefined;
3192
+ name: string;
3193
+ type: string;
3194
+ primaryKey: boolean;
3195
+ notNull: boolean;
3196
+ }>;
3197
+ indexes: Record<string, {
3198
+ name: string;
3199
+ columns: Record<string, {
3200
+ name: string;
3201
+ }>;
3202
+ isUnique: boolean;
3203
+ }>;
3204
+ }>;
3205
+ enums: Record<string, {
3206
+ name: string;
3207
+ values: Record<string, string>;
3208
+ }>;
3209
+ }, {
3210
+ version: "1";
3211
+ tables: Record<string, {
3212
+ name: string;
3213
+ columns: Record<string, {
3214
+ default?: any;
3215
+ references?: {
3216
+ onUpdate?: string | undefined;
3217
+ onDelete?: string | undefined;
3218
+ column: string;
3219
+ foreignKeyName: string;
3220
+ table: string;
3221
+ } | undefined;
3222
+ name: string;
3223
+ type: string;
3224
+ primaryKey: boolean;
3225
+ notNull: boolean;
3226
+ }>;
3227
+ indexes: Record<string, {
3228
+ name: string;
3229
+ columns: Record<string, {
3230
+ name: string;
3231
+ }>;
3232
+ isUnique: boolean;
3233
+ }>;
3234
+ }>;
3235
+ enums: Record<string, {
3236
+ name: string;
3237
+ values: Record<string, string>;
3238
+ }>;
3239
+ }>, import("zod").ZodObject<{
3240
+ version: import("zod").ZodLiteral<"2">;
3241
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3242
+ name: import("zod").ZodString;
3243
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3244
+ name: import("zod").ZodString;
3245
+ type: import("zod").ZodString;
3246
+ primaryKey: import("zod").ZodBoolean;
3247
+ notNull: import("zod").ZodBoolean;
3248
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
3249
+ references: import("zod").ZodOptional<import("zod").ZodString>;
3250
+ }, "strict", import("zod").ZodTypeAny, {
3251
+ default?: any;
3252
+ references?: string | undefined;
3253
+ name: string;
3254
+ type: string;
3255
+ primaryKey: boolean;
3256
+ notNull: boolean;
3257
+ }, {
3258
+ default?: any;
3259
+ references?: string | undefined;
3260
+ name: string;
3261
+ type: string;
3262
+ primaryKey: boolean;
3263
+ notNull: boolean;
3264
+ }>>;
3265
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3266
+ name: import("zod").ZodString;
3267
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3268
+ name: import("zod").ZodString;
3269
+ }, "strip", import("zod").ZodTypeAny, {
3270
+ name: string;
3271
+ }, {
3272
+ name: string;
3273
+ }>>;
3274
+ isUnique: import("zod").ZodBoolean;
3275
+ }, "strict", import("zod").ZodTypeAny, {
3276
+ name: string;
3277
+ columns: Record<string, {
3278
+ name: string;
3279
+ }>;
3280
+ isUnique: boolean;
3281
+ }, {
3282
+ name: string;
3283
+ columns: Record<string, {
3284
+ name: string;
3285
+ }>;
3286
+ isUnique: boolean;
3287
+ }>>;
3288
+ }, "strict", import("zod").ZodTypeAny, {
3289
+ name: string;
3290
+ columns: Record<string, {
3291
+ default?: any;
3292
+ references?: string | undefined;
3293
+ name: string;
3294
+ type: string;
3295
+ primaryKey: boolean;
3296
+ notNull: boolean;
3297
+ }>;
3298
+ indexes: Record<string, {
3299
+ name: string;
3300
+ columns: Record<string, {
3301
+ name: string;
3302
+ }>;
3303
+ isUnique: boolean;
3304
+ }>;
3305
+ }, {
3306
+ name: string;
3307
+ columns: Record<string, {
3308
+ default?: any;
3309
+ references?: string | undefined;
3310
+ name: string;
3311
+ type: string;
3312
+ primaryKey: boolean;
3313
+ notNull: boolean;
3314
+ }>;
3315
+ indexes: Record<string, {
3316
+ name: string;
3317
+ columns: Record<string, {
3318
+ name: string;
3319
+ }>;
3320
+ isUnique: boolean;
3321
+ }>;
3322
+ }>>;
3323
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3324
+ name: import("zod").ZodString;
3325
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3326
+ }, "strict", import("zod").ZodTypeAny, {
3327
+ name: string;
3328
+ values: Record<string, string>;
3329
+ }, {
3330
+ name: string;
3331
+ values: Record<string, string>;
3332
+ }>>;
3333
+ }, "strict", import("zod").ZodTypeAny, {
3334
+ version: "2";
3335
+ tables: Record<string, {
3336
+ name: string;
3337
+ columns: Record<string, {
3338
+ default?: any;
3339
+ references?: string | undefined;
3340
+ name: string;
3341
+ type: string;
3342
+ primaryKey: boolean;
3343
+ notNull: boolean;
3344
+ }>;
3345
+ indexes: Record<string, {
3346
+ name: string;
3347
+ columns: Record<string, {
3348
+ name: string;
3349
+ }>;
3350
+ isUnique: boolean;
3351
+ }>;
3352
+ }>;
3353
+ enums: Record<string, {
3354
+ name: string;
3355
+ values: Record<string, string>;
3356
+ }>;
3357
+ }, {
3358
+ version: "2";
3359
+ tables: Record<string, {
3360
+ name: string;
3361
+ columns: Record<string, {
3362
+ default?: any;
3363
+ references?: string | undefined;
3364
+ name: string;
3365
+ type: string;
3366
+ primaryKey: boolean;
3367
+ notNull: boolean;
3368
+ }>;
3369
+ indexes: Record<string, {
3370
+ name: string;
3371
+ columns: Record<string, {
3372
+ name: string;
3373
+ }>;
3374
+ isUnique: boolean;
3375
+ }>;
3376
+ }>;
3377
+ enums: Record<string, {
3378
+ name: string;
3379
+ values: Record<string, string>;
3380
+ }>;
3381
+ }>, import("zod").ZodObject<import("zod").extendShape<{
3382
+ version: import("zod").ZodLiteral<"3">;
3383
+ dialect: import("zod").ZodLiteral<"pg">;
3384
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3385
+ name: import("zod").ZodString;
3386
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3387
+ name: import("zod").ZodString;
3388
+ type: import("zod").ZodString;
3389
+ primaryKey: import("zod").ZodBoolean;
3390
+ notNull: import("zod").ZodBoolean;
3391
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
3392
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
3393
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
3394
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
3395
+ }, "strict", import("zod").ZodTypeAny, {
3396
+ isUnique?: any;
3397
+ default?: any;
3398
+ uniqueName?: string | undefined;
3399
+ nullsNotDistinct?: boolean | undefined;
3400
+ name: string;
3401
+ type: string;
3402
+ primaryKey: boolean;
3403
+ notNull: boolean;
3404
+ }, {
3405
+ isUnique?: any;
3406
+ default?: any;
3407
+ uniqueName?: string | undefined;
3408
+ nullsNotDistinct?: boolean | undefined;
3409
+ name: string;
3410
+ type: string;
3411
+ primaryKey: boolean;
3412
+ notNull: boolean;
3413
+ }>>;
3414
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3415
+ name: import("zod").ZodString;
3416
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3417
+ isUnique: import("zod").ZodBoolean;
3418
+ }, "strict", import("zod").ZodTypeAny, {
3419
+ name: string;
3420
+ columns: string[];
3421
+ isUnique: boolean;
3422
+ }, {
3423
+ name: string;
3424
+ columns: string[];
3425
+ isUnique: boolean;
3426
+ }>>;
3427
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3428
+ name: import("zod").ZodString;
3429
+ tableFrom: import("zod").ZodString;
3430
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
3431
+ tableTo: import("zod").ZodString;
3432
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
3433
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
3434
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
3435
+ }, "strict", import("zod").ZodTypeAny, {
3436
+ onUpdate?: string | undefined;
3437
+ onDelete?: string | undefined;
3438
+ name: string;
3439
+ tableFrom: string;
3440
+ columnsFrom: string[];
3441
+ tableTo: string;
3442
+ columnsTo: string[];
3443
+ }, {
3444
+ onUpdate?: string | undefined;
3445
+ onDelete?: string | undefined;
3446
+ name: string;
3447
+ tableFrom: string;
3448
+ columnsFrom: string[];
3449
+ tableTo: string;
3450
+ columnsTo: string[];
3451
+ }>>;
3452
+ }, "strict", import("zod").ZodTypeAny, {
3453
+ name: string;
3454
+ columns: Record<string, {
3455
+ isUnique?: any;
3456
+ default?: any;
3457
+ uniqueName?: string | undefined;
3458
+ nullsNotDistinct?: boolean | undefined;
3459
+ name: string;
3460
+ type: string;
3461
+ primaryKey: boolean;
3462
+ notNull: boolean;
3463
+ }>;
3464
+ indexes: Record<string, {
3465
+ name: string;
3466
+ columns: string[];
3467
+ isUnique: boolean;
3468
+ }>;
3469
+ foreignKeys: Record<string, {
3470
+ onUpdate?: string | undefined;
3471
+ onDelete?: string | undefined;
3472
+ name: string;
3473
+ tableFrom: string;
3474
+ columnsFrom: string[];
3475
+ tableTo: string;
3476
+ columnsTo: string[];
3477
+ }>;
3478
+ }, {
3479
+ name: string;
3480
+ columns: Record<string, {
3481
+ isUnique?: any;
3482
+ default?: any;
3483
+ uniqueName?: string | undefined;
3484
+ nullsNotDistinct?: boolean | undefined;
3485
+ name: string;
3486
+ type: string;
3487
+ primaryKey: boolean;
3488
+ notNull: boolean;
3489
+ }>;
3490
+ indexes: Record<string, {
3491
+ name: string;
3492
+ columns: string[];
3493
+ isUnique: boolean;
3494
+ }>;
3495
+ foreignKeys: Record<string, {
3496
+ onUpdate?: string | undefined;
3497
+ onDelete?: string | undefined;
3498
+ name: string;
3499
+ tableFrom: string;
3500
+ columnsFrom: string[];
3501
+ tableTo: string;
3502
+ columnsTo: string[];
3503
+ }>;
3504
+ }>>;
3505
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3506
+ name: import("zod").ZodString;
3507
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3508
+ }, "strict", import("zod").ZodTypeAny, {
3509
+ name: string;
3510
+ values: Record<string, string>;
3511
+ }, {
3512
+ name: string;
3513
+ values: Record<string, string>;
3514
+ }>>;
3515
+ }, {
3516
+ id: import("zod").ZodString;
3517
+ prevId: import("zod").ZodString;
3518
+ }>, "strip", import("zod").ZodTypeAny, {
3519
+ id: string;
3520
+ prevId: string;
3521
+ version: "3";
3522
+ dialect: "pg";
3523
+ tables: Record<string, {
3524
+ name: string;
3525
+ columns: Record<string, {
3526
+ isUnique?: any;
3527
+ default?: any;
3528
+ uniqueName?: string | undefined;
3529
+ nullsNotDistinct?: boolean | undefined;
3530
+ name: string;
3531
+ type: string;
3532
+ primaryKey: boolean;
3533
+ notNull: boolean;
3534
+ }>;
3535
+ indexes: Record<string, {
3536
+ name: string;
3537
+ columns: string[];
3538
+ isUnique: boolean;
3539
+ }>;
3540
+ foreignKeys: Record<string, {
3541
+ onUpdate?: string | undefined;
3542
+ onDelete?: string | undefined;
3543
+ name: string;
3544
+ tableFrom: string;
3545
+ columnsFrom: string[];
3546
+ tableTo: string;
3547
+ columnsTo: string[];
3548
+ }>;
3549
+ }>;
3550
+ enums: Record<string, {
3551
+ name: string;
3552
+ values: Record<string, string>;
3553
+ }>;
3554
+ }, {
3555
+ id: string;
3556
+ prevId: string;
3557
+ version: "3";
3558
+ dialect: "pg";
3559
+ tables: Record<string, {
3560
+ name: string;
3561
+ columns: Record<string, {
3562
+ isUnique?: any;
3563
+ default?: any;
3564
+ uniqueName?: string | undefined;
3565
+ nullsNotDistinct?: boolean | undefined;
3566
+ name: string;
3567
+ type: string;
3568
+ primaryKey: boolean;
3569
+ notNull: boolean;
3570
+ }>;
3571
+ indexes: Record<string, {
3572
+ name: string;
3573
+ columns: string[];
3574
+ isUnique: boolean;
3575
+ }>;
3576
+ foreignKeys: Record<string, {
3577
+ onUpdate?: string | undefined;
3578
+ onDelete?: string | undefined;
3579
+ name: string;
3580
+ tableFrom: string;
3581
+ columnsFrom: string[];
3582
+ tableTo: string;
3583
+ columnsTo: string[];
3584
+ }>;
3585
+ }>;
3586
+ enums: Record<string, {
3587
+ name: string;
3588
+ values: Record<string, string>;
3589
+ }>;
3590
+ }>, import("zod").ZodObject<import("zod").extendShape<{
3591
+ version: import("zod").ZodLiteral<"4">;
3592
+ dialect: import("zod").ZodLiteral<"pg">;
3593
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3594
+ name: import("zod").ZodString;
3595
+ schema: import("zod").ZodString;
3596
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3597
+ name: import("zod").ZodString;
3598
+ type: import("zod").ZodString;
3599
+ primaryKey: import("zod").ZodBoolean;
3600
+ notNull: import("zod").ZodBoolean;
3601
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
3602
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
3603
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
3604
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
3605
+ }, "strict", import("zod").ZodTypeAny, {
3606
+ isUnique?: any;
3607
+ default?: any;
3608
+ uniqueName?: string | undefined;
3609
+ nullsNotDistinct?: boolean | undefined;
3610
+ name: string;
3611
+ type: string;
3612
+ primaryKey: boolean;
3613
+ notNull: boolean;
3614
+ }, {
3615
+ isUnique?: any;
3616
+ default?: any;
3617
+ uniqueName?: string | undefined;
3618
+ nullsNotDistinct?: boolean | undefined;
3619
+ name: string;
3620
+ type: string;
3621
+ primaryKey: boolean;
3622
+ notNull: boolean;
3623
+ }>>;
3624
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3625
+ name: import("zod").ZodString;
3626
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3627
+ isUnique: import("zod").ZodBoolean;
3628
+ }, "strict", import("zod").ZodTypeAny, {
3629
+ name: string;
3630
+ columns: string[];
3631
+ isUnique: boolean;
3632
+ }, {
3633
+ name: string;
3634
+ columns: string[];
3635
+ isUnique: boolean;
3636
+ }>>;
3637
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3638
+ name: import("zod").ZodString;
3639
+ tableFrom: import("zod").ZodString;
3640
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
3641
+ tableTo: import("zod").ZodString;
3642
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
3643
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
3644
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
3645
+ }, "strict", import("zod").ZodTypeAny, {
3646
+ onUpdate?: string | undefined;
3647
+ onDelete?: string | undefined;
3648
+ name: string;
3649
+ tableFrom: string;
3650
+ columnsFrom: string[];
3651
+ tableTo: string;
3652
+ columnsTo: string[];
3653
+ }, {
3654
+ onUpdate?: string | undefined;
3655
+ onDelete?: string | undefined;
3656
+ name: string;
3657
+ tableFrom: string;
3658
+ columnsFrom: string[];
3659
+ tableTo: string;
3660
+ columnsTo: string[];
3661
+ }>>;
3662
+ }, "strict", import("zod").ZodTypeAny, {
3663
+ name: string;
3664
+ columns: Record<string, {
3665
+ isUnique?: any;
3666
+ default?: any;
3667
+ uniqueName?: string | undefined;
3668
+ nullsNotDistinct?: boolean | undefined;
3669
+ name: string;
3670
+ type: string;
3671
+ primaryKey: boolean;
3672
+ notNull: boolean;
3673
+ }>;
3674
+ indexes: Record<string, {
3675
+ name: string;
3676
+ columns: string[];
3677
+ isUnique: boolean;
3678
+ }>;
3679
+ foreignKeys: Record<string, {
3680
+ onUpdate?: string | undefined;
3681
+ onDelete?: string | undefined;
3682
+ name: string;
3683
+ tableFrom: string;
3684
+ columnsFrom: string[];
3685
+ tableTo: string;
3686
+ columnsTo: string[];
3687
+ }>;
3688
+ schema: string;
3689
+ }, {
3690
+ name: string;
3691
+ columns: Record<string, {
3692
+ isUnique?: any;
3693
+ default?: any;
3694
+ uniqueName?: string | undefined;
3695
+ nullsNotDistinct?: boolean | undefined;
3696
+ name: string;
3697
+ type: string;
3698
+ primaryKey: boolean;
3699
+ notNull: boolean;
3700
+ }>;
3701
+ indexes: Record<string, {
3702
+ name: string;
3703
+ columns: string[];
3704
+ isUnique: boolean;
3705
+ }>;
3706
+ foreignKeys: Record<string, {
3707
+ onUpdate?: string | undefined;
3708
+ onDelete?: string | undefined;
3709
+ name: string;
3710
+ tableFrom: string;
3711
+ columnsFrom: string[];
3712
+ tableTo: string;
3713
+ columnsTo: string[];
3714
+ }>;
3715
+ schema: string;
3716
+ }>>;
3717
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3718
+ name: import("zod").ZodString;
3719
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3720
+ }, "strict", import("zod").ZodTypeAny, {
3721
+ name: string;
3722
+ values: Record<string, string>;
3723
+ }, {
3724
+ name: string;
3725
+ values: Record<string, string>;
3726
+ }>>;
3727
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3728
+ }, {
3729
+ id: import("zod").ZodString;
3730
+ prevId: import("zod").ZodString;
3731
+ }>, "strip", import("zod").ZodTypeAny, {
3732
+ id: string;
3733
+ prevId: string;
3734
+ version: "4";
3735
+ dialect: "pg";
3736
+ tables: Record<string, {
3737
+ name: string;
3738
+ columns: Record<string, {
3739
+ isUnique?: any;
3740
+ default?: any;
3741
+ uniqueName?: string | undefined;
3742
+ nullsNotDistinct?: boolean | undefined;
3743
+ name: string;
3744
+ type: string;
3745
+ primaryKey: boolean;
3746
+ notNull: boolean;
3747
+ }>;
3748
+ indexes: Record<string, {
3749
+ name: string;
3750
+ columns: string[];
3751
+ isUnique: boolean;
3752
+ }>;
3753
+ foreignKeys: Record<string, {
3754
+ onUpdate?: string | undefined;
3755
+ onDelete?: string | undefined;
3756
+ name: string;
3757
+ tableFrom: string;
3758
+ columnsFrom: string[];
3759
+ tableTo: string;
3760
+ columnsTo: string[];
3761
+ }>;
3762
+ schema: string;
3763
+ }>;
3764
+ schemas: Record<string, string>;
3765
+ enums: Record<string, {
3766
+ name: string;
3767
+ values: Record<string, string>;
3768
+ }>;
3769
+ }, {
3770
+ id: string;
3771
+ prevId: string;
3772
+ version: "4";
3773
+ dialect: "pg";
3774
+ tables: Record<string, {
3775
+ name: string;
3776
+ columns: Record<string, {
3777
+ isUnique?: any;
3778
+ default?: any;
3779
+ uniqueName?: string | undefined;
3780
+ nullsNotDistinct?: boolean | undefined;
3781
+ name: string;
3782
+ type: string;
3783
+ primaryKey: boolean;
3784
+ notNull: boolean;
3785
+ }>;
3786
+ indexes: Record<string, {
3787
+ name: string;
3788
+ columns: string[];
3789
+ isUnique: boolean;
3790
+ }>;
3791
+ foreignKeys: Record<string, {
3792
+ onUpdate?: string | undefined;
3793
+ onDelete?: string | undefined;
3794
+ name: string;
3795
+ tableFrom: string;
3796
+ columnsFrom: string[];
3797
+ tableTo: string;
3798
+ columnsTo: string[];
3799
+ }>;
3800
+ schema: string;
3801
+ }>;
3802
+ schemas: Record<string, string>;
3803
+ enums: Record<string, {
3804
+ name: string;
3805
+ values: Record<string, string>;
3806
+ }>;
3807
+ }>, import("zod").ZodObject<import("zod").extendShape<{
3808
+ version: import("zod").ZodLiteral<"5">;
3809
+ dialect: import("zod").ZodLiteral<"pg">;
3810
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3811
+ name: import("zod").ZodString;
3812
+ schema: import("zod").ZodString;
3813
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3814
+ name: import("zod").ZodString;
3815
+ type: import("zod").ZodString;
3816
+ primaryKey: import("zod").ZodBoolean;
3817
+ notNull: import("zod").ZodBoolean;
3818
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
3819
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
3820
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
3821
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
3822
+ }, "strict", import("zod").ZodTypeAny, {
3823
+ isUnique?: any;
3824
+ default?: any;
3825
+ uniqueName?: string | undefined;
3826
+ nullsNotDistinct?: boolean | undefined;
3827
+ name: string;
3828
+ type: string;
3829
+ primaryKey: boolean;
3830
+ notNull: boolean;
3831
+ }, {
3832
+ isUnique?: any;
3833
+ default?: any;
3834
+ uniqueName?: string | undefined;
3835
+ nullsNotDistinct?: boolean | undefined;
3836
+ name: string;
3837
+ type: string;
3838
+ primaryKey: boolean;
3839
+ notNull: boolean;
3840
+ }>>;
3841
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3842
+ name: import("zod").ZodString;
3843
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3844
+ isUnique: import("zod").ZodBoolean;
3845
+ }, "strict", import("zod").ZodTypeAny, {
3846
+ name: string;
3847
+ columns: string[];
3848
+ isUnique: boolean;
3849
+ }, {
3850
+ name: string;
3851
+ columns: string[];
3852
+ isUnique: boolean;
3853
+ }>>;
3854
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3855
+ name: import("zod").ZodString;
3856
+ tableFrom: import("zod").ZodString;
3857
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
3858
+ tableTo: import("zod").ZodString;
3859
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
3860
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
3861
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
3862
+ }, "strict", import("zod").ZodTypeAny, {
3863
+ onUpdate?: string | undefined;
3864
+ onDelete?: string | undefined;
3865
+ name: string;
3866
+ tableFrom: string;
3867
+ columnsFrom: string[];
3868
+ tableTo: string;
3869
+ columnsTo: string[];
3870
+ }, {
3871
+ onUpdate?: string | undefined;
3872
+ onDelete?: string | undefined;
3873
+ name: string;
3874
+ tableFrom: string;
3875
+ columnsFrom: string[];
3876
+ tableTo: string;
3877
+ columnsTo: string[];
3878
+ }>>;
3879
+ compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3880
+ name: import("zod").ZodString;
3881
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3882
+ }, "strict", import("zod").ZodTypeAny, {
3883
+ name: string;
3884
+ columns: string[];
3885
+ }, {
3886
+ name: string;
3887
+ columns: string[];
3888
+ }>>;
3889
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3890
+ name: import("zod").ZodString;
3891
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3892
+ nullsNotDistinct: import("zod").ZodBoolean;
3893
+ }, "strict", import("zod").ZodTypeAny, {
3894
+ name: string;
3895
+ columns: string[];
3896
+ nullsNotDistinct: boolean;
3897
+ }, {
3898
+ name: string;
3899
+ columns: string[];
3900
+ nullsNotDistinct: boolean;
3901
+ }>>>;
3902
+ }, "strict", import("zod").ZodTypeAny, {
3903
+ name: string;
3904
+ columns: Record<string, {
3905
+ isUnique?: any;
3906
+ default?: any;
3907
+ uniqueName?: string | undefined;
3908
+ nullsNotDistinct?: boolean | undefined;
3909
+ name: string;
3910
+ type: string;
3911
+ primaryKey: boolean;
3912
+ notNull: boolean;
3913
+ }>;
3914
+ indexes: Record<string, {
3915
+ name: string;
3916
+ columns: string[];
3917
+ isUnique: boolean;
3918
+ }>;
3919
+ foreignKeys: Record<string, {
3920
+ onUpdate?: string | undefined;
3921
+ onDelete?: string | undefined;
3922
+ name: string;
3923
+ tableFrom: string;
3924
+ columnsFrom: string[];
3925
+ tableTo: string;
3926
+ columnsTo: string[];
3927
+ }>;
3928
+ schema: string;
3929
+ compositePrimaryKeys: Record<string, {
3930
+ name: string;
3931
+ columns: string[];
3932
+ }>;
3933
+ uniqueConstraints: Record<string, {
3934
+ name: string;
3935
+ columns: string[];
3936
+ nullsNotDistinct: boolean;
3937
+ }>;
3938
+ }, {
3939
+ uniqueConstraints?: Record<string, {
3940
+ name: string;
3941
+ columns: string[];
3942
+ nullsNotDistinct: boolean;
3943
+ }> | undefined;
3944
+ name: string;
3945
+ columns: Record<string, {
3946
+ isUnique?: any;
3947
+ default?: any;
3948
+ uniqueName?: string | undefined;
3949
+ nullsNotDistinct?: boolean | undefined;
3950
+ name: string;
3951
+ type: string;
3952
+ primaryKey: boolean;
3953
+ notNull: boolean;
3954
+ }>;
3955
+ indexes: Record<string, {
3956
+ name: string;
3957
+ columns: string[];
3958
+ isUnique: boolean;
3959
+ }>;
3960
+ foreignKeys: Record<string, {
3961
+ onUpdate?: string | undefined;
3962
+ onDelete?: string | undefined;
3963
+ name: string;
3964
+ tableFrom: string;
3965
+ columnsFrom: string[];
3966
+ tableTo: string;
3967
+ columnsTo: string[];
3968
+ }>;
3969
+ schema: string;
3970
+ compositePrimaryKeys: Record<string, {
3971
+ name: string;
3972
+ columns: string[];
3973
+ }>;
3974
+ }>>;
3975
+ enums: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3976
+ name: import("zod").ZodString;
3977
+ values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3978
+ }, "strict", import("zod").ZodTypeAny, {
3979
+ name: string;
3980
+ values: Record<string, string>;
3981
+ }, {
3982
+ name: string;
3983
+ values: Record<string, string>;
3984
+ }>>;
3985
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3986
+ _meta: import("zod").ZodObject<{
3987
+ schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3988
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3989
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3990
+ }, "strip", import("zod").ZodTypeAny, {
3991
+ columns: Record<string, string>;
3992
+ tables: Record<string, string>;
3993
+ schemas: Record<string, string>;
3994
+ }, {
3995
+ columns: Record<string, string>;
3996
+ tables: Record<string, string>;
3997
+ schemas: Record<string, string>;
3998
+ }>;
3999
+ internal: import("zod").ZodOptional<import("zod").ZodObject<{
4000
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
4001
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodOptional<import("zod").ZodObject<{
4002
+ isArray: import("zod").ZodOptional<import("zod").ZodBoolean>;
4003
+ dimensions: import("zod").ZodOptional<import("zod").ZodNumber>;
4004
+ rawType: import("zod").ZodOptional<import("zod").ZodString>;
4005
+ }, "strip", import("zod").ZodTypeAny, {
4006
+ isArray?: boolean | undefined;
4007
+ dimensions?: number | undefined;
4008
+ rawType?: string | undefined;
4009
+ }, {
4010
+ isArray?: boolean | undefined;
4011
+ dimensions?: number | undefined;
4012
+ rawType?: string | undefined;
4013
+ }>>>;
4014
+ }, "strip", import("zod").ZodTypeAny, {
4015
+ columns: Record<string, {
4016
+ isArray?: boolean | undefined;
4017
+ dimensions?: number | undefined;
4018
+ rawType?: string | undefined;
4019
+ } | undefined>;
4020
+ }, {
4021
+ columns: Record<string, {
4022
+ isArray?: boolean | undefined;
4023
+ dimensions?: number | undefined;
4024
+ rawType?: string | undefined;
4025
+ } | undefined>;
4026
+ }>>>;
4027
+ }, "strip", import("zod").ZodTypeAny, {
4028
+ tables: Record<string, {
4029
+ columns: Record<string, {
4030
+ isArray?: boolean | undefined;
4031
+ dimensions?: number | undefined;
4032
+ rawType?: string | undefined;
4033
+ } | undefined>;
4034
+ } | undefined>;
4035
+ }, {
4036
+ tables: Record<string, {
4037
+ columns: Record<string, {
4038
+ isArray?: boolean | undefined;
4039
+ dimensions?: number | undefined;
4040
+ rawType?: string | undefined;
4041
+ } | undefined>;
4042
+ } | undefined>;
4043
+ }>>;
4044
+ }, {
4045
+ id: import("zod").ZodString;
4046
+ prevId: import("zod").ZodString;
4047
+ }>, "strip", import("zod").ZodTypeAny, {
4048
+ internal?: {
4049
+ tables: Record<string, {
4050
+ columns: Record<string, {
4051
+ isArray?: boolean | undefined;
4052
+ dimensions?: number | undefined;
4053
+ rawType?: string | undefined;
4054
+ } | undefined>;
4055
+ } | undefined>;
4056
+ } | undefined;
4057
+ id: string;
4058
+ prevId: string;
4059
+ version: "5";
4060
+ dialect: "pg";
4061
+ tables: Record<string, {
4062
+ name: string;
4063
+ columns: Record<string, {
4064
+ isUnique?: any;
4065
+ default?: any;
4066
+ uniqueName?: string | undefined;
4067
+ nullsNotDistinct?: boolean | undefined;
4068
+ name: string;
4069
+ type: string;
4070
+ primaryKey: boolean;
4071
+ notNull: boolean;
4072
+ }>;
4073
+ indexes: Record<string, {
4074
+ name: string;
4075
+ columns: string[];
4076
+ isUnique: boolean;
4077
+ }>;
4078
+ foreignKeys: Record<string, {
4079
+ onUpdate?: string | undefined;
4080
+ onDelete?: string | undefined;
4081
+ name: string;
4082
+ tableFrom: string;
4083
+ columnsFrom: string[];
4084
+ tableTo: string;
4085
+ columnsTo: string[];
4086
+ }>;
4087
+ schema: string;
4088
+ compositePrimaryKeys: Record<string, {
4089
+ name: string;
4090
+ columns: string[];
4091
+ }>;
4092
+ uniqueConstraints: Record<string, {
4093
+ name: string;
4094
+ columns: string[];
4095
+ nullsNotDistinct: boolean;
4096
+ }>;
4097
+ }>;
4098
+ schemas: Record<string, string>;
4099
+ _meta: {
4100
+ columns: Record<string, string>;
4101
+ tables: Record<string, string>;
4102
+ schemas: Record<string, string>;
4103
+ };
4104
+ enums: Record<string, {
4105
+ name: string;
4106
+ values: Record<string, string>;
4107
+ }>;
4108
+ }, {
4109
+ internal?: {
4110
+ tables: Record<string, {
4111
+ columns: Record<string, {
4112
+ isArray?: boolean | undefined;
4113
+ dimensions?: number | undefined;
4114
+ rawType?: string | undefined;
4115
+ } | undefined>;
4116
+ } | undefined>;
4117
+ } | undefined;
4118
+ id: string;
4119
+ prevId: string;
4120
+ version: "5";
4121
+ dialect: "pg";
4122
+ tables: Record<string, {
4123
+ uniqueConstraints?: Record<string, {
4124
+ name: string;
4125
+ columns: string[];
4126
+ nullsNotDistinct: boolean;
4127
+ }> | undefined;
4128
+ name: string;
4129
+ columns: Record<string, {
4130
+ isUnique?: any;
4131
+ default?: any;
4132
+ uniqueName?: string | undefined;
4133
+ nullsNotDistinct?: boolean | undefined;
4134
+ name: string;
4135
+ type: string;
4136
+ primaryKey: boolean;
4137
+ notNull: boolean;
4138
+ }>;
4139
+ indexes: Record<string, {
4140
+ name: string;
4141
+ columns: string[];
4142
+ isUnique: boolean;
4143
+ }>;
4144
+ foreignKeys: Record<string, {
4145
+ onUpdate?: string | undefined;
4146
+ onDelete?: string | undefined;
4147
+ name: string;
4148
+ tableFrom: string;
4149
+ columnsFrom: string[];
4150
+ tableTo: string;
4151
+ columnsTo: string[];
4152
+ }>;
4153
+ schema: string;
4154
+ compositePrimaryKeys: Record<string, {
4155
+ name: string;
4156
+ columns: string[];
4157
+ }>;
4158
+ }>;
4159
+ schemas: Record<string, string>;
4160
+ _meta: {
4161
+ columns: Record<string, string>;
4162
+ tables: Record<string, string>;
4163
+ schemas: Record<string, string>;
4164
+ };
4165
+ enums: Record<string, {
4166
+ name: string;
4167
+ values: Record<string, string>;
4168
+ }>;
4169
+ }>]>;
4170
+ export declare const PgSquasher: {
4171
+ squashIdx: (idx: Index) => string;
4172
+ unsquashIdx: (input: string) => Index;
4173
+ squashFK: (fk: ForeignKey) => string;
4174
+ squashPK: (pk: PrimaryKey) => string;
4175
+ unsquashPK: (pk: string) => PrimaryKey;
4176
+ squashUnique: (unq: UniqueConstraint) => string;
4177
+ unsquashUnique: (unq: string) => UniqueConstraint;
4178
+ unsquashFK: (input: string) => ForeignKey;
4179
+ };
4180
+ export declare const squashPgSchemeV4: (json: PgSchemaV4) => PgSchemaSquashedV4;
4181
+ export declare const squashPgScheme: (json: PgSchema) => PgSchemaSquashed;
4182
+ export declare const dryPg: {
4183
+ internal?: {
4184
+ tables: Record<string, {
4185
+ columns: Record<string, {
4186
+ isArray?: boolean | undefined;
4187
+ dimensions?: number | undefined;
4188
+ rawType?: string | undefined;
4189
+ } | undefined>;
4190
+ } | undefined>;
4191
+ } | undefined;
4192
+ id: string;
4193
+ prevId: string;
4194
+ version: "5";
4195
+ dialect: "pg";
4196
+ tables: Record<string, {
4197
+ name: string;
4198
+ columns: Record<string, {
4199
+ isUnique?: any;
4200
+ default?: any;
4201
+ uniqueName?: string | undefined;
4202
+ nullsNotDistinct?: boolean | undefined;
4203
+ name: string;
4204
+ type: string;
4205
+ primaryKey: boolean;
4206
+ notNull: boolean;
4207
+ }>;
4208
+ indexes: Record<string, {
4209
+ name: string;
4210
+ columns: string[];
4211
+ isUnique: boolean;
4212
+ }>;
4213
+ foreignKeys: Record<string, {
4214
+ onUpdate?: string | undefined;
4215
+ onDelete?: string | undefined;
4216
+ name: string;
4217
+ tableFrom: string;
4218
+ columnsFrom: string[];
4219
+ tableTo: string;
4220
+ columnsTo: string[];
4221
+ }>;
4222
+ schema: string;
4223
+ compositePrimaryKeys: Record<string, {
4224
+ name: string;
4225
+ columns: string[];
4226
+ }>;
4227
+ uniqueConstraints: Record<string, {
4228
+ name: string;
4229
+ columns: string[];
4230
+ nullsNotDistinct: boolean;
4231
+ }>;
4232
+ }>;
4233
+ schemas: Record<string, string>;
4234
+ _meta: {
4235
+ columns: Record<string, string>;
4236
+ tables: Record<string, string>;
4237
+ schemas: Record<string, string>;
4238
+ };
4239
+ enums: Record<string, {
4240
+ name: string;
4241
+ values: Record<string, string>;
4242
+ }>;
4243
+ };
4244
+ export {};