drizzle-kit 0.22.8 → 0.23.0-03c18d1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.cjs +5914 -3971
- package/index.d.mts +2 -0
- package/index.d.ts +2 -0
- package/package.json +2 -2
- package/payload.d.mts +269 -6
- package/payload.d.ts +269 -6
- package/payload.js +2845 -1741
- package/payload.mjs +2846 -1743
- package/utils.js +90 -8
- package/utils.mjs +90 -8
package/index.d.mts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ConnectionOptions } from 'tls';
|
2
2
|
|
3
|
+
type Prefix = "index" | "timestamp" | "supabase" | "unix" | "none";
|
3
4
|
type Driver = "turso" | "d1-http" | "expo" | "aws-data-api";
|
4
5
|
|
5
6
|
type Dialect = "postgresql" | "mysql" | "sqlite";
|
@@ -121,6 +122,7 @@ type Config = {
|
|
121
122
|
migrations?: {
|
122
123
|
table?: string;
|
123
124
|
schema?: string;
|
125
|
+
prefix?: Prefix;
|
124
126
|
};
|
125
127
|
introspect?: {
|
126
128
|
casing: "camel" | "preserve";
|
package/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ConnectionOptions } from 'tls';
|
2
2
|
|
3
|
+
type Prefix = "index" | "timestamp" | "supabase" | "unix" | "none";
|
3
4
|
type Driver = "turso" | "d1-http" | "expo" | "aws-data-api";
|
4
5
|
|
5
6
|
type Dialect = "postgresql" | "mysql" | "sqlite";
|
@@ -121,6 +122,7 @@ type Config = {
|
|
121
122
|
migrations?: {
|
122
123
|
table?: string;
|
123
124
|
schema?: string;
|
125
|
+
prefix?: Prefix;
|
124
126
|
};
|
125
127
|
introspect?: {
|
126
128
|
casing: "camel" | "preserve";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.23.0-03c18d1",
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
5
5
|
"author": "Drizzle Team",
|
6
6
|
"license": "MIT",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"dockerode": "^3.3.4",
|
57
57
|
"dotenv": "^16.0.3",
|
58
58
|
"drizzle-kit": "0.21.2",
|
59
|
-
"drizzle-orm": "0.
|
59
|
+
"drizzle-orm": "0.32.0-85c8008",
|
60
60
|
"env-paths": "^3.0.0",
|
61
61
|
"esbuild-node-externals": "^1.9.0",
|
62
62
|
"eslint": "^8.57.0",
|
package/payload.d.mts
CHANGED
@@ -20,6 +20,48 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
20
20
|
isUnique: zod.ZodOptional<zod.ZodAny>;
|
21
21
|
uniqueName: zod.ZodOptional<zod.ZodString>;
|
22
22
|
nullsNotDistinct: zod.ZodOptional<zod.ZodBoolean>;
|
23
|
+
generated: zod.ZodOptional<zod.ZodObject<{
|
24
|
+
type: zod.ZodLiteral<"stored">;
|
25
|
+
as: zod.ZodString;
|
26
|
+
}, "strip", zod.ZodTypeAny, {
|
27
|
+
type: "stored";
|
28
|
+
as: string;
|
29
|
+
}, {
|
30
|
+
type: "stored";
|
31
|
+
as: string;
|
32
|
+
}>>;
|
33
|
+
identity: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
|
34
|
+
name: zod.ZodString;
|
35
|
+
increment: zod.ZodOptional<zod.ZodString>;
|
36
|
+
minValue: zod.ZodOptional<zod.ZodString>;
|
37
|
+
maxValue: zod.ZodOptional<zod.ZodString>;
|
38
|
+
startWith: zod.ZodOptional<zod.ZodString>;
|
39
|
+
cache: zod.ZodOptional<zod.ZodString>;
|
40
|
+
cycle: zod.ZodOptional<zod.ZodBoolean>;
|
41
|
+
schema: zod.ZodString;
|
42
|
+
}, {
|
43
|
+
type: zod.ZodEnum<["always", "byDefault"]>;
|
44
|
+
}>, "strip", zod.ZodTypeAny, {
|
45
|
+
name: string;
|
46
|
+
type: "always" | "byDefault";
|
47
|
+
schema: string;
|
48
|
+
increment?: string | undefined;
|
49
|
+
minValue?: string | undefined;
|
50
|
+
maxValue?: string | undefined;
|
51
|
+
startWith?: string | undefined;
|
52
|
+
cache?: string | undefined;
|
53
|
+
cycle?: boolean | undefined;
|
54
|
+
}, {
|
55
|
+
name: string;
|
56
|
+
type: "always" | "byDefault";
|
57
|
+
schema: string;
|
58
|
+
increment?: string | undefined;
|
59
|
+
minValue?: string | undefined;
|
60
|
+
maxValue?: string | undefined;
|
61
|
+
startWith?: string | undefined;
|
62
|
+
cache?: string | undefined;
|
63
|
+
cycle?: boolean | undefined;
|
64
|
+
}>>;
|
23
65
|
}, "strict", zod.ZodTypeAny, {
|
24
66
|
name: string;
|
25
67
|
type: string;
|
@@ -27,9 +69,24 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
27
69
|
notNull: boolean;
|
28
70
|
isUnique?: any;
|
29
71
|
default?: any;
|
72
|
+
generated?: {
|
73
|
+
type: "stored";
|
74
|
+
as: string;
|
75
|
+
} | undefined;
|
30
76
|
typeSchema?: string | undefined;
|
31
77
|
uniqueName?: string | undefined;
|
32
78
|
nullsNotDistinct?: boolean | undefined;
|
79
|
+
identity?: {
|
80
|
+
name: string;
|
81
|
+
type: "always" | "byDefault";
|
82
|
+
schema: string;
|
83
|
+
increment?: string | undefined;
|
84
|
+
minValue?: string | undefined;
|
85
|
+
maxValue?: string | undefined;
|
86
|
+
startWith?: string | undefined;
|
87
|
+
cache?: string | undefined;
|
88
|
+
cycle?: boolean | undefined;
|
89
|
+
} | undefined;
|
33
90
|
}, {
|
34
91
|
name: string;
|
35
92
|
type: string;
|
@@ -37,9 +94,24 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
37
94
|
notNull: boolean;
|
38
95
|
isUnique?: any;
|
39
96
|
default?: any;
|
97
|
+
generated?: {
|
98
|
+
type: "stored";
|
99
|
+
as: string;
|
100
|
+
} | undefined;
|
40
101
|
typeSchema?: string | undefined;
|
41
102
|
uniqueName?: string | undefined;
|
42
103
|
nullsNotDistinct?: boolean | undefined;
|
104
|
+
identity?: {
|
105
|
+
name: string;
|
106
|
+
type: "always" | "byDefault";
|
107
|
+
schema: string;
|
108
|
+
increment?: string | undefined;
|
109
|
+
minValue?: string | undefined;
|
110
|
+
maxValue?: string | undefined;
|
111
|
+
startWith?: string | undefined;
|
112
|
+
cache?: string | undefined;
|
113
|
+
cycle?: boolean | undefined;
|
114
|
+
} | undefined;
|
43
115
|
}>>;
|
44
116
|
indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
45
117
|
name: zod.ZodString;
|
@@ -156,9 +228,24 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
156
228
|
notNull: boolean;
|
157
229
|
isUnique?: any;
|
158
230
|
default?: any;
|
231
|
+
generated?: {
|
232
|
+
type: "stored";
|
233
|
+
as: string;
|
234
|
+
} | undefined;
|
159
235
|
typeSchema?: string | undefined;
|
160
236
|
uniqueName?: string | undefined;
|
161
237
|
nullsNotDistinct?: boolean | undefined;
|
238
|
+
identity?: {
|
239
|
+
name: string;
|
240
|
+
type: "always" | "byDefault";
|
241
|
+
schema: string;
|
242
|
+
increment?: string | undefined;
|
243
|
+
minValue?: string | undefined;
|
244
|
+
maxValue?: string | undefined;
|
245
|
+
startWith?: string | undefined;
|
246
|
+
cache?: string | undefined;
|
247
|
+
cycle?: boolean | undefined;
|
248
|
+
} | undefined;
|
162
249
|
}>;
|
163
250
|
indexes: Record<string, {
|
164
251
|
name: string;
|
@@ -204,9 +291,24 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
204
291
|
notNull: boolean;
|
205
292
|
isUnique?: any;
|
206
293
|
default?: any;
|
294
|
+
generated?: {
|
295
|
+
type: "stored";
|
296
|
+
as: string;
|
297
|
+
} | undefined;
|
207
298
|
typeSchema?: string | undefined;
|
208
299
|
uniqueName?: string | undefined;
|
209
300
|
nullsNotDistinct?: boolean | undefined;
|
301
|
+
identity?: {
|
302
|
+
name: string;
|
303
|
+
type: "always" | "byDefault";
|
304
|
+
schema: string;
|
305
|
+
increment?: string | undefined;
|
306
|
+
minValue?: string | undefined;
|
307
|
+
maxValue?: string | undefined;
|
308
|
+
startWith?: string | undefined;
|
309
|
+
cache?: string | undefined;
|
310
|
+
cycle?: boolean | undefined;
|
311
|
+
} | undefined;
|
210
312
|
}>;
|
211
313
|
indexes: Record<string, {
|
212
314
|
name: string;
|
@@ -258,6 +360,34 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
258
360
|
schema: string;
|
259
361
|
}>>;
|
260
362
|
schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
363
|
+
sequences: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
364
|
+
name: zod.ZodString;
|
365
|
+
increment: zod.ZodOptional<zod.ZodString>;
|
366
|
+
minValue: zod.ZodOptional<zod.ZodString>;
|
367
|
+
maxValue: zod.ZodOptional<zod.ZodString>;
|
368
|
+
startWith: zod.ZodOptional<zod.ZodString>;
|
369
|
+
cache: zod.ZodOptional<zod.ZodString>;
|
370
|
+
cycle: zod.ZodOptional<zod.ZodBoolean>;
|
371
|
+
schema: zod.ZodString;
|
372
|
+
}, "strict", zod.ZodTypeAny, {
|
373
|
+
name: string;
|
374
|
+
schema: string;
|
375
|
+
increment?: string | undefined;
|
376
|
+
minValue?: string | undefined;
|
377
|
+
maxValue?: string | undefined;
|
378
|
+
startWith?: string | undefined;
|
379
|
+
cache?: string | undefined;
|
380
|
+
cycle?: boolean | undefined;
|
381
|
+
}, {
|
382
|
+
name: string;
|
383
|
+
schema: string;
|
384
|
+
increment?: string | undefined;
|
385
|
+
minValue?: string | undefined;
|
386
|
+
maxValue?: string | undefined;
|
387
|
+
startWith?: string | undefined;
|
388
|
+
cache?: string | undefined;
|
389
|
+
cycle?: boolean | undefined;
|
390
|
+
}>>>;
|
261
391
|
_meta: zod.ZodObject<{
|
262
392
|
schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
263
393
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
|
@@ -329,9 +459,24 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
329
459
|
notNull: boolean;
|
330
460
|
isUnique?: any;
|
331
461
|
default?: any;
|
462
|
+
generated?: {
|
463
|
+
type: "stored";
|
464
|
+
as: string;
|
465
|
+
} | undefined;
|
332
466
|
typeSchema?: string | undefined;
|
333
467
|
uniqueName?: string | undefined;
|
334
468
|
nullsNotDistinct?: boolean | undefined;
|
469
|
+
identity?: {
|
470
|
+
name: string;
|
471
|
+
type: "always" | "byDefault";
|
472
|
+
schema: string;
|
473
|
+
increment?: string | undefined;
|
474
|
+
minValue?: string | undefined;
|
475
|
+
maxValue?: string | undefined;
|
476
|
+
startWith?: string | undefined;
|
477
|
+
cache?: string | undefined;
|
478
|
+
cycle?: boolean | undefined;
|
479
|
+
} | undefined;
|
335
480
|
}>;
|
336
481
|
indexes: Record<string, {
|
337
482
|
name: string;
|
@@ -384,6 +529,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
384
529
|
values: string[];
|
385
530
|
schema: string;
|
386
531
|
}>;
|
532
|
+
sequences: Record<string, {
|
533
|
+
name: string;
|
534
|
+
schema: string;
|
535
|
+
increment?: string | undefined;
|
536
|
+
minValue?: string | undefined;
|
537
|
+
maxValue?: string | undefined;
|
538
|
+
startWith?: string | undefined;
|
539
|
+
cache?: string | undefined;
|
540
|
+
cycle?: boolean | undefined;
|
541
|
+
}>;
|
387
542
|
internal?: {
|
388
543
|
tables: Record<string, {
|
389
544
|
columns: Record<string, {
|
@@ -403,9 +558,24 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
403
558
|
notNull: boolean;
|
404
559
|
isUnique?: any;
|
405
560
|
default?: any;
|
561
|
+
generated?: {
|
562
|
+
type: "stored";
|
563
|
+
as: string;
|
564
|
+
} | undefined;
|
406
565
|
typeSchema?: string | undefined;
|
407
566
|
uniqueName?: string | undefined;
|
408
567
|
nullsNotDistinct?: boolean | undefined;
|
568
|
+
identity?: {
|
569
|
+
name: string;
|
570
|
+
type: "always" | "byDefault";
|
571
|
+
schema: string;
|
572
|
+
increment?: string | undefined;
|
573
|
+
minValue?: string | undefined;
|
574
|
+
maxValue?: string | undefined;
|
575
|
+
startWith?: string | undefined;
|
576
|
+
cache?: string | undefined;
|
577
|
+
cycle?: boolean | undefined;
|
578
|
+
} | undefined;
|
409
579
|
}>;
|
410
580
|
indexes: Record<string, {
|
411
581
|
name: string;
|
@@ -467,6 +637,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
467
637
|
} | undefined>;
|
468
638
|
} | undefined>;
|
469
639
|
} | undefined;
|
640
|
+
sequences?: Record<string, {
|
641
|
+
name: string;
|
642
|
+
schema: string;
|
643
|
+
increment?: string | undefined;
|
644
|
+
minValue?: string | undefined;
|
645
|
+
maxValue?: string | undefined;
|
646
|
+
startWith?: string | undefined;
|
647
|
+
cache?: string | undefined;
|
648
|
+
cycle?: boolean | undefined;
|
649
|
+
}> | undefined;
|
470
650
|
}>;
|
471
651
|
type PgSchema = TypeOf<typeof pgSchema>;
|
472
652
|
|
@@ -482,6 +662,16 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
482
662
|
notNull: zod.ZodBoolean;
|
483
663
|
autoincrement: zod.ZodOptional<zod.ZodBoolean>;
|
484
664
|
default: zod.ZodOptional<zod.ZodAny>;
|
665
|
+
generated: zod.ZodOptional<zod.ZodObject<{
|
666
|
+
type: zod.ZodEnum<["stored", "virtual"]>;
|
667
|
+
as: zod.ZodString;
|
668
|
+
}, "strip", zod.ZodTypeAny, {
|
669
|
+
type: "stored" | "virtual";
|
670
|
+
as: string;
|
671
|
+
}, {
|
672
|
+
type: "stored" | "virtual";
|
673
|
+
as: string;
|
674
|
+
}>>;
|
485
675
|
}, "strict", zod.ZodTypeAny, {
|
486
676
|
name: string;
|
487
677
|
type: string;
|
@@ -489,6 +679,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
489
679
|
notNull: boolean;
|
490
680
|
default?: any;
|
491
681
|
autoincrement?: boolean | undefined;
|
682
|
+
generated?: {
|
683
|
+
type: "stored" | "virtual";
|
684
|
+
as: string;
|
685
|
+
} | undefined;
|
492
686
|
}, {
|
493
687
|
name: string;
|
494
688
|
type: string;
|
@@ -496,6 +690,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
496
690
|
notNull: boolean;
|
497
691
|
default?: any;
|
498
692
|
autoincrement?: boolean | undefined;
|
693
|
+
generated?: {
|
694
|
+
type: "stored" | "virtual";
|
695
|
+
as: string;
|
696
|
+
} | undefined;
|
499
697
|
}>>;
|
500
698
|
indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
501
699
|
name: zod.ZodString;
|
@@ -567,6 +765,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
567
765
|
notNull: boolean;
|
568
766
|
default?: any;
|
569
767
|
autoincrement?: boolean | undefined;
|
768
|
+
generated?: {
|
769
|
+
type: "stored" | "virtual";
|
770
|
+
as: string;
|
771
|
+
} | undefined;
|
570
772
|
}>;
|
571
773
|
indexes: Record<string, {
|
572
774
|
name: string;
|
@@ -600,6 +802,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
600
802
|
notNull: boolean;
|
601
803
|
default?: any;
|
602
804
|
autoincrement?: boolean | undefined;
|
805
|
+
generated?: {
|
806
|
+
type: "stored" | "virtual";
|
807
|
+
as: string;
|
808
|
+
} | undefined;
|
603
809
|
}>;
|
604
810
|
indexes: Record<string, {
|
605
811
|
name: string;
|
@@ -680,6 +886,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
680
886
|
notNull: boolean;
|
681
887
|
default?: any;
|
682
888
|
autoincrement?: boolean | undefined;
|
889
|
+
generated?: {
|
890
|
+
type: "stored" | "virtual";
|
891
|
+
as: string;
|
892
|
+
} | undefined;
|
683
893
|
}>;
|
684
894
|
indexes: Record<string, {
|
685
895
|
name: string;
|
@@ -731,6 +941,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
731
941
|
notNull: boolean;
|
732
942
|
default?: any;
|
733
943
|
autoincrement?: boolean | undefined;
|
944
|
+
generated?: {
|
945
|
+
type: "stored" | "virtual";
|
946
|
+
as: string;
|
947
|
+
} | undefined;
|
734
948
|
}>;
|
735
949
|
indexes: Record<string, {
|
736
950
|
name: string;
|
@@ -788,6 +1002,16 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
788
1002
|
autoincrement: zod.ZodOptional<zod.ZodBoolean>;
|
789
1003
|
default: zod.ZodOptional<zod.ZodAny>;
|
790
1004
|
onUpdate: zod.ZodOptional<zod.ZodAny>;
|
1005
|
+
generated: zod.ZodOptional<zod.ZodObject<{
|
1006
|
+
type: zod.ZodEnum<["stored", "virtual"]>;
|
1007
|
+
as: zod.ZodString;
|
1008
|
+
}, "strip", zod.ZodTypeAny, {
|
1009
|
+
type: "stored" | "virtual";
|
1010
|
+
as: string;
|
1011
|
+
}, {
|
1012
|
+
type: "stored" | "virtual";
|
1013
|
+
as: string;
|
1014
|
+
}>>;
|
791
1015
|
}, "strict", zod.ZodTypeAny, {
|
792
1016
|
name: string;
|
793
1017
|
type: string;
|
@@ -796,6 +1020,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
796
1020
|
default?: any;
|
797
1021
|
onUpdate?: any;
|
798
1022
|
autoincrement?: boolean | undefined;
|
1023
|
+
generated?: {
|
1024
|
+
type: "stored" | "virtual";
|
1025
|
+
as: string;
|
1026
|
+
} | undefined;
|
799
1027
|
}, {
|
800
1028
|
name: string;
|
801
1029
|
type: string;
|
@@ -804,6 +1032,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
804
1032
|
default?: any;
|
805
1033
|
onUpdate?: any;
|
806
1034
|
autoincrement?: boolean | undefined;
|
1035
|
+
generated?: {
|
1036
|
+
type: "stored" | "virtual";
|
1037
|
+
as: string;
|
1038
|
+
} | undefined;
|
807
1039
|
}>>;
|
808
1040
|
indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
809
1041
|
name: zod.ZodString;
|
@@ -818,14 +1050,14 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
818
1050
|
isUnique: boolean;
|
819
1051
|
using?: "btree" | "hash" | undefined;
|
820
1052
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
821
|
-
lock?: "
|
1053
|
+
lock?: "none" | "default" | "shared" | "exclusive" | undefined;
|
822
1054
|
}, {
|
823
1055
|
name: string;
|
824
1056
|
columns: string[];
|
825
1057
|
isUnique: boolean;
|
826
1058
|
using?: "btree" | "hash" | undefined;
|
827
1059
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
828
|
-
lock?: "
|
1060
|
+
lock?: "none" | "default" | "shared" | "exclusive" | undefined;
|
829
1061
|
}>>;
|
830
1062
|
foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
831
1063
|
name: zod.ZodString;
|
@@ -882,6 +1114,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
882
1114
|
default?: any;
|
883
1115
|
onUpdate?: any;
|
884
1116
|
autoincrement?: boolean | undefined;
|
1117
|
+
generated?: {
|
1118
|
+
type: "stored" | "virtual";
|
1119
|
+
as: string;
|
1120
|
+
} | undefined;
|
885
1121
|
}>;
|
886
1122
|
indexes: Record<string, {
|
887
1123
|
name: string;
|
@@ -889,7 +1125,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
889
1125
|
isUnique: boolean;
|
890
1126
|
using?: "btree" | "hash" | undefined;
|
891
1127
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
892
|
-
lock?: "
|
1128
|
+
lock?: "none" | "default" | "shared" | "exclusive" | undefined;
|
893
1129
|
}>;
|
894
1130
|
foreignKeys: Record<string, {
|
895
1131
|
name: string;
|
@@ -918,6 +1154,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
918
1154
|
default?: any;
|
919
1155
|
onUpdate?: any;
|
920
1156
|
autoincrement?: boolean | undefined;
|
1157
|
+
generated?: {
|
1158
|
+
type: "stored" | "virtual";
|
1159
|
+
as: string;
|
1160
|
+
} | undefined;
|
921
1161
|
}>;
|
922
1162
|
indexes: Record<string, {
|
923
1163
|
name: string;
|
@@ -925,7 +1165,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
925
1165
|
isUnique: boolean;
|
926
1166
|
using?: "btree" | "hash" | undefined;
|
927
1167
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
928
|
-
lock?: "
|
1168
|
+
lock?: "none" | "default" | "shared" | "exclusive" | undefined;
|
929
1169
|
}>;
|
930
1170
|
foreignKeys: Record<string, {
|
931
1171
|
name: string;
|
@@ -1027,6 +1267,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1027
1267
|
default?: any;
|
1028
1268
|
onUpdate?: any;
|
1029
1269
|
autoincrement?: boolean | undefined;
|
1270
|
+
generated?: {
|
1271
|
+
type: "stored" | "virtual";
|
1272
|
+
as: string;
|
1273
|
+
} | undefined;
|
1030
1274
|
}>;
|
1031
1275
|
indexes: Record<string, {
|
1032
1276
|
name: string;
|
@@ -1034,7 +1278,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1034
1278
|
isUnique: boolean;
|
1035
1279
|
using?: "btree" | "hash" | undefined;
|
1036
1280
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
1037
|
-
lock?: "
|
1281
|
+
lock?: "none" | "default" | "shared" | "exclusive" | undefined;
|
1038
1282
|
}>;
|
1039
1283
|
foreignKeys: Record<string, {
|
1040
1284
|
name: string;
|
@@ -1085,6 +1329,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1085
1329
|
default?: any;
|
1086
1330
|
onUpdate?: any;
|
1087
1331
|
autoincrement?: boolean | undefined;
|
1332
|
+
generated?: {
|
1333
|
+
type: "stored" | "virtual";
|
1334
|
+
as: string;
|
1335
|
+
} | undefined;
|
1088
1336
|
}>;
|
1089
1337
|
indexes: Record<string, {
|
1090
1338
|
name: string;
|
@@ -1092,7 +1340,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1092
1340
|
isUnique: boolean;
|
1093
1341
|
using?: "btree" | "hash" | undefined;
|
1094
1342
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
1095
|
-
lock?: "
|
1343
|
+
lock?: "none" | "default" | "shared" | "exclusive" | undefined;
|
1096
1344
|
}>;
|
1097
1345
|
foreignKeys: Record<string, {
|
1098
1346
|
name: string;
|
@@ -1178,6 +1426,21 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1178
1426
|
isUnique?: any;
|
1179
1427
|
uniqueName?: string | undefined;
|
1180
1428
|
nullsNotDistinct?: boolean | undefined;
|
1429
|
+
generated?: {
|
1430
|
+
type: "stored";
|
1431
|
+
as: string;
|
1432
|
+
} | undefined;
|
1433
|
+
identity?: {
|
1434
|
+
type: "always" | "byDefault";
|
1435
|
+
name: string;
|
1436
|
+
schema: string;
|
1437
|
+
increment?: string | undefined;
|
1438
|
+
minValue?: string | undefined;
|
1439
|
+
maxValue?: string | undefined;
|
1440
|
+
startWith?: string | undefined;
|
1441
|
+
cache?: string | undefined;
|
1442
|
+
cycle?: boolean | undefined;
|
1443
|
+
} | undefined;
|
1181
1444
|
}>;
|
1182
1445
|
indexes: Record<string, {
|
1183
1446
|
name: string;
|