drizzle-kit 0.22.0-5b09380 → 0.22.0-7a041f3

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/payload.d.ts CHANGED
@@ -21,8 +21,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
21
21
  uniqueName: zod.ZodOptional<zod.ZodString>;
22
22
  nullsNotDistinct: zod.ZodOptional<zod.ZodBoolean>;
23
23
  }, "strict", zod.ZodTypeAny, {
24
- type: string;
25
24
  name: string;
25
+ type: string;
26
26
  primaryKey: boolean;
27
27
  notNull: boolean;
28
28
  isUnique?: any;
@@ -31,8 +31,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
31
31
  uniqueName?: string | undefined;
32
32
  nullsNotDistinct?: boolean | undefined;
33
33
  }, {
34
- type: string;
35
34
  name: string;
35
+ type: string;
36
36
  primaryKey: boolean;
37
37
  notNull: boolean;
38
38
  isUnique?: any;
@@ -50,14 +50,14 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
50
50
  nulls: zod.ZodOptional<zod.ZodString>;
51
51
  opclass: zod.ZodOptional<zod.ZodString>;
52
52
  }, "strip", zod.ZodTypeAny, {
53
- expression: string;
54
53
  isExpression: boolean;
54
+ expression: string;
55
55
  asc: boolean;
56
56
  nulls?: string | undefined;
57
57
  opclass?: string | undefined;
58
58
  }, {
59
- expression: string;
60
59
  isExpression: boolean;
60
+ expression: string;
61
61
  asc: boolean;
62
62
  nulls?: string | undefined;
63
63
  opclass?: string | undefined;
@@ -70,8 +70,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
70
70
  }, "strict", zod.ZodTypeAny, {
71
71
  name: string;
72
72
  columns: {
73
- expression: string;
74
73
  isExpression: boolean;
74
+ expression: string;
75
75
  asc: boolean;
76
76
  nulls?: string | undefined;
77
77
  opclass?: string | undefined;
@@ -84,8 +84,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
84
84
  }, {
85
85
  name: string;
86
86
  columns: {
87
- expression: string;
88
87
  isExpression: boolean;
88
+ expression: string;
89
89
  asc: boolean;
90
90
  nulls?: string | undefined;
91
91
  opclass?: string | undefined;
@@ -150,8 +150,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
150
150
  }, "strict", zod.ZodTypeAny, {
151
151
  name: string;
152
152
  columns: Record<string, {
153
- type: string;
154
153
  name: string;
154
+ type: string;
155
155
  primaryKey: boolean;
156
156
  notNull: boolean;
157
157
  isUnique?: any;
@@ -163,8 +163,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
163
163
  indexes: Record<string, {
164
164
  name: string;
165
165
  columns: {
166
- expression: string;
167
166
  isExpression: boolean;
167
+ expression: string;
168
168
  asc: boolean;
169
169
  nulls?: string | undefined;
170
170
  opclass?: string | undefined;
@@ -198,8 +198,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
198
198
  }, {
199
199
  name: string;
200
200
  columns: Record<string, {
201
- type: string;
202
201
  name: string;
202
+ type: string;
203
203
  primaryKey: boolean;
204
204
  notNull: boolean;
205
205
  isUnique?: any;
@@ -211,8 +211,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
211
211
  indexes: Record<string, {
212
212
  name: string;
213
213
  columns: {
214
- expression: string;
215
214
  isExpression: boolean;
215
+ expression: string;
216
216
  asc: boolean;
217
217
  nulls?: string | undefined;
218
218
  opclass?: string | undefined;
@@ -249,12 +249,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
249
249
  schema: zod.ZodString;
250
250
  values: zod.ZodArray<zod.ZodString, "many">;
251
251
  }, "strict", zod.ZodTypeAny, {
252
- values: string[];
253
252
  name: string;
253
+ values: string[];
254
254
  schema: string;
255
255
  }, {
256
- values: string[];
257
256
  name: string;
257
+ values: string[];
258
258
  schema: string;
259
259
  }>>;
260
260
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -323,8 +323,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
323
323
  tables: Record<string, {
324
324
  name: string;
325
325
  columns: Record<string, {
326
- type: string;
327
326
  name: string;
327
+ type: string;
328
328
  primaryKey: boolean;
329
329
  notNull: boolean;
330
330
  isUnique?: any;
@@ -336,8 +336,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
336
336
  indexes: Record<string, {
337
337
  name: string;
338
338
  columns: {
339
- expression: string;
340
339
  isExpression: boolean;
340
+ expression: string;
341
341
  asc: boolean;
342
342
  nulls?: string | undefined;
343
343
  opclass?: string | undefined;
@@ -380,8 +380,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
380
380
  schemas: Record<string, string>;
381
381
  };
382
382
  enums: Record<string, {
383
- values: string[];
384
383
  name: string;
384
+ values: string[];
385
385
  schema: string;
386
386
  }>;
387
387
  internal?: {
@@ -397,8 +397,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
397
397
  tables: Record<string, {
398
398
  name: string;
399
399
  columns: Record<string, {
400
- type: string;
401
400
  name: string;
401
+ type: string;
402
402
  primaryKey: boolean;
403
403
  notNull: boolean;
404
404
  isUnique?: any;
@@ -410,8 +410,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
410
410
  indexes: Record<string, {
411
411
  name: string;
412
412
  columns: {
413
- expression: string;
414
413
  isExpression: boolean;
414
+ expression: string;
415
415
  asc: boolean;
416
416
  nulls?: string | undefined;
417
417
  opclass?: string | undefined;
@@ -454,8 +454,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
454
454
  schemas: Record<string, string>;
455
455
  };
456
456
  enums: Record<string, {
457
- values: string[];
458
457
  name: string;
458
+ values: string[];
459
459
  schema: string;
460
460
  }>;
461
461
  internal?: {
@@ -483,15 +483,15 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
483
483
  autoincrement: zod.ZodOptional<zod.ZodBoolean>;
484
484
  default: zod.ZodOptional<zod.ZodAny>;
485
485
  }, "strict", zod.ZodTypeAny, {
486
- type: string;
487
486
  name: string;
487
+ type: string;
488
488
  primaryKey: boolean;
489
489
  notNull: boolean;
490
490
  default?: any;
491
491
  autoincrement?: boolean | undefined;
492
492
  }, {
493
- type: string;
494
493
  name: string;
494
+ type: string;
495
495
  primaryKey: boolean;
496
496
  notNull: boolean;
497
497
  default?: any;
@@ -561,8 +561,8 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
561
561
  }, "strict", zod.ZodTypeAny, {
562
562
  name: string;
563
563
  columns: Record<string, {
564
- type: string;
565
564
  name: string;
565
+ type: string;
566
566
  primaryKey: boolean;
567
567
  notNull: boolean;
568
568
  default?: any;
@@ -594,8 +594,8 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
594
594
  }, {
595
595
  name: string;
596
596
  columns: Record<string, {
597
- type: string;
598
597
  name: string;
598
+ type: string;
599
599
  primaryKey: boolean;
600
600
  notNull: boolean;
601
601
  default?: any;
@@ -636,6 +636,37 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
636
636
  columns: Record<string, string>;
637
637
  tables: Record<string, string>;
638
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
+ }>>;
639
670
  }, {
640
671
  id: zod.ZodString;
641
672
  prevId: zod.ZodString;
@@ -643,8 +674,8 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
643
674
  tables: Record<string, {
644
675
  name: string;
645
676
  columns: Record<string, {
646
- type: string;
647
677
  name: string;
678
+ type: string;
648
679
  primaryKey: boolean;
649
680
  notNull: boolean;
650
681
  default?: any;
@@ -683,12 +714,19 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
683
714
  tables: Record<string, string>;
684
715
  };
685
716
  enums: {};
717
+ internal?: {
718
+ indexes?: Record<string, {
719
+ columns: Record<string, {
720
+ isExpression?: boolean | undefined;
721
+ } | undefined>;
722
+ } | undefined> | undefined;
723
+ } | undefined;
686
724
  }, {
687
725
  tables: Record<string, {
688
726
  name: string;
689
727
  columns: Record<string, {
690
- type: string;
691
728
  name: string;
729
+ type: string;
692
730
  primaryKey: boolean;
693
731
  notNull: boolean;
694
732
  default?: any;
@@ -727,6 +765,13 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
727
765
  tables: Record<string, string>;
728
766
  };
729
767
  enums: {};
768
+ internal?: {
769
+ indexes?: Record<string, {
770
+ columns: Record<string, {
771
+ isExpression?: boolean | undefined;
772
+ } | undefined>;
773
+ } | undefined> | undefined;
774
+ } | undefined;
730
775
  }>;
731
776
  type SQLiteSchema = TypeOf<typeof schema$1>;
732
777
 
@@ -744,16 +789,16 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
744
789
  default: zod.ZodOptional<zod.ZodAny>;
745
790
  onUpdate: zod.ZodOptional<zod.ZodAny>;
746
791
  }, "strict", zod.ZodTypeAny, {
747
- type: string;
748
792
  name: string;
793
+ type: string;
749
794
  primaryKey: boolean;
750
795
  notNull: boolean;
751
796
  default?: any;
752
797
  onUpdate?: any;
753
798
  autoincrement?: boolean | undefined;
754
799
  }, {
755
- type: string;
756
800
  name: string;
801
+ type: string;
757
802
  primaryKey: boolean;
758
803
  notNull: boolean;
759
804
  default?: any;
@@ -830,8 +875,8 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
830
875
  }, "strict", zod.ZodTypeAny, {
831
876
  name: string;
832
877
  columns: Record<string, {
833
- type: string;
834
878
  name: string;
879
+ type: string;
835
880
  primaryKey: boolean;
836
881
  notNull: boolean;
837
882
  default?: any;
@@ -866,8 +911,8 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
866
911
  }, {
867
912
  name: string;
868
913
  columns: Record<string, {
869
- type: string;
870
914
  name: string;
915
+ type: string;
871
916
  primaryKey: boolean;
872
917
  notNull: boolean;
873
918
  default?: any;
@@ -911,7 +956,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
911
956
  tables: Record<string, string>;
912
957
  }>;
913
958
  internal: zod.ZodOptional<zod.ZodObject<{
914
- tables: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
959
+ tables: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
915
960
  columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{
916
961
  isDefaultAnExpression: zod.ZodOptional<zod.ZodBoolean>;
917
962
  }, "strip", zod.ZodTypeAny, {
@@ -927,19 +972,46 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
927
972
  columns: Record<string, {
928
973
  isDefaultAnExpression?: boolean | undefined;
929
974
  } | undefined>;
930
- }>>>;
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
+ }>>>>;
931
993
  }, "strip", zod.ZodTypeAny, {
932
- tables: Record<string, {
994
+ indexes?: Record<string, {
995
+ columns: Record<string, {
996
+ isExpression?: boolean | undefined;
997
+ } | undefined>;
998
+ } | undefined> | undefined;
999
+ tables?: Record<string, {
933
1000
  columns: Record<string, {
934
1001
  isDefaultAnExpression?: boolean | undefined;
935
1002
  } | undefined>;
936
- } | undefined>;
1003
+ } | undefined> | undefined;
937
1004
  }, {
938
- tables: Record<string, {
1005
+ indexes?: Record<string, {
1006
+ columns: Record<string, {
1007
+ isExpression?: boolean | undefined;
1008
+ } | undefined>;
1009
+ } | undefined> | undefined;
1010
+ tables?: Record<string, {
939
1011
  columns: Record<string, {
940
1012
  isDefaultAnExpression?: boolean | undefined;
941
1013
  } | undefined>;
942
- } | undefined>;
1014
+ } | undefined> | undefined;
943
1015
  }>>;
944
1016
  }, {
945
1017
  id: zod.ZodString;
@@ -948,8 +1020,8 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
948
1020
  tables: Record<string, {
949
1021
  name: string;
950
1022
  columns: Record<string, {
951
- type: string;
952
1023
  name: string;
1024
+ type: string;
953
1025
  primaryKey: boolean;
954
1026
  notNull: boolean;
955
1027
  default?: any;
@@ -991,18 +1063,23 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
991
1063
  tables: Record<string, string>;
992
1064
  };
993
1065
  internal?: {
994
- tables: Record<string, {
1066
+ indexes?: Record<string, {
1067
+ columns: Record<string, {
1068
+ isExpression?: boolean | undefined;
1069
+ } | undefined>;
1070
+ } | undefined> | undefined;
1071
+ tables?: Record<string, {
995
1072
  columns: Record<string, {
996
1073
  isDefaultAnExpression?: boolean | undefined;
997
1074
  } | undefined>;
998
- } | undefined>;
1075
+ } | undefined> | undefined;
999
1076
  } | undefined;
1000
1077
  }, {
1001
1078
  tables: Record<string, {
1002
1079
  name: string;
1003
1080
  columns: Record<string, {
1004
- type: string;
1005
1081
  name: string;
1082
+ type: string;
1006
1083
  primaryKey: boolean;
1007
1084
  notNull: boolean;
1008
1085
  default?: any;
@@ -1044,11 +1121,16 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1044
1121
  tables: Record<string, string>;
1045
1122
  };
1046
1123
  internal?: {
1047
- tables: Record<string, {
1124
+ indexes?: Record<string, {
1125
+ columns: Record<string, {
1126
+ isExpression?: boolean | undefined;
1127
+ } | undefined>;
1128
+ } | undefined> | undefined;
1129
+ tables?: Record<string, {
1048
1130
  columns: Record<string, {
1049
1131
  isDefaultAnExpression?: boolean | undefined;
1050
1132
  } | undefined>;
1051
- } | undefined>;
1133
+ } | undefined> | undefined;
1052
1134
  } | undefined;
1053
1135
  }>;
1054
1136
  type MySqlSchema = TypeOf<typeof schema>;