drizzle-kit 0.21.4 → 0.22.0-18d9643

Sign up to get free protection for your applications and to get access to all the features.
package/payload.d.ts CHANGED
@@ -5,7 +5,7 @@ import { MySql2Database } from 'drizzle-orm/mysql2';
5
5
  import { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3';
6
6
 
7
7
  declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
8
- version: zod.ZodLiteral<"6">;
8
+ version: zod.ZodLiteral<"7">;
9
9
  dialect: zod.ZodLiteral<"postgresql">;
10
10
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
11
11
  name: zod.ZodString;
@@ -43,16 +43,58 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
43
43
  }>>;
44
44
  indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
45
45
  name: zod.ZodString;
46
- columns: zod.ZodArray<zod.ZodString, "many">;
46
+ columns: zod.ZodArray<zod.ZodObject<{
47
+ expression: zod.ZodString;
48
+ isExpression: zod.ZodBoolean;
49
+ asc: zod.ZodBoolean;
50
+ nulls: zod.ZodOptional<zod.ZodString>;
51
+ opclass: zod.ZodOptional<zod.ZodString>;
52
+ }, "strip", zod.ZodTypeAny, {
53
+ isExpression: boolean;
54
+ expression: string;
55
+ asc: boolean;
56
+ nulls?: string | undefined;
57
+ opclass?: string | undefined;
58
+ }, {
59
+ isExpression: boolean;
60
+ expression: string;
61
+ asc: boolean;
62
+ nulls?: string | undefined;
63
+ opclass?: string | undefined;
64
+ }>, "many">;
47
65
  isUnique: zod.ZodBoolean;
66
+ with: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
67
+ method: zod.ZodDefault<zod.ZodString>;
68
+ where: zod.ZodOptional<zod.ZodString>;
69
+ concurrently: zod.ZodDefault<zod.ZodBoolean>;
48
70
  }, "strict", zod.ZodTypeAny, {
49
71
  name: string;
50
- columns: string[];
72
+ columns: {
73
+ isExpression: boolean;
74
+ expression: string;
75
+ asc: boolean;
76
+ nulls?: string | undefined;
77
+ opclass?: string | undefined;
78
+ }[];
51
79
  isUnique: boolean;
80
+ method: string;
81
+ concurrently: boolean;
82
+ with?: Record<string, any> | undefined;
83
+ where?: string | undefined;
52
84
  }, {
53
85
  name: string;
54
- columns: string[];
86
+ columns: {
87
+ isExpression: boolean;
88
+ expression: string;
89
+ asc: boolean;
90
+ nulls?: string | undefined;
91
+ opclass?: string | undefined;
92
+ }[];
55
93
  isUnique: boolean;
94
+ with?: Record<string, any> | undefined;
95
+ method?: string | undefined;
96
+ where?: string | undefined;
97
+ concurrently?: boolean | undefined;
56
98
  }>>;
57
99
  foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
58
100
  name: zod.ZodString;
@@ -120,8 +162,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
120
162
  }>;
121
163
  indexes: Record<string, {
122
164
  name: string;
123
- columns: string[];
165
+ columns: {
166
+ isExpression: boolean;
167
+ expression: string;
168
+ asc: boolean;
169
+ nulls?: string | undefined;
170
+ opclass?: string | undefined;
171
+ }[];
124
172
  isUnique: boolean;
173
+ method: string;
174
+ concurrently: boolean;
175
+ with?: Record<string, any> | undefined;
176
+ where?: string | undefined;
125
177
  }>;
126
178
  foreignKeys: Record<string, {
127
179
  name: string;
@@ -158,8 +210,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
158
210
  }>;
159
211
  indexes: Record<string, {
160
212
  name: string;
161
- columns: string[];
213
+ columns: {
214
+ isExpression: boolean;
215
+ expression: string;
216
+ asc: boolean;
217
+ nulls?: string | undefined;
218
+ opclass?: string | undefined;
219
+ }[];
162
220
  isUnique: boolean;
221
+ with?: Record<string, any> | undefined;
222
+ method?: string | undefined;
223
+ where?: string | undefined;
224
+ concurrently?: boolean | undefined;
163
225
  }>;
164
226
  foreignKeys: Record<string, {
165
227
  name: string;
@@ -273,8 +335,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
273
335
  }>;
