drizzle-kit 0.25.0-a5ec472 → 0.25.0-a88d6b6
Sign up to get free protection for your applications and to get access to all the features.
- package/api.d.mts +785 -80
- package/api.d.ts +785 -80
- package/api.js +2992 -1742
- package/api.mjs +2992 -1742
- package/bin.cjs +2694 -1381
- package/index.d.mts +0 -7
- package/index.d.ts +0 -7
- package/package.json +2 -2
- package/utils.js +101 -32
- package/utils.mjs +101 -32
package/api.d.ts
CHANGED
@@ -120,6 +120,16 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
120
120
|
name: string;
|
121
121
|
columns: string[];
|
122
122
|
}>>>;
|
123
|
+
checkConstraint: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
124
|
+
name: zod.ZodString;
|
125
|
+
value: zod.ZodString;
|
126
|
+
}, "strict", zod.ZodTypeAny, {
|
127
|
+
name: string;
|
128
|
+
value: string;
|
129
|
+
}, {
|
130
|
+
name: string;
|
131
|
+
value: string;
|
132
|
+
}>>>;
|
123
133
|
}, "strict", zod.ZodTypeAny, {
|
124
134
|
name: string;
|
125
135
|
columns: Record<string, {
|
@@ -160,6 +170,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
160
170
|
name: string;
|
161
171
|
columns: string[];
|
162
172
|
}>;
|
173
|
+
checkConstraint: Record<string, {
|
174
|
+
name: string;
|
175
|
+
value: string;
|
176
|
+
}>;
|
163
177
|
}, {
|
164
178
|
name: string;
|
165
179
|
columns: Record<string, {
|
@@ -200,6 +214,102 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
200
214
|
name: string;
|
201
215
|
columns: string[];
|
202
216
|
}> | undefined;
|
217
|
+
checkConstraint?: Record<string, {
|
218
|
+
name: string;
|
219
|
+
value: string;
|
220
|
+
}> | undefined;
|
221
|
+
}>>;
|
222
|
+
views: zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
|
223
|
+
name: zod.ZodString;
|
224
|
+
columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
225
|
+
name: zod.ZodString;
|
226
|
+
type: zod.ZodString;
|
227
|
+
primaryKey: zod.ZodBoolean;
|
228
|
+
notNull: zod.ZodBoolean;
|
229
|
+
autoincrement: zod.ZodOptional<zod.ZodBoolean>;
|
230
|
+
default: zod.ZodOptional<zod.ZodAny>;
|
231
|
+
onUpdate: zod.ZodOptional<zod.ZodAny>;
|
232
|
+
generated: zod.ZodOptional<zod.ZodObject<{
|
233
|
+
type: zod.ZodEnum<["stored", "virtual"]>;
|
234
|
+
as: zod.ZodString;
|
235
|
+
}, "strip", zod.ZodTypeAny, {
|
236
|
+
type: "stored" | "virtual";
|
237
|
+
as: string;
|
238
|
+
}, {
|
239
|
+
type: "stored" | "virtual";
|
240
|
+
as: string;
|
241
|
+
}>>;
|
242
|
+
}, "strict", zod.ZodTypeAny, {
|
243
|
+
name: string;
|
244
|
+
type: string;
|
245
|
+
primaryKey: boolean;
|
246
|
+
notNull: boolean;
|
247
|
+
default?: any;
|
248
|
+
onUpdate?: any;
|
249
|
+
autoincrement?: boolean | undefined;
|
250
|
+
generated?: {
|
251
|
+
type: "stored" | "virtual";
|
252
|
+
as: string;
|
253
|
+
} | undefined;
|
254
|
+
}, {
|
255
|
+
name: string;
|
256
|
+
type: string;
|
257
|
+
primaryKey: boolean;
|
258
|
+
notNull: boolean;
|
259
|
+
default?: any;
|
260
|
+
onUpdate?: any;
|
261
|
+
autoincrement?: boolean | undefined;
|
262
|
+
generated?: {
|
263
|
+
type: "stored" | "virtual";
|
264
|
+
as: string;
|
265
|
+
} | undefined;
|
266
|
+
}>>;
|
267
|
+
definition: zod.ZodOptional<zod.ZodString>;
|
268
|
+
isExisting: zod.ZodBoolean;
|
269
|
+
}, {
|
270
|
+
algorithm: zod.ZodEnum<["undefined", "merge", "temptable"]>;
|
271
|
+
sqlSecurity: zod.ZodEnum<["definer", "invoker"]>;
|
272
|
+
withCheckOption: zod.ZodOptional<zod.ZodEnum<["local", "cascaded"]>>;
|
273
|
+
}>, "strict", zod.ZodTypeAny, {
|
274
|
+
name: string;
|
275
|
+
columns: Record<string, {
|
276
|
+
name: string;
|
277
|
+
type: string;
|
278
|
+
primaryKey: boolean;
|
279
|
+
notNull: boolean;
|
280
|
+
default?: any;
|
281
|
+
onUpdate?: any;
|
282
|
+
autoincrement?: boolean | undefined;
|
283
|
+
generated?: {
|
284
|
+
type: "stored" | "virtual";
|
285
|
+
as: string;
|
286
|
+
} | undefined;
|
287
|
+
}>;
|
288
|
+
algorithm: "undefined" | "merge" | "temptable";
|
289
|
+
sqlSecurity: "definer" | "invoker";
|
290
|
+
isExisting: boolean;
|
291
|
+
withCheckOption?: "local" | "cascaded" | undefined;
|
292
|
+
definition?: string | undefined;
|
293
|
+
}, {
|
294
|
+
name: string;
|
295
|
+
columns: Record<string, {
|
296
|
+
name: string;
|
297
|
+
type: string;
|
298
|
+
primaryKey: boolean;
|
299
|
+
notNull: boolean;
|
300
|
+
default?: any;
|
301
|
+
onUpdate?: any;
|
302
|
+
autoincrement?: boolean | undefined;
|
303
|
+
generated?: {
|
304
|
+
type: "stored" | "virtual";
|
305
|
+
as: string;
|
306
|
+
} | undefined;
|
307
|
+
}>;
|
308
|
+
algorithm: "undefined" | "merge" | "temptable";
|
309
|
+
sqlSecurity: "definer" | "invoker";
|
310
|
+
isExisting: boolean;
|
311
|
+
withCheckOption?: "local" | "cascaded" | undefined;
|
312
|
+
definition?: string | undefined;
|
203
313
|
}>>;
|
204
314
|
_meta: zod.ZodObject<{
|
205
315
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
@@ -313,6 +423,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
313
423
|
name: string;
|
314
424
|
columns: string[];
|
315
425
|
}>;
|
426
|
+
checkConstraint: Record<string, {
|
427
|
+
name: string;
|
428
|
+
value: string;
|
429
|
+
}>;
|
316
430
|
}>;
|
317
431
|
id: string;
|
318
432
|
prevId: string;
|
@@ -322,6 +436,27 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
322
436
|
columns: Record<string, string>;
|
323
437
|
tables: Record<string, string>;
|
324
438
|
};
|
439
|
+
views: Record<string, {
|
440
|
+
name: string;
|
441
|
+
columns: Record<string, {
|
442
|
+
name: string;
|
443
|
+
type: string;
|
444
|
+
primaryKey: boolean;
|
445
|
+
notNull: boolean;
|
446
|
+
default?: any;
|
447
|
+
onUpdate?: any;
|
448
|
+
autoincrement?: boolean | undefined;
|
449
|
+
generated?: {
|
450
|
+
type: "stored" | "virtual";
|
451
|
+
as: string;
|
452
|
+
} | undefined;
|
453
|
+
}>;
|
454
|
+
algorithm: "undefined" | "merge" | "temptable";
|
455
|
+
sqlSecurity: "definer" | "invoker";
|
456
|
+
isExisting: boolean;
|
457
|
+
withCheckOption?: "local" | "cascaded" | undefined;
|
458
|
+
definition?: string | undefined;
|
459
|
+
}>;
|
325
460
|
internal?: {
|
326
461
|
indexes?: Record<string, {
|
327
462
|
columns: Record<string, {
|
@@ -375,6 +510,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
375
510
|
name: string;
|
376
511
|
columns: string[];
|
377
512
|
}> | undefined;
|
513
|
+
checkConstraint?: Record<string, {
|
514
|
+
name: string;
|
515
|
+
value: string;
|
516
|
+
}> | undefined;
|
378
517
|
}>;
|
379
518
|
id: string;
|
380
519
|
prevId: string;
|
@@ -384,6 +523,27 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
384
523
|
columns: Record<string, string>;
|
385
524
|
tables: Record<string, string>;
|
386
525
|
};
|
526
|
+
views: Record<string, {
|
527
|
+
name: string;
|
528
|
+
columns: Record<string, {
|
529
|
+
name: string;
|
530
|
+
type: string;
|
531
|
+
primaryKey: boolean;
|
532
|
+
notNull: boolean;
|
533
|
+
default?: any;
|
534
|
+
onUpdate?: any;
|
535
|
+
autoincrement?: boolean | undefined;
|
536
|
+
generated?: {
|
537
|
+
type: "stored" | "virtual";
|
538
|
+
as: string;
|
539
|
+
} | undefined;
|
540
|
+
}>;
|
541
|
+
algorithm: "undefined" | "merge" | "temptable";
|
542
|
+
sqlSecurity: "definer" | "invoker";
|
543
|
+
isExisting: boolean;
|
544
|
+
withCheckOption?: "local" | "cascaded" | undefined;
|
545
|
+
definition?: string | undefined;
|
546
|
+
}>;
|
387
547
|
internal?: {
|
388
548
|
indexes?: Record<string, {
|
389
549
|
columns: Record<string, {
|
@@ -614,27 +774,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
614
774
|
columns: string[];
|
615
775
|
nullsNotDistinct: boolean;
|
616
776
|
}>>>;
|
617
|
-
|
777
|
+
checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
618
778
|
name: zod.ZodString;
|
619
|
-
|
620
|
-
for: zod.ZodOptional<zod.ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
|
621
|
-
to: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
622
|
-
using: zod.ZodOptional<zod.ZodString>;
|
623
|
-
withCheck: zod.ZodOptional<zod.ZodString>;
|
779
|
+
value: zod.ZodString;
|
624
780
|
}, "strict", zod.ZodTypeAny, {
|
625
781
|
name: string;
|
626
|
-
|
627
|
-
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
628
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
629
|
-
to?: string[] | undefined;
|
630
|
-
withCheck?: string | undefined;
|
782
|
+
value: string;
|
631
783
|
}, {
|
632
784
|
name: string;
|
633
|
-
|
634
|
-
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
635
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
636
|
-
to?: string[] | undefined;
|
637
|
-
withCheck?: string | undefined;
|
785
|
+
value: string;
|
638
786
|
}>>>;
|
639
787
|
}, "strict", zod.ZodTypeAny, {
|
640
788
|
name: string;
|
@@ -699,13 +847,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
699
847
|
columns: string[];
|
700
848
|
nullsNotDistinct: boolean;
|
701
849
|
}>;
|
702
|
-
|
850
|
+
checkConstraints: Record<string, {
|
703
851
|
name: string;
|
704
|
-
|
705
|
-
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
706
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
707
|
-
to?: string[] | undefined;
|
708
|
-
withCheck?: string | undefined;
|
852
|
+
value: string;
|
709
853
|
}>;
|
710
854
|
}, {
|
711
855
|
name: string;
|
@@ -770,13 +914,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
770
914
|
columns: string[];
|
771
915
|
nullsNotDistinct: boolean;
|
772
916
|
}> | undefined;
|
773
|
-
|
917
|
+
checkConstraints?: Record<string, {
|
774
918
|
name: string;
|
775
|
-
|
776
|
-
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
777
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
778
|
-
to?: string[] | undefined;
|
779
|
-
withCheck?: string | undefined;
|
919
|
+
value: string;
|
780
920
|
}> | undefined;
|
781
921
|
}>>;
|
782
922
|
enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
@@ -793,6 +933,303 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
793
933
|
schema: string;
|
794
934
|
}>>;
|
795
935
|
schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
936
|
+
views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
937
|
+
name: zod.ZodString;
|
938
|
+
schema: zod.ZodString;
|
939
|
+
columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
940
|
+
name: zod.ZodString;
|
941
|
+
type: zod.ZodString;
|
942
|
+
typeSchema: zod.ZodOptional<zod.ZodString>;
|
943
|
+
primaryKey: zod.ZodBoolean;
|
944
|
+
notNull: zod.ZodBoolean;
|
945
|
+
default: zod.ZodOptional<zod.ZodAny>;
|
946
|
+
isUnique: zod.ZodOptional<zod.ZodAny>;
|
947
|
+
uniqueName: zod.ZodOptional<zod.ZodString>;
|
948
|
+
nullsNotDistinct: zod.ZodOptional<zod.ZodBoolean>;
|
949
|
+
generated: zod.ZodOptional<zod.ZodObject<{
|
950
|
+
type: zod.ZodLiteral<"stored">;
|
951
|
+
as: zod.ZodString;
|
952
|
+
}, "strip", zod.ZodTypeAny, {
|
953
|
+
type: "stored";
|
954
|
+
as: string;
|
955
|
+
}, {
|
956
|
+
type: "stored";
|
957
|
+
as: string;
|
958
|
+
}>>;
|
959
|
+
identity: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
|
960
|
+
name: zod.ZodString;
|
961
|
+
increment: zod.ZodOptional<zod.ZodString>;
|
962
|
+
minValue: zod.ZodOptional<zod.ZodString>;
|
963
|
+
maxValue: zod.ZodOptional<zod.ZodString>;
|
964
|
+
startWith: zod.ZodOptional<zod.ZodString>;
|
965
|
+
cache: zod.ZodOptional<zod.ZodString>;
|
966
|
+
cycle: zod.ZodOptional<zod.ZodBoolean>;
|
967
|
+
schema: zod.ZodString;
|
968
|
+
}, {
|
969
|
+
type: zod.ZodEnum<["always", "byDefault"]>;
|
970
|
+
}>, "strip", zod.ZodTypeAny, {
|
971
|
+
name: string;
|
972
|
+
type: "always" | "byDefault";
|
973
|
+
schema: string;
|
974
|
+
increment?: string | undefined;
|
975
|
+
minValue?: string | undefined;
|
976
|
+
maxValue?: string | undefined;
|
977
|
+
startWith?: string | undefined;
|
978
|
+
cache?: string | undefined;
|
979
|
+
cycle?: boolean | undefined;
|
980
|
+
}, {
|
981
|
+
name: string;
|
982
|
+
type: "always" | "byDefault";
|
983
|
+
schema: string;
|
984
|
+
increment?: string | undefined;
|
985
|
+
minValue?: string | undefined;
|
986
|
+
maxValue?: string | undefined;
|
987
|
+
startWith?: string | undefined;
|
988
|
+
cache?: string | undefined;
|
989
|
+
cycle?: boolean | undefined;
|
990
|
+
}>>;
|
991
|
+
}, "strict", zod.ZodTypeAny, {
|
992
|
+
name: string;
|
993
|
+
type: string;
|
994
|
+
primaryKey: boolean;
|
995
|
+
notNull: boolean;
|
996
|
+
isUnique?: any;
|
997
|
+
default?: any;
|
998
|
+
generated?: {
|
999
|
+
type: "stored";
|
1000
|
+
as: string;
|
1001
|
+
} | undefined;
|
1002
|
+
typeSchema?: string | undefined;
|
1003
|
+
uniqueName?: string | undefined;
|
1004
|
+
nullsNotDistinct?: boolean | undefined;
|
1005
|
+
identity?: {
|
1006
|
+
name: string;
|
1007
|
+
type: "always" | "byDefault";
|
1008
|
+
schema: string;
|
1009
|
+
increment?: string | undefined;
|
1010
|
+
minValue?: string | undefined;
|
1011
|
+
maxValue?: string | undefined;
|
1012
|
+
startWith?: string | undefined;
|
1013
|
+
cache?: string | undefined;
|
1014
|
+
cycle?: boolean | undefined;
|
1015
|
+
} | undefined;
|
1016
|
+
}, {
|
1017
|
+
name: string;
|
1018
|
+
type: string;
|
1019
|
+
primaryKey: boolean;
|
1020
|
+
notNull: boolean;
|
1021
|
+
isUnique?: any;
|
1022
|
+
default?: any;
|
1023
|
+
generated?: {
|
1024
|
+
type: "stored";
|
1025
|
+
as: string;
|
1026
|
+
} | undefined;
|
1027
|
+
typeSchema?: string | undefined;
|
1028
|
+
uniqueName?: string | undefined;
|
1029
|
+
nullsNotDistinct?: boolean | undefined;
|
1030
|
+
identity?: {
|
1031
|
+
name: string;
|
1032
|
+
type: "always" | "byDefault";
|
1033
|
+
schema: string;
|
1034
|
+
increment?: string | undefined;
|
1035
|
+
minValue?: string | undefined;
|
1036
|
+
maxValue?: string | undefined;
|
1037
|
+
startWith?: string | undefined;
|
1038
|
+
cache?: string | undefined;
|
1039
|
+
cycle?: boolean | undefined;
|
1040
|
+
} | undefined;
|
1041
|
+
}>>;
|
1042
|
+
definition: zod.ZodOptional<zod.ZodString>;
|
1043
|
+
materialized: zod.ZodBoolean;
|
1044
|
+
with: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
|
1045
|
+
checkOption: zod.ZodOptional<zod.ZodEnum<["local", "cascaded"]>>;
|
1046
|
+
securityBarrier: zod.ZodOptional<zod.ZodBoolean>;
|
1047
|
+
securityInvoker: zod.ZodOptional<zod.ZodBoolean>;
|
1048
|
+
}, {
|
1049
|
+
fillfactor: zod.ZodOptional<zod.ZodNumber>;
|
1050
|
+
toastTupleTarget: zod.ZodOptional<zod.ZodNumber>;
|
1051
|
+
parallelWorkers: zod.ZodOptional<zod.ZodNumber>;
|
1052
|
+
autovacuumEnabled: zod.ZodOptional<zod.ZodBoolean>;
|
1053
|
+
vacuumIndexCleanup: zod.ZodOptional<zod.ZodEnum<["auto", "off", "on"]>>;
|
1054
|
+
vacuumTruncate: zod.ZodOptional<zod.ZodBoolean>;
|
1055
|
+
autovacuumVacuumThreshold: zod.ZodOptional<zod.ZodNumber>;
|
1056
|
+
autovacuumVacuumScaleFactor: zod.ZodOptional<zod.ZodNumber>;
|
1057
|
+
autovacuumVacuumCostDelay: zod.ZodOptional<zod.ZodNumber>;
|
1058
|
+
autovacuumVacuumCostLimit: zod.ZodOptional<zod.ZodNumber>;
|
1059
|
+
autovacuumFreezeMinAge: zod.ZodOptional<zod.ZodNumber>;
|
1060
|
+
autovacuumFreezeMaxAge: zod.ZodOptional<zod.ZodNumber>;
|
1061
|
+
autovacuumFreezeTableAge: zod.ZodOptional<zod.ZodNumber>;
|
1062
|
+
autovacuumMultixactFreezeMinAge: zod.ZodOptional<zod.ZodNumber>;
|
1063
|
+
autovacuumMultixactFreezeMaxAge: zod.ZodOptional<zod.ZodNumber>;
|
1064
|
+
autovacuumMultixactFreezeTableAge: zod.ZodOptional<zod.ZodNumber>;
|
1065
|
+
logAutovacuumMinDuration: zod.ZodOptional<zod.ZodNumber>;
|
1066
|
+
userCatalogTable: zod.ZodOptional<zod.ZodBoolean>;
|
1067
|
+
}>, "strict", zod.ZodTypeAny, {
|
1068
|
+
checkOption?: "local" | "cascaded" | undefined;
|
1069
|
+
securityBarrier?: boolean | undefined;
|
1070
|
+
securityInvoker?: boolean | undefined;
|
1071
|
+
fillfactor?: number | undefined;
|
1072
|
+
toastTupleTarget?: number | undefined;
|
1073
|
+
parallelWorkers?: number | undefined;
|
1074
|
+
autovacuumEnabled?: boolean | undefined;
|
1075
|
+
vacuumIndexCleanup?: "auto" | "off" | "on" | undefined;
|
1076
|
+
vacuumTruncate?: boolean | undefined;
|
1077
|
+
autovacuumVacuumThreshold?: number | undefined;
|
1078
|
+
autovacuumVacuumScaleFactor?: number | undefined;
|
1079
|
+
autovacuumVacuumCostDelay?: number | undefined;
|
1080
|
+
autovacuumVacuumCostLimit?: number | undefined;
|
1081
|
+
autovacuumFreezeMinAge?: number | undefined;
|
1082
|
+
autovacuumFreezeMaxAge?: number | undefined;
|
1083
|
+
autovacuumFreezeTableAge?: number | undefined;
|
1084
|
+
autovacuumMultixactFreezeMinAge?: number | undefined;
|
1085
|
+
autovacuumMultixactFreezeMaxAge?: number | undefined;
|
1086
|
+
autovacuumMultixactFreezeTableAge?: number | undefined;
|
1087
|
+
logAutovacuumMinDuration?: number | undefined;
|
1088
|
+
userCatalogTable?: boolean | undefined;
|
1089
|
+
}, {
|
1090
|
+
checkOption?: "local" | "cascaded" | undefined;
|
1091
|
+
securityBarrier?: boolean | undefined;
|
1092
|
+
securityInvoker?: boolean | undefined;
|
1093
|
+
fillfactor?: number | undefined;
|
1094
|
+
toastTupleTarget?: number | undefined;
|
1095
|
+
parallelWorkers?: number | undefined;
|
1096
|
+
autovacuumEnabled?: boolean | undefined;
|
1097
|
+
vacuumIndexCleanup?: "auto" | "off" | "on" | undefined;
|
1098
|
+
vacuumTruncate?: boolean | undefined;
|
1099
|
+
autovacuumVacuumThreshold?: number | undefined;
|
1100
|
+
autovacuumVacuumScaleFactor?: number | undefined;
|
1101
|
+
autovacuumVacuumCostDelay?: number | undefined;
|
1102
|
+
autovacuumVacuumCostLimit?: number | undefined;
|
1103
|
+
autovacuumFreezeMinAge?: number | undefined;
|
1104
|
+
autovacuumFreezeMaxAge?: number | undefined;
|
1105
|
+
autovacuumFreezeTableAge?: number | undefined;
|
1106
|
+
autovacuumMultixactFreezeMinAge?: number | undefined;
|
1107
|
+
autovacuumMultixactFreezeMaxAge?: number | undefined;
|
1108
|
+
autovacuumMultixactFreezeTableAge?: number | undefined;
|
1109
|
+
logAutovacuumMinDuration?: number | undefined;
|
1110
|
+
userCatalogTable?: boolean | undefined;
|
1111
|
+
}>>;
|
1112
|
+
isExisting: zod.ZodBoolean;
|
1113
|
+
withNoData: zod.ZodOptional<zod.ZodBoolean>;
|
1114
|
+
using: zod.ZodOptional<zod.ZodString>;
|
1115
|
+
tablespace: zod.ZodOptional<zod.ZodString>;
|
1116
|
+
}, "strict", zod.ZodTypeAny, {
|
1117
|
+
name: string;
|
1118
|
+
columns: Record<string, {
|
1119
|
+
name: string;
|
1120
|
+
type: string;
|
1121
|
+
primaryKey: boolean;
|
1122
|
+
notNull: boolean;
|
1123
|
+
isUnique?: any;
|
1124
|
+
default?: any;
|
1125
|
+
generated?: {
|
1126
|
+
type: "stored";
|
1127
|
+
as: string;
|
1128
|
+
} | undefined;
|
1129
|
+
typeSchema?: string | undefined;
|
1130
|
+
uniqueName?: string | undefined;
|
1131
|
+
nullsNotDistinct?: boolean | undefined;
|
1132
|
+
identity?: {
|
1133
|
+
name: string;
|
1134
|
+
type: "always" | "byDefault";
|
1135
|
+
schema: string;
|
1136
|
+
increment?: string | undefined;
|
1137
|
+
minValue?: string | undefined;
|
1138
|
+
maxValue?: string | undefined;
|
1139
|
+
startWith?: string | undefined;
|
1140
|
+
cache?: string | undefined;
|
1141
|
+
cycle?: boolean | undefined;
|
1142
|
+
} | undefined;
|
1143
|
+
}>;
|
1144
|
+
schema: string;
|
1145
|
+
isExisting: boolean;
|
1146
|
+
materialized: boolean;
|
1147
|
+
using?: string | undefined;
|
1148
|
+
definition?: string | undefined;
|
1149
|
+
with?: {
|
1150
|
+
checkOption?: "local" | "cascaded" | undefined;
|
1151
|
+
securityBarrier?: boolean | undefined;
|
1152
|
+
securityInvoker?: boolean | undefined;
|
1153
|
+
fillfactor?: number | undefined;
|
1154
|
+
toastTupleTarget?: number | undefined;
|
1155
|
+
parallelWorkers?: number | undefined;
|
1156
|
+
autovacuumEnabled?: boolean | undefined;
|
1157
|
+
vacuumIndexCleanup?: "auto" | "off" | "on" | undefined;
|
1158
|
+
vacuumTruncate?: boolean | undefined;
|
1159
|
+
autovacuumVacuumThreshold?: number | undefined;
|
1160
|
+
autovacuumVacuumScaleFactor?: number | undefined;
|
1161
|
+
autovacuumVacuumCostDelay?: number | undefined;
|
1162
|
+
autovacuumVacuumCostLimit?: number | undefined;
|
1163
|
+
autovacuumFreezeMinAge?: number | undefined;
|
1164
|
+
autovacuumFreezeMaxAge?: number | undefined;
|
1165
|
+
autovacuumFreezeTableAge?: number | undefined;
|
1166
|
+
autovacuumMultixactFreezeMinAge?: number | undefined;
|
1167
|
+
autovacuumMultixactFreezeMaxAge?: number | undefined;
|
1168
|
+
autovacuumMultixactFreezeTableAge?: number | undefined;
|
1169
|
+
logAutovacuumMinDuration?: number | undefined;
|
1170
|
+
userCatalogTable?: boolean | undefined;
|
1171
|
+
} | undefined;
|
1172
|
+
withNoData?: boolean | undefined;
|
1173
|
+
tablespace?: string | undefined;
|
1174
|
+
}, {
|
1175
|
+
name: string;
|
1176
|
+
columns: Record<string, {
|
1177
|
+
name: string;
|
1178
|
+
type: string;
|
1179
|
+
primaryKey: boolean;
|
1180
|
+
notNull: boolean;
|
1181
|
+
isUnique?: any;
|
1182
|
+
default?: any;
|
1183
|
+
generated?: {
|
1184
|
+
type: "stored";
|
1185
|
+
as: string;
|
1186
|
+
} | undefined;
|
1187
|
+
typeSchema?: string | undefined;
|
1188
|
+
uniqueName?: string | undefined;
|
1189
|
+
nullsNotDistinct?: boolean | undefined;
|
1190
|
+
identity?: {
|
1191
|
+
name: string;
|
1192
|
+
type: "always" | "byDefault";
|
1193
|
+
schema: string;
|
1194
|
+
increment?: string | undefined;
|
1195
|
+
minValue?: string | undefined;
|
1196
|
+
maxValue?: string | undefined;
|
1197
|
+
startWith?: string | undefined;
|
1198
|
+
cache?: string | undefined;
|
1199
|
+
cycle?: boolean | undefined;
|
1200
|
+
} | undefined;
|
1201
|
+
}>;
|
1202
|
+
schema: string;
|
1203
|
+
isExisting: boolean;
|
1204
|
+
materialized: boolean;
|
1205
|
+
using?: string | undefined;
|
1206
|
+
definition?: string | undefined;
|
1207
|
+
with?: {
|
1208
|
+
checkOption?: "local" | "cascaded" | undefined;
|
1209
|
+
securityBarrier?: boolean | undefined;
|
1210
|
+
securityInvoker?: boolean | undefined;
|
1211
|
+
fillfactor?: number | undefined;
|
1212
|
+
toastTupleTarget?: number | undefined;
|
1213
|
+
parallelWorkers?: number | undefined;
|
1214
|
+
autovacuumEnabled?: boolean | undefined;
|
1215
|
+
vacuumIndexCleanup?: "auto" | "off" | "on" | undefined;
|
1216
|
+
vacuumTruncate?: boolean | undefined;
|
1217
|
+
autovacuumVacuumThreshold?: number | undefined;
|
1218
|
+
autovacuumVacuumScaleFactor?: number | undefined;
|
1219
|
+
autovacuumVacuumCostDelay?: number | undefined;
|
1220
|
+
autovacuumVacuumCostLimit?: number | undefined;
|
1221
|
+
autovacuumFreezeMinAge?: number | undefined;
|
1222
|
+
autovacuumFreezeMaxAge?: number | undefined;
|
1223
|
+
autovacuumFreezeTableAge?: number | undefined;
|
1224
|
+
autovacuumMultixactFreezeMinAge?: number | undefined;
|
1225
|
+
autovacuumMultixactFreezeMaxAge?: number | undefined;
|
1226
|
+
autovacuumMultixactFreezeTableAge?: number | undefined;
|
1227
|
+
logAutovacuumMinDuration?: number | undefined;
|
1228
|
+
userCatalogTable?: boolean | undefined;
|
1229
|
+
} | undefined;
|
1230
|
+
withNoData?: boolean | undefined;
|
1231
|
+
tablespace?: string | undefined;
|
1232
|
+
}>>>;
|
796
1233
|
sequences: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
797
1234
|
name: zod.ZodString;
|
798
1235
|
increment: zod.ZodOptional<zod.ZodString>;
|
@@ -821,22 +1258,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
821
1258
|
cache?: string | undefined;
|
822
1259
|
cycle?: boolean | undefined;
|
823
1260
|
}>>>;
|
824
|
-
roles: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
825
|
-
name: zod.ZodString;
|
826
|
-
createDb: zod.ZodOptional<zod.ZodBoolean>;
|
827
|
-
createRole: zod.ZodOptional<zod.ZodBoolean>;
|
828
|
-
inherit: zod.ZodOptional<zod.ZodBoolean>;
|
829
|
-
}, "strict", zod.ZodTypeAny, {
|
830
|
-
name: string;
|
831
|
-
createDb?: boolean | undefined;
|
832
|
-
createRole?: boolean | undefined;
|
833
|
-
inherit?: boolean | undefined;
|
834
|
-
}, {
|
835
|
-
name: string;
|
836
|
-
createDb?: boolean | undefined;
|
837
|
-
createRole?: boolean | undefined;
|
838
|
-
inherit?: boolean | undefined;
|
839
|
-
}>>>;
|
840
1261
|
_meta: zod.ZodObject<{
|
841
1262
|
schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
842
1263
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
@@ -969,13 +1390,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
969
1390
|
columns: string[];
|
970
1391
|
nullsNotDistinct: boolean;
|
971
1392
|
}>;
|
972
|
-
|
1393
|
+
checkConstraints: Record<string, {
|
973
1394
|
name: string;
|
974
|
-
|
975
|
-
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
976
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
977
|
-
to?: string[] | undefined;
|
978
|
-
withCheck?: string | undefined;
|
1395
|
+
value: string;
|
979
1396
|
}>;
|
980
1397
|
}>;
|
981
1398
|
id: string;
|
@@ -988,6 +1405,65 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
988
1405
|
tables: Record<string, string>;
|
989
1406
|
schemas: Record<string, string>;
|
990
1407
|
};
|
1408
|
+
views: Record<string, {
|
1409
|
+
name: string;
|
1410
|
+
columns: Record<string, {
|
1411
|
+
name: string;
|
1412
|
+
type: string;
|
1413
|
+
primaryKey: boolean;
|
1414
|
+
notNull: boolean;
|
1415
|
+
isUnique?: any;
|
1416
|
+
default?: any;
|
1417
|
+
generated?: {
|
1418
|
+
type: "stored";
|
1419
|
+
as: string;
|
1420
|
+
} | undefined;
|
1421
|
+
typeSchema?: string | undefined;
|
1422
|
+
uniqueName?: string | undefined;
|
1423
|
+
nullsNotDistinct?: boolean | undefined;
|
1424
|
+
identity?: {
|
1425
|
+
name: string;
|
1426
|
+
type: "always" | "byDefault";
|
1427
|
+
schema: string;
|
1428
|
+
increment?: string | undefined;
|
1429
|
+
minValue?: string | undefined;
|
1430
|
+
maxValue?: string | undefined;
|
1431
|
+
startWith?: string | undefined;
|
1432
|
+
cache?: string | undefined;
|
1433
|
+
cycle?: boolean | undefined;
|
1434
|
+
} | undefined;
|
1435
|
+
}>;
|
1436
|
+
schema: string;
|
1437
|
+
isExisting: boolean;
|
1438
|
+
materialized: boolean;
|
1439
|
+
using?: string | undefined;
|
1440
|
+
definition?: string | undefined;
|
1441
|
+
with?: {
|
1442
|
+
checkOption?: "local" | "cascaded" | undefined;
|
1443
|
+
securityBarrier?: boolean | undefined;
|
1444
|
+
securityInvoker?: boolean | undefined;
|
1445
|
+
fillfactor?: number | undefined;
|
1446
|
+
toastTupleTarget?: number | undefined;
|
1447
|
+
parallelWorkers?: number | undefined;
|
1448
|
+
autovacuumEnabled?: boolean | undefined;
|
1449
|
+
vacuumIndexCleanup?: "auto" | "off" | "on" | undefined;
|
1450
|
+
vacuumTruncate?: boolean | undefined;
|
1451
|
+
autovacuumVacuumThreshold?: number | undefined;
|
1452
|
+
autovacuumVacuumScaleFactor?: number | undefined;
|
1453
|
+
autovacuumVacuumCostDelay?: number | undefined;
|
1454
|
+
autovacuumVacuumCostLimit?: number | undefined;
|
1455
|
+
autovacuumFreezeMinAge?: number | undefined;
|
1456
|
+
autovacuumFreezeMaxAge?: number | undefined;
|
1457
|
+
autovacuumFreezeTableAge?: number | undefined;
|
1458
|
+
autovacuumMultixactFreezeMinAge?: number | undefined;
|
1459
|
+
autovacuumMultixactFreezeMaxAge?: number | undefined;
|
1460
|
+
autovacuumMultixactFreezeTableAge?: number | undefined;
|
1461
|
+
logAutovacuumMinDuration?: number | undefined;
|
1462
|
+
userCatalogTable?: boolean | undefined;
|
1463
|
+
} | undefined;
|
1464
|
+
withNoData?: boolean | undefined;
|
1465
|
+
tablespace?: string | undefined;
|
1466
|
+
}>;
|
991
1467
|
enums: Record<string, {
|
992
1468
|
name: string;
|
993
1469
|
values: string[];
|
@@ -1003,12 +1479,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1003
1479
|
cache?: string | undefined;
|
1004
1480
|
cycle?: boolean | undefined;
|
1005
1481
|
}>;
|
1006
|
-
roles: Record<string, {
|
1007
|
-
name: string;
|
1008
|
-
createDb?: boolean | undefined;
|
1009
|
-
createRole?: boolean | undefined;
|
1010
|
-
inherit?: boolean | undefined;
|
1011
|
-
}>;
|
1012
1482
|
internal?: {
|
1013
1483
|
tables: Record<string, {
|
1014
1484
|
columns: Record<string, {
|
@@ -1083,13 +1553,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1083
1553
|
columns: string[];
|
1084
1554
|
nullsNotDistinct: boolean;
|
1085
1555
|
}> | undefined;
|
1086
|
-
|
1556
|
+
checkConstraints?: Record<string, {
|
1087
1557
|
name: string;
|
1088
|
-
|
1089
|
-
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
1090
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
1091
|
-
to?: string[] | undefined;
|
1092
|
-
withCheck?: string | undefined;
|
1558
|
+
value: string;
|
1093
1559
|
}> | undefined;
|
1094
1560
|
}>;
|
1095
1561
|
id: string;
|
@@ -1117,6 +1583,65 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1117
1583
|
} | undefined>;
|
1118
1584
|
} | undefined>;
|
1119
1585
|
} | undefined;
|
1586
|
+
views?: Record<string, {
|
1587
|
+
name: string;
|
1588
|
+
columns: Record<string, {
|
1589
|
+
name: string;
|
1590
|
+
type: string;
|
1591
|
+
primaryKey: boolean;
|
1592
|
+
notNull: boolean;
|
1593
|
+
isUnique?: any;
|
1594
|
+
default?: any;
|
1595
|
+
generated?: {
|
1596
|
+
type: "stored";
|
1597
|
+
as: string;
|
1598
|
+
} | undefined;
|
1599
|
+
typeSchema?: string | undefined;
|
1600
|
+
uniqueName?: string | undefined;
|
1601
|
+
nullsNotDistinct?: boolean | undefined;
|
1602
|
+
identity?: {
|
1603
|
+
name: string;
|
1604
|
+
type: "always" | "byDefault";
|
1605
|
+
schema: string;
|
1606
|
+
increment?: string | undefined;
|
1607
|
+
minValue?: string | undefined;
|
1608
|
+
maxValue?: string | undefined;
|
1609
|
+
startWith?: string | undefined;
|
1610
|
+
cache?: string | undefined;
|
1611
|
+
cycle?: boolean | undefined;
|
1612
|
+
} | undefined;
|
1613
|
+
}>;
|
1614
|
+
schema: string;
|
1615
|
+
isExisting: boolean;
|
1616
|
+
materialized: boolean;
|
1617
|
+
using?: string | undefined;
|
1618
|
+
definition?: string | undefined;
|
1619
|
+
with?: {
|
1620
|
+
checkOption?: "local" | "cascaded" | undefined;
|
1621
|
+
securityBarrier?: boolean | undefined;
|
1622
|
+
securityInvoker?: boolean | undefined;
|
1623
|
+
fillfactor?: number | undefined;
|
1624
|
+
toastTupleTarget?: number | undefined;
|
1625
|
+
parallelWorkers?: number | undefined;
|
1626
|
+
autovacuumEnabled?: boolean | undefined;
|
1627
|
+
vacuumIndexCleanup?: "auto" | "off" | "on" | undefined;
|
1628
|
+
vacuumTruncate?: boolean | undefined;
|
1629
|
+
autovacuumVacuumThreshold?: number | undefined;
|
1630
|
+
autovacuumVacuumScaleFactor?: number | undefined;
|
1631
|
+
autovacuumVacuumCostDelay?: number | undefined;
|
1632
|
+
autovacuumVacuumCostLimit?: number | undefined;
|
1633
|
+
autovacuumFreezeMinAge?: number | undefined;
|
1634
|
+
autovacuumFreezeMaxAge?: number | undefined;
|
1635
|
+
autovacuumFreezeTableAge?: number | undefined;
|
1636
|
+
autovacuumMultixactFreezeMinAge?: number | undefined;
|
1637
|
+
autovacuumMultixactFreezeMaxAge?: number | undefined;
|
1638
|
+
autovacuumMultixactFreezeTableAge?: number | undefined;
|
1639
|
+
logAutovacuumMinDuration?: number | undefined;
|
1640
|
+
userCatalogTable?: boolean | undefined;
|
1641
|
+
} | undefined;
|
1642
|
+
withNoData?: boolean | undefined;
|
1643
|
+
tablespace?: string | undefined;
|
1644
|
+
}> | undefined;
|
1120
1645
|
sequences?: Record<string, {
|
1121
1646
|
name: string;
|
1122
1647
|
schema: string;
|
@@ -1127,12 +1652,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1127
1652
|
cache?: string | undefined;
|
1128
1653
|
cycle?: boolean | undefined;
|
1129
1654
|
}> | undefined;
|
1130
|
-
roles?: Record<string, {
|
1131
|
-
name: string;
|
1132
|
-
createDb?: boolean | undefined;
|
1133
|
-
createRole?: boolean | undefined;
|
1134
|
-
inherit?: boolean | undefined;
|
1135
|
-
}> | undefined;
|
1136
1655
|
}>;
|
1137
1656
|
type PgSchema = TypeOf<typeof pgSchema>;
|
1138
1657
|
|
@@ -1242,6 +1761,16 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1242
1761
|
name: string;
|
1243
1762
|
columns: string[];
|
1244
1763
|
}>>>;
|
1764
|
+
checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
1765
|
+
name: zod.ZodString;
|
1766
|
+
value: zod.ZodString;
|
1767
|
+
}, "strict", zod.ZodTypeAny, {
|
1768
|
+
name: string;
|
1769
|
+
value: string;
|
1770
|
+
}, {
|
1771
|
+
name: string;
|
1772
|
+
value: string;
|
1773
|
+
}>>>;
|
1245
1774
|
}, "strict", zod.ZodTypeAny, {
|
1246
1775
|
name: string;
|
1247
1776
|
columns: Record<string, {
|
@@ -1279,6 +1808,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1279
1808
|
name: string;
|
1280
1809
|
columns: string[];
|
1281
1810
|
}>;
|
1811
|
+
checkConstraints: Record<string, {
|
1812
|
+
name: string;
|
1813
|
+
value: string;
|
1814
|
+
}>;
|
1282
1815
|
}, {
|
1283
1816
|
name: string;
|
1284
1817
|
columns: Record<string, {
|
@@ -1316,6 +1849,87 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1316
1849
|
name: string;
|
1317
1850
|
columns: string[];
|
1318
1851
|
}> | undefined;
|
1852
|
+
checkConstraints?: Record<string, {
|
1853
|
+
name: string;
|
1854
|
+
value: string;
|
1855
|
+
}> | undefined;
|
1856
|
+
}>>;
|
1857
|
+
views: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
1858
|
+
name: zod.ZodString;
|
1859
|
+
columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
1860
|
+
name: zod.ZodString;
|
1861
|
+
type: zod.ZodString;
|
1862
|
+
primaryKey: zod.ZodBoolean;
|
1863
|
+
notNull: zod.ZodBoolean;
|
1864
|
+
autoincrement: zod.ZodOptional<zod.ZodBoolean>;
|
1865
|
+
default: zod.ZodOptional<zod.ZodAny>;
|
1866
|
+
generated: zod.ZodOptional<zod.ZodObject<{
|
1867
|
+
type: zod.ZodEnum<["stored", "virtual"]>;
|
1868
|
+
as: zod.ZodString;
|
1869
|
+
}, "strip", zod.ZodTypeAny, {
|
1870
|
+
type: "stored" | "virtual";
|
1871
|
+
as: string;
|
1872
|
+
}, {
|
1873
|
+
type: "stored" | "virtual";
|
1874
|
+
as: string;
|
1875
|
+
}>>;
|
1876
|
+
}, "strict", zod.ZodTypeAny, {
|
1877
|
+
name: string;
|
1878
|
+
type: string;
|
1879
|
+
primaryKey: boolean;
|
1880
|
+
notNull: boolean;
|
1881
|
+
default?: any;
|
1882
|
+
autoincrement?: boolean | undefined;
|
1883
|
+
generated?: {
|
1884
|
+
type: "stored" | "virtual";
|
1885
|
+
as: string;
|
1886
|
+
} | undefined;
|
1887
|
+
}, {
|
1888
|
+
name: string;
|
1889
|
+
type: string;
|
1890
|
+
primaryKey: boolean;
|
1891
|
+
notNull: boolean;
|
1892
|
+
default?: any;
|
1893
|
+
autoincrement?: boolean | undefined;
|
1894
|
+
generated?: {
|
1895
|
+
type: "stored" | "virtual";
|
1896
|
+
as: string;
|
1897
|
+
} | undefined;
|
1898
|
+
}>>;
|
1899
|
+
definition: zod.ZodOptional<zod.ZodString>;
|
1900
|
+
isExisting: zod.ZodBoolean;
|
1901
|
+
}, "strict", zod.ZodTypeAny, {
|
1902
|
+
name: string;
|
1903
|
+
columns: Record<string, {
|
1904
|
+
name: string;
|
1905
|
+
type: string;
|
1906
|
+
primaryKey: boolean;
|
1907
|
+
notNull: boolean;
|
1908
|
+
default?: any;
|
1909
|
+
autoincrement?: boolean | undefined;
|
1910
|
+
generated?: {
|
1911
|
+
type: "stored" | "virtual";
|
1912
|
+
as: string;
|
1913
|
+
} | undefined;
|
1914
|
+
}>;
|
1915
|
+
isExisting: boolean;
|
1916
|
+
definition?: string | undefined;
|
1917
|
+
}, {
|
1918
|
+
name: string;
|
1919
|
+
columns: Record<string, {
|
1920
|
+
name: string;
|
1921
|
+
type: string;
|
1922
|
+
primaryKey: boolean;
|
1923
|
+
notNull: boolean;
|
1924
|
+
default?: any;
|
1925
|
+
autoincrement?: boolean | undefined;
|
1926
|
+
generated?: {
|
1927
|
+
type: "stored" | "virtual";
|
1928
|
+
as: string;
|
1929
|
+
} | undefined;
|
1930
|
+
}>;
|
1931
|
+
isExisting: boolean;
|
1932
|
+
definition?: string | undefined;
|
1319
1933
|
}>>;
|
1320
1934
|
enums: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
1321
1935
|
_meta: zod.ZodObject<{
|
@@ -1400,6 +2014,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1400
2014
|
name: string;
|
1401
2015
|
columns: string[];
|
1402
2016
|
}>;
|
2017
|
+
checkConstraints: Record<string, {
|
2018
|
+
name: string;
|
2019
|
+
value: string;
|
2020
|
+
}>;
|
1403
2021
|
}>;
|
1404
2022
|
id: string;
|
1405
2023
|
prevId: string;
|
@@ -1409,6 +2027,23 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1409
2027
|
columns: Record<string, string>;
|
1410
2028
|
tables: Record<string, string>;
|
1411
2029
|
};
|
2030
|
+
views: Record<string, {
|
2031
|
+
name: string;
|
2032
|
+
columns: Record<string, {
|
2033
|
+
name: string;
|
2034
|
+
type: string;
|
2035
|
+
primaryKey: boolean;
|
2036
|
+
notNull: boolean;
|
2037
|
+
default?: any;
|
2038
|
+
autoincrement?: boolean | undefined;
|
2039
|
+
generated?: {
|
2040
|
+
type: "stored" | "virtual";
|
2041
|
+
as: string;
|
2042
|
+
} | undefined;
|
2043
|
+
}>;
|
2044
|
+
isExisting: boolean;
|
2045
|
+
definition?: string | undefined;
|
2046
|
+
}>;
|
1412
2047
|
enums: {};
|
1413
2048
|
internal?: {
|
1414
2049
|
indexes?: Record<string, {
|
@@ -1455,6 +2090,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1455
2090
|
name: string;
|
1456
2091
|
columns: string[];
|
1457
2092
|
}> | undefined;
|
2093
|
+
checkConstraints?: Record<string, {
|
2094
|
+
name: string;
|
2095
|
+
value: string;
|
2096
|
+
}> | undefined;
|
1458
2097
|
}>;
|
1459
2098
|
id: string;
|
1460
2099
|
prevId: string;
|
@@ -1464,6 +2103,23 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1464
2103
|
columns: Record<string, string>;
|
1465
2104
|
tables: Record<string, string>;
|
1466
2105
|
};
|
2106
|
+
views: Record<string, {
|
2107
|
+
name: string;
|
2108
|
+
columns: Record<string, {
|
2109
|
+
name: string;
|
2110
|
+
type: string;
|
2111
|
+
primaryKey: boolean;
|
2112
|
+
notNull: boolean;
|
2113
|
+
default?: any;
|
2114
|
+
autoincrement?: boolean | undefined;
|
2115
|
+
generated?: {
|
2116
|
+
type: "stored" | "virtual";
|
2117
|
+
as: string;
|
2118
|
+
} | undefined;
|
2119
|
+
}>;
|
2120
|
+
isExisting: boolean;
|
2121
|
+
definition?: string | undefined;
|
2122
|
+
}>;
|
1467
2123
|
enums: {};
|
1468
2124
|
internal?: {
|
1469
2125
|
indexes?: Record<string, {
|
@@ -1568,13 +2224,9 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1568
2224
|
columns: string[];
|
1569
2225
|
nullsNotDistinct: boolean;
|
1570
2226
|
}>;
|
1571
|
-
|
2227
|
+
checkConstraints: Record<string, {
|
2228
|
+
value: string;
|
1572
2229
|
name: string;
|
1573
|
-
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
1574
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
1575
|
-
to?: string[] | undefined;
|
1576
|
-
using?: string | undefined;
|
1577
|
-
withCheck?: string | undefined;
|
1578
2230
|
}>;
|
1579
2231
|
}>;
|
1580
2232
|
enums: Record<string, {
|
@@ -1583,6 +2235,65 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1583
2235
|
schema: string;
|
1584
2236
|
}>;
|
1585
2237
|
schemas: Record<string, string>;
|
2238
|
+
views: Record<string, {
|
2239
|
+
name: string;
|
2240
|
+
schema: string;
|
2241
|
+
columns: Record<string, {
|
2242
|
+
type: string;
|
2243
|
+
name: string;
|
2244
|
+
primaryKey: boolean;
|
2245
|
+
notNull: boolean;
|
2246
|
+
typeSchema?: string | undefined;
|
2247
|
+
default?: any;
|
2248
|
+
isUnique?: any;
|
2249
|
+
uniqueName?: string | undefined;
|
2250
|
+
nullsNotDistinct?: boolean | undefined;
|
2251
|
+
generated?: {
|
2252
|
+
type: "stored";
|
2253
|
+
as: string;
|
2254
|
+
} | undefined;
|
2255
|
+
identity?: {
|
2256
|
+
type: "always" | "byDefault";
|
2257
|
+
name: string;
|
2258
|
+
schema: string;
|
2259
|
+
increment?: string | undefined;
|
2260
|
+
minValue?: string | undefined;
|
2261
|
+
maxValue?: string | undefined;
|
2262
|
+
startWith?: string | undefined;
|
2263
|
+
cache?: string | undefined;
|
2264
|
+
cycle?: boolean | undefined;
|
2265
|
+
} | undefined;
|
2266
|
+
}>;
|
2267
|
+
materialized: boolean;
|
2268
|
+
isExisting: boolean;
|
2269
|
+
with?: {
|
2270
|
+
checkOption?: "local" | "cascaded" | undefined;
|
2271
|
+
securityBarrier?: boolean | undefined;
|
2272
|
+
securityInvoker?: boolean | undefined;
|
2273
|
+
fillfactor?: number | undefined;
|
2274
|
+
toastTupleTarget?: number | undefined;
|
2275
|
+
parallelWorkers?: number | undefined;
|
2276
|
+
autovacuumEnabled?: boolean | undefined;
|
2277
|
+
vacuumIndexCleanup?: "auto" | "off" | "on" | undefined;
|
2278
|
+
vacuumTruncate?: boolean | undefined;
|
2279
|
+
autovacuumVacuumThreshold?: number | undefined;
|
2280
|
+
autovacuumVacuumScaleFactor?: number | undefined;
|
2281
|
+
autovacuumVacuumCostDelay?: number | undefined;
|
2282
|
+
autovacuumVacuumCostLimit?: number | undefined;
|
2283
|
+
autovacuumFreezeMinAge?: number | undefined;
|
2284
|
+
autovacuumFreezeMaxAge?: number | undefined;
|
2285
|
+
autovacuumFreezeTableAge?: number | undefined;
|
2286
|
+
autovacuumMultixactFreezeMinAge?: number | undefined;
|
2287
|
+
autovacuumMultixactFreezeMaxAge?: number | undefined;
|
2288
|
+
autovacuumMultixactFreezeTableAge?: number | undefined;
|
2289
|
+
logAutovacuumMinDuration?: number | undefined;
|
2290
|
+
userCatalogTable?: boolean | undefined;
|
2291
|
+
} | undefined;
|
2292
|
+
definition?: string | undefined;
|
2293
|
+
withNoData?: boolean | undefined;
|
2294
|
+
using?: string | undefined;
|
2295
|
+
tablespace?: string | undefined;
|
2296
|
+
}>;
|
1586
2297
|
sequences: Record<string, {
|
1587
2298
|
name: string;
|
1588
2299
|
schema: string;
|
@@ -1593,12 +2304,6 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1593
2304
|
cache?: string | undefined;
|
1594
2305
|
cycle?: boolean | undefined;
|
1595
2306
|
}>;
|
1596
|
-
roles: Record<string, {
|
1597
|
-
name: string;
|
1598
|
-
createDb?: boolean | undefined;
|
1599
|
-
createRole?: boolean | undefined;
|
1600
|
-
inherit?: boolean | undefined;
|
1601
|
-
}>;
|
1602
2307
|
_meta: {
|
1603
2308
|
tables: Record<string, string>;
|
1604
2309
|
columns: Record<string, string>;
|