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

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.mts CHANGED
@@ -1,13 +1,19 @@
1
- import { SslOptions } from 'mysql2';
2
- import * as zod from 'zod';
3
- import { TypeOf } from 'zod';
1
+ import { ConnectionOptions } from 'tls';
4
2
 
5
- declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"d1-http">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
6
- type Driver = TypeOf<typeof driver>;
3
+ type Driver = "turso" | "d1-http" | "expo" | "aws-data-api";
7
4
 
8
- declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
9
- type Dialect = TypeOf<typeof dialect>;
5
+ type Dialect = "postgresql" | "mysql" | "sqlite";
10
6
 
7
+ type SslOptions = {
8
+ pfx?: string;
9
+ key?: string;
10
+ passphrase?: string;
11
+ cert?: string;
12
+ ca?: string | string[];
13
+ crl?: string | string[];
14
+ ciphers?: string;
15
+ rejectUnauthorized?: boolean;
16
+ };
11
17
  type Verify<T, U extends T> = U;
12
18
  /**
13
19
  * **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
@@ -107,6 +113,7 @@ type Config = {
107
113
  out?: string;
108
114
  breakpoints?: boolean;
109
115
  tablesFilter?: string | string[];
116
+ extensionsFilters?: "postgis"[];
110
117
  schemaFilter?: string | string[];
111
118
  schema?: string | string[];
112
119
  verbose?: boolean;
@@ -132,14 +139,14 @@ type Config = {
132
139
  };
133
140
  } | {
134
141
  dialect: Verify<Dialect, "postgresql">;
135
- dbCredentials: {
142
+ dbCredentials: ({
136
143
  host: string;
137
144
  port?: number;
138
145
  user?: string;
139
146
  password?: string;
140
147
  database: string;
141
- ssl?: boolean;
142
- } | {
148
+ ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | ConnectionOptions;
149
+ } & {}) | {
143
150
  url: string;
144
151
  };
145
152
  } | {
@@ -162,13 +169,6 @@ type Config = {
162
169
  } | {
163
170
  url: string;
164
171
  };
165
- } | {
166
- dialect: Verify<Dialect, "sqlite">;
167
- driver: Verify<Driver, "d1">;
168
- dbCredentials: {
169
- wranglerConfigPath: string;
170
- dbName: string;
171
- };
172
172
  } | {
173
173
  dialect: Verify<Dialect, "sqlite">;
174
174
  driver: Verify<Driver, "d1-http">;
package/index.d.ts CHANGED
@@ -1,13 +1,19 @@
1
- import { SslOptions } from 'mysql2';
2
- import * as zod from 'zod';
3
- import { TypeOf } from 'zod';
1
+ import { ConnectionOptions } from 'tls';
4
2
 
5
- declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"d1-http">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
6
- type Driver = TypeOf<typeof driver>;
3
+ type Driver = "turso" | "d1-http" | "expo" | "aws-data-api";
7
4
 
8
- declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
9
- type Dialect = TypeOf<typeof dialect>;
5
+ type Dialect = "postgresql" | "mysql" | "sqlite";
10
6
 
7
+ type SslOptions = {
8
+ pfx?: string;
9
+ key?: string;
10
+ passphrase?: string;
11
+ cert?: string;
12
+ ca?: string | string[];
13
+ crl?: string | string[];
14
+ ciphers?: string;
15
+ rejectUnauthorized?: boolean;
16
+ };
11
17
  type Verify<T, U extends T> = U;
12
18
  /**
13
19
  * **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
@@ -107,6 +113,7 @@ type Config = {
107
113
  out?: string;
108
114
  breakpoints?: boolean;
109
115
  tablesFilter?: string | string[];
116
+ extensionsFilters?: "postgis"[];
110
117
  schemaFilter?: string | string[];
111
118
  schema?: string | string[];
112
119
  verbose?: boolean;
@@ -132,14 +139,14 @@ type Config = {
132
139
  };
133
140
  } | {
134
141
  dialect: Verify<Dialect, "postgresql">;
135
- dbCredentials: {
142
+ dbCredentials: ({
136
143
  host: string;
137
144
  port?: number;
138
145
  user?: string;
139
146
  password?: string;
140
147
  database: string;
141
- ssl?: boolean;
142
- } | {
148
+ ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | ConnectionOptions;
149
+ } & {}) | {
143
150
  url: string;
144
151
  };
145
152
  } | {
@@ -162,13 +169,6 @@ type Config = {
162
169
  } | {
163
170
  url: string;
164
171
  };
165
- } | {
166
- dialect: Verify<Dialect, "sqlite">;
167
- driver: Verify<Driver, "d1">;
168
- dbCredentials: {
169
- wranglerConfigPath: string;
170
- dbName: string;
171
- };
172
172
  } | {
173
173
  dialect: Verify<Dialect, "sqlite">;
174
174
  driver: Verify<Driver, "d1-http">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.22.0-5b09380",
3
+ "version": "0.22.0-7a041f3",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -20,14 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@esbuild-kit/esm-loader": "^2.5.5",
23
- "commander": "^9.4.1",
24
- "env-paths": "^3.0.0",
25
23
  "esbuild": "^0.19.7",
26
- "esbuild-register": "^3.5.0",
27
- "glob": "^8.1.0",
28
- "hanji": "^0.0.5",
29
- "json-diff": "0.9.0",
30
- "zod": "^3.20.2"
24
+ "esbuild-register": "^3.5.0"
31
25
  },
32
26
  "devDependencies": {
33
27
  "@arethetypeswrong/cli": "^0.15.3",
@@ -58,20 +52,25 @@
58
52
  "better-sqlite3": "^9.4.3",
59
53
  "camelcase": "^7.0.1",
60
54
  "chalk": "^5.2.0",
55
+ "commander": "^12.1.0",
61
56
  "dockerode": "^3.3.4",
62
57
  "dotenv": "^16.0.3",
63
58
  "drizzle-kit": "0.21.2",
64
- "drizzle-orm": "0.31.0-e64a96d",
59
+ "drizzle-orm": "0.31.0-6df4b83",
60
+ "env-paths": "^3.0.0",
65
61
  "esbuild-node-externals": "^1.9.0",
66
62
  "eslint": "^8.57.0",
67
63
  "eslint-config-prettier": "^9.1.0",
68
64
  "eslint-plugin-prettier": "^5.1.3",
69
65
  "get-port": "^6.1.2",
66
+ "glob": "^8.1.0",
67
+ "hanji": "^0.0.5",
70
68
  "hono": "^4.1.5",
69
+ "json-diff": "1.0.6",
71
70
  "minimatch": "^7.4.3",
72
71
  "mysql2": "2.3.3",
73
72
  "node-fetch": "^3.3.2",
74
- "pg": "^8.11.3",
73
+ "pg": "^8.11.5",
75
74
  "pluralize": "^8.0.0",
76
75
  "postgres": "^3.4.4",
77
76
  "prettier": "^2.8.1",
@@ -85,6 +84,7 @@
85
84
  "vitest": "^1.4.0",
86
85
  "wrangler": "^3.22.1",
87
86
  "ws": "^8.16.0",
87
+ "zod": "^3.20.2",
88
88
  "zx": "^7.2.2"
89
89
  },
90
90
  "exports": {
package/payload.d.mts 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>;