274
336
  indexes: Record<string, {
275
337
  name: string;
276
- columns: string[];
338
+ columns: {
339
+ isExpression: boolean;
340
+ expression: string;
341
+ asc: boolean;
342
+ nulls?: string | undefined;
343
+ opclass?: string | undefined;
344
+ }[];
277
345
  isUnique: boolean;
346
+ method: string;
347
+ concurrently: boolean;
348
+ with?: Record<string, any> | undefined;
349
+ where?: string | undefined;
278
350
  }>;
279
351
  foreignKeys: Record<string, {
280
352
  name: string;
@@ -299,7 +371,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
299
371
  }>;
300
372
  id: string;
301
373
  prevId: string;
302
- version: "6";
374
+ version: "7";
303
375
  dialect: "postgresql";
304
376
  schemas: Record<string, string>;
305
377
  _meta: {
@@ -337,8 +409,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
337
409
  }>;
338
410
  indexes: Record<string, {
339
411
  name: string;
340
- columns: string[];
412
+ columns: {
413
+ isExpression: boolean;
414
+ expression: string;
415
+ asc: boolean;
416
+ nulls?: string | undefined;
417
+ opclass?: string | undefined;
418
+ }[];
341
419
  isUnique: boolean;
420
+ with?: Record<string, any> | undefined;
421
+ method?: string | undefined;
422
+ where?: string | undefined;
423
+ concurrently?: boolean | undefined;
342
424
  }>;
343
425
  foreignKeys: Record<string, {
344
426
  name: string;
@@ -363,7 +445,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
363
445
  }>;
364
446
  id: string;
365
447
  prevId: string;
366
- version: "6";
448
+ version: "7";
367
449
  dialect: "postgresql";
368
450
  schemas: Record<string, string>;
369
451
  _meta: {
@@ -554,6 +636,37 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
554
636
  columns: Record<string, string>;
555
637
  tables: Record<string, string>;
556
638
  }>;
639
+ internal: zod.ZodOptional<zod.ZodObject<{
640
+ indexes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
641
+ columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
642
+ isExpression: zod.ZodOptional<zod.ZodBoolean>;
643
+ }, "strip", zod.ZodTypeAny, {
644
+ isExpression?: boolean | undefined;
645
+ }, {
646
+ isExpression?: boolean | undefined;
647
+ }>>>;
648
+ }, "strip", zod.ZodTypeAny, {
649
+ columns: Record<string, {
650
+ isExpression?: boolean | undefined;
651
+ } | undefined>;
652
+ }, {
653
+ columns: Record<string, {
654
+ isExpression?: boolean | undefined;
655
+ } | undefined>;
656
+ }>>>>;
657
+ }, "strip", zod.ZodTypeAny, {
658
+ indexes?: Record<string, {
659
+ columns: Record<string, {
660
+ isExpression?: boolean | undefined;
661
+ } | undefined>;
662
+ } | undefined> | undefined;
663
+ }, {
664
+ indexes?: Record<string, {
665
+ columns: Record<string, {
666
+ isExpression?: boolean | undefined;
667
+ } | undefined>;
668
+ } | undefined> | undefined;
669
+ }>>;
557
670
  }, {
558
671
  id: zod.ZodString;
559
672
  prevId: zod.ZodString;
@@ -601,6 +714,13 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
601
714
  tables: Record<string, string>;
602
715
  };
603
716
  enums: {};
717
+ internal?: {
718
+ indexes?: Record<string, {
719
+ columns: Record<string, {
720
+ isExpression?: boolean | undefined;
721
+ } | undefined>;
722
+ } | undefined> | undefined;
723
+ } | undefined;
604
724
  }, {
605
725
  tables: Record<string, {
606
726
  name: string;
@@ -645,6 +765,13 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
645
765
  tables: Record<string, string>;
646
766
  };
647
767
  enums: {};
768
+ internal?: {
769
+ indexes?: Record<string, {
770
+ columns: Record<string, {
771
+ isExpression?: boolean | undefined;
772
+ } | undefined>;
773
+ } | undefined> | undefined;
774
+ } | undefined;
648
775
  }>;
649
776
  type SQLiteSchema = TypeOf<typeof schema$1>;
650
777
 
@@ -829,7 +956,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
829
956
  tables: Record<string, string>;
