drizzle-kit 0.20.14-d8f1e46 → 0.20.14-e8e7ed6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/bin.cjs +21878 -21519
  2. package/cli/commands/migrate.d.ts +121 -97
  3. package/cli/commands/mysqlIntrospect.d.ts +8 -14
  4. package/cli/commands/mysqlPushUtils.d.ts +2 -2
  5. package/cli/commands/pgConnect.d.ts +1 -1
  6. package/cli/commands/pgIntrospect.d.ts +18 -11
  7. package/cli/commands/pgPushUtils.d.ts +2 -2
  8. package/cli/commands/sqliteIntrospect.d.ts +9 -9
  9. package/cli/commands/sqlitePushUtils.d.ts +3 -3
  10. package/cli/commands/utils.d.ts +15 -259
  11. package/cli/validations/cli.d.ts +107 -0
  12. package/cli/validations/common.d.ts +205 -7
  13. package/cli/validations/mysql.d.ts +6 -1
  14. package/cli/validations/pg.d.ts +6 -1
  15. package/cli/validations/sqlite.d.ts +382 -0
  16. package/cli/views.d.ts +7 -5
  17. package/global.d.ts +3 -1
  18. package/index.d.mts +8 -6
  19. package/index.d.ts +8 -6
  20. package/index.js +1 -0
  21. package/introspect-mysql.d.ts +1 -1
  22. package/introspect-pg.d.ts +5 -2
  23. package/introspect-sqlite.d.ts +1 -1
  24. package/jsonDiffer.d.ts +14 -29
  25. package/jsonStatements.d.ts +38 -11
  26. package/package.json +18 -51
  27. package/payload.d.mts +18 -988
  28. package/payload.d.ts +18 -988
  29. package/payload.js +18030 -7175
  30. package/payload.mjs +9020 -9305
  31. package/schemaValidator.d.ts +73 -70
  32. package/serializer/mysqlImports.d.ts +3 -7
  33. package/serializer/mysqlSchema.d.ts +1624 -493
  34. package/serializer/mysqlSerializer.d.ts +4 -4
  35. package/serializer/pgImports.d.ts +2 -2
  36. package/serializer/pgSchema.d.ts +1260 -801
  37. package/serializer/sqliteImports.d.ts +2 -4
  38. package/serializer/sqliteSchema.d.ts +144 -570
  39. package/serializer/sqliteSerializer.d.ts +3 -3
  40. package/snapshotsDiffer.d.ts +1908 -1050
  41. package/utils/words.d.ts +1 -1
  42. package/utils-studio.js +4147 -83
  43. package/utils-studio.mjs +4147 -83
  44. package/utils.d.ts +6 -140
  45. package/utils.js +3903 -7064
  46. package/utils.mjs +3982 -7143
  47. package/cli/commands/mysqlUp.d.ts +0 -4
  48. package/cli/commands/pgUp.d.ts +0 -4
  49. package/cli/commands/sqliteUtils.d.ts +0 -162
  50. package/cli/commands/upFolders.d.ts +0 -27
@@ -1,134 +1,138 @@
1
- import { TypeOf, ZodTypeAny, z } from "zod";
1
+ import { TypeOf, ZodTypeAny } from "zod";
2
2
  import { JsonStatement } from "./jsonStatements";