830
957
  }>;
831
958
  internal: zod.ZodOptional<zod.ZodObject<{
832
- tables: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
959
+ tables: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
833
960
  columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
834
961
  isDefaultAnExpression: zod.ZodOptional<zod.ZodBoolean>;
835
962
  }, "strip", zod.ZodTypeAny, {
@@ -845,19 +972,46 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
845
972
  columns: Record<string, {
846
973
  isDefaultAnExpression?: boolean | undefined;
847
974
  } | undefined>;
848
- }>>>;
975
+ }>>>>;
976
+ indexes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
977
+ columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
978
+ isExpression: zod.ZodOptional<zod.ZodBoolean>;
979
+ }, "strip", zod.ZodTypeAny, {
980
+ isExpression?: boolean | undefined;
981
+ }, {
982
+ isExpression?: boolean | undefined;
983
+ }>>>;
984
+ }, "strip", zod.ZodTypeAny, {
985
+ columns: Record<string, {
986
+ isExpression?: boolean | undefined;
987
+ } | undefined>;
988
+ }, {
989
+ columns: Record<string, {
990
+ isExpression?: boolean | undefined;
991
+ } | undefined>;
992
+ }>>>>;
849
993
  }, "strip", zod.ZodTypeAny, {
850
- tables: Record<string, {
994
+ indexes?: Record<string, {
995
+ columns: Record<string, {
996
+ isExpression?: boolean | undefined;
997
+ } | undefined>;
998
+ } | undefined> | undefined;
999
+ tables?: Record<string, {
851
1000
  columns: Record<string, {
852
1001
  isDefaultAnExpression?: boolean | undefined;
853
1002
  } | undefined>;
854
- } | undefined>;
1003
+ } | undefined> | undefined;
855
1004
  }, {
856
- tables: Record<string, {
1005
+ indexes?: Record<string, {
1006
+ columns: Record<string, {
1007
+ isExpression?: boolean | undefined;
1008
+ } | undefined>;
1009
+ } | undefined> | undefined;
1010
+ tables?: Record<string, {
857
1011
  columns: Record<string, {
858
1012
  isDefaultAnExpression?: boolean | undefined;
859
1013
  } | undefined>;
860
- } | undefined>;
1014
+ } | undefined> | undefined;
861
1015
  }>>;
862
1016
  }, {
863
1017
  id: zod.ZodString;
@@ -909,11 +1063,16 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
909
1063
  tables: Record<string, string>;
910
1064
  };
911
1065
  internal?: {
912
- tables: Record<string, {
1066
+ indexes?: Record<string, {
1067
+ columns: Record<string, {
1068
+ isExpression?: boolean | undefined;
1069
+ } | undefined>;
1070
+ } | undefined> | undefined;
1071
+ tables?: Record<string, {
913
1072
  columns: Record<string, {
914
1073
  isDefaultAnExpression?: boolean | undefined;
915
1074
  } | undefined>;
916
- } | undefined>;
1075
+ } | undefined> | undefined;
917
1076
  } | undefined;
918
1077
  }, {
919
1078
  tables: Record<string, {
@@ -962,11 +1121,16 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
962
1121
  tables: Record<string, string>;
963
1122
  };
964
1123
  internal?: {
965
- tables: Record<string, {
1124
+ indexes?: Record<string, {
1125
+ columns: Record<string, {
1126
+ isExpression?: boolean | undefined;
1127
+ } | undefined>;
1128
+ } | undefined> | undefined;
1129
+ tables?: Record<string, {
966
1130
  columns: Record<string, {
967
1131
  isDefaultAnExpression?: boolean | undefined;
968
1132
  } | undefined>;
969
- } | undefined>;
1133
+ } | undefined> | undefined;
970
1134
  } | undefined;
971
1135
  }>;
972
1136
  type MySqlSchema = TypeOf<typeof schema>;
@@ -1019,6 +1183,10 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
1019
1183
  name: string;
1020
1184
  columns: string[];
1021
1185
  isUnique: boolean;
1186
+ method: string;
1187
+ concurrently: boolean;
1188
+ with?: Record<string, string> | undefined;
1189
+ where?: string | undefined;
1022
1190
  }>;
1023
1191
  foreignKeys: Record<string, {
1024
1192
  name: string;