3
- import { CommonSquashedSchema, Dialect } from "./schemaValidator";
4
- export declare const makePatched: <T extends ZodTypeAny>(schema: T) => z.ZodUnion<[z.ZodObject<{
5
- type: z.ZodLiteral<"added">;
3
+ import { SQLiteSchema, SQLiteSchemaSquashed } from "./serializer/sqliteSchema";
4
+ import { MySqlSchema, MySqlSchemaSquashed } from "./serializer/mysqlSchema";
5
+ import { PgSchema, PgSchemaSquashed } from "./serializer/pgSchema";
6
+ import { Named } from "./cli/commands/migrate";
7
+ export declare const makePatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
8
+ type: import("zod").ZodLiteral<"added">;
6
9
  value: T;
7
- }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
10
+ }, "strip", ZodTypeAny, { [k_1 in keyof import("zod").objectUtil.addQuestionMarks<{
8
11
  type: "added";
9
12
  value: T["_output"];
10
- }> extends infer T_1 ? { [k_1 in keyof T_1]: z.objectUtil.addQuestionMarks<{
13
+ }>]: import("zod").objectUtil.addQuestionMarks<{
11
14
  type: "added";
12
15
  value: T["_output"];
13
- }>[k_1]; } : never, z.objectUtil.addQuestionMarks<{
16
+ }>[k_1]; }, { [k_3 in keyof import("zod").objectUtil.addQuestionMarks<{
14
17
  type: "added";
15
18
  value: T["_input"];
16
- }> extends infer T_2 ? { [k_3 in keyof T_2]: z.objectUtil.addQuestionMarks<{
19
+ }>]: import("zod").objectUtil.addQuestionMarks<{
17
20
  type: "added";
18
21
  value: T["_input"];
19
- }>[k_3]; } : never>, z.ZodObject<{
20
- type: z.ZodLiteral<"deleted">;
22
+ }>[k_3]; }>, import("zod").ZodObject<{
23
+ type: import("zod").ZodLiteral<"deleted">;
21
24
  value: T;
22
- }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
25
+ }, "strip", ZodTypeAny, { [k_1_1 in keyof import("zod").objectUtil.addQuestionMarks<{
23
26
  type: "deleted";
24
27
  value: T["_output"];
25
- }> extends infer T_3 ? { [k_1_1 in keyof T_3]: z.objectUtil.addQuestionMarks<{
28
+ }>]: import("zod").objectUtil.addQuestionMarks<{
26
29
  type: "deleted";
27
30
  value: T["_output"];
28
- }>[k_1_1]; } : never, z.objectUtil.addQuestionMarks<{
31
+ }>[k_1_1]; }, { [k_3_1 in keyof import("zod").objectUtil.addQuestionMarks<{
29
32
  type: "deleted";
30
33
  value: T["_input"];
31
- }> extends infer T_4 ? { [k_3_1 in keyof T_4]: z.objectUtil.addQuestionMarks<{
34
+ }>]: import("zod").objectUtil.addQuestionMarks<{
32
35
  type: "deleted";
33
36
  value: T["_input"];
34
- }>[k_3_1]; } : never>, z.ZodObject<{
35
- type: z.ZodLiteral<"changed">;
37
+ }>[k_3_1]; }>, import("zod").ZodObject<{
38
+ type: import("zod").ZodLiteral<"changed">;
36
39
  old: T;
37
40
  new: T;
38
- }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
41
+ }, "strip", ZodTypeAny, { [k_1_2 in keyof import("zod").objectUtil.addQuestionMarks<{
39
42
  type: "changed";
40
43
  old: T["_output"];
41
44
  new: T["_output"];
42
- }> extends infer T_5 ? { [k_1_2 in keyof T_5]: z.objectUtil.addQuestionMarks<{
45
+ }>]: import("zod").objectUtil.addQuestionMarks<{
43
46
  type: "changed";
44
47
  old: T["_output"];
45
48
  new: T["_output"];
46
- }>[k_1_2]; } : never, z.objectUtil.addQuestionMarks<{
49
+ }>[k_1_2]; }, { [k_3_2 in keyof import("zod").objectUtil.addQuestionMarks<{
47
50
  type: "changed";
48
51
  old: T["_input"];
49
52
  new: T["_input"];
50
- }> extends infer T_6 ? { [k_3_2 in keyof T_6]: z.objectUtil.addQuestionMarks<{
53
+ }>]: import("zod").objectUtil.addQuestionMarks<{
51
54
  type: "changed";
52
55
  old: T["_input"];
53
56
  new: T["_input"];
54
- }>[k_3_2]; } : never>]>;
55
- export declare const makeSelfOrPatched: <T extends ZodTypeAny>(schema: T) => z.ZodUnion<[z.ZodObject<{
56
- type: z.ZodLiteral<"none">;
57
- value: z.ZodOptional<T>;
58
- }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
57
+ }>[k_3_2]; }>]>;
58
+ export declare const makeSelfOrPatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
59
+ type: import("zod").ZodLiteral<"none">;
60
+ value: T;
61
+ }, "strip", ZodTypeAny, { [k_1 in keyof import("zod").objectUtil.addQuestionMarks<{
59
62
  type: "none";
60
- value: T["_output"] | undefined;
61
- }> extends infer T_1 ? { [k_1 in keyof T_1]: z.objectUtil.addQuestionMarks<{
63
+ value: T["_output"];
64
+ }>]: import("zod").objectUtil.addQuestionMarks<{
62
65
  type: "none";
63
- value: T["_output"] | undefined;
64
- }>[k_1]; } : never, z.objectUtil.addQuestionMarks<{
66
+ value: T["_output"];
67
+ }>[k_1]; }, { [k_3 in keyof import("zod").objectUtil.addQuestionMarks<{
65
68
  type: "none";
66
- value: T["_input"] | undefined;
67
- }> extends infer T_2 ? { [k_3 in keyof T_2]: z.objectUtil.addQuestionMarks<{
69
+ value: T["_input"];
70
+ }>]: import("zod").objectUtil.addQuestionMarks<{
68
71
  type: "none";
69
- value: T["_input"] | undefined;
70
- }>[k_3]; } : never>, z.ZodObject<{
71
- type: z.ZodLiteral<"added">;
72
+ value: T["_input"];
73
+ }>[k_3]; }>, import("zod").ZodObject<{
74
+ type: import("zod").ZodLiteral<"added">;
72
75
  value: T;
73
- }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
76
+ }, "strip", ZodTypeAny, { [k_1_1 in keyof import("zod").objectUtil.addQuestionMarks<{
74
77
  type: "added";
75
78
  value: T["_output"];
76
- }> extends infer T_3 ? { [k_1_1 in keyof T_3]: z.objectUtil.addQuestionMarks<{
79
+ }>]: import("zod").objectUtil.addQuestionMarks<{
77
80
  type: "added";
78
81
  value: T["_output"];
79
- }>[k_1_1]; } : never, z.objectUtil.addQuestionMarks<{
82
+ }>[k_1_1]; }, { [k_3_1 in keyof import("zod").objectUtil.addQuestionMarks<{
80
83
  type: "added";
81
84
  value: T["_input"];
82
- }> extends infer T_4 ? { [k_3_1 in keyof T_4]: z.objectUtil.addQuestionMarks<{
85
+ }>]: import("zod").objectUtil.addQuestionMarks<{
83
86
  type: "added";
84
87
  value: T["_input"];
85
- }>[k_3_1]; } : never>, z.ZodObject<{
86
- type: z.ZodLiteral<"deleted">;
88
+ }>[k_3_1]; }>, import("zod").ZodObject<{
89
+ type: import("zod").ZodLiteral<"deleted">;
87
90
  value: T;
88
- }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
91
+ }, "strip", ZodTypeAny, { [k_1_2 in keyof import("zod").objectUtil.addQuestionMarks<{
89
92
  type: "deleted";
90
93
  value: T["_output"];
91
- }> extends infer T_5 ? { [k_1_2 in keyof T_5]: z.objectUtil.addQuestionMarks<{
94
+ }>]: import("zod").objectUtil.addQuestionMarks<{
92
95
  type: "deleted";
93
96
  value: T["_output"];
94
- }>[k_1_2]; } : never, z.objectUtil.addQuestionMarks<{
97
+ }>[k_1_2]; }, { [k_3_2 in keyof import("zod").objectUtil.addQuestionMarks<{
95
98
  type: "deleted";
96
99
  value: T["_input"];
97
- }> extends infer T_6 ? { [k_3_2 in keyof T_6]: z.objectUtil.addQuestionMarks<{
100
+ }>]: import("zod").objectUtil.addQuestionMarks<{
98
101
  type: "deleted";
99
102
  value: T["_input"];
100
- }>[k_3_2]; } : never>, z.ZodObject<{
101
- type: z.ZodLiteral<"changed">;
103
+ }>[k_3_2]; }>, import("zod").ZodObject<{
104
+ type: import("zod").ZodLiteral<"changed">;
102
105
  old: T;
103
106
  new: T;
104
- }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
107
+ }, "strip", ZodTypeAny, { [k_1_3 in keyof import("zod").objectUtil.addQuestionMarks<{
105
108
  type: "changed";
106
109
  old: T["_output"];
107
110
  new: T["_output"];
108
- }> extends infer T_7 ? { [k_1_3 in keyof T_7]: z.objectUtil.addQuestionMarks<{
111
+ }>]: import("zod").objectUtil.addQuestionMarks<{
109
112
  type: "changed";
110
113
  old: T["_output"];
111
114
  new: T["_output"];
112
- }>[k_1_3]; } : never, z.objectUtil.addQuestionMarks<{
115
+ }>[k_1_3]; }, { [k_3_3 in keyof import("zod").objectUtil.addQuestionMarks<{
113
116
  type: "changed";
114
117
  old: T["_input"];
115
118
  new: T["_input"];
116
- }> extends infer T_8 ? { [k_3_3 in keyof T_8]: z.objectUtil.addQuestionMarks<{
119
+ }>]: import("zod").objectUtil.addQuestionMarks<{
117
120
  type: "changed";
118
121
  old: T["_input"];
119
122
  new: T["_input"];
120
- }>[k_3_3]; } : never>]>;
121
- declare const columnSchema: z.ZodObject<{
122
- name: z.ZodString;
123
- type: z.ZodString;
124
- primaryKey: z.ZodOptional<z.ZodBoolean>;
125
- default: z.ZodOptional<z.ZodAny>;
126
- notNull: z.ZodOptional<z.ZodBoolean>;
127
- autoincrement: z.ZodOptional<z.ZodBoolean>;
128
- onUpdate: z.ZodOptional<z.ZodBoolean>;
129
- isUnique: z.ZodOptional<z.ZodAny>;
130
- uniqueName: z.ZodOptional<z.ZodString>;
131
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
123
+ }>[k_3_3]; }>]>;
124
+ declare const columnSchema: import("zod").ZodObject<{
125
+ name: import("zod").ZodString;
126
+ type: import("zod").ZodString;
127
+ typeSchema: import("zod").ZodOptional<import("zod").ZodString>;
128
+ primaryKey: import("zod").ZodOptional<import("zod").ZodBoolean>;
129
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
130
+ notNull: import("zod").ZodOptional<import("zod").ZodBoolean>;
131
+ autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
132
+ onUpdate: import("zod").ZodOptional<import("zod").ZodBoolean>;
133
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
134
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
135
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
132
136
  }, "strict", ZodTypeAny, {
133
137
  isUnique?: any;
134
138
  default?: any;
@@ -136,6 +140,7 @@ declare const columnSchema: z.ZodObject<{
136
140
  primaryKey?: boolean | undefined;
137
141
  notNull?: boolean | undefined;
138
142
  autoincrement?: boolean | undefined;
143
+ typeSchema?: string | undefined;
139
144
  uniqueName?: string | undefined;
140
145
  nullsNotDistinct?: boolean | undefined;
141
146
  name: string;
@@ -147,16 +152,17 @@ declare const columnSchema: z.ZodObject<{
147
152
  primaryKey?: boolean | undefined;
148
153
  notNull?: boolean | undefined;
149
154
  autoincrement?: boolean | undefined;
155
+ typeSchema?: string | undefined;
150
156
  uniqueName?: string | undefined;
151
157
  nullsNotDistinct?: boolean | undefined;
152
158
  name: string;
153
159
  type: string;
154
160
  }>;
155
- declare const alteredColumnSchema: z.ZodObject<{
156
- name: z.ZodUnion<[z.ZodString, z.ZodObject<{
157
- type: z.ZodEnum<["changed"]>;
158
- old: z.ZodString;
159
- new: z.ZodString;
161
+ declare const alteredColumnSchema: import("zod").ZodObject<{
162
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
163
+ type: import("zod").ZodEnum<["changed"]>;
164
+ old: import("zod").ZodString;
165
+ new: import("zod").ZodString;
160
166
  }, "strip", ZodTypeAny, {
161
167
  type: "changed";
162
168
  old: string;
@@ -166,10 +172,10 @@ declare const alteredColumnSchema: z.ZodObject<{
166
172
  old: string;
167
173
  new: string;
168
174
  }>]>;
169
- type: z.ZodOptional<z.ZodObject<{
170
- type: z.ZodEnum<["changed"]>;
171
- old: z.ZodString;
172
- new: z.ZodString;
175
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
176
+ type: import("zod").ZodEnum<["changed"]>;
177
+ old: import("zod").ZodString;
178
+ new: import("zod").ZodString;
173
179
  }, "strip", ZodTypeAny, {
174
180
  type: "changed";
175
181
  old: string;
@@ -179,28 +185,28 @@ declare const alteredColumnSchema: z.ZodObject<{
179
185
  old: string;
180
186
  new: string;
181
187
  }>>;
182
- default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
183
- type: z.ZodLiteral<"added">;
184
- value: z.ZodAny;
188
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
189
+ type: import("zod").ZodLiteral<"added">;
190
+ value: import("zod").ZodAny;
185
191
  }, "strip", ZodTypeAny, {
186
192
  value?: any;
187
193
  type: "added";
188
194
  }, {
189
195
  value?: any;
190
196
  type: "added";
191
- }>, z.ZodObject<{
192
- type: z.ZodLiteral<"deleted">;
193
- value: z.ZodAny;
197
+ }>, import("zod").ZodObject<{
198
+ type: import("zod").ZodLiteral<"deleted">;
199
+ value: import("zod").ZodAny;
194
200
  }, "strip", ZodTypeAny, {
195
201
  value?: any;
196
202
  type: "deleted";
197
203
  }, {
198
204
  value?: any;
199
205
  type: "deleted";
200
- }>, z.ZodObject<{
201
- type: z.ZodLiteral<"changed">;
202
- old: z.ZodAny;
203
- new: z.ZodAny;
206
+ }>, import("zod").ZodObject<{
207
+ type: import("zod").ZodLiteral<"changed">;
208
+ old: import("zod").ZodAny;
209
+ new: import("zod").ZodAny;
204
210
  }, "strip", ZodTypeAny, {
205
211
  old?: any;
206
212
  new?: any;
@@ -210,28 +216,28 @@ declare const alteredColumnSchema: z.ZodObject<{
210
216
  new?: any;
211
217
  type: "changed";
212
218
  }>]>>;
213
- primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
214
- type: z.ZodLiteral<"added">;
215
- value: z.ZodBoolean;
219
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
220
+ type: import("zod").ZodLiteral<"added">;
221
+ value: import("zod").ZodBoolean;
216
222
  }, "strip", ZodTypeAny, {
217
223
  type: "added";
218
224
  value: boolean;
219
225
  }, {
220
226
  type: "added";
221
227
  value: boolean;
222
- }>, z.ZodObject<{
223
- type: z.ZodLiteral<"deleted">;
224
- value: z.ZodBoolean;
228
+ }>, import("zod").ZodObject<{
229
+ type: import("zod").ZodLiteral<"deleted">;
230
+ value: import("zod").ZodBoolean;
225
231
  }, "strip", ZodTypeAny, {
226
232
  type: "deleted";
227
233
  value: boolean;
228
234
  }, {
229
235
  type: "deleted";
230
236
  value: boolean;
231
- }>, z.ZodObject<{
232
- type: z.ZodLiteral<"changed">;
233
- old: z.ZodBoolean;
234
- new: z.ZodBoolean;
237
+ }>, import("zod").ZodObject<{
238
+ type: import("zod").ZodLiteral<"changed">;
239
+ old: import("zod").ZodBoolean;
240
+ new: import("zod").ZodBoolean;
235
241
  }, "strip", ZodTypeAny, {
236
242
  type: "changed";
237
243
  old: boolean;
@@ -241,28 +247,28 @@ declare const alteredColumnSchema: z.ZodObject<{
241
247
  old: boolean;
242
248
  new: boolean;
243
249
  }>]>>;
244
- notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
245
- type: z.ZodLiteral<"added">;
246
- value: z.ZodBoolean;
250
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
251
+ type: import("zod").ZodLiteral<"added">;
252
+ value: import("zod").ZodBoolean;
247
253
  }, "strip", ZodTypeAny, {
248
254
  type: "added";
249
255
  value: boolean;
250
256
  }, {
251
257
  type: "added";
252
258
  value: boolean;
253
- }>, z.ZodObject<{
254
- type: z.ZodLiteral<"deleted">;
255
- value: z.ZodBoolean;
259
+ }>, import("zod").ZodObject<{
260
+ type: import("zod").ZodLiteral<"deleted">;
261
+ value: import("zod").ZodBoolean;
256
262
  }, "strip", ZodTypeAny, {
257
263
  type: "deleted";
258
264
  value: boolean;
259
265
  }, {
260
266
  type: "deleted";
261
267
  value: boolean;
262
- }>, z.ZodObject<{
263
- type: z.ZodLiteral<"changed">;
264
- old: z.ZodBoolean;
265
- new: z.ZodBoolean;
268
+ }>, import("zod").ZodObject<{
269
+ type: import("zod").ZodLiteral<"changed">;
270
+ old: import("zod").ZodBoolean;
271
+ new: import("zod").ZodBoolean;
266
272
  }, "strip", ZodTypeAny, {
267
273
  type: "changed";
268
274
  old: boolean;
@@ -272,28 +278,28 @@ declare const alteredColumnSchema: z.ZodObject<{
272
278
  old: boolean;
273
279
  new: boolean;
274
280
  }>]>>;
275
- onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
276
- type: z.ZodLiteral<"added">;
277
- value: z.ZodBoolean;
281
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
282
+ type: import("zod").ZodLiteral<"added">;
283
+ value: import("zod").ZodBoolean;
278
284
  }, "strip", ZodTypeAny, {
279
285
  type: "added";
280
286
  value: boolean;
281
287
  }, {
282
288
  type: "added";
283
289
  value: boolean;
284
- }>, z.ZodObject<{
285
- type: z.ZodLiteral<"deleted">;
286
- value: z.ZodBoolean;
290
+ }>, import("zod").ZodObject<{
291
+ type: import("zod").ZodLiteral<"deleted">;
292
+ value: import("zod").ZodBoolean;
287
293
  }, "strip", ZodTypeAny, {
288
294
  type: "deleted";
289
295
  value: boolean;
290
296
  }, {
291
297
  type: "deleted";
292
298
  value: boolean;
293
- }>, z.ZodObject<{
294
- type: z.ZodLiteral<"changed">;
295
- old: z.ZodBoolean;
296
- new: z.ZodBoolean;
299
+ }>, import("zod").ZodObject<{
300
+ type: import("zod").ZodLiteral<"changed">;
301
+ old: import("zod").ZodBoolean;
302
+ new: import("zod").ZodBoolean;
297
303
  }, "strip", ZodTypeAny, {
298
304
  type: "changed";
299
305
  old: boolean;
@@ -303,28 +309,28 @@ declare const alteredColumnSchema: z.ZodObject<{
303
309
  old: boolean;
304
310
  new: boolean;
305
311
  }>]>>;
306
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
307
- type: z.ZodLiteral<"added">;
308
- value: z.ZodBoolean;
312
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
313
+ type: import("zod").ZodLiteral<"added">;
314
+ value: import("zod").ZodBoolean;
309
315
  }, "strip", ZodTypeAny, {
310
316
  type: "added";
311
317
  value: boolean;
312
318
  }, {
313
319
  type: "added";
314
320
  value: boolean;
315
- }>, z.ZodObject<{
316
- type: z.ZodLiteral<"deleted">;
317
- value: z.ZodBoolean;
321
+ }>, import("zod").ZodObject<{
322
+ type: import("zod").ZodLiteral<"deleted">;
323
+ value: import("zod").ZodBoolean;
318
324
  }, "strip", ZodTypeAny, {
319
325
  type: "deleted";
320
326
  value: boolean;
321
327
  }, {
322
328
  type: "deleted";
323
329
  value: boolean;
324
- }>, z.ZodObject<{
325
- type: z.ZodLiteral<"changed">;
326
- old: z.ZodBoolean;
327
- new: z.ZodBoolean;
330
+ }>, import("zod").ZodObject<{
331
+ type: import("zod").ZodLiteral<"changed">;
332
+ old: import("zod").ZodBoolean;
333
+ new: import("zod").ZodBoolean;
328
334
  }, "strip", ZodTypeAny, {
329
335
  type: "changed";
330
336
  old: boolean;
@@ -467,30 +473,34 @@ declare const alteredColumnSchema: z.ZodObject<{
467
473
  new: string;
468
474
  };
469
475
  }>;
470
- declare const enumSchema: z.ZodObject<{
471
- name: z.ZodString;
472
- values: z.ZodArray<z.ZodString, "many">;
476
+ declare const enumSchema: import("zod").ZodObject<{
477
+ name: import("zod").ZodString;
478
+ schema: import("zod").ZodString;
479
+ values: import("zod").ZodArray<import("zod").ZodString, "many">;
473
480
  }, "strict", ZodTypeAny, {
474
481
  name: string;
475
482
  values: string[];
483
+ schema: string;
476
484
  }, {
477
485
  name: string;
478
486
  values: string[];
487
+ schema: string;
479
488
  }>;
480
- declare const tableScheme: z.ZodObject<{
481
- name: z.ZodString;
482
- schema: z.ZodDefault<z.ZodString>;
483
- columns: z.ZodRecord<z.ZodString, z.ZodObject<{
484
- name: z.ZodString;
485
- type: z.ZodString;
486
- primaryKey: z.ZodOptional<z.ZodBoolean>;
487
- default: z.ZodOptional<z.ZodAny>;
488
- notNull: z.ZodOptional<z.ZodBoolean>;
489
- autoincrement: z.ZodOptional<z.ZodBoolean>;
490
- onUpdate: z.ZodOptional<z.ZodBoolean>;
491
- isUnique: z.ZodOptional<z.ZodAny>;
492
- uniqueName: z.ZodOptional<z.ZodString>;
493
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
489
+ declare const tableScheme: import("zod").ZodObject<{
490
+ name: import("zod").ZodString;
491
+ schema: import("zod").ZodDefault<import("zod").ZodString>;
492
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
493
+ name: import("zod").ZodString;
494
+ type: import("zod").ZodString;
495
+ typeSchema: import("zod").ZodOptional<import("zod").ZodString>;
496
+ primaryKey: import("zod").ZodOptional<import("zod").ZodBoolean>;
497
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
498
+ notNull: import("zod").ZodOptional<import("zod").ZodBoolean>;
499
+ autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
500
+ onUpdate: import("zod").ZodOptional<import("zod").ZodBoolean>;
501
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
502
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
503
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
494
504
  }, "strict", ZodTypeAny, {
495
505
  isUnique?: any;
496
506
  default?: any;
@@ -498,6 +508,7 @@ declare const tableScheme: z.ZodObject<{
498
508
  primaryKey?: boolean | undefined;
499
509
  notNull?: boolean | undefined;
500
510
  autoincrement?: boolean | undefined;
511
+ typeSchema?: string | undefined;
501
512
  uniqueName?: string | undefined;
502
513
  nullsNotDistinct?: boolean | undefined;
503
514
  name: string;
@@ -509,15 +520,16 @@ declare const tableScheme: z.ZodObject<{
509
520
  primaryKey?: boolean | undefined;
510
521
  notNull?: boolean | undefined;
511
522
  autoincrement?: boolean | undefined;
523
+ typeSchema?: string | undefined;
512
524
  uniqueName?: string | undefined;
513
525
  nullsNotDistinct?: boolean | undefined;
514
526
  name: string;
515
527
  type: string;
516
528
  }>>;
517
- indexes: z.ZodRecord<z.ZodString, z.ZodString>;
518
- foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
519
- compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
520
- uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
529
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
530
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
531
+ compositePrimaryKeys: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
532
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
521
533
  }, "strict", ZodTypeAny, {
522
534
  name: string;
523
535
  columns: Record<string, {
@@ -527,6 +539,7 @@ declare const tableScheme: z.ZodObject<{
527
539
  primaryKey?: boolean | undefined;
528
540
  notNull?: boolean | undefined;
529
541
  autoincrement?: boolean | undefined;
542
+ typeSchema?: string | undefined;
530
543
  uniqueName?: string | undefined;
531
544
  nullsNotDistinct?: boolean | undefined;
532
545
  name: string;
@@ -549,6 +562,7 @@ declare const tableScheme: z.ZodObject<{
549
562
  primaryKey?: boolean | undefined;
550
563
  notNull?: boolean | undefined;
551
564
  autoincrement?: boolean | undefined;
565
+ typeSchema?: string | undefined;
552
566
  uniqueName?: string | undefined;
553
567
  nullsNotDistinct?: boolean | undefined;
554
568
  name: string;
@@ -557,121 +571,14 @@ declare const tableScheme: z.ZodObject<{
557
571
  indexes: Record<string, string>;
558
572
  foreignKeys: Record<string, string>;
559
573
  }>;
560
- export declare const alteredTableScheme: z.ZodObject<{
561
- name: z.ZodString;
562
- schema: z.ZodUnion<[z.ZodObject<{
563
- type: z.ZodLiteral<"none">;
564
- value: z.ZodOptional<z.ZodString>;
565
- }, "strip", ZodTypeAny, {
566
- value?: string | undefined;
567
- type: "none";
568
- }, {
569
- value?: string | undefined;
570
- type: "none";
571
- }>, z.ZodObject<{
572
- type: z.ZodLiteral<"added">;
573
- value: z.ZodString;
574
- }, "strip", ZodTypeAny, {
575
- type: "added";
576
- value: string;
577
- }, {
578
- type: "added";
579
- value: string;
580
- }>, z.ZodObject<{
581
- type: z.ZodLiteral<"deleted">;
582
- value: z.ZodString;
583
- }, "strip", ZodTypeAny, {
584
- type: "deleted";
585
- value: string;
586
- }, {
587
- type: "deleted";
588
- value: string;
589
- }>, z.ZodObject<{
590
- type: z.ZodLiteral<"changed">;
591
- old: z.ZodString;
592
- new: z.ZodString;
593
- }, "strip", ZodTypeAny, {
594
- type: "changed";
595
- old: string;
596
- new: string;
597
- }, {
598
- type: "changed";
599
- old: string;
600
- new: string;
601
- }>]>;
602
- deleted: z.ZodArray<z.ZodObject<{
603
- name: z.ZodString;
604
- type: z.ZodString;
605
- primaryKey: z.ZodOptional<z.ZodBoolean>;
606
- default: z.ZodOptional<z.ZodAny>;
607
- notNull: z.ZodOptional<z.ZodBoolean>;
608
- autoincrement: z.ZodOptional<z.ZodBoolean>;
609
- onUpdate: z.ZodOptional<z.ZodBoolean>;
610
- isUnique: z.ZodOptional<z.ZodAny>;
611
- uniqueName: z.ZodOptional<z.ZodString>;
612
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
613
- }, "strict", ZodTypeAny, {
614
- isUnique?: any;
615
- default?: any;
616
- onUpdate?: boolean | undefined;
617
- primaryKey?: boolean | undefined;
618
- notNull?: boolean | undefined;
619
- autoincrement?: boolean | undefined;
620
- uniqueName?: string | undefined;
621
- nullsNotDistinct?: boolean | undefined;
622
- name: string;
623
- type: string;
624
- }, {
625
- isUnique?: any;
626
- default?: any;
627
- onUpdate?: boolean | undefined;
628
- primaryKey?: boolean | undefined;
629
- notNull?: boolean | undefined;
630
- autoincrement?: boolean | undefined;
631
- uniqueName?: string | undefined;
632
- nullsNotDistinct?: boolean | undefined;
633
- name: string;
634
- type: string;
635
- }>, "many">;
636
- added: z.ZodArray<z.ZodObject<{
637
- name: z.ZodString;
638
- type: z.ZodString;
639
- primaryKey: z.ZodOptional<z.ZodBoolean>;
640
- default: z.ZodOptional<z.ZodAny>;
641
- notNull: z.ZodOptional<z.ZodBoolean>;
642
- autoincrement: z.ZodOptional<z.ZodBoolean>;
643
- onUpdate: z.ZodOptional<z.ZodBoolean>;
644
- isUnique: z.ZodOptional<z.ZodAny>;
645
- uniqueName: z.ZodOptional<z.ZodString>;
646
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
647
- }, "strict", ZodTypeAny, {
648
- isUnique?: any;
649
- default?: any;
650
- onUpdate?: boolean | undefined;
651
- primaryKey?: boolean | undefined;
652
- notNull?: boolean | undefined;
653
- autoincrement?: boolean | undefined;
654
- uniqueName?: string | undefined;
655
- nullsNotDistinct?: boolean | undefined;
656
- name: string;
657
- type: string;
658
- }, {
659
- isUnique?: any;
660
- default?: any;
661
- onUpdate?: boolean | undefined;
662
- primaryKey?: boolean | undefined;
663
- notNull?: boolean | undefined;
664
- autoincrement?: boolean | undefined;
665
- uniqueName?: string | undefined;
666
- nullsNotDistinct?: boolean | undefined;
667
- name: string;
668
- type: string;
669
- }>, "many">;
670
- altered: z.ZodArray<z.ZodObject<{
671
- name: z.ZodUnion<[z.ZodString, z.ZodObject<{
672
- type: z.ZodEnum<["changed"]>;
673
- old: z.ZodString;
674
- new: z.ZodString;
574
+ export declare const alteredTableScheme: import("zod").ZodObject<{
575
+ name: import("zod").ZodString;
576
+ schema: import("zod").ZodString;
577
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
578
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
579
+ type: import("zod").ZodEnum<["changed"]>;
580
+ old: import("zod").ZodString;
581
+ new: import("zod").ZodString;
675
582
  }, "strip", ZodTypeAny, {
676
583
  type: "changed";
677
584
  old: string;
@@ -681,10 +588,10 @@ export declare const alteredTableScheme: z.ZodObject<{
681
588
  old: string;
682
589
  new: string;
683
590
  }>]>;
684
- type: z.ZodOptional<z.ZodObject<{
685
- type: z.ZodEnum<["changed"]>;
686
- old: z.ZodString;
687
- new: z.ZodString;
591
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
592
+ type: import("zod").ZodEnum<["changed"]>;
593
+ old: import("zod").ZodString;
594
+ new: import("zod").ZodString;
688
595
  }, "strip", ZodTypeAny, {
689
596
  type: "changed";
690
597
  old: string;
@@ -694,28 +601,28 @@ export declare const alteredTableScheme: z.ZodObject<{
694
601
  old: string;
695
602
  new: string;
696
603
  }>>;
697
- default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
698
- type: z.ZodLiteral<"added">;
699
- value: z.ZodAny;
604
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
605
+ type: import("zod").ZodLiteral<"added">;
606
+ value: import("zod").ZodAny;
700
607
  }, "strip", ZodTypeAny, {
701
608
  value?: any;
702
609
  type: "added";
703
610
  }, {
704
611
  value?: any;
705
612
  type: "added";
706
- }>, z.ZodObject<{
707
- type: z.ZodLiteral<"deleted">;
708
- value: z.ZodAny;
613
+ }>, import("zod").ZodObject<{
614
+ type: import("zod").ZodLiteral<"deleted">;
615
+ value: import("zod").ZodAny;
709
616
  }, "strip", ZodTypeAny, {
710
617
  value?: any;
711
618
  type: "deleted";
712
619
  }, {
713
620
  value?: any;
714
621
  type: "deleted";
715
- }>, z.ZodObject<{
716
- type: z.ZodLiteral<"changed">;
717
- old: z.ZodAny;
718
- new: z.ZodAny;
622
+ }>, import("zod").ZodObject<{
623
+ type: import("zod").ZodLiteral<"changed">;
624
+ old: import("zod").ZodAny;
625
+ new: import("zod").ZodAny;
719
626
  }, "strip", ZodTypeAny, {
720
627
  old?: any;
721
628
  new?: any;
@@ -725,28 +632,28 @@ export declare const alteredTableScheme: z.ZodObject<{
725
632
  new?: any;
726
633
  type: "changed";
727
634
  }>]>>;
728
- primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
- type: z.ZodLiteral<"added">;
730
- value: z.ZodBoolean;
635
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
636
+ type: import("zod").ZodLiteral<"added">;
637
+ value: import("zod").ZodBoolean;
731
638
  }, "strip", ZodTypeAny, {
732
639
  type: "added";
733
640
  value: boolean;
734
641
  }, {
735
642
  type: "added";
736
643
  value: boolean;
737
- }>, z.ZodObject<{
738
- type: z.ZodLiteral<"deleted">;
739
- value: z.ZodBoolean;
644
+ }>, import("zod").ZodObject<{
645
+ type: import("zod").ZodLiteral<"deleted">;
646
+ value: import("zod").ZodBoolean;
740
647
  }, "strip", ZodTypeAny, {
741
648
  type: "deleted";
742
649
  value: boolean;
743
650
  }, {
744
651
  type: "deleted";
745
652
  value: boolean;
746
- }>, z.ZodObject<{
747
- type: z.ZodLiteral<"changed">;
748
- old: z.ZodBoolean;
749
- new: z.ZodBoolean;
653
+ }>, import("zod").ZodObject<{
654
+ type: import("zod").ZodLiteral<"changed">;
655
+ old: import("zod").ZodBoolean;
656
+ new: import("zod").ZodBoolean;
750
657
  }, "strip", ZodTypeAny, {
751
658
  type: "changed";
752
659
  old: boolean;
@@ -756,28 +663,28 @@ export declare const alteredTableScheme: z.ZodObject<{
756
663
  old: boolean;
757
664
  new: boolean;
758
665
  }>]>>;
759
- notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
760
- type: z.ZodLiteral<"added">;
761
- value: z.ZodBoolean;
666
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
667
+ type: import("zod").ZodLiteral<"added">;
668
+ value: import("zod").ZodBoolean;
762
669
  }, "strip", ZodTypeAny, {
763
670
  type: "added";
764
671
  value: boolean;
765
672
  }, {
766
673
  type: "added";
767
674
  value: boolean;
768
- }>, z.ZodObject<{
769
- type: z.ZodLiteral<"deleted">;
770
- value: z.ZodBoolean;
675
+ }>, import("zod").ZodObject<{
676
+ type: import("zod").ZodLiteral<"deleted">;
677
+ value: import("zod").ZodBoolean;
771
678
  }, "strip", ZodTypeAny, {
772
679
  type: "deleted";
773
680
  value: boolean;
774
681
  }, {
775
682
  type: "deleted";
776
683
  value: boolean;
777
- }>, z.ZodObject<{
778
- type: z.ZodLiteral<"changed">;
779
- old: z.ZodBoolean;
780
- new: z.ZodBoolean;
684
+ }>, import("zod").ZodObject<{
685
+ type: import("zod").ZodLiteral<"changed">;
686
+ old: import("zod").ZodBoolean;
687
+ new: import("zod").ZodBoolean;
781
688
  }, "strip", ZodTypeAny, {
782
689
  type: "changed";
783
690
  old: boolean;
@@ -787,28 +694,28 @@ export declare const alteredTableScheme: z.ZodObject<{
787
694
  old: boolean;
788
695
  new: boolean;
789
696
  }>]>>;
790
- onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
791
- type: z.ZodLiteral<"added">;
792
- value: z.ZodBoolean;
697
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
698
+ type: import("zod").ZodLiteral<"added">;
699
+ value: import("zod").ZodBoolean;
793
700
  }, "strip", ZodTypeAny, {
794
701
  type: "added";
795
702
  value: boolean;
796
703
  }, {
797
704
  type: "added";
798
705
  value: boolean;
799
- }>, z.ZodObject<{
800
- type: z.ZodLiteral<"deleted">;
801
- value: z.ZodBoolean;
706
+ }>, import("zod").ZodObject<{
707
+ type: import("zod").ZodLiteral<"deleted">;
708
+ value: import("zod").ZodBoolean;
802
709
  }, "strip", ZodTypeAny, {
803
710
  type: "deleted";
804
711
  value: boolean;
805
712
  }, {
806
713
  type: "deleted";
807
714
  value: boolean;
808
- }>, z.ZodObject<{
809
- type: z.ZodLiteral<"changed">;
810
- old: z.ZodBoolean;
811
- new: z.ZodBoolean;
715
+ }>, import("zod").ZodObject<{
716
+ type: import("zod").ZodLiteral<"changed">;
717
+ old: import("zod").ZodBoolean;
718
+ new: import("zod").ZodBoolean;
812
719
  }, "strip", ZodTypeAny, {
813
720
  type: "changed";
814
721
  old: boolean;
@@ -818,28 +725,28 @@ export declare const alteredTableScheme: z.ZodObject<{
818
725
  old: boolean;
819
726
  new: boolean;
820
727
  }>]>>;
821
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
822
- type: z.ZodLiteral<"added">;
823
- value: z.ZodBoolean;
728
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
729
+ type: import("zod").ZodLiteral<"added">;
730
+ value: import("zod").ZodBoolean;
824
731
  }, "strip", ZodTypeAny, {
825
732
  type: "added";
826
733
  value: boolean;
827
734
  }, {
828
735
  type: "added";
829
736
  value: boolean;
830
- }>, z.ZodObject<{
831
- type: z.ZodLiteral<"deleted">;
832
- value: z.ZodBoolean;
737
+ }>, import("zod").ZodObject<{
738
+ type: import("zod").ZodLiteral<"deleted">;
739
+ value: import("zod").ZodBoolean;
833
740
  }, "strip", ZodTypeAny, {
834
741
  type: "deleted";
835
742
  value: boolean;
836
743
  }, {
837
744
  type: "deleted";
838
745
  value: boolean;
839
- }>, z.ZodObject<{
840
- type: z.ZodLiteral<"changed">;
841
- old: z.ZodBoolean;
842
- new: z.ZodBoolean;
746
+ }>, import("zod").ZodObject<{
747
+ type: import("zod").ZodLiteral<"changed">;
748
+ old: import("zod").ZodBoolean;
749
+ new: import("zod").ZodBoolean;
843
750
  }, "strip", ZodTypeAny, {
844
751
  type: "changed";
845
752
  old: boolean;
@@ -982,11 +889,11 @@ export declare const alteredTableScheme: z.ZodObject<{
982
889
  new: string;
983
890
  };
984
891
  }>, "many">;
985
- addedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
986
- deletedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
987
- alteredIndexes: z.ZodRecord<z.ZodString, z.ZodObject<{
988
- __new: z.ZodString;
989
- __old: z.ZodString;
892
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
893
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
894
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
895
+ __new: import("zod").ZodString;
896
+ __old: import("zod").ZodString;
990
897
  }, "strict", ZodTypeAny, {
991
898
  __old: string;
992
899
  __new: string;
@@ -994,11 +901,11 @@ export declare const alteredTableScheme: z.ZodObject<{
994
901
  __old: string;
995
902
  __new: string;
996
903
  }>>;
997
- addedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
998
- deletedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
999
- alteredForeignKeys: z.ZodRecord<z.ZodString, z.ZodObject<{
1000
- __new: z.ZodString;
1001
- __old: z.ZodString;
904
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
905
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
906
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
907
+ __new: import("zod").ZodString;
908
+ __old: import("zod").ZodString;
1002
909
  }, "strict", ZodTypeAny, {
1003
910
  __old: string;
1004
911
  __new: string;
@@ -1006,11 +913,11 @@ export declare const alteredTableScheme: z.ZodObject<{
1006
913
  __old: string;
1007
914
  __new: string;
1008
915
  }>>;
1009
- addedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1010
- deletedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1011
- alteredCompositePKs: z.ZodRecord<z.ZodString, z.ZodObject<{
1012
- __new: z.ZodString;
1013
- __old: z.ZodString;
916
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
917
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
918
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
919
+ __new: import("zod").ZodString;
920
+ __old: import("zod").ZodString;
1014
921
  }, "strip", ZodTypeAny, {
1015
922
  __old: string;
1016
923
  __new: string;
@@ -1018,11 +925,11 @@ export declare const alteredTableScheme: z.ZodObject<{
1018
925
  __old: string;
1019
926
  __new: string;
1020
927
  }>>;
1021
- addedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1022
- deletedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1023
- alteredUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodObject<{
1024
- __new: z.ZodString;
1025
- __old: z.ZodString;
928
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
929
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
930
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
931
+ __new: import("zod").ZodString;
932
+ __old: import("zod").ZodString;
1026
933
  }, "strip", ZodTypeAny, {
1027
934
  __old: string;
1028
935
  __new: string;
@@ -1032,44 +939,7 @@ export declare const alteredTableScheme: z.ZodObject<{
1032
939
  }>>;
1033
940
  }, "strict", ZodTypeAny, {
1034
941
  name: string;
1035
- schema: {
1036
- value?: string | undefined;
1037
- type: "none";
1038
- } | {
1039
- type: "added";
1040
- value: string;
1041
- } | {
1042
- type: "deleted";
1043
- value: string;
1044
- } | {
1045
- type: "changed";
1046
- old: string;
1047
- new: string;
1048
- };
1049
- added: {
1050
- isUnique?: any;
1051
- default?: any;
1052
- onUpdate?: boolean | undefined;
1053
- primaryKey?: boolean | undefined;
1054
- notNull?: boolean | undefined;
1055
- autoincrement?: boolean | undefined;
1056
- uniqueName?: string | undefined;
1057
- nullsNotDistinct?: boolean | undefined;
1058
- name: string;
1059
- type: string;
1060
- }[];
1061
- deleted: {
1062
- isUnique?: any;
1063
- default?: any;
1064
- onUpdate?: boolean | undefined;
1065
- primaryKey?: boolean | undefined;
1066
- notNull?: boolean | undefined;
1067
- autoincrement?: boolean | undefined;
1068
- uniqueName?: string | undefined;
1069
- nullsNotDistinct?: boolean | undefined;
1070
- name: string;
1071
- type: string;
1072
- }[];
942
+ schema: string;
1073
943
  altered: {
1074
944
  default?: {
1075
945
  value?: any;
@@ -1163,44 +1033,7 @@ export declare const alteredTableScheme: z.ZodObject<{
1163
1033
  }>;
1164
1034
  }, {
1165
1035
  name: string;
1166
- schema: {
1167
- value?: string | undefined;
1168
- type: "none";
1169
- } | {
1170
- type: "added";
1171
- value: string;
1172
- } | {
1173
- type: "deleted";
1174
- value: string;
1175
- } | {
1176
- type: "changed";
1177
- old: string;
1178
- new: string;
1179
- };
1180
- added: {
1181
- isUnique?: any;
1182
- default?: any;
1183
- onUpdate?: boolean | undefined;
1184
- primaryKey?: boolean | undefined;
1185
- notNull?: boolean | undefined;
1186
- autoincrement?: boolean | undefined;
1187
- uniqueName?: string | undefined;
1188
- nullsNotDistinct?: boolean | undefined;
1189
- name: string;
1190
- type: string;
1191
- }[];
1192
- deleted: {
1193
- isUnique?: any;
1194
- default?: any;
1195
- onUpdate?: boolean | undefined;
1196
- primaryKey?: boolean | undefined;
1197
- notNull?: boolean | undefined;
1198
- autoincrement?: boolean | undefined;
1199
- uniqueName?: string | undefined;
1200
- nullsNotDistinct?: boolean | undefined;
1201
- name: string;
1202
- type: string;
1203
- }[];
1036
+ schema: string;
1204
1037
  altered: {
1205
1038
  default?: {
1206
1039
  value?: any;
@@ -1293,282 +1126,15 @@ export declare const alteredTableScheme: z.ZodObject<{
1293
1126
  __new: string;
1294
1127
  }>;
1295
1128
  }>;
1296
- export declare const diffResultScheme: z.ZodObject<{
1297
- addedTables: z.ZodArray<z.ZodObject<{
1298
- name: z.ZodString;
1299
- schema: z.ZodDefault<z.ZodString>;
1300
- columns: z.ZodRecord<z.ZodString, z.ZodObject<{
1301
- name: z.ZodString;
1302
- type: z.ZodString;
1303
- primaryKey: z.ZodOptional<z.ZodBoolean>;
1304
- default: z.ZodOptional<z.ZodAny>;
1305
- notNull: z.ZodOptional<z.ZodBoolean>;
1306
- autoincrement: z.ZodOptional<z.ZodBoolean>;
1307
- onUpdate: z.ZodOptional<z.ZodBoolean>;
1308
- isUnique: z.ZodOptional<z.ZodAny>;
1309
- uniqueName: z.ZodOptional<z.ZodString>;
1310
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1311
- }, "strict", ZodTypeAny, {
1312
- isUnique?: any;
1313
- default?: any;
1314
- onUpdate?: boolean | undefined;
1315
- primaryKey?: boolean | undefined;
1316
- notNull?: boolean | undefined;
1317
- autoincrement?: boolean | undefined;
1318
- uniqueName?: string | undefined;
1319
- nullsNotDistinct?: boolean | undefined;
1320
- name: string;
1321
- type: string;
1322
- }, {
1323
- isUnique?: any;
1324
- default?: any;
1325
- onUpdate?: boolean | undefined;
1326
- primaryKey?: boolean | undefined;
1327
- notNull?: boolean | undefined;
1328
- autoincrement?: boolean | undefined;
1329
- uniqueName?: string | undefined;
1330
- nullsNotDistinct?: boolean | undefined;
1331
- name: string;
1332
- type: string;
1333
- }>>;
1334
- indexes: z.ZodRecord<z.ZodString, z.ZodString>;
1335
- foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1336
- compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1337
- uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1338
- }, "strict", ZodTypeAny, {
1339
- name: string;
1340
- columns: Record<string, {
1341
- isUnique?: any;
1342
- default?: any;
1343
- onUpdate?: boolean | undefined;
1344
- primaryKey?: boolean | undefined;
1345
- notNull?: boolean | undefined;
1346
- autoincrement?: boolean | undefined;
1347
- uniqueName?: string | undefined;
1348
- nullsNotDistinct?: boolean | undefined;
1349
- name: string;
1350
- type: string;
1351
- }>;
1352
- indexes: Record<string, string>;
1353
- foreignKeys: Record<string, string>;
1354
- schema: string;
1355
- compositePrimaryKeys: Record<string, string>;
1356
- uniqueConstraints: Record<string, string>;
1357
- }, {
1358
- schema?: string | undefined;
1359
- compositePrimaryKeys?: Record<string, string> | undefined;
1360
- uniqueConstraints?: Record<string, string> | undefined;
1361
- name: string;
1362
- columns: Record<string, {
1363
- isUnique?: any;
1364
- default?: any;
1365
- onUpdate?: boolean | undefined;
1366
- primaryKey?: boolean | undefined;
1367
- notNull?: boolean | undefined;
1368
- autoincrement?: boolean | undefined;
1369
- uniqueName?: string | undefined;
1370
- nullsNotDistinct?: boolean | undefined;
1371
- name: string;
1372
- type: string;
1373
- }>;
1374
- indexes: Record<string, string>;
1375
- foreignKeys: Record<string, string>;
1376
- }>, "many">;
1377
- deletedTables: z.ZodArray<z.ZodObject<{
1378
- name: z.ZodString;
1379
- schema: z.ZodDefault<z.ZodString>;
1380
- columns: z.ZodRecord<z.ZodString, z.ZodObject<{
1381
- name: z.ZodString;
1382
- type: z.ZodString;
1383
- primaryKey: z.ZodOptional<z.ZodBoolean>;
1384
- default: z.ZodOptional<z.ZodAny>;
1385
- notNull: z.ZodOptional<z.ZodBoolean>;
1386
- autoincrement: z.ZodOptional<z.ZodBoolean>;
1387
- onUpdate: z.ZodOptional<z.ZodBoolean>;
1388
- isUnique: z.ZodOptional<z.ZodAny>;
1389
- uniqueName: z.ZodOptional<z.ZodString>;
1390
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1391
- }, "strict", ZodTypeAny, {
1392
- isUnique?: any;
1393
- default?: any;
1394
- onUpdate?: boolean | undefined;
1395
- primaryKey?: boolean | undefined;
1396
- notNull?: boolean | undefined;
1397
- autoincrement?: boolean | undefined;
1398
- uniqueName?: string | undefined;
1399
- nullsNotDistinct?: boolean | undefined;
1400
- name: string;
1401
- type: string;
1402
- }, {
1403
- isUnique?: any;
1404
- default?: any;
1405
- onUpdate?: boolean | undefined;
1406
- primaryKey?: boolean | undefined;
1407
- notNull?: boolean | undefined;
1408
- autoincrement?: boolean | undefined;
1409
- uniqueName?: string | undefined;
1410
- nullsNotDistinct?: boolean | undefined;
1411
- name: string;
1412
- type: string;
1413
- }>>;
1414
- indexes: z.ZodRecord<z.ZodString, z.ZodString>;
1415
- foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1416
- compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1417
- uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1418
- }, "strict", ZodTypeAny, {
1419
- name: string;
1420
- columns: Record<string, {
1421
- isUnique?: any;
1422
- default?: any;
1423
- onUpdate?: boolean | undefined;
1424
- primaryKey?: boolean | undefined;
1425
- notNull?: boolean | undefined;
1426
- autoincrement?: boolean | undefined;
1427
- uniqueName?: string | undefined;
1428
- nullsNotDistinct?: boolean | undefined;
1429
- name: string;
1430
- type: string;
1431
- }>;
1432
- indexes: Record<string, string>;
1433
- foreignKeys: Record<string, string>;
1434
- schema: string;
1435
- compositePrimaryKeys: Record<string, string>;
1436
- uniqueConstraints: Record<string, string>;
1437
- }, {
1438
- schema?: string | undefined;
1439
- compositePrimaryKeys?: Record<string, string> | undefined;
1440
- uniqueConstraints?: Record<string, string> | undefined;
1441
- name: string;
1442
- columns: Record<string, {
1443
- isUnique?: any;
1444
- default?: any;
1445
- onUpdate?: boolean | undefined;
1446
- primaryKey?: boolean | undefined;
1447
- notNull?: boolean | undefined;
1448
- autoincrement?: boolean | undefined;
1449
- uniqueName?: string | undefined;
1450
- nullsNotDistinct?: boolean | undefined;
1451
- name: string;
1452
- type: string;
1453
- }>;
1454
- indexes: Record<string, string>;
1455
- foreignKeys: Record<string, string>;
1456
- }>, "many">;
1457
- alteredTablesWithColumns: z.ZodArray<z.ZodObject<{
1458
- name: z.ZodString;
1459
- schema: z.ZodUnion<[z.ZodObject<{
1460
- type: z.ZodLiteral<"none">;
1461
- value: z.ZodOptional<z.ZodString>;
1462
- }, "strip", ZodTypeAny, {
1463
- value?: string | undefined;
1464
- type: "none";
1465
- }, {
1466
- value?: string | undefined;
1467
- type: "none";
1468
- }>, z.ZodObject<{
1469
- type: z.ZodLiteral<"added">;
1470
- value: z.ZodString;
1471
- }, "strip", ZodTypeAny, {
1472
- type: "added";
1473
- value: string;
1474
- }, {
1475
- type: "added";
1476
- value: string;
1477
- }>, z.ZodObject<{
1478
- type: z.ZodLiteral<"deleted">;
1479
- value: z.ZodString;
1480
- }, "strip", ZodTypeAny, {
1481
- type: "deleted";
1482
- value: string;
1483
- }, {
1484
- type: "deleted";
1485
- value: string;
1486
- }>, z.ZodObject<{
1487
- type: z.ZodLiteral<"changed">;
1488
- old: z.ZodString;
1489
- new: z.ZodString;
1490
- }, "strip", ZodTypeAny, {
1491
- type: "changed";
1492
- old: string;
1493
- new: string;
1494
- }, {
1495
- type: "changed";
1496
- old: string;
1497
- new: string;
1498
- }>]>;
1499
- deleted: z.ZodArray<z.ZodObject<{
1500
- name: z.ZodString;
1501
- type: z.ZodString;
1502
- primaryKey: z.ZodOptional<z.ZodBoolean>;
1503
- default: z.ZodOptional<z.ZodAny>;
1504
- notNull: z.ZodOptional<z.ZodBoolean>;
1505
- autoincrement: z.ZodOptional<z.ZodBoolean>;
1506
- onUpdate: z.ZodOptional<z.ZodBoolean>;
1507
- isUnique: z.ZodOptional<z.ZodAny>;
1508
- uniqueName: z.ZodOptional<z.ZodString>;
1509
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1510
- }, "strict", ZodTypeAny, {
1511
- isUnique?: any;
1512
- default?: any;
1513
- onUpdate?: boolean | undefined;
1514
- primaryKey?: boolean | undefined;
1515
- notNull?: boolean | undefined;
1516
- autoincrement?: boolean | undefined;
1517
- uniqueName?: string | undefined;
1518
- nullsNotDistinct?: boolean | undefined;
1519
- name: string;
1520
- type: string;
1521
- }, {
1522
- isUnique?: any;
1523
- default?: any;
1524
- onUpdate?: boolean | undefined;
1525
- primaryKey?: boolean | undefined;
1526
- notNull?: boolean | undefined;
1527
- autoincrement?: boolean | undefined;
1528
- uniqueName?: string | undefined;
1529
- nullsNotDistinct?: boolean | undefined;
1530
- name: string;
1531
- type: string;
1532
- }>, "many">;
1533
- added: z.ZodArray<z.ZodObject<{
1534
- name: z.ZodString;
1535
- type: z.ZodString;
1536
- primaryKey: z.ZodOptional<z.ZodBoolean>;
1537
- default: z.ZodOptional<z.ZodAny>;
1538
- notNull: z.ZodOptional<z.ZodBoolean>;
1539
- autoincrement: z.ZodOptional<z.ZodBoolean>;
1540
- onUpdate: z.ZodOptional<z.ZodBoolean>;
1541
- isUnique: z.ZodOptional<z.ZodAny>;
1542
- uniqueName: z.ZodOptional<z.ZodString>;
1543
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1544
- }, "strict", ZodTypeAny, {
1545
- isUnique?: any;
1546
- default?: any;
1547
- onUpdate?: boolean | undefined;
1548
- primaryKey?: boolean | undefined;
1549
- notNull?: boolean | undefined;
1550
- autoincrement?: boolean | undefined;
1551
- uniqueName?: string | undefined;
1552
- nullsNotDistinct?: boolean | undefined;
1553
- name: string;
1554
- type: string;
1555
- }, {
1556
- isUnique?: any;
1557
- default?: any;
1558
- onUpdate?: boolean | undefined;
1559
- primaryKey?: boolean | undefined;
1560
- notNull?: boolean | undefined;
1561
- autoincrement?: boolean | undefined;
1562
- uniqueName?: string | undefined;
1563
- nullsNotDistinct?: boolean | undefined;
1564
- name: string;
1565
- type: string;
1566
- }>, "many">;
1567
- altered: z.ZodArray<z.ZodObject<{
1568
- name: z.ZodUnion<[z.ZodString, z.ZodObject<{
1569
- type: z.ZodEnum<["changed"]>;
1570
- old: z.ZodString;
1571
- new: z.ZodString;
1129
+ export declare const diffResultScheme: import("zod").ZodObject<{
1130
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
1131
+ name: import("zod").ZodString;
1132
+ schema: import("zod").ZodString;
1133
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
1134
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
1135
+ type: import("zod").ZodEnum<["changed"]>;
1136
+ old: import("zod").ZodString;
1137
+ new: import("zod").ZodString;
1572
1138
  }, "strip", ZodTypeAny, {
1573
1139
  type: "changed";
1574
1140
  old: string;
@@ -1578,10 +1144,10 @@ export declare const diffResultScheme: z.ZodObject<{
1578
1144
  old: string;
1579
1145
  new: string;
1580
1146
  }>]>;
1581
- type: z.ZodOptional<z.ZodObject<{
1582
- type: z.ZodEnum<["changed"]>;
1583
- old: z.ZodString;
1584
- new: z.ZodString;
1147
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
1148
+ type: import("zod").ZodEnum<["changed"]>;
1149
+ old: import("zod").ZodString;
1150
+ new: import("zod").ZodString;
1585
1151
  }, "strip", ZodTypeAny, {
1586
1152
  type: "changed";
1587
1153
  old: string;
@@ -1591,28 +1157,28 @@ export declare const diffResultScheme: z.ZodObject<{
1591
1157
  old: string;
1592
1158
  new: string;
1593
1159
  }>>;
1594
- default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1595
- type: z.ZodLiteral<"added">;
1596
- value: z.ZodAny;
1160
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1161
+ type: import("zod").ZodLiteral<"added">;
1162
+ value: import("zod").ZodAny;
1597
1163
  }, "strip", ZodTypeAny, {
1598
1164
  value?: any;
1599
1165
  type: "added";
1600
1166
  }, {
1601
1167
  value?: any;
1602
1168
  type: "added";
1603
- }>, z.ZodObject<{
1604
- type: z.ZodLiteral<"deleted">;
1605
- value: z.ZodAny;
1169
+ }>, import("zod").ZodObject<{
1170
+ type: import("zod").ZodLiteral<"deleted">;
1171
+ value: import("zod").ZodAny;
1606
1172
  }, "strip", ZodTypeAny, {
1607
1173
  value?: any;
1608
1174
  type: "deleted";
1609
1175
  }, {
1610
1176
  value?: any;
1611
1177
  type: "deleted";
1612
- }>, z.ZodObject<{
1613
- type: z.ZodLiteral<"changed">;
1614
- old: z.ZodAny;
1615
- new: z.ZodAny;
1178
+ }>, import("zod").ZodObject<{
1179
+ type: import("zod").ZodLiteral<"changed">;
1180
+ old: import("zod").ZodAny;
1181
+ new: import("zod").ZodAny;
1616
1182
  }, "strip", ZodTypeAny, {
1617
1183
  old?: any;
1618
1184
  new?: any;
@@ -1622,28 +1188,28 @@ export declare const diffResultScheme: z.ZodObject<{
1622
1188
  new?: any;
1623
1189
  type: "changed";
1624
1190
  }>]>>;
1625
- primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1626
- type: z.ZodLiteral<"added">;
1627
- value: z.ZodBoolean;
1191
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1192
+ type: import("zod").ZodLiteral<"added">;
1193
+ value: import("zod").ZodBoolean;
1628
1194
  }, "strip", ZodTypeAny, {
1629
1195
  type: "added";
1630
1196
  value: boolean;
1631
1197
  }, {
1632
1198
  type: "added";
1633
1199
  value: boolean;
1634
- }>, z.ZodObject<{
1635
- type: z.ZodLiteral<"deleted">;
1636
- value: z.ZodBoolean;
1200
+ }>, import("zod").ZodObject<{
1201
+ type: import("zod").ZodLiteral<"deleted">;
1202
+ value: import("zod").ZodBoolean;
1637
1203
  }, "strip", ZodTypeAny, {
1638
1204
  type: "deleted";
1639
1205
  value: boolean;
1640
1206
  }, {
1641
1207
  type: "deleted";
1642
1208
  value: boolean;
1643
- }>, z.ZodObject<{
1644
- type: z.ZodLiteral<"changed">;
1645
- old: z.ZodBoolean;
1646
- new: z.ZodBoolean;
1209
+ }>, import("zod").ZodObject<{
1210
+ type: import("zod").ZodLiteral<"changed">;
1211
+ old: import("zod").ZodBoolean;
1212
+ new: import("zod").ZodBoolean;
1647
1213
  }, "strip", ZodTypeAny, {
1648
1214
  type: "changed";
1649
1215
  old: boolean;
@@ -1653,28 +1219,28 @@ export declare const diffResultScheme: z.ZodObject<{
1653
1219
  old: boolean;
1654
1220
  new: boolean;
1655
1221
  }>]>>;
1656
- notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1657
- type: z.ZodLiteral<"added">;
1658
- value: z.ZodBoolean;
1222
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1223
+ type: import("zod").ZodLiteral<"added">;
1224
+ value: import("zod").ZodBoolean;
1659
1225
  }, "strip", ZodTypeAny, {
1660
1226
  type: "added";
1661
1227
  value: boolean;
1662
1228
  }, {
1663
1229
  type: "added";
1664
1230
  value: boolean;
1665
- }>, z.ZodObject<{
1666
- type: z.ZodLiteral<"deleted">;
1667
- value: z.ZodBoolean;
1231
+ }>, import("zod").ZodObject<{
1232
+ type: import("zod").ZodLiteral<"deleted">;
1233
+ value: import("zod").ZodBoolean;
1668
1234
  }, "strip", ZodTypeAny, {
1669
1235
  type: "deleted";
1670
1236
  value: boolean;
1671
1237
  }, {
1672
1238
  type: "deleted";
1673
1239
  value: boolean;
1674
- }>, z.ZodObject<{
1675
- type: z.ZodLiteral<"changed">;
1676
- old: z.ZodBoolean;
1677
- new: z.ZodBoolean;
1240
+ }>, import("zod").ZodObject<{
1241
+ type: import("zod").ZodLiteral<"changed">;
1242
+ old: import("zod").ZodBoolean;
1243
+ new: import("zod").ZodBoolean;
1678
1244
  }, "strip", ZodTypeAny, {
1679
1245
  type: "changed";
1680
1246
  old: boolean;
@@ -1684,28 +1250,28 @@ export declare const diffResultScheme: z.ZodObject<{
1684
1250
  old: boolean;
1685
1251
  new: boolean;
1686
1252
  }>]>>;
1687
- onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1688
- type: z.ZodLiteral<"added">;
1689
- value: z.ZodBoolean;
1253
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1254
+ type: import("zod").ZodLiteral<"added">;
1255
+ value: import("zod").ZodBoolean;
1690
1256
  }, "strip", ZodTypeAny, {
1691
1257
  type: "added";
1692
1258
  value: boolean;
1693
1259
  }, {
1694
1260
  type: "added";
1695
1261
  value: boolean;
1696
- }>, z.ZodObject<{
1697
- type: z.ZodLiteral<"deleted">;
1698
- value: z.ZodBoolean;
1262
+ }>, import("zod").ZodObject<{
1263
+ type: import("zod").ZodLiteral<"deleted">;
1264
+ value: import("zod").ZodBoolean;
1699
1265
  }, "strip", ZodTypeAny, {
1700
1266
  type: "deleted";
1701
1267
  value: boolean;
1702
1268
  }, {
1703
1269
  type: "deleted";
1704
1270
  value: boolean;
1705
- }>, z.ZodObject<{
1706
- type: z.ZodLiteral<"changed">;
1707
- old: z.ZodBoolean;
1708
- new: z.ZodBoolean;
1271
+ }>, import("zod").ZodObject<{
1272
+ type: import("zod").ZodLiteral<"changed">;
1273
+ old: import("zod").ZodBoolean;
1274
+ new: import("zod").ZodBoolean;
1709
1275
  }, "strip", ZodTypeAny, {
1710
1276
  type: "changed";
1711
1277
  old: boolean;
@@ -1715,28 +1281,28 @@ export declare const diffResultScheme: z.ZodObject<{
1715
1281
  old: boolean;
1716
1282
  new: boolean;
1717
1283
  }>]>>;
1718
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1719
- type: z.ZodLiteral<"added">;
1720
- value: z.ZodBoolean;
1284
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1285
+ type: import("zod").ZodLiteral<"added">;
1286
+ value: import("zod").ZodBoolean;
1721
1287
  }, "strip", ZodTypeAny, {
1722
1288
  type: "added";
1723
1289
  value: boolean;
1724
1290
  }, {
1725
1291
  type: "added";
1726
1292
  value: boolean;
1727
- }>, z.ZodObject<{
1728
- type: z.ZodLiteral<"deleted">;
1729
- value: z.ZodBoolean;
1293
+ }>, import("zod").ZodObject<{
1294
+ type: import("zod").ZodLiteral<"deleted">;
1295
+ value: import("zod").ZodBoolean;
1730
1296
  }, "strip", ZodTypeAny, {
1731
1297
  type: "deleted";
1732
1298
  value: boolean;
1733
1299
  }, {
1734
1300
  type: "deleted";
1735
1301
  value: boolean;
1736
- }>, z.ZodObject<{
1737
- type: z.ZodLiteral<"changed">;
1738
- old: z.ZodBoolean;
1739
- new: z.ZodBoolean;
1302
+ }>, import("zod").ZodObject<{
1303
+ type: import("zod").ZodLiteral<"changed">;
1304
+ old: import("zod").ZodBoolean;
1305
+ new: import("zod").ZodBoolean;
1740
1306
  }, "strip", ZodTypeAny, {
1741
1307
  type: "changed";
1742
1308
  old: boolean;
@@ -1879,11 +1445,11 @@ export declare const diffResultScheme: z.ZodObject<{
1879
1445
  new: string;
1880
1446
  };
1881
1447
  }>, "many">;
1882
- addedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
1883
- deletedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
1884
- alteredIndexes: z.ZodRecord<z.ZodString, z.ZodObject<{
1885
- __new: z.ZodString;
1886
- __old: z.ZodString;
1448
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1449
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1450
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1451
+ __new: import("zod").ZodString;
1452
+ __old: import("zod").ZodString;
1887
1453
  }, "strict", ZodTypeAny, {
1888
1454
  __old: string;
1889
1455
  __new: string;
@@ -1891,11 +1457,11 @@ export declare const diffResultScheme: z.ZodObject<{
1891
1457
  __old: string;
1892
1458
  __new: string;
1893
1459
  }>>;
1894
- addedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1895
- deletedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1896
- alteredForeignKeys: z.ZodRecord<z.ZodString, z.ZodObject<{
1897
- __new: z.ZodString;
1898
- __old: z.ZodString;
1460
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1461
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1462
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1463
+ __new: import("zod").ZodString;
1464
+ __old: import("zod").ZodString;
1899
1465
  }, "strict", ZodTypeAny, {
1900
1466
  __old: string;
1901
1467
  __new: string;
@@ -1903,11 +1469,11 @@ export declare const diffResultScheme: z.ZodObject<{
1903
1469
  __old: string;
1904
1470
  __new: string;
1905
1471
  }>>;
1906
- addedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1907
- deletedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1908
- alteredCompositePKs: z.ZodRecord<z.ZodString, z.ZodObject<{
1909
- __new: z.ZodString;
1910
- __old: z.ZodString;
1472
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1473
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1474
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1475
+ __new: import("zod").ZodString;
1476
+ __old: import("zod").ZodString;
1911
1477
  }, "strip", ZodTypeAny, {
1912
1478
  __old: string;
1913
1479
  __new: string;
@@ -1915,11 +1481,11 @@ export declare const diffResultScheme: z.ZodObject<{
1915
1481
  __old: string;
1916
1482
  __new: string;
1917
1483
  }>>;
1918
- addedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1919
- deletedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1920
- alteredUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodObject<{
1921
- __new: z.ZodString;
1922
- __old: z.ZodString;
1484
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1485
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1486
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1487
+ __new: import("zod").ZodString;
1488
+ __old: import("zod").ZodString;
1923
1489
  }, "strip", ZodTypeAny, {
1924
1490
  __old: string;
1925
1491
  __new: string;
@@ -1929,44 +1495,7 @@ export declare const diffResultScheme: z.ZodObject<{
1929
1495
  }>>;
1930
1496
  }, "strict", ZodTypeAny, {
1931
1497
  name: string;
1932
- schema: {
1933
- value?: string | undefined;
1934
- type: "none";
1935
- } | {
1936
- type: "added";
1937
- value: string;
1938
- } | {
1939
- type: "deleted";
1940
- value: string;
1941
- } | {
1942
- type: "changed";
1943
- old: string;
1944
- new: string;
1945
- };
1946
- added: {
1947
- isUnique?: any;
1948
- default?: any;
1949
- onUpdate?: boolean | undefined;
1950
- primaryKey?: boolean | undefined;
1951
- notNull?: boolean | undefined;
1952
- autoincrement?: boolean | undefined;
1953
- uniqueName?: string | undefined;
1954
- nullsNotDistinct?: boolean | undefined;
1955
- name: string;
1956
- type: string;
1957
- }[];
1958
- deleted: {
1959
- isUnique?: any;
1960
- default?: any;
1961
- onUpdate?: boolean | undefined;
1962
- primaryKey?: boolean | undefined;
1963
- notNull?: boolean | undefined;
1964
- autoincrement?: boolean | undefined;
1965
- uniqueName?: string | undefined;
1966
- nullsNotDistinct?: boolean | undefined;
1967
- name: string;
1968
- type: string;
1969
- }[];
1498
+ schema: string;
1970
1499
  altered: {
1971
1500
  default?: {
1972
1501
  value?: any;
@@ -2060,44 +1589,7 @@ export declare const diffResultScheme: z.ZodObject<{
2060
1589
  }>;
2061
1590
  }, {
2062
1591
  name: string;
2063
- schema: {
2064
- value?: string | undefined;
2065
- type: "none";
2066
- } | {
2067
- type: "added";
2068
- value: string;
2069
- } | {
2070
- type: "deleted";
2071
- value: string;
2072
- } | {
2073
- type: "changed";
2074
- old: string;
2075
- new: string;
2076
- };
2077
- added: {
2078
- isUnique?: any;
2079
- default?: any;
2080
- onUpdate?: boolean | undefined;
2081
- primaryKey?: boolean | undefined;
2082
- notNull?: boolean | undefined;
2083
- autoincrement?: boolean | undefined;
2084
- uniqueName?: string | undefined;
2085
- nullsNotDistinct?: boolean | undefined;
2086
- name: string;
2087
- type: string;
2088
- }[];
2089
- deleted: {
2090
- isUnique?: any;
2091
- default?: any;
2092
- onUpdate?: boolean | undefined;
2093
- primaryKey?: boolean | undefined;
2094
- notNull?: boolean | undefined;
2095
- autoincrement?: boolean | undefined;
2096
- uniqueName?: string | undefined;
2097
- nullsNotDistinct?: boolean | undefined;
2098
- name: string;
2099
- type: string;
2100
- }[];
1592
+ schema: string;
2101
1593
  altered: {
2102
1594
  default?: {
2103
1595
  value?: any;
@@ -2190,122 +1682,1370 @@ export declare const diffResultScheme: z.ZodObject<{
2190
1682
  __new: string;
2191
1683
  }>;
2192
1684
  }>, "many">;
2193
- addedEnums: z.ZodArray<z.ZodObject<{
2194
- name: z.ZodString;
2195
- values: z.ZodArray<z.ZodString, "many">;
2196
- }, "strict", ZodTypeAny, {
2197
- name: string;
2198
- values: string[];
2199
- }, {
2200
- name: string;
2201
- values: string[];
2202
- }>, "many">;
2203
- deletedEnums: z.ZodArray<z.ZodObject<{
2204
- name: z.ZodString;
2205
- values: z.ZodArray<z.ZodString, "many">;
2206
- }, "strict", ZodTypeAny, {
2207
- name: string;
2208
- values: string[];
2209
- }, {
2210
- name: string;
2211
- values: string[];
2212
- }>, "many">;
2213
- alteredEnums: z.ZodArray<z.ZodObject<{
2214
- name: z.ZodString;
2215
- addedValues: z.ZodArray<z.ZodString, "many">;
2216
- deletedValues: z.ZodArray<z.ZodString, "many">;
1685
+ alteredEnums: import("zod").ZodArray<import("zod").ZodObject<{
1686
+ name: import("zod").ZodString;
1687
+ schema: import("zod").ZodString;
1688
+ addedValues: import("zod").ZodArray<import("zod").ZodObject<{
1689
+ before: import("zod").ZodString;
1690
+ value: import("zod").ZodString;
1691
+ }, "strip", ZodTypeAny, {
1692
+ value: string;
1693
+ before: string;
1694
+ }, {
1695
+ value: string;
1696
+ before: string;
1697
+ }>, "many">;
1698
+ deletedValues: import("zod").ZodArray<import("zod").ZodString, "many">;
2217
1699
  }, "strict", ZodTypeAny, {
2218
1700
  name: string;
2219
- addedValues: string[];
1701
+ schema: string;
1702
+ addedValues: {
1703
+ value: string;
1704
+ before: string;
1705
+ }[];
2220
1706
  deletedValues: string[];
2221
1707
  }, {
2222
1708
  name: string;
2223
- addedValues: string[];
1709
+ schema: string;
1710
+ addedValues: {
1711
+ value: string;
1712
+ before: string;
1713
+ }[];
2224
1714
  deletedValues: string[];
2225
1715
  }>, "many">;
2226
- addedSchemas: z.ZodArray<z.ZodString, "many">;
2227
- deletedSchemas: z.ZodArray<z.ZodString, "many">;
2228
1716
  }, "strict", ZodTypeAny, {
2229
- addedTables: {
2230
- name: string;
2231
- columns: Record<string, {
2232
- isUnique?: any;
2233
- default?: any;
2234
- onUpdate?: boolean | undefined;
2235
- primaryKey?: boolean | undefined;
2236
- notNull?: boolean | undefined;
2237
- autoincrement?: boolean | undefined;
2238
- uniqueName?: string | undefined;
2239
- nullsNotDistinct?: boolean | undefined;
2240
- name: string;
2241
- type: string;
2242
- }>;
2243
- indexes: Record<string, string>;
2244
- foreignKeys: Record<string, string>;
2245
- schema: string;
2246
- compositePrimaryKeys: Record<string, string>;
2247
- uniqueConstraints: Record<string, string>;
2248
- }[];
2249
- deletedTables: {
2250
- name: string;
2251
- columns: Record<string, {
2252
- isUnique?: any;
2253
- default?: any;
2254
- onUpdate?: boolean | undefined;
2255
- primaryKey?: boolean | undefined;
2256
- notNull?: boolean | undefined;
2257
- autoincrement?: boolean | undefined;
2258
- uniqueName?: string | undefined;
2259
- nullsNotDistinct?: boolean | undefined;
2260
- name: string;
2261
- type: string;
2262
- }>;
2263
- indexes: Record<string, string>;
2264
- foreignKeys: Record<string, string>;
2265
- schema: string;
2266
- compositePrimaryKeys: Record<string, string>;
2267
- uniqueConstraints: Record<string, string>;
2268
- }[];
2269
1717
  alteredTablesWithColumns: {
2270
1718
  name: string;
2271
- schema: {
2272
- value?: string | undefined;
2273
- type: "none";
2274
- } | {
2275
- type: "added";
2276
- value: string;
2277
- } | {
2278
- type: "deleted";
2279
- value: string;
2280
- } | {
2281
- type: "changed";
2282
- old: string;
2283
- new: string;
2284
- };
2285
- added: {
2286
- isUnique?: any;
2287
- default?: any;
2288
- onUpdate?: boolean | undefined;
2289
- primaryKey?: boolean | undefined;
2290
- notNull?: boolean | undefined;
2291
- autoincrement?: boolean | undefined;
2292
- uniqueName?: string | undefined;
2293
- nullsNotDistinct?: boolean | undefined;
2294
- name: string;
2295
- type: string;
2296
- }[];
2297
- deleted: {
2298
- isUnique?: any;
2299
- default?: any;
2300
- onUpdate?: boolean | undefined;
2301
- primaryKey?: boolean | undefined;
2302
- notNull?: boolean | undefined;
2303
- autoincrement?: boolean | undefined;
2304
- uniqueName?: string | undefined;
2305
- nullsNotDistinct?: boolean | undefined;
2306
- name: string;
2307
- type: string;
1719
+ schema: string;
1720
+ altered: {
1721
+ default?: {
1722
+ value?: any;
1723
+ type: "added";
1724
+ } | {
1725
+ value?: any;
1726
+ type: "deleted";
1727
+ } | {
1728
+ old?: any;
1729
+ new?: any;
1730
+ type: "changed";
1731
+ } | undefined;
1732
+ type?: {
1733
+ type: "changed";
1734
+ old: string;
1735
+ new: string;
1736
+ } | undefined;
1737
+ onUpdate?: {
1738
+ type: "added";
1739
+ value: boolean;
1740
+ } | {
1741
+ type: "deleted";
1742
+ value: boolean;
1743
+ } | {
1744
+ type: "changed";
1745
+ old: boolean;
1746
+ new: boolean;
1747
+ } | undefined;
1748
+ primaryKey?: {
1749
+ type: "added";
1750
+ value: boolean;
1751
+ } | {
1752
+ type: "deleted";
1753
+ value: boolean;
1754
+ } | {
1755
+ type: "changed";
1756
+ old: boolean;
1757
+ new: boolean;
1758
+ } | undefined;
1759
+ notNull?: {
1760
+ type: "added";
1761
+ value: boolean;
1762
+ } | {
1763
+ type: "deleted";
1764
+ value: boolean;
1765
+ } | {
1766
+ type: "changed";
1767
+ old: boolean;
1768
+ new: boolean;
1769
+ } | undefined;
1770
+ autoincrement?: {
1771
+ type: "added";
1772
+ value: boolean;
1773
+ } | {
1774
+ type: "deleted";
1775
+ value: boolean;
1776
+ } | {
1777
+ type: "changed";
1778
+ old: boolean;
1779
+ new: boolean;
1780
+ } | undefined;
1781
+ name: string | {
1782
+ type: "changed";
1783
+ old: string;
1784
+ new: string;
1785
+ };
1786
+ }[];
1787
+ addedIndexes: Record<string, string>;
1788
+ deletedIndexes: Record<string, string>;
1789
+ alteredIndexes: Record<string, {
1790
+ __old: string;
1791
+ __new: string;
1792
+ }>;
1793
+ addedForeignKeys: Record<string, string>;
1794
+ deletedForeignKeys: Record<string, string>;
1795
+ alteredForeignKeys: Record<string, {
1796
+ __old: string;
1797
+ __new: string;
1798
+ }>;
1799
+ addedCompositePKs: Record<string, string>;
1800
+ deletedCompositePKs: Record<string, string>;
1801
+ alteredCompositePKs: Record<string, {
1802
+ __old: string;
1803
+ __new: string;
1804
+ }>;
1805
+ addedUniqueConstraints: Record<string, string>;
1806
+ deletedUniqueConstraints: Record<string, string>;
1807
+ alteredUniqueConstraints: Record<string, {
1808
+ __old: string;
1809
+ __new: string;
1810
+ }>;
1811
+ }[];
1812
+ alteredEnums: {
1813
+ name: string;
1814
+ schema: string;
1815
+ addedValues: {
1816
+ value: string;
1817
+ before: string;
1818
+ }[];
1819
+ deletedValues: string[];
1820
+ }[];
1821
+ }, {
1822
+ alteredTablesWithColumns: {
1823
+ name: string;
1824
+ schema: string;
1825
+ altered: {
1826
+ default?: {
1827
+ value?: any;
1828
+ type: "added";
1829
+ } | {
1830
+ value?: any;
1831
+ type: "deleted";
1832
+ } | {
1833
+ old?: any;
1834
+ new?: any;
1835
+ type: "changed";
1836
+ } | undefined;
1837
+ type?: {
1838
+ type: "changed";
1839
+ old: string;
1840
+ new: string;
1841
+ } | undefined;
1842
+ onUpdate?: {
1843
+ type: "added";
1844
+ value: boolean;
1845
+ } | {
1846
+ type: "deleted";
1847
+ value: boolean;
1848
+ } | {
1849
+ type: "changed";
1850
+ old: boolean;
1851
+ new: boolean;
1852
+ } | undefined;
1853
+ primaryKey?: {
1854
+ type: "added";
1855
+ value: boolean;
1856
+ } | {
1857
+ type: "deleted";
1858
+ value: boolean;
1859
+ } | {
1860
+ type: "changed";
1861
+ old: boolean;
1862
+ new: boolean;
1863
+ } | undefined;
1864
+ notNull?: {
1865
+ type: "added";
1866
+ value: boolean;
1867
+ } | {
1868
+ type: "deleted";
1869
+ value: boolean;
1870
+ } | {
1871
+ type: "changed";
1872
+ old: boolean;
1873
+ new: boolean;
1874
+ } | undefined;
1875
+ autoincrement?: {
1876
+ type: "added";
1877
+ value: boolean;
1878
+ } | {
1879
+ type: "deleted";
1880
+ value: boolean;
1881
+ } | {
1882
+ type: "changed";
1883
+ old: boolean;
1884
+ new: boolean;
1885
+ } | undefined;
1886
+ name: string | {
1887
+ type: "changed";
1888
+ old: string;
1889
+ new: string;
1890
+ };
1891
+ }[];
1892
+ addedIndexes: Record<string, string>;
1893
+ deletedIndexes: Record<string, string>;
1894
+ alteredIndexes: Record<string, {
1895
+ __old: string;
1896
+ __new: string;
1897
+ }>;
1898
+ addedForeignKeys: Record<string, string>;
1899
+ deletedForeignKeys: Record<string, string>;
1900
+ alteredForeignKeys: Record<string, {
1901
+ __old: string;
1902
+ __new: string;
1903
+ }>;
1904
+ addedCompositePKs: Record<string, string>;
1905
+ deletedCompositePKs: Record<string, string>;
1906
+ alteredCompositePKs: Record<string, {
1907
+ __old: string;
1908
+ __new: string;
1909
+ }>;
1910
+ addedUniqueConstraints: Record<string, string>;
1911
+ deletedUniqueConstraints: Record<string, string>;
1912
+ alteredUniqueConstraints: Record<string, {
1913
+ __old: string;
1914
+ __new: string;
1915
+ }>;
1916
+ }[];
1917
+ alteredEnums: {
1918
+ name: string;
1919
+ schema: string;
1920
+ addedValues: {
1921
+ value: string;
1922
+ before: string;
2308
1923
  }[];
1924
+ deletedValues: string[];
1925
+ }[];
1926
+ }>;
1927
+ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
1928
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
1929
+ name: import("zod").ZodString;
1930
+ schema: import("zod").ZodString;
1931
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
1932
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
1933
+ type: import("zod").ZodEnum<["changed"]>;
1934
+ old: import("zod").ZodString;
1935
+ new: import("zod").ZodString;
1936
+ }, "strip", ZodTypeAny, {
1937
+ type: "changed";
1938
+ old: string;
1939
+ new: string;
1940
+ }, {
1941
+ type: "changed";
1942
+ old: string;
1943
+ new: string;
1944
+ }>]>;
1945
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
1946
+ type: import("zod").ZodEnum<["changed"]>;
1947
+ old: import("zod").ZodString;
1948
+ new: import("zod").ZodString;
1949
+ }, "strip", ZodTypeAny, {
1950
+ type: "changed";
1951
+ old: string;
1952
+ new: string;
1953
+ }, {
1954
+ type: "changed";
1955
+ old: string;
1956
+ new: string;
1957
+ }>>;
1958
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1959
+ type: import("zod").ZodLiteral<"added">;
1960
+ value: import("zod").ZodAny;
1961
+ }, "strip", ZodTypeAny, {
1962
+ value?: any;
1963
+ type: "added";
1964
+ }, {
1965
+ value?: any;
1966
+ type: "added";
1967
+ }>, import("zod").ZodObject<{
1968
+ type: import("zod").ZodLiteral<"deleted">;
1969
+ value: import("zod").ZodAny;
1970
+ }, "strip", ZodTypeAny, {
1971
+ value?: any;
1972
+ type: "deleted";
1973
+ }, {
1974
+ value?: any;
1975
+ type: "deleted";
1976
+ }>, import("zod").ZodObject<{
1977
+ type: import("zod").ZodLiteral<"changed">;
1978
+ old: import("zod").ZodAny;
1979
+ new: import("zod").ZodAny;
1980
+ }, "strip", ZodTypeAny, {
1981
+ old?: any;
1982
+ new?: any;
1983
+ type: "changed";
1984
+ }, {
1985
+ old?: any;
1986
+ new?: any;
1987
+ type: "changed";
1988
+ }>]>>;
1989
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1990
+ type: import("zod").ZodLiteral<"added">;
1991
+ value: import("zod").ZodBoolean;
1992
+ }, "strip", ZodTypeAny, {
1993
+ type: "added";
1994
+ value: boolean;
1995
+ }, {
1996
+ type: "added";
1997
+ value: boolean;
1998
+ }>, import("zod").ZodObject<{
1999
+ type: import("zod").ZodLiteral<"deleted">;
2000
+ value: import("zod").ZodBoolean;
2001
+ }, "strip", ZodTypeAny, {
2002
+ type: "deleted";
2003
+ value: boolean;
2004
+ }, {
2005
+ type: "deleted";
2006
+ value: boolean;
2007
+ }>, import("zod").ZodObject<{
2008
+ type: import("zod").ZodLiteral<"changed">;
2009
+ old: import("zod").ZodBoolean;
2010
+ new: import("zod").ZodBoolean;
2011
+ }, "strip", ZodTypeAny, {
2012
+ type: "changed";
2013
+ old: boolean;
2014
+ new: boolean;
2015
+ }, {
2016
+ type: "changed";
2017
+ old: boolean;
2018
+ new: boolean;
2019
+ }>]>>;
2020
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2021
+ type: import("zod").ZodLiteral<"added">;
2022
+ value: import("zod").ZodBoolean;
2023
+ }, "strip", ZodTypeAny, {
2024
+ type: "added";
2025
+ value: boolean;
2026
+ }, {
2027
+ type: "added";
2028
+ value: boolean;
2029
+ }>, import("zod").ZodObject<{
2030
+ type: import("zod").ZodLiteral<"deleted">;
2031
+ value: import("zod").ZodBoolean;
2032
+ }, "strip", ZodTypeAny, {
2033
+ type: "deleted";
2034
+ value: boolean;
2035
+ }, {
2036
+ type: "deleted";
2037
+ value: boolean;
2038
+ }>, import("zod").ZodObject<{
2039
+ type: import("zod").ZodLiteral<"changed">;
2040
+ old: import("zod").ZodBoolean;
2041
+ new: import("zod").ZodBoolean;
2042
+ }, "strip", ZodTypeAny, {
2043
+ type: "changed";
2044
+ old: boolean;
2045
+ new: boolean;
2046
+ }, {
2047
+ type: "changed";
2048
+ old: boolean;
2049
+ new: boolean;
2050
+ }>]>>;
2051
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2052
+ type: import("zod").ZodLiteral<"added">;
2053
+ value: import("zod").ZodBoolean;
2054
+ }, "strip", ZodTypeAny, {
2055
+ type: "added";
2056
+ value: boolean;
2057
+ }, {
2058
+ type: "added";
2059
+ value: boolean;
2060
+ }>, import("zod").ZodObject<{
2061
+ type: import("zod").ZodLiteral<"deleted">;
2062
+ value: import("zod").ZodBoolean;
2063
+ }, "strip", ZodTypeAny, {
2064
+ type: "deleted";
2065
+ value: boolean;
2066
+ }, {
2067
+ type: "deleted";
2068
+ value: boolean;
2069
+ }>, import("zod").ZodObject<{
2070
+ type: import("zod").ZodLiteral<"changed">;
2071
+ old: import("zod").ZodBoolean;
2072
+ new: import("zod").ZodBoolean;
2073
+ }, "strip", ZodTypeAny, {
2074
+ type: "changed";
2075
+ old: boolean;
2076
+ new: boolean;
2077
+ }, {
2078
+ type: "changed";
2079
+ old: boolean;
2080
+ new: boolean;
2081
+ }>]>>;
2082
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2083
+ type: import("zod").ZodLiteral<"added">;
2084
+ value: import("zod").ZodBoolean;
2085
+ }, "strip", ZodTypeAny, {
2086
+ type: "added";
2087
+ value: boolean;
2088
+ }, {
2089
+ type: "added";
2090
+ value: boolean;
2091
+ }>, import("zod").ZodObject<{
2092
+ type: import("zod").ZodLiteral<"deleted">;
2093
+ value: import("zod").ZodBoolean;
2094
+ }, "strip", ZodTypeAny, {
2095
+ type: "deleted";
2096
+ value: boolean;
2097
+ }, {
2098
+ type: "deleted";
2099
+ value: boolean;
2100
+ }>, import("zod").ZodObject<{
2101
+ type: import("zod").ZodLiteral<"changed">;
2102
+ old: import("zod").ZodBoolean;
2103
+ new: import("zod").ZodBoolean;
2104
+ }, "strip", ZodTypeAny, {
2105
+ type: "changed";
2106
+ old: boolean;
2107
+ new: boolean;
2108
+ }, {
2109
+ type: "changed";
2110
+ old: boolean;
2111
+ new: boolean;
2112
+ }>]>>;
2113
+ }, "strict", ZodTypeAny, {
2114
+ default?: {
2115
+ value?: any;
2116
+ type: "added";
2117
+ } | {
2118
+ value?: any;
2119
+ type: "deleted";
2120
+ } | {
2121
+ old?: any;
2122
+ new?: any;
2123
+ type: "changed";
2124
+ } | undefined;
2125
+ type?: {
2126
+ type: "changed";
2127
+ old: string;
2128
+ new: string;
2129
+ } | undefined;
2130
+ onUpdate?: {
2131
+ type: "added";
2132
+ value: boolean;
2133
+ } | {
2134
+ type: "deleted";
2135
+ value: boolean;
2136
+ } | {
2137
+ type: "changed";
2138
+ old: boolean;
2139
+ new: boolean;
2140
+ } | undefined;
2141
+ primaryKey?: {
2142
+ type: "added";
2143
+ value: boolean;
2144
+ } | {
2145
+ type: "deleted";
2146
+ value: boolean;
2147
+ } | {
2148
+ type: "changed";
2149
+ old: boolean;
2150
+ new: boolean;
2151
+ } | undefined;
2152
+ notNull?: {
2153
+ type: "added";
2154
+ value: boolean;
2155
+ } | {
2156
+ type: "deleted";
2157
+ value: boolean;
2158
+ } | {
2159
+ type: "changed";
2160
+ old: boolean;
2161
+ new: boolean;
2162
+ } | undefined;
2163
+ autoincrement?: {
2164
+ type: "added";
2165
+ value: boolean;
2166
+ } | {
2167
+ type: "deleted";
2168
+ value: boolean;
2169
+ } | {
2170
+ type: "changed";
2171
+ old: boolean;
2172
+ new: boolean;
2173
+ } | undefined;
2174
+ name: string | {
2175
+ type: "changed";
2176
+ old: string;
2177
+ new: string;
2178
+ };
2179
+ }, {
2180
+ default?: {
2181
+ value?: any;
2182
+ type: "added";
2183
+ } | {
2184
+ value?: any;
2185
+ type: "deleted";
2186
+ } | {
2187
+ old?: any;
2188
+ new?: any;
2189
+ type: "changed";
2190
+ } | undefined;
2191
+ type?: {
2192
+ type: "changed";
2193
+ old: string;
2194
+ new: string;
2195
+ } | undefined;
2196
+ onUpdate?: {
2197
+ type: "added";
2198
+ value: boolean;
2199
+ } | {
2200
+ type: "deleted";
2201
+ value: boolean;
2202
+ } | {
2203
+ type: "changed";
2204
+ old: boolean;
2205
+ new: boolean;
2206
+ } | undefined;
2207
+ primaryKey?: {
2208
+ type: "added";
2209
+ value: boolean;
2210
+ } | {
2211
+ type: "deleted";
2212
+ value: boolean;
2213
+ } | {
2214
+ type: "changed";
2215
+ old: boolean;
2216
+ new: boolean;
2217
+ } | undefined;
2218
+ notNull?: {
2219
+ type: "added";
2220
+ value: boolean;
2221
+ } | {
2222
+ type: "deleted";
2223
+ value: boolean;
2224
+ } | {
2225
+ type: "changed";
2226
+ old: boolean;
2227
+ new: boolean;
2228
+ } | undefined;
2229
+ autoincrement?: {
2230
+ type: "added";
2231
+ value: boolean;
2232
+ } | {
2233
+ type: "deleted";
2234
+ value: boolean;
2235
+ } | {
2236
+ type: "changed";
2237
+ old: boolean;
2238
+ new: boolean;
2239
+ } | undefined;
2240
+ name: string | {
2241
+ type: "changed";
2242
+ old: string;
2243
+ new: string;
2244
+ };
2245
+ }>, "many">;
2246
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2247
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2248
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2249
+ __new: import("zod").ZodString;
2250
+ __old: import("zod").ZodString;
2251
+ }, "strict", ZodTypeAny, {
2252
+ __old: string;
2253
+ __new: string;
2254
+ }, {
2255
+ __old: string;
2256
+ __new: string;
2257
+ }>>;
2258
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2259
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2260
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2261
+ __new: import("zod").ZodString;
2262
+ __old: import("zod").ZodString;
2263
+ }, "strict", ZodTypeAny, {
2264
+ __old: string;
2265
+ __new: string;
2266
+ }, {
2267
+ __old: string;
2268
+ __new: string;
2269
+ }>>;
2270
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2271
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2272
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2273
+ __new: import("zod").ZodString;
2274
+ __old: import("zod").ZodString;
2275
+ }, "strip", ZodTypeAny, {
2276
+ __old: string;
2277
+ __new: string;
2278
+ }, {
2279
+ __old: string;
2280
+ __new: string;
2281
+ }>>;
2282
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2283
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2284
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2285
+ __new: import("zod").ZodString;
2286
+ __old: import("zod").ZodString;
2287
+ }, "strip", ZodTypeAny, {
2288
+ __old: string;
2289
+ __new: string;
2290
+ }, {
2291
+ __old: string;
2292
+ __new: string;
2293
+ }>>;
2294
+ }, "strict", ZodTypeAny, {
2295
+ name: string;
2296
+ schema: string;
2297
+ altered: {
2298
+ default?: {
2299
+ value?: any;
2300
+ type: "added";
2301
+ } | {
2302
+ value?: any;
2303
+ type: "deleted";
2304
+ } | {
2305
+ old?: any;
2306
+ new?: any;
2307
+ type: "changed";
2308
+ } | undefined;
2309
+ type?: {
2310
+ type: "changed";
2311
+ old: string;
2312
+ new: string;
2313
+ } | undefined;
2314
+ onUpdate?: {
2315
+ type: "added";
2316
+ value: boolean;
2317
+ } | {
2318
+ type: "deleted";
2319
+ value: boolean;
2320
+ } | {
2321
+ type: "changed";
2322
+ old: boolean;
2323
+ new: boolean;
2324
+ } | undefined;
2325
+ primaryKey?: {
2326
+ type: "added";
2327
+ value: boolean;
2328
+ } | {
2329
+ type: "deleted";
2330
+ value: boolean;
2331
+ } | {
2332
+ type: "changed";
2333
+ old: boolean;
2334
+ new: boolean;
2335
+ } | undefined;
2336
+ notNull?: {
2337
+ type: "added";
2338
+ value: boolean;
2339
+ } | {
2340
+ type: "deleted";
2341
+ value: boolean;
2342
+ } | {
2343
+ type: "changed";
2344
+ old: boolean;
2345
+ new: boolean;
2346
+ } | undefined;
2347
+ autoincrement?: {
2348
+ type: "added";
2349
+ value: boolean;
2350
+ } | {
2351
+ type: "deleted";
2352
+ value: boolean;
2353
+ } | {
2354
+ type: "changed";
2355
+ old: boolean;
2356
+ new: boolean;
2357
+ } | undefined;
2358
+ name: string | {
2359
+ type: "changed";
2360
+ old: string;
2361
+ new: string;
2362
+ };
2363
+ }[];
2364
+ addedIndexes: Record<string, string>;
2365
+ deletedIndexes: Record<string, string>;
2366
+ alteredIndexes: Record<string, {
2367
+ __old: string;
2368
+ __new: string;
2369
+ }>;
2370
+ addedForeignKeys: Record<string, string>;
2371
+ deletedForeignKeys: Record<string, string>;
2372
+ alteredForeignKeys: Record<string, {
2373
+ __old: string;
2374
+ __new: string;
2375
+ }>;
2376
+ addedCompositePKs: Record<string, string>;
2377
+ deletedCompositePKs: Record<string, string>;
2378
+ alteredCompositePKs: Record<string, {
2379
+ __old: string;
2380
+ __new: string;
2381
+ }>;
2382
+ addedUniqueConstraints: Record<string, string>;
2383
+ deletedUniqueConstraints: Record<string, string>;
2384
+ alteredUniqueConstraints: Record<string, {
2385
+ __old: string;
2386
+ __new: string;
2387
+ }>;
2388
+ }, {
2389
+ name: string;
2390
+ schema: string;
2391
+ altered: {
2392
+ default?: {
2393
+ value?: any;
2394
+ type: "added";
2395
+ } | {
2396
+ value?: any;
2397
+ type: "deleted";
2398
+ } | {
2399
+ old?: any;
2400
+ new?: any;
2401
+ type: "changed";
2402
+ } | undefined;
2403
+ type?: {
2404
+ type: "changed";
2405
+ old: string;
2406
+ new: string;
2407
+ } | undefined;
2408
+ onUpdate?: {
2409
+ type: "added";
2410
+ value: boolean;
2411
+ } | {
2412
+ type: "deleted";
2413
+ value: boolean;
2414
+ } | {
2415
+ type: "changed";
2416
+ old: boolean;
2417
+ new: boolean;
2418
+ } | undefined;
2419
+ primaryKey?: {
2420
+ type: "added";
2421
+ value: boolean;
2422
+ } | {
2423
+ type: "deleted";
2424
+ value: boolean;
2425
+ } | {
2426
+ type: "changed";
2427
+ old: boolean;
2428
+ new: boolean;
2429
+ } | undefined;
2430
+ notNull?: {
2431
+ type: "added";
2432
+ value: boolean;
2433
+ } | {
2434
+ type: "deleted";
2435
+ value: boolean;
2436
+ } | {
2437
+ type: "changed";
2438
+ old: boolean;
2439
+ new: boolean;
2440
+ } | undefined;
2441
+ autoincrement?: {
2442
+ type: "added";
2443
+ value: boolean;
2444
+ } | {
2445
+ type: "deleted";
2446
+ value: boolean;
2447
+ } | {
2448
+ type: "changed";
2449
+ old: boolean;
2450
+ new: boolean;
2451
+ } | undefined;
2452
+ name: string | {
2453
+ type: "changed";
2454
+ old: string;
2455
+ new: string;
2456
+ };
2457
+ }[];
2458
+ addedIndexes: Record<string, string>;
2459
+ deletedIndexes: Record<string, string>;
2460
+ alteredIndexes: Record<string, {
2461
+ __old: string;
2462
+ __new: string;
2463
+ }>;
2464
+ addedForeignKeys: Record<string, string>;
2465
+ deletedForeignKeys: Record<string, string>;
2466
+ alteredForeignKeys: Record<string, {
2467
+ __old: string;
2468
+ __new: string;
2469
+ }>;
2470
+ addedCompositePKs: Record<string, string>;
2471
+ deletedCompositePKs: Record<string, string>;
2472
+ alteredCompositePKs: Record<string, {
2473
+ __old: string;
2474
+ __new: string;
2475
+ }>;
2476
+ addedUniqueConstraints: Record<string, string>;
2477
+ deletedUniqueConstraints: Record<string, string>;
2478
+ alteredUniqueConstraints: Record<string, {
2479
+ __old: string;
2480
+ __new: string;
2481
+ }>;
2482
+ }>, "many">;
2483
+ alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "many">;
2484
+ }, "strict", ZodTypeAny, {
2485
+ alteredTablesWithColumns: {
2486
+ name: string;
2487
+ schema: string;
2488
+ altered: {
2489
+ default?: {
2490
+ value?: any;
2491
+ type: "added";
2492
+ } | {
2493
+ value?: any;
2494
+ type: "deleted";
2495
+ } | {
2496
+ old?: any;
2497
+ new?: any;
2498
+ type: "changed";
2499
+ } | undefined;
2500
+ type?: {
2501
+ type: "changed";
2502
+ old: string;
2503
+ new: string;
2504
+ } | undefined;
2505
+ onUpdate?: {
2506
+ type: "added";
2507
+ value: boolean;
2508
+ } | {
2509
+ type: "deleted";
2510
+ value: boolean;
2511
+ } | {
2512
+ type: "changed";
2513
+ old: boolean;
2514
+ new: boolean;
2515
+ } | undefined;
2516
+ primaryKey?: {
2517
+ type: "added";
2518
+ value: boolean;
2519
+ } | {
2520
+ type: "deleted";
2521
+ value: boolean;
2522
+ } | {
2523
+ type: "changed";
2524
+ old: boolean;
2525
+ new: boolean;
2526
+ } | undefined;
2527
+ notNull?: {
2528
+ type: "added";
2529
+ value: boolean;
2530
+ } | {
2531
+ type: "deleted";
2532
+ value: boolean;
2533
+ } | {
2534
+ type: "changed";
2535
+ old: boolean;
2536
+ new: boolean;
2537
+ } | undefined;
2538
+ autoincrement?: {
2539
+ type: "added";
2540
+ value: boolean;
2541
+ } | {
2542
+ type: "deleted";
2543
+ value: boolean;
2544
+ } | {
2545
+ type: "changed";
2546
+ old: boolean;
2547
+ new: boolean;
2548
+ } | undefined;
2549
+ name: string | {
2550
+ type: "changed";
2551
+ old: string;
2552
+ new: string;
2553
+ };
2554
+ }[];
2555
+ addedIndexes: Record<string, string>;
2556
+ deletedIndexes: Record<string, string>;
2557
+ alteredIndexes: Record<string, {
2558
+ __old: string;
2559
+ __new: string;
2560
+ }>;
2561
+ addedForeignKeys: Record<string, string>;
2562
+ deletedForeignKeys: Record<string, string>;
2563
+ alteredForeignKeys: Record<string, {
2564
+ __old: string;
2565
+ __new: string;
2566
+ }>;
2567
+ addedCompositePKs: Record<string, string>;
2568
+ deletedCompositePKs: Record<string, string>;
2569
+ alteredCompositePKs: Record<string, {
2570
+ __old: string;
2571
+ __new: string;
2572
+ }>;
2573
+ addedUniqueConstraints: Record<string, string>;
2574
+ deletedUniqueConstraints: Record<string, string>;
2575
+ alteredUniqueConstraints: Record<string, {
2576
+ __old: string;
2577
+ __new: string;
2578
+ }>;
2579
+ }[];
2580
+ alteredEnums: never[];
2581
+ }, {
2582
+ alteredTablesWithColumns: {
2583
+ name: string;
2584
+ schema: string;
2585
+ altered: {
2586
+ default?: {
2587
+ value?: any;
2588
+ type: "added";
2589
+ } | {
2590
+ value?: any;
2591
+ type: "deleted";
2592
+ } | {
2593
+ old?: any;
2594
+ new?: any;
2595
+ type: "changed";
2596
+ } | undefined;
2597
+ type?: {
2598
+ type: "changed";
2599
+ old: string;
2600
+ new: string;
2601
+ } | undefined;
2602
+ onUpdate?: {
2603
+ type: "added";
2604
+ value: boolean;
2605
+ } | {
2606
+ type: "deleted";
2607
+ value: boolean;
2608
+ } | {
2609
+ type: "changed";
2610
+ old: boolean;
2611
+ new: boolean;
2612
+ } | undefined;
2613
+ primaryKey?: {
2614
+ type: "added";
2615
+ value: boolean;
2616
+ } | {
2617
+ type: "deleted";
2618
+ value: boolean;
2619
+ } | {
2620
+ type: "changed";
2621
+ old: boolean;
2622
+ new: boolean;
2623
+ } | undefined;
2624
+ notNull?: {
2625
+ type: "added";
2626
+ value: boolean;
2627
+ } | {
2628
+ type: "deleted";
2629
+ value: boolean;
2630
+ } | {
2631
+ type: "changed";
2632
+ old: boolean;
2633
+ new: boolean;
2634
+ } | undefined;
2635
+ autoincrement?: {
2636
+ type: "added";
2637
+ value: boolean;
2638
+ } | {
2639
+ type: "deleted";
2640
+ value: boolean;
2641
+ } | {
2642
+ type: "changed";
2643
+ old: boolean;
2644
+ new: boolean;
2645
+ } | undefined;
2646
+ name: string | {
2647
+ type: "changed";
2648
+ old: string;
2649
+ new: string;
2650
+ };
2651
+ }[];
2652
+ addedIndexes: Record<string, string>;
2653
+ deletedIndexes: Record<string, string>;
2654
+ alteredIndexes: Record<string, {
2655
+ __old: string;
2656
+ __new: string;
2657
+ }>;
2658
+ addedForeignKeys: Record<string, string>;
2659
+ deletedForeignKeys: Record<string, string>;
2660
+ alteredForeignKeys: Record<string, {
2661
+ __old: string;
2662
+ __new: string;
2663
+ }>;
2664
+ addedCompositePKs: Record<string, string>;
2665
+ deletedCompositePKs: Record<string, string>;
2666
+ alteredCompositePKs: Record<string, {
2667
+ __old: string;
2668
+ __new: string;
2669
+ }>;
2670
+ addedUniqueConstraints: Record<string, string>;
2671
+ deletedUniqueConstraints: Record<string, string>;
2672
+ alteredUniqueConstraints: Record<string, {
2673
+ __old: string;
2674
+ __new: string;
2675
+ }>;
2676
+ }[];
2677
+ alteredEnums: never[];
2678
+ }>;
2679
+ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
2680
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
2681
+ name: import("zod").ZodString;
2682
+ schema: import("zod").ZodString;
2683
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
2684
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
2685
+ type: import("zod").ZodEnum<["changed"]>;
2686
+ old: import("zod").ZodString;
2687
+ new: import("zod").ZodString;
2688
+ }, "strip", ZodTypeAny, {
2689
+ type: "changed";
2690
+ old: string;
2691
+ new: string;
2692
+ }, {
2693
+ type: "changed";
2694
+ old: string;
2695
+ new: string;
2696
+ }>]>;
2697
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
2698
+ type: import("zod").ZodEnum<["changed"]>;
2699
+ old: import("zod").ZodString;
2700
+ new: import("zod").ZodString;
2701
+ }, "strip", ZodTypeAny, {
2702
+ type: "changed";
2703
+ old: string;
2704
+ new: string;
2705
+ }, {
2706
+ type: "changed";
2707
+ old: string;
2708
+ new: string;
2709
+ }>>;
2710
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2711
+ type: import("zod").ZodLiteral<"added">;
2712
+ value: import("zod").ZodAny;
2713
+ }, "strip", ZodTypeAny, {
2714
+ value?: any;
2715
+ type: "added";
2716
+ }, {
2717
+ value?: any;
2718
+ type: "added";
2719
+ }>, import("zod").ZodObject<{
2720
+ type: import("zod").ZodLiteral<"deleted">;
2721
+ value: import("zod").ZodAny;
2722
+ }, "strip", ZodTypeAny, {
2723
+ value?: any;
2724
+ type: "deleted";
2725
+ }, {
2726
+ value?: any;
2727
+ type: "deleted";
2728
+ }>, import("zod").ZodObject<{
2729
+ type: import("zod").ZodLiteral<"changed">;
2730
+ old: import("zod").ZodAny;
2731
+ new: import("zod").ZodAny;
2732
+ }, "strip", ZodTypeAny, {
2733
+ old?: any;
2734
+ new?: any;
2735
+ type: "changed";
2736
+ }, {
2737
+ old?: any;
2738
+ new?: any;
2739
+ type: "changed";
2740
+ }>]>>;
2741
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2742
+ type: import("zod").ZodLiteral<"added">;
2743
+ value: import("zod").ZodBoolean;
2744
+ }, "strip", ZodTypeAny, {
2745
+ type: "added";
2746
+ value: boolean;
2747
+ }, {
2748
+ type: "added";
2749
+ value: boolean;
2750
+ }>, import("zod").ZodObject<{
2751
+ type: import("zod").ZodLiteral<"deleted">;
2752
+ value: import("zod").ZodBoolean;
2753
+ }, "strip", ZodTypeAny, {
2754
+ type: "deleted";
2755
+ value: boolean;
2756
+ }, {
2757
+ type: "deleted";
2758
+ value: boolean;
2759
+ }>, import("zod").ZodObject<{
2760
+ type: import("zod").ZodLiteral<"changed">;
2761
+ old: import("zod").ZodBoolean;
2762
+ new: import("zod").ZodBoolean;
2763
+ }, "strip", ZodTypeAny, {
2764
+ type: "changed";
2765
+ old: boolean;
2766
+ new: boolean;
2767
+ }, {
2768
+ type: "changed";
2769
+ old: boolean;
2770
+ new: boolean;
2771
+ }>]>>;
2772
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2773
+ type: import("zod").ZodLiteral<"added">;
2774
+ value: import("zod").ZodBoolean;
2775
+ }, "strip", ZodTypeAny, {
2776
+ type: "added";
2777
+ value: boolean;
2778
+ }, {
2779
+ type: "added";
2780
+ value: boolean;
2781
+ }>, import("zod").ZodObject<{
2782
+ type: import("zod").ZodLiteral<"deleted">;
2783
+ value: import("zod").ZodBoolean;
2784
+ }, "strip", ZodTypeAny, {
2785
+ type: "deleted";
2786
+ value: boolean;
2787
+ }, {
2788
+ type: "deleted";
2789
+ value: boolean;
2790
+ }>, import("zod").ZodObject<{
2791
+ type: import("zod").ZodLiteral<"changed">;
2792
+ old: import("zod").ZodBoolean;
2793
+ new: import("zod").ZodBoolean;
2794
+ }, "strip", ZodTypeAny, {
2795
+ type: "changed";
2796
+ old: boolean;
2797
+ new: boolean;
2798
+ }, {
2799
+ type: "changed";
2800
+ old: boolean;
2801
+ new: boolean;
2802
+ }>]>>;
2803
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2804
+ type: import("zod").ZodLiteral<"added">;
2805
+ value: import("zod").ZodBoolean;
2806
+ }, "strip", ZodTypeAny, {
2807
+ type: "added";
2808
+ value: boolean;
2809
+ }, {
2810
+ type: "added";
2811
+ value: boolean;
2812
+ }>, import("zod").ZodObject<{
2813
+ type: import("zod").ZodLiteral<"deleted">;
2814
+ value: import("zod").ZodBoolean;
2815
+ }, "strip", ZodTypeAny, {
2816
+ type: "deleted";
2817
+ value: boolean;
2818
+ }, {
2819
+ type: "deleted";
2820
+ value: boolean;
2821
+ }>, import("zod").ZodObject<{
2822
+ type: import("zod").ZodLiteral<"changed">;
2823
+ old: import("zod").ZodBoolean;
2824
+ new: import("zod").ZodBoolean;
2825
+ }, "strip", ZodTypeAny, {
2826
+ type: "changed";
2827
+ old: boolean;
2828
+ new: boolean;
2829
+ }, {
2830
+ type: "changed";
2831
+ old: boolean;
2832
+ new: boolean;
2833
+ }>]>>;
2834
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2835
+ type: import("zod").ZodLiteral<"added">;
2836
+ value: import("zod").ZodBoolean;
2837
+ }, "strip", ZodTypeAny, {
2838
+ type: "added";
2839
+ value: boolean;
2840
+ }, {
2841
+ type: "added";
2842
+ value: boolean;
2843
+ }>, import("zod").ZodObject<{
2844
+ type: import("zod").ZodLiteral<"deleted">;
2845
+ value: import("zod").ZodBoolean;
2846
+ }, "strip", ZodTypeAny, {
2847
+ type: "deleted";
2848
+ value: boolean;
2849
+ }, {
2850
+ type: "deleted";
2851
+ value: boolean;
2852
+ }>, import("zod").ZodObject<{
2853
+ type: import("zod").ZodLiteral<"changed">;
2854
+ old: import("zod").ZodBoolean;
2855
+ new: import("zod").ZodBoolean;
2856
+ }, "strip", ZodTypeAny, {
2857
+ type: "changed";
2858
+ old: boolean;
2859
+ new: boolean;
2860
+ }, {
2861
+ type: "changed";
2862
+ old: boolean;
2863
+ new: boolean;
2864
+ }>]>>;
2865
+ }, "strict", ZodTypeAny, {
2866
+ default?: {
2867
+ value?: any;
2868
+ type: "added";
2869
+ } | {
2870
+ value?: any;
2871
+ type: "deleted";
2872
+ } | {
2873
+ old?: any;
2874
+ new?: any;
2875
+ type: "changed";
2876
+ } | undefined;
2877
+ type?: {
2878
+ type: "changed";
2879
+ old: string;
2880
+ new: string;
2881
+ } | undefined;
2882
+ onUpdate?: {
2883
+ type: "added";
2884
+ value: boolean;
2885
+ } | {
2886
+ type: "deleted";
2887
+ value: boolean;
2888
+ } | {
2889
+ type: "changed";
2890
+ old: boolean;
2891
+ new: boolean;
2892
+ } | undefined;
2893
+ primaryKey?: {
2894
+ type: "added";
2895
+ value: boolean;
2896
+ } | {
2897
+ type: "deleted";
2898
+ value: boolean;
2899
+ } | {
2900
+ type: "changed";
2901
+ old: boolean;
2902
+ new: boolean;
2903
+ } | undefined;
2904
+ notNull?: {
2905
+ type: "added";
2906
+ value: boolean;
2907
+ } | {
2908
+ type: "deleted";
2909
+ value: boolean;
2910
+ } | {
2911
+ type: "changed";
2912
+ old: boolean;
2913
+ new: boolean;
2914
+ } | undefined;
2915
+ autoincrement?: {
2916
+ type: "added";
2917
+ value: boolean;
2918
+ } | {
2919
+ type: "deleted";
2920
+ value: boolean;
2921
+ } | {
2922
+ type: "changed";
2923
+ old: boolean;
2924
+ new: boolean;
2925
+ } | undefined;
2926
+ name: string | {
2927
+ type: "changed";
2928
+ old: string;
2929
+ new: string;
2930
+ };
2931
+ }, {
2932
+ default?: {
2933
+ value?: any;
2934
+ type: "added";
2935
+ } | {
2936
+ value?: any;
2937
+ type: "deleted";
2938
+ } | {
2939
+ old?: any;
2940
+ new?: any;
2941
+ type: "changed";
2942
+ } | undefined;
2943
+ type?: {
2944
+ type: "changed";
2945
+ old: string;
2946
+ new: string;
2947
+ } | undefined;
2948
+ onUpdate?: {
2949
+ type: "added";
2950
+ value: boolean;
2951
+ } | {
2952
+ type: "deleted";
2953
+ value: boolean;
2954
+ } | {
2955
+ type: "changed";
2956
+ old: boolean;
2957
+ new: boolean;
2958
+ } | undefined;
2959
+ primaryKey?: {
2960
+ type: "added";
2961
+ value: boolean;
2962
+ } | {
2963
+ type: "deleted";
2964
+ value: boolean;
2965
+ } | {
2966
+ type: "changed";
2967
+ old: boolean;
2968
+ new: boolean;
2969
+ } | undefined;
2970
+ notNull?: {
2971
+ type: "added";
2972
+ value: boolean;
2973
+ } | {
2974
+ type: "deleted";
2975
+ value: boolean;
2976
+ } | {
2977
+ type: "changed";
2978
+ old: boolean;
2979
+ new: boolean;
2980
+ } | undefined;
2981
+ autoincrement?: {
2982
+ type: "added";
2983
+ value: boolean;
2984
+ } | {
2985
+ type: "deleted";
2986
+ value: boolean;
2987
+ } | {
2988
+ type: "changed";
2989
+ old: boolean;
2990
+ new: boolean;
2991
+ } | undefined;
2992
+ name: string | {
2993
+ type: "changed";
2994
+ old: string;
2995
+ new: string;
2996
+ };
2997
+ }>, "many">;
2998
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2999
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3000
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3001
+ __new: import("zod").ZodString;
3002
+ __old: import("zod").ZodString;
3003
+ }, "strict", ZodTypeAny, {
3004
+ __old: string;
3005
+ __new: string;
3006
+ }, {
3007
+ __old: string;
3008
+ __new: string;
3009
+ }>>;
3010
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3011
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3012
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3013
+ __new: import("zod").ZodString;
3014
+ __old: import("zod").ZodString;
3015
+ }, "strict", ZodTypeAny, {
3016
+ __old: string;
3017
+ __new: string;
3018
+ }, {
3019
+ __old: string;
3020
+ __new: string;
3021
+ }>>;
3022
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3023
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3024
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3025
+ __new: import("zod").ZodString;
3026
+ __old: import("zod").ZodString;
3027
+ }, "strip", ZodTypeAny, {
3028
+ __old: string;
3029
+ __new: string;
3030
+ }, {
3031
+ __old: string;
3032
+ __new: string;
3033
+ }>>;
3034
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3035
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3036
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3037
+ __new: import("zod").ZodString;
3038
+ __old: import("zod").ZodString;
3039
+ }, "strip", ZodTypeAny, {
3040
+ __old: string;
3041
+ __new: string;
3042
+ }, {
3043
+ __old: string;
3044
+ __new: string;
3045
+ }>>;
3046
+ }, "strict", ZodTypeAny, {
3047
+ name: string;
3048
+ schema: string;
2309
3049
  altered: {
2310
3050
  default?: {
2311
3051
  value?: any;
@@ -2397,103 +3137,106 @@ export declare const diffResultScheme: z.ZodObject<{
2397
3137
  __old: string;
2398
3138
  __new: string;
2399
3139
  }>;
2400
- }[];
2401
- addedEnums: {
2402
- name: string;
2403
- values: string[];
2404
- }[];
2405
- deletedEnums: {
2406
- name: string;
2407
- values: string[];
2408
- }[];
2409
- alteredEnums: {
2410
- name: string;
2411
- addedValues: string[];
2412
- deletedValues: string[];
2413
- }[];
2414
- addedSchemas: string[];
2415
- deletedSchemas: string[];
2416
- }, {
2417
- addedTables: {
2418
- schema?: string | undefined;
2419
- compositePrimaryKeys?: Record<string, string> | undefined;
2420
- uniqueConstraints?: Record<string, string> | undefined;
3140
+ }, {
2421
3141
  name: string;
2422
- columns: Record<string, {
2423
- isUnique?: any;
2424
- default?: any;
2425
- onUpdate?: boolean | undefined;
2426
- primaryKey?: boolean | undefined;
2427
- notNull?: boolean | undefined;
2428
- autoincrement?: boolean | undefined;
2429
- uniqueName?: string | undefined;
2430
- nullsNotDistinct?: boolean | undefined;
2431
- name: string;
2432
- type: string;
3142
+ schema: string;
3143
+ altered: {
3144
+ default?: {
3145
+ value?: any;
3146
+ type: "added";
3147
+ } | {
3148
+ value?: any;
3149
+ type: "deleted";
3150
+ } | {
3151
+ old?: any;
3152
+ new?: any;
3153
+ type: "changed";
3154
+ } | undefined;
3155
+ type?: {
3156
+ type: "changed";
3157
+ old: string;
3158
+ new: string;
3159
+ } | undefined;
3160
+ onUpdate?: {
3161
+ type: "added";
3162
+ value: boolean;
3163
+ } | {
3164
+ type: "deleted";
3165
+ value: boolean;
3166
+ } | {
3167
+ type: "changed";
3168
+ old: boolean;
3169
+ new: boolean;
3170
+ } | undefined;
3171
+ primaryKey?: {
3172
+ type: "added";
3173
+ value: boolean;
3174
+ } | {
3175
+ type: "deleted";
3176
+ value: boolean;
3177
+ } | {
3178
+ type: "changed";
3179
+ old: boolean;
3180
+ new: boolean;
3181
+ } | undefined;
3182
+ notNull?: {
3183
+ type: "added";
3184
+ value: boolean;
3185
+ } | {
3186
+ type: "deleted";
3187
+ value: boolean;
3188
+ } | {
3189
+ type: "changed";
3190
+ old: boolean;
3191
+ new: boolean;
3192
+ } | undefined;
3193
+ autoincrement?: {
3194
+ type: "added";
3195
+ value: boolean;
3196
+ } | {
3197
+ type: "deleted";
3198
+ value: boolean;
3199
+ } | {
3200
+ type: "changed";
3201
+ old: boolean;
3202
+ new: boolean;
3203
+ } | undefined;
3204
+ name: string | {
3205
+ type: "changed";
3206
+ old: string;
3207
+ new: string;
3208
+ };
3209
+ }[];
3210
+ addedIndexes: Record<string, string>;
3211
+ deletedIndexes: Record<string, string>;
3212
+ alteredIndexes: Record<string, {
3213
+ __old: string;
3214
+ __new: string;
2433
3215
  }>;
2434
- indexes: Record<string, string>;
2435
- foreignKeys: Record<string, string>;
2436
- }[];
2437
- deletedTables: {
2438
- schema?: string | undefined;
2439
- compositePrimaryKeys?: Record<string, string> | undefined;
2440
- uniqueConstraints?: Record<string, string> | undefined;
2441
- name: string;
2442
- columns: Record<string, {
2443
- isUnique?: any;
2444
- default?: any;
2445
- onUpdate?: boolean | undefined;
2446
- primaryKey?: boolean | undefined;
2447
- notNull?: boolean | undefined;
2448
- autoincrement?: boolean | undefined;
2449
- uniqueName?: string | undefined;
2450
- nullsNotDistinct?: boolean | undefined;
2451
- name: string;
2452
- type: string;
3216
+ addedForeignKeys: Record<string, string>;
3217
+ deletedForeignKeys: Record<string, string>;
3218
+ alteredForeignKeys: Record<string, {
3219
+ __old: string;
3220
+ __new: string;
2453
3221
  }>;
2454
- indexes: Record<string, string>;
2455
- foreignKeys: Record<string, string>;
2456
- }[];
3222
+ addedCompositePKs: Record<string, string>;
3223
+ deletedCompositePKs: Record<string, string>;
3224
+ alteredCompositePKs: Record<string, {
3225
+ __old: string;
3226
+ __new: string;
3227
+ }>;
3228
+ addedUniqueConstraints: Record<string, string>;
3229
+ deletedUniqueConstraints: Record<string, string>;
3230
+ alteredUniqueConstraints: Record<string, {
3231
+ __old: string;
3232
+ __new: string;
3233
+ }>;
3234
+ }>, "many">;
3235
+ alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "many">;
3236
+ }, "strict", ZodTypeAny, {
2457
3237
  alteredTablesWithColumns: {
2458
3238
  name: string;
2459
- schema: {
2460
- value?: string | undefined;
2461
- type: "none";
2462
- } | {
2463
- type: "added";
2464
- value: string;
2465
- } | {
2466
- type: "deleted";
2467
- value: string;
2468
- } | {
2469
- type: "changed";
2470
- old: string;
2471
- new: string;
2472
- };
2473
- added: {
2474
- isUnique?: any;
2475
- default?: any;
2476
- onUpdate?: boolean | undefined;
2477
- primaryKey?: boolean | undefined;
2478
- notNull?: boolean | undefined;
2479
- autoincrement?: boolean | undefined;
2480
- uniqueName?: string | undefined;
2481
- nullsNotDistinct?: boolean | undefined;
2482
- name: string;
2483
- type: string;
2484
- }[];
2485
- deleted: {
2486
- isUnique?: any;
2487
- default?: any;
2488
- onUpdate?: boolean | undefined;
2489
- primaryKey?: boolean | undefined;
2490
- notNull?: boolean | undefined;
2491
- autoincrement?: boolean | undefined;
2492
- uniqueName?: string | undefined;
2493
- nullsNotDistinct?: boolean | undefined;
2494
- name: string;
2495
- type: string;
2496
- }[];
3239
+ schema: string;
2497
3240
  altered: {
2498
3241
  default?: {
2499
3242
  value?: any;
@@ -2586,21 +3329,104 @@ export declare const diffResultScheme: z.ZodObject<{
2586
3329
  __new: string;
2587
3330
  }>;
2588
3331
  }[];
2589
- addedEnums: {
2590
- name: string;
2591
- values: string[];
2592
- }[];
2593
- deletedEnums: {
2594
- name: string;
2595
- values: string[];
2596
- }[];
2597
- alteredEnums: {
3332
+ alteredEnums: never[];
3333
+ }, {
3334
+ alteredTablesWithColumns: {
2598
3335
  name: string;
2599
- addedValues: string[];
2600
- deletedValues: string[];
3336
+ schema: string;
3337
+ altered: {
3338
+ default?: {
3339
+ value?: any;
3340
+ type: "added";
3341
+ } | {
3342
+ value?: any;
3343
+ type: "deleted";
3344
+ } | {
3345
+ old?: any;
3346
+ new?: any;
3347
+ type: "changed";
3348
+ } | undefined;
3349
+ type?: {
3350
+ type: "changed";
3351
+ old: string;
3352
+ new: string;
3353
+ } | undefined;
3354
+ onUpdate?: {
3355
+ type: "added";
3356
+ value: boolean;
3357
+ } | {
3358
+ type: "deleted";
3359
+ value: boolean;
3360
+ } | {
3361
+ type: "changed";
3362
+ old: boolean;
3363
+ new: boolean;
3364
+ } | undefined;
3365
+ primaryKey?: {
3366
+ type: "added";
3367
+ value: boolean;
3368
+ } | {
3369
+ type: "deleted";
3370
+ value: boolean;
3371
+ } | {
3372
+ type: "changed";
3373
+ old: boolean;
3374
+ new: boolean;
3375
+ } | undefined;
3376
+ notNull?: {
3377
+ type: "added";
3378
+ value: boolean;
3379
+ } | {
3380
+ type: "deleted";
3381
+ value: boolean;
3382
+ } | {
3383
+ type: "changed";
3384
+ old: boolean;
3385
+ new: boolean;
3386
+ } | undefined;
3387
+ autoincrement?: {
3388
+ type: "added";
3389
+ value: boolean;
3390
+ } | {
3391
+ type: "deleted";
3392
+ value: boolean;
3393
+ } | {
3394
+ type: "changed";
3395
+ old: boolean;
3396
+ new: boolean;
3397
+ } | undefined;
3398
+ name: string | {
3399
+ type: "changed";
3400
+ old: string;
3401
+ new: string;
3402
+ };
3403
+ }[];
3404
+ addedIndexes: Record<string, string>;
3405
+ deletedIndexes: Record<string, string>;
3406
+ alteredIndexes: Record<string, {
3407
+ __old: string;
3408
+ __new: string;
3409
+ }>;
3410
+ addedForeignKeys: Record<string, string>;
3411
+ deletedForeignKeys: Record<string, string>;
3412
+ alteredForeignKeys: Record<string, {
3413
+ __old: string;
3414
+ __new: string;
3415
+ }>;
3416
+ addedCompositePKs: Record<string, string>;
3417
+ deletedCompositePKs: Record<string, string>;
3418
+ alteredCompositePKs: Record<string, {
3419
+ __old: string;
3420
+ __new: string;
3421
+ }>;
3422
+ addedUniqueConstraints: Record<string, string>;
3423
+ deletedUniqueConstraints: Record<string, string>;
3424
+ alteredUniqueConstraints: Record<string, {
3425
+ __old: string;
3426
+ __new: string;
3427
+ }>;
2601
3428
  }[];
2602
- addedSchemas: string[];
2603
- deletedSchemas: string[];
3429
+ alteredEnums: never[];
2604
3430
  }>;
2605
3431
  export type Column = TypeOf<typeof columnSchema>;
2606
3432
  export type AlteredColumn = TypeOf<typeof alteredColumnSchema>;
@@ -2608,16 +3434,33 @@ export type Enum = TypeOf<typeof enumSchema>;
2608
3434
  export type Table = TypeOf<typeof tableScheme>;
2609
3435
  export type AlteredTable = TypeOf<typeof alteredTableScheme>;
2610
3436
  export type DiffResult = TypeOf<typeof diffResultScheme>;
2611
- export interface TablesResolverInput<T extends {
3437
+ export type DiffResultMysql = TypeOf<typeof diffResultSchemeMysql>;
3438
+ export type DiffResultSQLite = TypeOf<typeof diffResultSchemeSQLite>;
3439
+ export interface ResolverInput<T extends {
3440
+ name: string;
3441
+ }> {
3442
+ created: T[];
3443
+ deleted: T[];
3444
+ }
3445
+ export interface ResolverOutput<T extends {
2612
3446
  name: string;
2613
3447
  }> {
2614
3448
  created: T[];
3449
+ renamed: {
3450
+ from: T;
3451
+ to: T;
3452
+ }[];
2615
3453
  deleted: T[];
2616
3454
  }
2617
- export interface TablesResolverOutput<T extends {
3455
+ export interface ResolverOutputWithMoved<T extends {
2618
3456
  name: string;
2619
3457
  }> {
2620
3458
  created: T[];
3459
+ moved: {
3460
+ name: string;
3461
+ schemaFrom: string;
3462
+ schemaTo: string;
3463
+ }[];
2621
3464
  renamed: {
2622
3465
  from: T;
2623
3466
  to: T;
@@ -2644,11 +3487,26 @@ export interface ColumnsResolverOutput<T extends {
2644
3487
  }[];
2645
3488
  deleted: T[];
2646
3489
  }
2647
- export declare const applySnapshotsDiff: (json1: CommonSquashedSchema, json2: CommonSquashedSchema, dialect: Dialect, schemasResolver: (input: TablesResolverInput<{
2648
- name: string;
2649
- }>) => Promise<TablesResolverOutput<{
2650
- name: string;
2651
- }>>, tablesResolver: (input: TablesResolverInput<Table>) => Promise<TablesResolverOutput<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>, prevFull?: any, curFull?: any) => Promise<{
3490
+ export type SchemaFrom<D> = D extends "pg" ? PgSchema : D extends "mysql" ? MySqlSchema : D extends "sqlite" ? SQLiteSchema : undefined;
3491
+ export declare const applyPgSnapshotsDiff: (json1: PgSchemaSquashed, json2: PgSchemaSquashed, schemasResolver: (input: ResolverInput<Named>) => Promise<ResolverOutput<Named>>, enumsResolver: (input: ResolverInput<Enum>) => Promise<ResolverOutputWithMoved<Enum>>, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>, prevFull: PgSchema, curFull: PgSchema) => Promise<{
3492
+ statements: JsonStatement[];
3493
+ sqlStatements: string[];
3494
+ _meta: {
3495
+ schemas: {};
3496
+ tables: {};
3497
+ columns: {};
3498
+ } | undefined;
3499
+ }>;
3500
+ export declare const applyMysqlSnapshotsDiff: (json1: MySqlSchemaSquashed, json2: MySqlSchemaSquashed, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>, prevFull: MySqlSchema, curFull: MySqlSchema) => Promise<{
3501
+ statements: JsonStatement[];
3502
+ sqlStatements: string[];
3503
+ _meta: {
3504
+ schemas: {};
3505
+ tables: {};
3506
+ columns: {};
3507
+ } | undefined;
3508
+ }>;
3509
+ export declare const applySqliteSnapshotsDiff: (json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>) => Promise<{
2652
3510
  statements: JsonStatement[];
2653
3511
  sqlStatements: string[];
2654
3512
  _meta: {