drizzle-kit 0.20.16 → 0.20.17-14a4eaa

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/bin.cjs +87694 -47618
  2. package/cli/commands/migrate.d.ts +123 -106
  3. package/cli/commands/mysqlIntrospect.d.ts +2 -71
  4. package/cli/commands/mysqlPushUtils.d.ts +4 -8
  5. package/cli/commands/pgIntrospect.d.ts +7 -71
  6. package/cli/commands/pgPushUtils.d.ts +3 -6
  7. package/cli/commands/sqliteIntrospect.d.ts +13 -17
  8. package/cli/commands/sqlitePushUtils.d.ts +4 -10
  9. package/cli/commands/utils.d.ts +39 -255
  10. package/cli/connections.d.ts +13 -0
  11. package/cli/utils.d.ts +13 -0
  12. package/cli/validations/cli.d.ts +169 -0
  13. package/cli/validations/common.d.ts +208 -7
  14. package/cli/validations/mysql.d.ts +6 -342
  15. package/cli/validations/outputs.d.ts +3 -2
  16. package/cli/validations/pg.d.ts +16 -408
  17. package/cli/validations/sqlite.d.ts +22 -0
  18. package/cli/views.d.ts +7 -5
  19. package/global.d.ts +3 -1
  20. package/index.d.mts +25 -63
  21. package/index.d.ts +25 -63
  22. package/index.js +1 -0
  23. package/introspect-sqlite.d.ts +2 -2
  24. package/jsonDiffer.d.ts +14 -29
  25. package/jsonStatements.d.ts +38 -11
  26. package/package.json +29 -51
  27. package/payload.d.mts +5 -5
  28. package/payload.d.ts +5 -5
  29. package/payload.js +16600 -33803
  30. package/payload.mjs +16695 -33909
  31. package/schemaValidator.d.ts +74 -71
  32. package/serializer/mysqlImports.d.ts +3 -7
  33. package/serializer/mysqlSchema.d.ts +1404 -587
  34. package/serializer/mysqlSerializer.d.ts +6 -6
  35. package/serializer/pgImports.d.ts +2 -2
  36. package/serializer/pgSchema.d.ts +1268 -809
  37. package/serializer/pgSerializer.d.ts +2 -2
  38. package/serializer/sqliteImports.d.ts +2 -4
  39. package/serializer/sqliteSchema.d.ts +144 -570
  40. package/serializer/sqliteSerializer.d.ts +4 -4
  41. package/serializer/studio.d.ts +51 -0
  42. package/snapshotsDiffer.d.ts +2333 -1057
  43. package/utils/words.d.ts +1 -1
  44. package/utils-studio.d.mts +0 -1
  45. package/utils-studio.d.ts +0 -1
  46. package/utils-studio.js +3818 -170
  47. package/utils-studio.mjs +3818 -173
  48. package/utils.d.ts +20 -141
  49. package/utils.js +3904 -7075
  50. package/utils.mjs +3977 -7148
  51. package/cli/commands/mysqlUp.d.ts +0 -4
  52. package/cli/commands/pgConnect.d.ts +0 -5
  53. package/cli/commands/pgUp.d.ts +0 -4
  54. package/cli/commands/sqliteUtils.d.ts +0 -162
  55. package/cli/commands/upFolders.d.ts +0 -27
  56. package/drivers/index.d.ts +0 -39
  57. package/introspect-mysql.d.ts +0 -9
  58. package/introspect-pg.d.ts +0 -12
@@ -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 { 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,59 @@ 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
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
282
+ type: import("zod").ZodLiteral<"added">;
283
+ value: import("zod").ZodString;
284
+ }, "strip", ZodTypeAny, {
285
+ type: "added";
286
+ value: string;
287
+ }, {
288
+ type: "added";
289
+ value: string;
290
+ }>, import("zod").ZodObject<{
291
+ type: import("zod").ZodLiteral<"deleted">;
292
+ value: import("zod").ZodString;
293
+ }, "strip", ZodTypeAny, {
294
+ type: "deleted";
295
+ value: string;
296
+ }, {
297
+ type: "deleted";
298
+ value: string;
299
+ }>, import("zod").ZodObject<{
300
+ type: import("zod").ZodLiteral<"changed">;
301
+ old: import("zod").ZodString;
302
+ new: import("zod").ZodString;
303
+ }, "strip", ZodTypeAny, {
304
+ type: "changed";
305
+ old: string;
306
+ new: string;
307
+ }, {
308
+ type: "changed";
309
+ old: string;
310
+ new: string;
311
+ }>]>>;
312
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
313
+ type: import("zod").ZodLiteral<"added">;
314
+ value: import("zod").ZodBoolean;
278
315
  }, "strip", ZodTypeAny, {
279
316
  type: "added";
280
317
  value: boolean;
281
318
  }, {
282
319
  type: "added";
283
320
  value: boolean;
284
- }>, z.ZodObject<{
285
- type: z.ZodLiteral<"deleted">;
286
- value: z.ZodBoolean;
321
+ }>, import("zod").ZodObject<{
322
+ type: import("zod").ZodLiteral<"deleted">;
323
+ value: import("zod").ZodBoolean;
287
324
  }, "strip", ZodTypeAny, {
288
325
  type: "deleted";
289
326
  value: boolean;
290
327
  }, {
291
328
  type: "deleted";
292
329
  value: boolean;
293
- }>, z.ZodObject<{
294
- type: z.ZodLiteral<"changed">;
295
- old: z.ZodBoolean;
296
- new: z.ZodBoolean;
330
+ }>, import("zod").ZodObject<{
331
+ type: import("zod").ZodLiteral<"changed">;
332
+ old: import("zod").ZodBoolean;
333
+ new: import("zod").ZodBoolean;
297
334
  }, "strip", ZodTypeAny, {
298
335
  type: "changed";
299
336
  old: boolean;
@@ -303,28 +340,28 @@ declare const alteredColumnSchema: z.ZodObject<{
303
340
  old: boolean;
304
341
  new: boolean;
305
342
  }>]>>;
306
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
307
- type: z.ZodLiteral<"added">;
308
- value: z.ZodBoolean;
343
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
344
+ type: import("zod").ZodLiteral<"added">;
345
+ value: import("zod").ZodBoolean;
309
346
  }, "strip", ZodTypeAny, {
310
347
  type: "added";
311
348
  value: boolean;
312
349
  }, {
313
350
  type: "added";
314
351
  value: boolean;
315
- }>, z.ZodObject<{
316
- type: z.ZodLiteral<"deleted">;
317
- value: z.ZodBoolean;
352
+ }>, import("zod").ZodObject<{
353
+ type: import("zod").ZodLiteral<"deleted">;
354
+ value: import("zod").ZodBoolean;
318
355
  }, "strip", ZodTypeAny, {
319
356
  type: "deleted";
320
357
  value: boolean;
321
358
  }, {
322
359
  type: "deleted";
323
360
  value: boolean;
324
- }>, z.ZodObject<{
325
- type: z.ZodLiteral<"changed">;
326
- old: z.ZodBoolean;
327
- new: z.ZodBoolean;
361
+ }>, import("zod").ZodObject<{
362
+ type: import("zod").ZodLiteral<"changed">;
363
+ old: import("zod").ZodBoolean;
364
+ new: import("zod").ZodBoolean;
328
365
  }, "strip", ZodTypeAny, {
329
366
  type: "changed";
330
367
  old: boolean;
@@ -395,6 +432,17 @@ declare const alteredColumnSchema: z.ZodObject<{
395
432
  old: boolean;
396
433
  new: boolean;
397
434
  } | undefined;
435
+ typeSchema?: {
436
+ type: "added";
437
+ value: string;
438
+ } | {
439
+ type: "deleted";
440
+ value: string;
441
+ } | {
442
+ type: "changed";
443
+ old: string;
444
+ new: string;
445
+ } | undefined;
398
446
  name: string | {
399
447
  type: "changed";
400
448
  old: string;
@@ -461,36 +509,51 @@ declare const alteredColumnSchema: z.ZodObject<{
461
509
  old: boolean;
462
510
  new: boolean;
463
511
  } | undefined;
512
+ typeSchema?: {
513
+ type: "added";
514
+ value: string;
515
+ } | {
516
+ type: "deleted";
517
+ value: string;
518
+ } | {
519
+ type: "changed";
520
+ old: string;
521
+ new: string;
522
+ } | undefined;
464
523
  name: string | {
465
524
  type: "changed";
466
525
  old: string;
467
526
  new: string;
468
527
  };
469
528
  }>;
470
- declare const enumSchema: z.ZodObject<{
471
- name: z.ZodString;
472
- values: z.ZodArray<z.ZodString, "many">;
529
+ declare const enumSchema: import("zod").ZodObject<{
530
+ name: import("zod").ZodString;
531
+ schema: import("zod").ZodString;
532
+ values: import("zod").ZodArray<import("zod").ZodString, "many">;
473
533
  }, "strict", ZodTypeAny, {
474
534
  name: string;
475
535
  values: string[];
536
+ schema: string;
476
537
  }, {
477
538
  name: string;
478
539
  values: string[];
540
+ schema: string;
479
541
  }>;
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>;
542
+ declare const tableScheme: import("zod").ZodObject<{
543
+ name: import("zod").ZodString;
544
+ schema: import("zod").ZodDefault<import("zod").ZodString>;
545
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
546
+ name: import("zod").ZodString;
547
+ type: import("zod").ZodString;
548
+ typeSchema: import("zod").ZodOptional<import("zod").ZodString>;
549
+ primaryKey: import("zod").ZodOptional<import("zod").ZodBoolean>;
550
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
551
+ notNull: import("zod").ZodOptional<import("zod").ZodBoolean>;
552
+ autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
553
+ onUpdate: import("zod").ZodOptional<import("zod").ZodBoolean>;
554
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
555
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
556
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
494
557
  }, "strict", ZodTypeAny, {
495
558
  isUnique?: any;
496
559
  default?: any;
@@ -498,6 +561,7 @@ declare const tableScheme: z.ZodObject<{
498
561
  primaryKey?: boolean | undefined;
499
562
  notNull?: boolean | undefined;
500
563
  autoincrement?: boolean | undefined;
564
+ typeSchema?: string | undefined;
501
565
  uniqueName?: string | undefined;
502
566
  nullsNotDistinct?: boolean | undefined;
503
567
  name: string;
@@ -509,15 +573,16 @@ declare const tableScheme: z.ZodObject<{
509
573
  primaryKey?: boolean | undefined;
510
574
  notNull?: boolean | undefined;
511
575
  autoincrement?: boolean | undefined;
576
+ typeSchema?: string | undefined;
512
577
  uniqueName?: string | undefined;
513
578
  nullsNotDistinct?: boolean | undefined;
514
579
  name: string;
515
580
  type: string;
516
581
  }>>;
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>>;
582
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
583
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
584
+ compositePrimaryKeys: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
585
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
521
586
  }, "strict", ZodTypeAny, {
522
587
  name: string;
523
588
  columns: Record<string, {
@@ -527,6 +592,7 @@ declare const tableScheme: z.ZodObject<{
527
592
  primaryKey?: boolean | undefined;
528
593
  notNull?: boolean | undefined;
529
594
  autoincrement?: boolean | undefined;
595
+ typeSchema?: string | undefined;
530
596
  uniqueName?: string | undefined;
531
597
  nullsNotDistinct?: boolean | undefined;
532
598
  name: string;
@@ -549,6 +615,7 @@ declare const tableScheme: z.ZodObject<{
549
615
  primaryKey?: boolean | undefined;
550
616
  notNull?: boolean | undefined;
551
617
  autoincrement?: boolean | undefined;
618
+ typeSchema?: string | undefined;
552
619
  uniqueName?: string | undefined;
553
620
  nullsNotDistinct?: boolean | undefined;
554
621
  name: string;
@@ -557,121 +624,14 @@ declare const tableScheme: z.ZodObject<{
557
624
  indexes: Record<string, string>;
558
625
  foreignKeys: Record<string, string>;
559
626
  }>;
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;
627
+ export declare const alteredTableScheme: import("zod").ZodObject<{
628
+ name: import("zod").ZodString;
629
+ schema: import("zod").ZodString;
630
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
631
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
632
+ type: import("zod").ZodEnum<["changed"]>;
633
+ old: import("zod").ZodString;
634
+ new: import("zod").ZodString;
675
635
  }, "strip", ZodTypeAny, {
676
636
  type: "changed";
677
637
  old: string;
@@ -681,10 +641,10 @@ export declare const alteredTableScheme: z.ZodObject<{
681
641
  old: string;
682
642
  new: string;
683
643
  }>]>;
684
- type: z.ZodOptional<z.ZodObject<{
685
- type: z.ZodEnum<["changed"]>;
686
- old: z.ZodString;
687
- new: z.ZodString;
644
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
645
+ type: import("zod").ZodEnum<["changed"]>;
646
+ old: import("zod").ZodString;
647
+ new: import("zod").ZodString;
688
648
  }, "strip", ZodTypeAny, {
689
649
  type: "changed";
690
650
  old: string;
@@ -694,28 +654,28 @@ export declare const alteredTableScheme: z.ZodObject<{
694
654
  old: string;
695
655
  new: string;
696
656
  }>>;
697
- default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
698
- type: z.ZodLiteral<"added">;
699
- value: z.ZodAny;
657
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
658
+ type: import("zod").ZodLiteral<"added">;
659
+ value: import("zod").ZodAny;
700
660
  }, "strip", ZodTypeAny, {
701
661
  value?: any;
702
662
  type: "added";
703
663
  }, {
704
664
  value?: any;
705
665
  type: "added";
706
- }>, z.ZodObject<{
707
- type: z.ZodLiteral<"deleted">;
708
- value: z.ZodAny;
666
+ }>, import("zod").ZodObject<{
667
+ type: import("zod").ZodLiteral<"deleted">;
668
+ value: import("zod").ZodAny;
709
669
  }, "strip", ZodTypeAny, {
710
670
  value?: any;
711
671
  type: "deleted";
712
672
  }, {
713
673
  value?: any;
714
674
  type: "deleted";
715
- }>, z.ZodObject<{
716
- type: z.ZodLiteral<"changed">;
717
- old: z.ZodAny;
718
- new: z.ZodAny;
675
+ }>, import("zod").ZodObject<{
676
+ type: import("zod").ZodLiteral<"changed">;
677
+ old: import("zod").ZodAny;
678
+ new: import("zod").ZodAny;
719
679
  }, "strip", ZodTypeAny, {
720
680
  old?: any;
721
681
  new?: any;
@@ -725,28 +685,28 @@ export declare const alteredTableScheme: z.ZodObject<{
725
685
  new?: any;
726
686
  type: "changed";
727
687
  }>]>>;
728
- primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
- type: z.ZodLiteral<"added">;
730
- value: z.ZodBoolean;
688
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
689
+ type: import("zod").ZodLiteral<"added">;
690
+ value: import("zod").ZodBoolean;
731
691
  }, "strip", ZodTypeAny, {
732
692
  type: "added";
733
693
  value: boolean;
734
694
  }, {
735
695
  type: "added";
736
696
  value: boolean;
737
- }>, z.ZodObject<{
738
- type: z.ZodLiteral<"deleted">;
739
- value: z.ZodBoolean;
697
+ }>, import("zod").ZodObject<{
698
+ type: import("zod").ZodLiteral<"deleted">;
699
+ value: import("zod").ZodBoolean;
740
700
  }, "strip", ZodTypeAny, {
741
701
  type: "deleted";
742
702
  value: boolean;
743
703
  }, {
744
704
  type: "deleted";
745
705
  value: boolean;
746
- }>, z.ZodObject<{
747
- type: z.ZodLiteral<"changed">;
748
- old: z.ZodBoolean;
749
- new: z.ZodBoolean;
706
+ }>, import("zod").ZodObject<{
707
+ type: import("zod").ZodLiteral<"changed">;
708
+ old: import("zod").ZodBoolean;
709
+ new: import("zod").ZodBoolean;
750
710
  }, "strip", ZodTypeAny, {
751
711
  type: "changed";
752
712
  old: boolean;
@@ -756,28 +716,28 @@ export declare const alteredTableScheme: z.ZodObject<{
756
716
  old: boolean;
757
717
  new: boolean;
758
718
  }>]>>;
759
- notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
760
- type: z.ZodLiteral<"added">;
761
- value: z.ZodBoolean;
719
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
720
+ type: import("zod").ZodLiteral<"added">;
721
+ value: import("zod").ZodBoolean;
762
722
  }, "strip", ZodTypeAny, {
763
723
  type: "added";
764
724
  value: boolean;
765
725
  }, {
766
726
  type: "added";
767
727
  value: boolean;
768
- }>, z.ZodObject<{
769
- type: z.ZodLiteral<"deleted">;
770
- value: z.ZodBoolean;
728
+ }>, import("zod").ZodObject<{
729
+ type: import("zod").ZodLiteral<"deleted">;
730
+ value: import("zod").ZodBoolean;
771
731
  }, "strip", ZodTypeAny, {
772
732
  type: "deleted";
773
733
  value: boolean;
774
734
  }, {
775
735
  type: "deleted";
776
736
  value: boolean;
777
- }>, z.ZodObject<{
778
- type: z.ZodLiteral<"changed">;
779
- old: z.ZodBoolean;
780
- new: z.ZodBoolean;
737
+ }>, import("zod").ZodObject<{
738
+ type: import("zod").ZodLiteral<"changed">;
739
+ old: import("zod").ZodBoolean;
740
+ new: import("zod").ZodBoolean;
781
741
  }, "strip", ZodTypeAny, {
782
742
  type: "changed";
783
743
  old: boolean;
@@ -787,28 +747,59 @@ export declare const alteredTableScheme: z.ZodObject<{
787
747
  old: boolean;
788
748
  new: boolean;
789
749
  }>]>>;
790
- onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
791
- type: z.ZodLiteral<"added">;
792
- value: z.ZodBoolean;
750
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
751
+ type: import("zod").ZodLiteral<"added">;
752
+ value: import("zod").ZodString;
753
+ }, "strip", ZodTypeAny, {
754
+ type: "added";
755
+ value: string;
756
+ }, {
757
+ type: "added";
758
+ value: string;
759
+ }>, import("zod").ZodObject<{
760
+ type: import("zod").ZodLiteral<"deleted">;
761
+ value: import("zod").ZodString;
762
+ }, "strip", ZodTypeAny, {
763
+ type: "deleted";
764
+ value: string;
765
+ }, {
766
+ type: "deleted";
767
+ value: string;
768
+ }>, import("zod").ZodObject<{
769
+ type: import("zod").ZodLiteral<"changed">;
770
+ old: import("zod").ZodString;
771
+ new: import("zod").ZodString;
772
+ }, "strip", ZodTypeAny, {
773
+ type: "changed";
774
+ old: string;
775
+ new: string;
776
+ }, {
777
+ type: "changed";
778
+ old: string;
779
+ new: string;
780
+ }>]>>;
781
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
782
+ type: import("zod").ZodLiteral<"added">;
783
+ value: import("zod").ZodBoolean;
793
784
  }, "strip", ZodTypeAny, {
794
785
  type: "added";
795
786
  value: boolean;
796
787
  }, {
797
788
  type: "added";
798
789
  value: boolean;
799
- }>, z.ZodObject<{
800
- type: z.ZodLiteral<"deleted">;
801
- value: z.ZodBoolean;
790
+ }>, import("zod").ZodObject<{
791
+ type: import("zod").ZodLiteral<"deleted">;
792
+ value: import("zod").ZodBoolean;
802
793
  }, "strip", ZodTypeAny, {
803
794
  type: "deleted";
804
795
  value: boolean;
805
796
  }, {
806
797
  type: "deleted";
807
798
  value: boolean;
808
- }>, z.ZodObject<{
809
- type: z.ZodLiteral<"changed">;
810
- old: z.ZodBoolean;
811
- new: z.ZodBoolean;
799
+ }>, import("zod").ZodObject<{
800
+ type: import("zod").ZodLiteral<"changed">;
801
+ old: import("zod").ZodBoolean;
802
+ new: import("zod").ZodBoolean;
812
803
  }, "strip", ZodTypeAny, {
813
804
  type: "changed";
814
805
  old: boolean;
@@ -818,28 +809,28 @@ export declare const alteredTableScheme: z.ZodObject<{
818
809
  old: boolean;
819
810
  new: boolean;
820
811
  }>]>>;
821
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
822
- type: z.ZodLiteral<"added">;
823
- value: z.ZodBoolean;
812
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
813
+ type: import("zod").ZodLiteral<"added">;
814
+ value: import("zod").ZodBoolean;
824
815
  }, "strip", ZodTypeAny, {
825
816
  type: "added";
826
817
  value: boolean;
827
818
  }, {
828
819
  type: "added";
829
820
  value: boolean;
830
- }>, z.ZodObject<{
831
- type: z.ZodLiteral<"deleted">;
832
- value: z.ZodBoolean;
821
+ }>, import("zod").ZodObject<{
822
+ type: import("zod").ZodLiteral<"deleted">;
823
+ value: import("zod").ZodBoolean;
833
824
  }, "strip", ZodTypeAny, {
834
825
  type: "deleted";
835
826
  value: boolean;
836
827
  }, {
837
828
  type: "deleted";
838
829
  value: boolean;
839
- }>, z.ZodObject<{
840
- type: z.ZodLiteral<"changed">;
841
- old: z.ZodBoolean;
842
- new: z.ZodBoolean;
830
+ }>, import("zod").ZodObject<{
831
+ type: import("zod").ZodLiteral<"changed">;
832
+ old: import("zod").ZodBoolean;
833
+ new: import("zod").ZodBoolean;
843
834
  }, "strip", ZodTypeAny, {
844
835
  type: "changed";
845
836
  old: boolean;
@@ -910,6 +901,17 @@ export declare const alteredTableScheme: z.ZodObject<{
910
901
  old: boolean;
911
902
  new: boolean;
912
903
  } | undefined;
904
+ typeSchema?: {
905
+ type: "added";
906
+ value: string;
907
+ } | {
908
+ type: "deleted";
909
+ value: string;
910
+ } | {
911
+ type: "changed";
912
+ old: string;
913
+ new: string;
914
+ } | undefined;
913
915
  name: string | {
914
916
  type: "changed";
915
917
  old: string;
@@ -976,17 +978,28 @@ export declare const alteredTableScheme: z.ZodObject<{
976
978
  old: boolean;
977
979
  new: boolean;
978
980
  } | undefined;
981
+ typeSchema?: {
982
+ type: "added";
983
+ value: string;
984
+ } | {
985
+ type: "deleted";
986
+ value: string;
987
+ } | {
988
+ type: "changed";
989
+ old: string;
990
+ new: string;
991
+ } | undefined;
979
992
  name: string | {
980
993
  type: "changed";
981
994
  old: string;
982
995
  new: string;
983
996
  };
984
997
  }>, "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;
998
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
999
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1000
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1001
+ __new: import("zod").ZodString;
1002
+ __old: import("zod").ZodString;
990
1003
  }, "strict", ZodTypeAny, {
991
1004
  __old: string;
992
1005
  __new: string;
@@ -994,11 +1007,11 @@ export declare const alteredTableScheme: z.ZodObject<{
994
1007
  __old: string;
995
1008
  __new: string;
996
1009
  }>>;
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;
1010
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1011
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1012
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1013
+ __new: import("zod").ZodString;
1014
+ __old: import("zod").ZodString;
1002
1015
  }, "strict", ZodTypeAny, {
1003
1016
  __old: string;
1004
1017
  __new: string;
@@ -1006,11 +1019,11 @@ export declare const alteredTableScheme: z.ZodObject<{
1006
1019
  __old: string;
1007
1020
  __new: string;
1008
1021
  }>>;
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;
1022
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1023
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1024
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1025
+ __new: import("zod").ZodString;
1026
+ __old: import("zod").ZodString;
1014
1027
  }, "strip", ZodTypeAny, {
1015
1028
  __old: string;
1016
1029
  __new: string;
@@ -1018,11 +1031,11 @@ export declare const alteredTableScheme: z.ZodObject<{
1018
1031
  __old: string;
1019
1032
  __new: string;
1020
1033
  }>>;
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;
1034
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1035
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1036
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1037
+ __new: import("zod").ZodString;
1038
+ __old: import("zod").ZodString;
1026
1039
  }, "strip", ZodTypeAny, {
1027
1040
  __old: string;
1028
1041
  __new: string;
@@ -1032,44 +1045,7 @@ export declare const alteredTableScheme: z.ZodObject<{
1032
1045
  }>>;
1033
1046
  }, "strict", ZodTypeAny, {
1034
1047
  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
- }[];
1048
+ schema: string;
1073
1049
  altered: {
1074
1050
  default?: {
1075
1051
  value?: any;
@@ -1131,6 +1107,17 @@ export declare const alteredTableScheme: z.ZodObject<{
1131
1107
  old: boolean;
1132
1108
  new: boolean;
1133
1109
  } | undefined;
1110
+ typeSchema?: {
1111
+ type: "added";
1112
+ value: string;
1113
+ } | {
1114
+ type: "deleted";
1115
+ value: string;
1116
+ } | {
1117
+ type: "changed";
1118
+ old: string;
1119
+ new: string;
1120
+ } | undefined;
1134
1121
  name: string | {
1135
1122
  type: "changed";
1136
1123
  old: string;
@@ -1163,44 +1150,7 @@ export declare const alteredTableScheme: z.ZodObject<{
1163
1150
  }>;
1164
1151
  }, {
1165
1152
  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
- }[];
1153
+ schema: string;
1204
1154
  altered: {
1205
1155
  default?: {
1206
1156
  value?: any;
@@ -1262,6 +1212,17 @@ export declare const alteredTableScheme: z.ZodObject<{
1262
1212
  old: boolean;
1263
1213
  new: boolean;
1264
1214
  } | undefined;
1215
+ typeSchema?: {
1216
+ type: "added";
1217
+ value: string;
1218
+ } | {
1219
+ type: "deleted";
1220
+ value: string;
1221
+ } | {
1222
+ type: "changed";
1223
+ old: string;
1224
+ new: string;
1225
+ } | undefined;
1265
1226
  name: string | {
1266
1227
  type: "changed";
1267
1228
  old: string;
@@ -1293,282 +1254,1759 @@ export declare const alteredTableScheme: z.ZodObject<{
1293
1254
  __new: string;
1294
1255
  }>;
1295
1256
  }>;
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>;
1257
+ export declare const diffResultScheme: import("zod").ZodObject<{
1258
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
1259
+ name: import("zod").ZodString;
1260
+ schema: import("zod").ZodString;
1261
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
1262
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
1263
+ type: import("zod").ZodEnum<["changed"]>;
1264
+ old: import("zod").ZodString;
1265
+ new: import("zod").ZodString;
1266
+ }, "strip", ZodTypeAny, {
1267
+ type: "changed";
1268
+ old: string;
1269
+ new: string;
1270
+ }, {
1271
+ type: "changed";
1272
+ old: string;
1273
+ new: string;
1274
+ }>]>;
1275
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
1276
+ type: import("zod").ZodEnum<["changed"]>;
1277
+ old: import("zod").ZodString;
1278
+ new: import("zod").ZodString;
1279
+ }, "strip", ZodTypeAny, {
1280
+ type: "changed";
1281
+ old: string;
1282
+ new: string;
1283
+ }, {
1284
+ type: "changed";
1285
+ old: string;
1286
+ new: string;
1287
+ }>>;
1288
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1289
+ type: import("zod").ZodLiteral<"added">;
1290
+ value: import("zod").ZodAny;
1291
+ }, "strip", ZodTypeAny, {
1292
+ value?: any;
1293
+ type: "added";
1294
+ }, {
1295
+ value?: any;
1296
+ type: "added";
1297
+ }>, import("zod").ZodObject<{
1298
+ type: import("zod").ZodLiteral<"deleted">;
1299
+ value: import("zod").ZodAny;
1300
+ }, "strip", ZodTypeAny, {
1301
+ value?: any;
1302
+ type: "deleted";
1303
+ }, {
1304
+ value?: any;
1305
+ type: "deleted";
1306
+ }>, import("zod").ZodObject<{
1307
+ type: import("zod").ZodLiteral<"changed">;
1308
+ old: import("zod").ZodAny;
1309
+ new: import("zod").ZodAny;
1310
+ }, "strip", ZodTypeAny, {
1311
+ old?: any;
1312
+ new?: any;
1313
+ type: "changed";
1314
+ }, {
1315
+ old?: any;
1316
+ new?: any;
1317
+ type: "changed";
1318
+ }>]>>;
1319
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1320
+ type: import("zod").ZodLiteral<"added">;
1321
+ value: import("zod").ZodBoolean;
1322
+ }, "strip", ZodTypeAny, {
1323
+ type: "added";
1324
+ value: boolean;
1325
+ }, {
1326
+ type: "added";
1327
+ value: boolean;
1328
+ }>, import("zod").ZodObject<{
1329
+ type: import("zod").ZodLiteral<"deleted">;
1330
+ value: import("zod").ZodBoolean;
1331
+ }, "strip", ZodTypeAny, {
1332
+ type: "deleted";
1333
+ value: boolean;
1334
+ }, {
1335
+ type: "deleted";
1336
+ value: boolean;
1337
+ }>, import("zod").ZodObject<{
1338
+ type: import("zod").ZodLiteral<"changed">;
1339
+ old: import("zod").ZodBoolean;
1340
+ new: import("zod").ZodBoolean;
1341
+ }, "strip", ZodTypeAny, {
1342
+ type: "changed";
1343
+ old: boolean;
1344
+ new: boolean;
1345
+ }, {
1346
+ type: "changed";
1347
+ old: boolean;
1348
+ new: boolean;
1349
+ }>]>>;
1350
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1351
+ type: import("zod").ZodLiteral<"added">;
1352
+ value: import("zod").ZodBoolean;
1353
+ }, "strip", ZodTypeAny, {
1354
+ type: "added";
1355
+ value: boolean;
1356
+ }, {
1357
+ type: "added";
1358
+ value: boolean;
1359
+ }>, import("zod").ZodObject<{
1360
+ type: import("zod").ZodLiteral<"deleted">;
1361
+ value: import("zod").ZodBoolean;
1362
+ }, "strip", ZodTypeAny, {
1363
+ type: "deleted";
1364
+ value: boolean;
1365
+ }, {
1366
+ type: "deleted";
1367
+ value: boolean;
1368
+ }>, import("zod").ZodObject<{
1369
+ type: import("zod").ZodLiteral<"changed">;
1370
+ old: import("zod").ZodBoolean;
1371
+ new: import("zod").ZodBoolean;
1372
+ }, "strip", ZodTypeAny, {
1373
+ type: "changed";
1374
+ old: boolean;
1375
+ new: boolean;
1376
+ }, {
1377
+ type: "changed";
1378
+ old: boolean;
1379
+ new: boolean;
1380
+ }>]>>;
1381
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1382
+ type: import("zod").ZodLiteral<"added">;
1383
+ value: import("zod").ZodString;
1384
+ }, "strip", ZodTypeAny, {
1385
+ type: "added";
1386
+ value: string;
1387
+ }, {
1388
+ type: "added";
1389
+ value: string;
1390
+ }>, import("zod").ZodObject<{
1391
+ type: import("zod").ZodLiteral<"deleted">;
1392
+ value: import("zod").ZodString;
1393
+ }, "strip", ZodTypeAny, {
1394
+ type: "deleted";
1395
+ value: string;
1396
+ }, {
1397
+ type: "deleted";
1398
+ value: string;
1399
+ }>, import("zod").ZodObject<{
1400
+ type: import("zod").ZodLiteral<"changed">;
1401
+ old: import("zod").ZodString;
1402
+ new: import("zod").ZodString;
1403
+ }, "strip", ZodTypeAny, {
1404
+ type: "changed";
1405
+ old: string;
1406
+ new: string;
1407
+ }, {
1408
+ type: "changed";
1409
+ old: string;
1410
+ new: string;
1411
+ }>]>>;
1412
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1413
+ type: import("zod").ZodLiteral<"added">;
1414
+ value: import("zod").ZodBoolean;
1415
+ }, "strip", ZodTypeAny, {
1416
+ type: "added";
1417
+ value: boolean;
1418
+ }, {
1419
+ type: "added";
1420
+ value: boolean;
1421
+ }>, import("zod").ZodObject<{
1422
+ type: import("zod").ZodLiteral<"deleted">;
1423
+ value: import("zod").ZodBoolean;
1424
+ }, "strip", ZodTypeAny, {
1425
+ type: "deleted";
1426
+ value: boolean;
1427
+ }, {
1428
+ type: "deleted";
1429
+ value: boolean;
1430
+ }>, import("zod").ZodObject<{
1431
+ type: import("zod").ZodLiteral<"changed">;
1432
+ old: import("zod").ZodBoolean;
1433
+ new: import("zod").ZodBoolean;
1434
+ }, "strip", ZodTypeAny, {
1435
+ type: "changed";
1436
+ old: boolean;
1437
+ new: boolean;
1438
+ }, {
1439
+ type: "changed";
1440
+ old: boolean;
1441
+ new: boolean;
1442
+ }>]>>;
1443
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1444
+ type: import("zod").ZodLiteral<"added">;
1445
+ value: import("zod").ZodBoolean;
1446
+ }, "strip", ZodTypeAny, {
1447
+ type: "added";
1448
+ value: boolean;
1449
+ }, {
1450
+ type: "added";
1451
+ value: boolean;
1452
+ }>, import("zod").ZodObject<{
1453
+ type: import("zod").ZodLiteral<"deleted">;
1454
+ value: import("zod").ZodBoolean;
1455
+ }, "strip", ZodTypeAny, {
1456
+ type: "deleted";
1457
+ value: boolean;
1458
+ }, {
1459
+ type: "deleted";
1460
+ value: boolean;
1461
+ }>, import("zod").ZodObject<{
1462
+ type: import("zod").ZodLiteral<"changed">;
1463
+ old: import("zod").ZodBoolean;
1464
+ new: import("zod").ZodBoolean;
1465
+ }, "strip", ZodTypeAny, {
1466
+ type: "changed";
1467
+ old: boolean;
1468
+ new: boolean;
1469
+ }, {
1470
+ type: "changed";
1471
+ old: boolean;
1472
+ new: boolean;
1473
+ }>]>>;
1474
+ }, "strict", ZodTypeAny, {
1475
+ default?: {
1476
+ value?: any;
1477
+ type: "added";
1478
+ } | {
1479
+ value?: any;
1480
+ type: "deleted";
1481
+ } | {
1482
+ old?: any;
1483
+ new?: any;
1484
+ type: "changed";
1485
+ } | undefined;
1486
+ type?: {
1487
+ type: "changed";
1488
+ old: string;
1489
+ new: string;
1490
+ } | undefined;
1491
+ onUpdate?: {
1492
+ type: "added";
1493
+ value: boolean;
1494
+ } | {
1495
+ type: "deleted";
1496
+ value: boolean;
1497
+ } | {
1498
+ type: "changed";
1499
+ old: boolean;
1500
+ new: boolean;
1501
+ } | undefined;
1502
+ primaryKey?: {
1503
+ type: "added";
1504
+ value: boolean;
1505
+ } | {
1506
+ type: "deleted";
1507
+ value: boolean;
1508
+ } | {
1509
+ type: "changed";
1510
+ old: boolean;
1511
+ new: boolean;
1512
+ } | undefined;
1513
+ notNull?: {
1514
+ type: "added";
1515
+ value: boolean;
1516
+ } | {
1517
+ type: "deleted";
1518
+ value: boolean;
1519
+ } | {
1520
+ type: "changed";
1521
+ old: boolean;
1522
+ new: boolean;
1523
+ } | undefined;
1524
+ autoincrement?: {
1525
+ type: "added";
1526
+ value: boolean;
1527
+ } | {
1528
+ type: "deleted";
1529
+ value: boolean;
1530
+ } | {
1531
+ type: "changed";
1532
+ old: boolean;
1533
+ new: boolean;
1534
+ } | undefined;
1535
+ typeSchema?: {
1536
+ type: "added";
1537
+ value: string;
1538
+ } | {
1539
+ type: "deleted";
1540
+ value: string;
1541
+ } | {
1542
+ type: "changed";
1543
+ old: string;
1544
+ new: string;
1545
+ } | undefined;
1546
+ name: string | {
1547
+ type: "changed";
1548
+ old: string;
1549
+ new: string;
1550
+ };
1551
+ }, {
1552
+ default?: {
1553
+ value?: any;
1554
+ type: "added";
1555
+ } | {
1556
+ value?: any;
1557
+ type: "deleted";
1558
+ } | {
1559
+ old?: any;
1560
+ new?: any;
1561
+ type: "changed";
1562
+ } | undefined;
1563
+ type?: {
1564
+ type: "changed";
1565
+ old: string;
1566
+ new: string;
1567
+ } | undefined;
1568
+ onUpdate?: {
1569
+ type: "added";
1570
+ value: boolean;
1571
+ } | {
1572
+ type: "deleted";
1573
+ value: boolean;
1574
+ } | {
1575
+ type: "changed";
1576
+ old: boolean;
1577
+ new: boolean;
1578
+ } | undefined;
1579
+ primaryKey?: {
1580
+ type: "added";
1581
+ value: boolean;
1582
+ } | {
1583
+ type: "deleted";
1584
+ value: boolean;
1585
+ } | {
1586
+ type: "changed";
1587
+ old: boolean;
1588
+ new: boolean;
1589
+ } | undefined;
1590
+ notNull?: {
1591
+ type: "added";
1592
+ value: boolean;
1593
+ } | {
1594
+ type: "deleted";
1595
+ value: boolean;
1596
+ } | {
1597
+ type: "changed";
1598
+ old: boolean;
1599
+ new: boolean;
1600
+ } | undefined;
1601
+ autoincrement?: {
1602
+ type: "added";
1603
+ value: boolean;
1604
+ } | {
1605
+ type: "deleted";
1606
+ value: boolean;
1607
+ } | {
1608
+ type: "changed";
1609
+ old: boolean;
1610
+ new: boolean;
1611
+ } | undefined;
1612
+ typeSchema?: {
1613
+ type: "added";
1614
+ value: string;
1615
+ } | {
1616
+ type: "deleted";
1617
+ value: string;
1618
+ } | {
1619
+ type: "changed";
1620
+ old: string;
1621
+ new: string;
1622
+ } | undefined;
1623
+ name: string | {
1624
+ type: "changed";
1625
+ old: string;
1626
+ new: string;
1627
+ };
1628
+ }>, "many">;
1629
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1630
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1631
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1632
+ __new: import("zod").ZodString;
1633
+ __old: import("zod").ZodString;
1634
+ }, "strict", ZodTypeAny, {
1635
+ __old: string;
1636
+ __new: string;
1637
+ }, {
1638
+ __old: string;
1639
+ __new: string;
1640
+ }>>;
1641
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1642
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1643
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1644
+ __new: import("zod").ZodString;
1645
+ __old: import("zod").ZodString;
1646
+ }, "strict", ZodTypeAny, {
1647
+ __old: string;
1648
+ __new: string;
1649
+ }, {
1650
+ __old: string;
1651
+ __new: string;
1652
+ }>>;
1653
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1654
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1655
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1656
+ __new: import("zod").ZodString;
1657
+ __old: import("zod").ZodString;
1658
+ }, "strip", ZodTypeAny, {
1659
+ __old: string;
1660
+ __new: string;
1661
+ }, {
1662
+ __old: string;
1663
+ __new: string;
1664
+ }>>;
1665
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1666
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1667
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1668
+ __new: import("zod").ZodString;
1669
+ __old: import("zod").ZodString;
1670
+ }, "strip", ZodTypeAny, {
1671
+ __old: string;
1672
+ __new: string;
1673
+ }, {
1674
+ __old: string;
1675
+ __new: string;
1676
+ }>>;
1677
+ }, "strict", ZodTypeAny, {
1678
+ name: string;
1679
+ schema: string;
1680
+ altered: {
1681
+ default?: {
1682
+ value?: any;
1683
+ type: "added";
1684
+ } | {
1685
+ value?: any;
1686
+ type: "deleted";
1687
+ } | {
1688
+ old?: any;
1689
+ new?: any;
1690
+ type: "changed";
1691
+ } | undefined;
1692
+ type?: {
1693
+ type: "changed";
1694
+ old: string;
1695
+ new: string;
1696
+ } | undefined;
1697
+ onUpdate?: {
1698
+ type: "added";
1699
+ value: boolean;
1700
+ } | {
1701
+ type: "deleted";
1702
+ value: boolean;
1703
+ } | {
1704
+ type: "changed";
1705
+ old: boolean;
1706
+ new: boolean;
1707
+ } | undefined;
1708
+ primaryKey?: {
1709
+ type: "added";
1710
+ value: boolean;
1711
+ } | {
1712
+ type: "deleted";
1713
+ value: boolean;
1714
+ } | {
1715
+ type: "changed";
1716
+ old: boolean;
1717
+ new: boolean;
1718
+ } | undefined;
1719
+ notNull?: {
1720
+ type: "added";
1721
+ value: boolean;
1722
+ } | {
1723
+ type: "deleted";
1724
+ value: boolean;
1725
+ } | {
1726
+ type: "changed";
1727
+ old: boolean;
1728
+ new: boolean;
1729
+ } | undefined;
1730
+ autoincrement?: {
1731
+ type: "added";
1732
+ value: boolean;
1733
+ } | {
1734
+ type: "deleted";
1735
+ value: boolean;
1736
+ } | {
1737
+ type: "changed";
1738
+ old: boolean;
1739
+ new: boolean;
1740
+ } | undefined;
1741
+ typeSchema?: {
1742
+ type: "added";
1743
+ value: string;
1744
+ } | {
1745
+ type: "deleted";
1746
+ value: string;
1747
+ } | {
1748
+ type: "changed";
1749
+ old: string;
1750
+ new: string;
1751
+ } | undefined;
1752
+ name: string | {
1753
+ type: "changed";
1754
+ old: string;
1755
+ new: string;
1756
+ };
1757
+ }[];
1758
+ addedIndexes: Record<string, string>;
1759
+ deletedIndexes: Record<string, string>;
1760
+ alteredIndexes: Record<string, {
1761
+ __old: string;
1762
+ __new: string;
1763
+ }>;
1764
+ addedForeignKeys: Record<string, string>;
1765
+ deletedForeignKeys: Record<string, string>;
1766
+ alteredForeignKeys: Record<string, {
1767
+ __old: string;
1768
+ __new: string;
1769
+ }>;
1770
+ addedCompositePKs: Record<string, string>;
1771
+ deletedCompositePKs: Record<string, string>;
1772
+ alteredCompositePKs: Record<string, {
1773
+ __old: string;
1774
+ __new: string;
1775
+ }>;
1776
+ addedUniqueConstraints: Record<string, string>;
1777
+ deletedUniqueConstraints: Record<string, string>;
1778
+ alteredUniqueConstraints: Record<string, {
1779
+ __old: string;
1780
+ __new: string;
1781
+ }>;
1782
+ }, {
1783
+ name: string;
1784
+ schema: string;
1785
+ altered: {
1786
+ default?: {
1787
+ value?: any;
1788
+ type: "added";
1789
+ } | {
1790
+ value?: any;
1791
+ type: "deleted";
1792
+ } | {
1793
+ old?: any;
1794
+ new?: any;
1795
+ type: "changed";
1796
+ } | undefined;
1797
+ type?: {
1798
+ type: "changed";
1799
+ old: string;
1800
+ new: string;
1801
+ } | undefined;
1802
+ onUpdate?: {
1803
+ type: "added";
1804
+ value: boolean;
1805
+ } | {
1806
+ type: "deleted";
1807
+ value: boolean;
1808
+ } | {
1809
+ type: "changed";
1810
+ old: boolean;
1811
+ new: boolean;
1812
+ } | undefined;
1813
+ primaryKey?: {
1814
+ type: "added";
1815
+ value: boolean;
1816
+ } | {
1817
+ type: "deleted";
1818
+ value: boolean;
1819
+ } | {
1820
+ type: "changed";
1821
+ old: boolean;
1822
+ new: boolean;
1823
+ } | undefined;
1824
+ notNull?: {
1825
+ type: "added";
1826
+ value: boolean;
1827
+ } | {
1828
+ type: "deleted";
1829
+ value: boolean;
1830
+ } | {
1831
+ type: "changed";
1832
+ old: boolean;
1833
+ new: boolean;
1834
+ } | undefined;
1835
+ autoincrement?: {
1836
+ type: "added";
1837
+ value: boolean;
1838
+ } | {
1839
+ type: "deleted";
1840
+ value: boolean;
1841
+ } | {
1842
+ type: "changed";
1843
+ old: boolean;
1844
+ new: boolean;
1845
+ } | undefined;
1846
+ typeSchema?: {
1847
+ type: "added";
1848
+ value: string;
1849
+ } | {
1850
+ type: "deleted";
1851
+ value: string;
1852
+ } | {
1853
+ type: "changed";
1854
+ old: string;
1855
+ new: string;
1856
+ } | undefined;
1857
+ name: string | {
1858
+ type: "changed";
1859
+ old: string;
1860
+ new: string;
1861
+ };
1862
+ }[];
1863
+ addedIndexes: Record<string, string>;
1864
+ deletedIndexes: Record<string, string>;
1865
+ alteredIndexes: Record<string, {
1866
+ __old: string;
1867
+ __new: string;
1868
+ }>;
1869
+ addedForeignKeys: Record<string, string>;
1870
+ deletedForeignKeys: Record<string, string>;
1871
+ alteredForeignKeys: Record<string, {
1872
+ __old: string;
1873
+ __new: string;
1874
+ }>;
1875
+ addedCompositePKs: Record<string, string>;
1876
+ deletedCompositePKs: Record<string, string>;
1877
+ alteredCompositePKs: Record<string, {
1878
+ __old: string;
1879
+ __new: string;
1880
+ }>;
1881
+ addedUniqueConstraints: Record<string, string>;
1882
+ deletedUniqueConstraints: Record<string, string>;
1883
+ alteredUniqueConstraints: Record<string, {
1884
+ __old: string;
1885
+ __new: string;
1886
+ }>;
1887
+ }>, "many">;
1888
+ alteredEnums: import("zod").ZodArray<import("zod").ZodObject<{
1889
+ name: import("zod").ZodString;
1890
+ schema: import("zod").ZodString;
1891
+ addedValues: import("zod").ZodArray<import("zod").ZodObject<{
1892
+ before: import("zod").ZodString;
1893
+ value: import("zod").ZodString;
1894
+ }, "strip", ZodTypeAny, {
1895
+ value: string;
1896
+ before: string;
1897
+ }, {
1898
+ value: string;
1899
+ before: string;
1900
+ }>, "many">;
1901
+ deletedValues: import("zod").ZodArray<import("zod").ZodString, "many">;
1902
+ }, "strict", ZodTypeAny, {
1903
+ name: string;
1904
+ schema: string;
1905
+ addedValues: {
1906
+ value: string;
1907
+ before: string;
1908
+ }[];
1909
+ deletedValues: string[];
1910
+ }, {
1911
+ name: string;
1912
+ schema: string;
1913
+ addedValues: {
1914
+ value: string;
1915
+ before: string;
1916
+ }[];
1917
+ deletedValues: string[];
1918
+ }>, "many">;
1919
+ }, "strict", ZodTypeAny, {
1920
+ alteredTablesWithColumns: {
1921
+ name: string;
1922
+ schema: string;
1923
+ altered: {
1924
+ default?: {
1925
+ value?: any;
1926
+ type: "added";
1927
+ } | {
1928
+ value?: any;
1929
+ type: "deleted";
1930
+ } | {
1931
+ old?: any;
1932
+ new?: any;
1933
+ type: "changed";
1934
+ } | undefined;
1935
+ type?: {
1936
+ type: "changed";
1937
+ old: string;
1938
+ new: string;
1939
+ } | undefined;
1940
+ onUpdate?: {
1941
+ type: "added";
1942
+ value: boolean;
1943
+ } | {
1944
+ type: "deleted";
1945
+ value: boolean;
1946
+ } | {
1947
+ type: "changed";
1948
+ old: boolean;
1949
+ new: boolean;
1950
+ } | undefined;
1951
+ primaryKey?: {
1952
+ type: "added";
1953
+ value: boolean;
1954
+ } | {
1955
+ type: "deleted";
1956
+ value: boolean;
1957
+ } | {
1958
+ type: "changed";
1959
+ old: boolean;
1960
+ new: boolean;
1961
+ } | undefined;
1962
+ notNull?: {
1963
+ type: "added";
1964
+ value: boolean;
1965
+ } | {
1966
+ type: "deleted";
1967
+ value: boolean;
1968
+ } | {
1969
+ type: "changed";
1970
+ old: boolean;
1971
+ new: boolean;
1972
+ } | undefined;
1973
+ autoincrement?: {
1974
+ type: "added";
1975
+ value: boolean;
1976
+ } | {
1977
+ type: "deleted";
1978
+ value: boolean;
1979
+ } | {
1980
+ type: "changed";
1981
+ old: boolean;
1982
+ new: boolean;
1983
+ } | undefined;
1984
+ typeSchema?: {
1985
+ type: "added";
1986
+ value: string;
1987
+ } | {
1988
+ type: "deleted";
1989
+ value: string;
1990
+ } | {
1991
+ type: "changed";
1992
+ old: string;
1993
+ new: string;
1994
+ } | undefined;
1995
+ name: string | {
1996
+ type: "changed";
1997
+ old: string;
1998
+ new: string;
1999
+ };
2000
+ }[];
2001
+ addedIndexes: Record<string, string>;
2002
+ deletedIndexes: Record<string, string>;
2003
+ alteredIndexes: Record<string, {
2004
+ __old: string;
2005
+ __new: string;
2006
+ }>;
2007
+ addedForeignKeys: Record<string, string>;
2008
+ deletedForeignKeys: Record<string, string>;
2009
+ alteredForeignKeys: Record<string, {
2010
+ __old: string;
2011
+ __new: string;
2012
+ }>;
2013
+ addedCompositePKs: Record<string, string>;
2014
+ deletedCompositePKs: Record<string, string>;
2015
+ alteredCompositePKs: Record<string, {
2016
+ __old: string;
2017
+ __new: string;
2018
+ }>;
2019
+ addedUniqueConstraints: Record<string, string>;
2020
+ deletedUniqueConstraints: Record<string, string>;
2021
+ alteredUniqueConstraints: Record<string, {
2022
+ __old: string;
2023
+ __new: string;
2024
+ }>;
2025
+ }[];
2026
+ alteredEnums: {
2027
+ name: string;
2028
+ schema: string;
2029
+ addedValues: {
2030
+ value: string;
2031
+ before: string;
2032
+ }[];
2033
+ deletedValues: string[];
2034
+ }[];
2035
+ }, {
2036
+ alteredTablesWithColumns: {
2037
+ name: string;
2038
+ schema: string;
2039
+ altered: {
2040
+ default?: {
2041
+ value?: any;
2042
+ type: "added";
2043
+ } | {
2044
+ value?: any;
2045
+ type: "deleted";
2046
+ } | {
2047
+ old?: any;
2048
+ new?: any;
2049
+ type: "changed";
2050
+ } | undefined;
2051
+ type?: {
2052
+ type: "changed";
2053
+ old: string;
2054
+ new: string;
2055
+ } | undefined;
2056
+ onUpdate?: {
2057
+ type: "added";
2058
+ value: boolean;
2059
+ } | {
2060
+ type: "deleted";
2061
+ value: boolean;
2062
+ } | {
2063
+ type: "changed";
2064
+ old: boolean;
2065
+ new: boolean;
2066
+ } | undefined;
2067
+ primaryKey?: {
2068
+ type: "added";
2069
+ value: boolean;
2070
+ } | {
2071
+ type: "deleted";
2072
+ value: boolean;
2073
+ } | {
2074
+ type: "changed";
2075
+ old: boolean;
2076
+ new: boolean;
2077
+ } | undefined;
2078
+ notNull?: {
2079
+ type: "added";
2080
+ value: boolean;
2081
+ } | {
2082
+ type: "deleted";
2083
+ value: boolean;
2084
+ } | {
2085
+ type: "changed";
2086
+ old: boolean;
2087
+ new: boolean;
2088
+ } | undefined;
2089
+ autoincrement?: {
2090
+ type: "added";
2091
+ value: boolean;
2092
+ } | {
2093
+ type: "deleted";
2094
+ value: boolean;
2095
+ } | {
2096
+ type: "changed";
2097
+ old: boolean;
2098
+ new: boolean;
2099
+ } | undefined;
2100
+ typeSchema?: {
2101
+ type: "added";
2102
+ value: string;
2103
+ } | {
2104
+ type: "deleted";
2105
+ value: string;
2106
+ } | {
2107
+ type: "changed";
2108
+ old: string;
2109
+ new: string;
2110
+ } | undefined;
2111
+ name: string | {
2112
+ type: "changed";
2113
+ old: string;
2114
+ new: string;
2115
+ };
2116
+ }[];
2117
+ addedIndexes: Record<string, string>;
2118
+ deletedIndexes: Record<string, string>;
2119
+ alteredIndexes: Record<string, {
2120
+ __old: string;
2121
+ __new: string;
2122
+ }>;
2123
+ addedForeignKeys: Record<string, string>;
2124
+ deletedForeignKeys: Record<string, string>;
2125
+ alteredForeignKeys: Record<string, {
2126
+ __old: string;
2127
+ __new: string;
2128
+ }>;
2129
+ addedCompositePKs: Record<string, string>;
2130
+ deletedCompositePKs: Record<string, string>;
2131
+ alteredCompositePKs: Record<string, {
2132
+ __old: string;
2133
+ __new: string;
2134
+ }>;
2135
+ addedUniqueConstraints: Record<string, string>;
2136
+ deletedUniqueConstraints: Record<string, string>;
2137
+ alteredUniqueConstraints: Record<string, {
2138
+ __old: string;
2139
+ __new: string;
2140
+ }>;
2141
+ }[];
2142
+ alteredEnums: {
2143
+ name: string;
2144
+ schema: string;
2145
+ addedValues: {
2146
+ value: string;
2147
+ before: string;
2148
+ }[];
2149
+ deletedValues: string[];
2150
+ }[];
2151
+ }>;
2152
+ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
2153
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
2154
+ name: import("zod").ZodString;
2155
+ schema: import("zod").ZodString;
2156
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
2157
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
2158
+ type: import("zod").ZodEnum<["changed"]>;
2159
+ old: import("zod").ZodString;
2160
+ new: import("zod").ZodString;
2161
+ }, "strip", ZodTypeAny, {
2162
+ type: "changed";
2163
+ old: string;
2164
+ new: string;
2165
+ }, {
2166
+ type: "changed";
2167
+ old: string;
2168
+ new: string;
2169
+ }>]>;
2170
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
2171
+ type: import("zod").ZodEnum<["changed"]>;
2172
+ old: import("zod").ZodString;
2173
+ new: import("zod").ZodString;
2174
+ }, "strip", ZodTypeAny, {
2175
+ type: "changed";
2176
+ old: string;
2177
+ new: string;
2178
+ }, {
2179
+ type: "changed";
2180
+ old: string;
2181
+ new: string;
2182
+ }>>;
2183
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2184
+ type: import("zod").ZodLiteral<"added">;
2185
+ value: import("zod").ZodAny;
2186
+ }, "strip", ZodTypeAny, {
2187
+ value?: any;
2188
+ type: "added";
2189
+ }, {
2190
+ value?: any;
2191
+ type: "added";
2192
+ }>, import("zod").ZodObject<{
2193
+ type: import("zod").ZodLiteral<"deleted">;
2194
+ value: import("zod").ZodAny;
2195
+ }, "strip", ZodTypeAny, {
2196
+ value?: any;
2197
+ type: "deleted";
2198
+ }, {
2199
+ value?: any;
2200
+ type: "deleted";
2201
+ }>, import("zod").ZodObject<{
2202
+ type: import("zod").ZodLiteral<"changed">;
2203
+ old: import("zod").ZodAny;
2204
+ new: import("zod").ZodAny;
2205
+ }, "strip", ZodTypeAny, {
2206
+ old?: any;
2207
+ new?: any;
2208
+ type: "changed";
2209
+ }, {
2210
+ old?: any;
2211
+ new?: any;
2212
+ type: "changed";
2213
+ }>]>>;
2214
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2215
+ type: import("zod").ZodLiteral<"added">;
2216
+ value: import("zod").ZodBoolean;
2217
+ }, "strip", ZodTypeAny, {
2218
+ type: "added";
2219
+ value: boolean;
2220
+ }, {
2221
+ type: "added";
2222
+ value: boolean;
2223
+ }>, import("zod").ZodObject<{
2224
+ type: import("zod").ZodLiteral<"deleted">;
2225
+ value: import("zod").ZodBoolean;
2226
+ }, "strip", ZodTypeAny, {
2227
+ type: "deleted";
2228
+ value: boolean;
2229
+ }, {
2230
+ type: "deleted";
2231
+ value: boolean;
2232
+ }>, import("zod").ZodObject<{
2233
+ type: import("zod").ZodLiteral<"changed">;
2234
+ old: import("zod").ZodBoolean;
2235
+ new: import("zod").ZodBoolean;
2236
+ }, "strip", ZodTypeAny, {
2237
+ type: "changed";
2238
+ old: boolean;
2239
+ new: boolean;
2240
+ }, {
2241
+ type: "changed";
2242
+ old: boolean;
2243
+ new: boolean;
2244
+ }>]>>;
2245
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2246
+ type: import("zod").ZodLiteral<"added">;
2247
+ value: import("zod").ZodBoolean;
2248
+ }, "strip", ZodTypeAny, {
2249
+ type: "added";
2250
+ value: boolean;
2251
+ }, {
2252
+ type: "added";
2253
+ value: boolean;
2254
+ }>, import("zod").ZodObject<{
2255
+ type: import("zod").ZodLiteral<"deleted">;
2256
+ value: import("zod").ZodBoolean;
2257
+ }, "strip", ZodTypeAny, {
2258
+ type: "deleted";
2259
+ value: boolean;
2260
+ }, {
2261
+ type: "deleted";
2262
+ value: boolean;
2263
+ }>, import("zod").ZodObject<{
2264
+ type: import("zod").ZodLiteral<"changed">;
2265
+ old: import("zod").ZodBoolean;
2266
+ new: import("zod").ZodBoolean;
2267
+ }, "strip", ZodTypeAny, {
2268
+ type: "changed";
2269
+ old: boolean;
2270
+ new: boolean;
2271
+ }, {
2272
+ type: "changed";
2273
+ old: boolean;
2274
+ new: boolean;
2275
+ }>]>>;
2276
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2277
+ type: import("zod").ZodLiteral<"added">;
2278
+ value: import("zod").ZodString;
2279
+ }, "strip", ZodTypeAny, {
2280
+ type: "added";
2281
+ value: string;
2282
+ }, {
2283
+ type: "added";
2284
+ value: string;
2285
+ }>, import("zod").ZodObject<{
2286
+ type: import("zod").ZodLiteral<"deleted">;
2287
+ value: import("zod").ZodString;
2288
+ }, "strip", ZodTypeAny, {
2289
+ type: "deleted";
2290
+ value: string;
2291
+ }, {
2292
+ type: "deleted";
2293
+ value: string;
2294
+ }>, import("zod").ZodObject<{
2295
+ type: import("zod").ZodLiteral<"changed">;
2296
+ old: import("zod").ZodString;
2297
+ new: import("zod").ZodString;
2298
+ }, "strip", ZodTypeAny, {
2299
+ type: "changed";
2300
+ old: string;
2301
+ new: string;
2302
+ }, {
2303
+ type: "changed";
2304
+ old: string;
2305
+ new: string;
2306
+ }>]>>;
2307
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2308
+ type: import("zod").ZodLiteral<"added">;
2309
+ value: import("zod").ZodBoolean;
2310
+ }, "strip", ZodTypeAny, {
2311
+ type: "added";
2312
+ value: boolean;
2313
+ }, {
2314
+ type: "added";
2315
+ value: boolean;
2316
+ }>, import("zod").ZodObject<{
2317
+ type: import("zod").ZodLiteral<"deleted">;
2318
+ value: import("zod").ZodBoolean;
2319
+ }, "strip", ZodTypeAny, {
2320
+ type: "deleted";
2321
+ value: boolean;
2322
+ }, {
2323
+ type: "deleted";
2324
+ value: boolean;
2325
+ }>, import("zod").ZodObject<{
2326
+ type: import("zod").ZodLiteral<"changed">;
2327
+ old: import("zod").ZodBoolean;
2328
+ new: import("zod").ZodBoolean;
2329
+ }, "strip", ZodTypeAny, {
2330
+ type: "changed";
2331
+ old: boolean;
2332
+ new: boolean;
2333
+ }, {
2334
+ type: "changed";
2335
+ old: boolean;
2336
+ new: boolean;
2337
+ }>]>>;
2338
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2339
+ type: import("zod").ZodLiteral<"added">;
2340
+ value: import("zod").ZodBoolean;
2341
+ }, "strip", ZodTypeAny, {
2342
+ type: "added";
2343
+ value: boolean;
2344
+ }, {
2345
+ type: "added";
2346
+ value: boolean;
2347
+ }>, import("zod").ZodObject<{
2348
+ type: import("zod").ZodLiteral<"deleted">;
2349
+ value: import("zod").ZodBoolean;
2350
+ }, "strip", ZodTypeAny, {
2351
+ type: "deleted";
2352
+ value: boolean;
2353
+ }, {
2354
+ type: "deleted";
2355
+ value: boolean;
2356
+ }>, import("zod").ZodObject<{
2357
+ type: import("zod").ZodLiteral<"changed">;
2358
+ old: import("zod").ZodBoolean;
2359
+ new: import("zod").ZodBoolean;
2360
+ }, "strip", ZodTypeAny, {
2361
+ type: "changed";
2362
+ old: boolean;
2363
+ new: boolean;
2364
+ }, {
2365
+ type: "changed";
2366
+ old: boolean;
2367
+ new: boolean;
2368
+ }>]>>;
2369
+ }, "strict", ZodTypeAny, {
2370
+ default?: {
2371
+ value?: any;
2372
+ type: "added";
2373
+ } | {
2374
+ value?: any;
2375
+ type: "deleted";
2376
+ } | {
2377
+ old?: any;
2378
+ new?: any;
2379
+ type: "changed";
2380
+ } | undefined;
2381
+ type?: {
2382
+ type: "changed";
2383
+ old: string;
2384
+ new: string;
2385
+ } | undefined;
2386
+ onUpdate?: {
2387
+ type: "added";
2388
+ value: boolean;
2389
+ } | {
2390
+ type: "deleted";
2391
+ value: boolean;
2392
+ } | {
2393
+ type: "changed";
2394
+ old: boolean;
2395
+ new: boolean;
2396
+ } | undefined;
2397
+ primaryKey?: {
2398
+ type: "added";
2399
+ value: boolean;
2400
+ } | {
2401
+ type: "deleted";
2402
+ value: boolean;
2403
+ } | {
2404
+ type: "changed";
2405
+ old: boolean;
2406
+ new: boolean;
2407
+ } | undefined;
2408
+ notNull?: {
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
+ autoincrement?: {
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
+ typeSchema?: {
2431
+ type: "added";
2432
+ value: string;
2433
+ } | {
2434
+ type: "deleted";
2435
+ value: string;
2436
+ } | {
2437
+ type: "changed";
2438
+ old: string;
2439
+ new: string;
2440
+ } | undefined;
2441
+ name: string | {
2442
+ type: "changed";
2443
+ old: string;
2444
+ new: string;
2445
+ };
2446
+ }, {
2447
+ default?: {
2448
+ value?: any;
2449
+ type: "added";
2450
+ } | {
2451
+ value?: any;
2452
+ type: "deleted";
2453
+ } | {
2454
+ old?: any;
2455
+ new?: any;
2456
+ type: "changed";
2457
+ } | undefined;
2458
+ type?: {
2459
+ type: "changed";
2460
+ old: string;
2461
+ new: string;
2462
+ } | undefined;
2463
+ onUpdate?: {
2464
+ type: "added";
2465
+ value: boolean;
2466
+ } | {
2467
+ type: "deleted";
2468
+ value: boolean;
2469
+ } | {
2470
+ type: "changed";
2471
+ old: boolean;
2472
+ new: boolean;
2473
+ } | undefined;
2474
+ primaryKey?: {
2475
+ type: "added";
2476
+ value: boolean;
2477
+ } | {
2478
+ type: "deleted";
2479
+ value: boolean;
2480
+ } | {
2481
+ type: "changed";
2482
+ old: boolean;
2483
+ new: boolean;
2484
+ } | undefined;
2485
+ notNull?: {
2486
+ type: "added";
2487
+ value: boolean;
2488
+ } | {
2489
+ type: "deleted";
2490
+ value: boolean;
2491
+ } | {
2492
+ type: "changed";
2493
+ old: boolean;
2494
+ new: boolean;
2495
+ } | undefined;
2496
+ autoincrement?: {
2497
+ type: "added";
2498
+ value: boolean;
2499
+ } | {
2500
+ type: "deleted";
2501
+ value: boolean;
2502
+ } | {
2503
+ type: "changed";
2504
+ old: boolean;
2505
+ new: boolean;
2506
+ } | undefined;
2507
+ typeSchema?: {
2508
+ type: "added";
2509
+ value: string;
2510
+ } | {
2511
+ type: "deleted";
2512
+ value: string;
2513
+ } | {
2514
+ type: "changed";
2515
+ old: string;
2516
+ new: string;
2517
+ } | undefined;
2518
+ name: string | {
2519
+ type: "changed";
2520
+ old: string;
2521
+ new: string;
2522
+ };
2523
+ }>, "many">;
2524
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2525
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2526
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2527
+ __new: import("zod").ZodString;
2528
+ __old: import("zod").ZodString;
2529
+ }, "strict", ZodTypeAny, {
2530
+ __old: string;
2531
+ __new: string;
2532
+ }, {
2533
+ __old: string;
2534
+ __new: string;
2535
+ }>>;
2536
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2537
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2538
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2539
+ __new: import("zod").ZodString;
2540
+ __old: import("zod").ZodString;
2541
+ }, "strict", ZodTypeAny, {
2542
+ __old: string;
2543
+ __new: string;
2544
+ }, {
2545
+ __old: string;
2546
+ __new: string;
2547
+ }>>;
2548
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2549
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2550
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2551
+ __new: import("zod").ZodString;
2552
+ __old: import("zod").ZodString;
2553
+ }, "strip", ZodTypeAny, {
2554
+ __old: string;
2555
+ __new: string;
2556
+ }, {
2557
+ __old: string;
2558
+ __new: string;
2559
+ }>>;
2560
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2561
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2562
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2563
+ __new: import("zod").ZodString;
2564
+ __old: import("zod").ZodString;
2565
+ }, "strip", ZodTypeAny, {
2566
+ __old: string;
2567
+ __new: string;
2568
+ }, {
2569
+ __old: string;
2570
+ __new: string;
2571
+ }>>;
2572
+ }, "strict", ZodTypeAny, {
2573
+ name: string;
2574
+ schema: string;
2575
+ altered: {
2576
+ default?: {
2577
+ value?: any;
2578
+ type: "added";
2579
+ } | {
2580
+ value?: any;
2581
+ type: "deleted";
2582
+ } | {
2583
+ old?: any;
2584
+ new?: any;
2585
+ type: "changed";
2586
+ } | undefined;
2587
+ type?: {
2588
+ type: "changed";
2589
+ old: string;
2590
+ new: string;
2591
+ } | undefined;
2592
+ onUpdate?: {
2593
+ type: "added";
2594
+ value: boolean;
2595
+ } | {
2596
+ type: "deleted";
2597
+ value: boolean;
2598
+ } | {
2599
+ type: "changed";
2600
+ old: boolean;
2601
+ new: boolean;
2602
+ } | undefined;
2603
+ primaryKey?: {
2604
+ type: "added";
2605
+ value: boolean;
2606
+ } | {
2607
+ type: "deleted";
2608
+ value: boolean;
2609
+ } | {
2610
+ type: "changed";
2611
+ old: boolean;
2612
+ new: boolean;
2613
+ } | undefined;
2614
+ notNull?: {
2615
+ type: "added";
2616
+ value: boolean;
2617
+ } | {
2618
+ type: "deleted";
2619
+ value: boolean;
2620
+ } | {
2621
+ type: "changed";
2622
+ old: boolean;
2623
+ new: boolean;
2624
+ } | undefined;
2625
+ autoincrement?: {
2626
+ type: "added";
2627
+ value: boolean;
2628
+ } | {
2629
+ type: "deleted";
2630
+ value: boolean;
2631
+ } | {
2632
+ type: "changed";
2633
+ old: boolean;
2634
+ new: boolean;
2635
+ } | undefined;
2636
+ typeSchema?: {
2637
+ type: "added";
2638
+ value: string;
2639
+ } | {
2640
+ type: "deleted";
2641
+ value: string;
2642
+ } | {
2643
+ type: "changed";
2644
+ old: string;
2645
+ new: string;
2646
+ } | undefined;
2647
+ name: string | {
2648
+ type: "changed";
2649
+ old: string;
2650
+ new: string;
2651
+ };
2652
+ }[];
2653
+ addedIndexes: Record<string, string>;
2654
+ deletedIndexes: Record<string, string>;
2655
+ alteredIndexes: Record<string, {
2656
+ __old: string;
2657
+ __new: string;
2658
+ }>;
2659
+ addedForeignKeys: Record<string, string>;
2660
+ deletedForeignKeys: Record<string, string>;
2661
+ alteredForeignKeys: Record<string, {
2662
+ __old: string;
2663
+ __new: string;
2664
+ }>;
2665
+ addedCompositePKs: Record<string, string>;
2666
+ deletedCompositePKs: Record<string, string>;
2667
+ alteredCompositePKs: Record<string, {
2668
+ __old: string;
2669
+ __new: string;
2670
+ }>;
2671
+ addedUniqueConstraints: Record<string, string>;
2672
+ deletedUniqueConstraints: Record<string, string>;
2673
+ alteredUniqueConstraints: Record<string, {
2674
+ __old: string;
2675
+ __new: string;
2676
+ }>;
2677
+ }, {
2678
+ name: string;
2679
+ schema: string;
2680
+ altered: {
2681
+ default?: {
2682
+ value?: any;
2683
+ type: "added";
2684
+ } | {
2685
+ value?: any;
2686
+ type: "deleted";
2687
+ } | {
2688
+ old?: any;
2689
+ new?: any;
2690
+ type: "changed";
2691
+ } | undefined;
2692
+ type?: {
2693
+ type: "changed";
2694
+ old: string;
2695
+ new: string;
2696
+ } | undefined;
2697
+ onUpdate?: {
2698
+ type: "added";
2699
+ value: boolean;
2700
+ } | {
2701
+ type: "deleted";
2702
+ value: boolean;
2703
+ } | {
2704
+ type: "changed";
2705
+ old: boolean;
2706
+ new: boolean;
2707
+ } | undefined;
2708
+ primaryKey?: {
2709
+ type: "added";
2710
+ value: boolean;
2711
+ } | {
2712
+ type: "deleted";
2713
+ value: boolean;
2714
+ } | {
2715
+ type: "changed";
2716
+ old: boolean;
2717
+ new: boolean;
2718
+ } | undefined;
2719
+ notNull?: {
2720
+ type: "added";
2721
+ value: boolean;
2722
+ } | {
2723
+ type: "deleted";
2724
+ value: boolean;
2725
+ } | {
2726
+ type: "changed";
2727
+ old: boolean;
2728
+ new: boolean;
2729
+ } | undefined;
2730
+ autoincrement?: {
2731
+ type: "added";
2732
+ value: boolean;
2733
+ } | {
2734
+ type: "deleted";
2735
+ value: boolean;
2736
+ } | {
2737
+ type: "changed";
2738
+ old: boolean;
2739
+ new: boolean;
2740
+ } | undefined;
2741
+ typeSchema?: {
2742
+ type: "added";
2743
+ value: string;
2744
+ } | {
2745
+ type: "deleted";
2746
+ value: string;
2747
+ } | {
2748
+ type: "changed";
2749
+ old: string;
2750
+ new: string;
2751
+ } | undefined;
2752
+ name: string | {
2753
+ type: "changed";
2754
+ old: string;
2755
+ new: string;
2756
+ };
2757
+ }[];
2758
+ addedIndexes: Record<string, string>;
2759
+ deletedIndexes: Record<string, string>;
2760
+ alteredIndexes: Record<string, {
2761
+ __old: string;
2762
+ __new: string;
2763
+ }>;
2764
+ addedForeignKeys: Record<string, string>;
2765
+ deletedForeignKeys: Record<string, string>;
2766
+ alteredForeignKeys: Record<string, {
2767
+ __old: string;
2768
+ __new: string;
2769
+ }>;
2770
+ addedCompositePKs: Record<string, string>;
2771
+ deletedCompositePKs: Record<string, string>;
2772
+ alteredCompositePKs: Record<string, {
2773
+ __old: string;
2774
+ __new: string;
2775
+ }>;
2776
+ addedUniqueConstraints: Record<string, string>;
2777
+ deletedUniqueConstraints: Record<string, string>;
2778
+ alteredUniqueConstraints: Record<string, {
2779
+ __old: string;
2780
+ __new: string;
2781
+ }>;
1376
2782
  }>, "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, {
2783
+ alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "many">;
2784
+ }, "strict", ZodTypeAny, {
2785
+ alteredTablesWithColumns: {
2786
+ name: string;
2787
+ schema: string;
2788
+ altered: {
2789
+ default?: {
2790
+ value?: any;
2791
+ type: "added";
2792
+ } | {
2793
+ value?: any;
2794
+ type: "deleted";
2795
+ } | {
2796
+ old?: any;
2797
+ new?: any;
2798
+ type: "changed";
2799
+ } | undefined;
2800
+ type?: {
2801
+ type: "changed";
2802
+ old: string;
2803
+ new: string;
2804
+ } | undefined;
2805
+ onUpdate?: {
2806
+ type: "added";
2807
+ value: boolean;
2808
+ } | {
2809
+ type: "deleted";
2810
+ value: boolean;
2811
+ } | {
2812
+ type: "changed";
2813
+ old: boolean;
2814
+ new: boolean;
2815
+ } | undefined;
2816
+ primaryKey?: {
2817
+ type: "added";
2818
+ value: boolean;
2819
+ } | {
2820
+ type: "deleted";
2821
+ value: boolean;
2822
+ } | {
2823
+ type: "changed";
2824
+ old: boolean;
2825
+ new: boolean;
2826
+ } | undefined;
2827
+ notNull?: {
2828
+ type: "added";
2829
+ value: boolean;
2830
+ } | {
2831
+ type: "deleted";
2832
+ value: boolean;
2833
+ } | {
2834
+ type: "changed";
2835
+ old: boolean;
2836
+ new: boolean;
2837
+ } | undefined;
2838
+ autoincrement?: {
2839
+ type: "added";
2840
+ value: boolean;
2841
+ } | {
2842
+ type: "deleted";
2843
+ value: boolean;
2844
+ } | {
2845
+ type: "changed";
2846
+ old: boolean;
2847
+ new: boolean;
2848
+ } | undefined;
2849
+ typeSchema?: {
2850
+ type: "added";
2851
+ value: string;
2852
+ } | {
2853
+ type: "deleted";
2854
+ value: string;
2855
+ } | {
2856
+ type: "changed";
2857
+ old: string;
2858
+ new: string;
2859
+ } | undefined;
2860
+ name: string | {
2861
+ type: "changed";
2862
+ old: string;
2863
+ new: string;
2864
+ };
2865
+ }[];
2866
+ addedIndexes: Record<string, string>;
2867
+ deletedIndexes: Record<string, string>;
2868
+ alteredIndexes: Record<string, {
2869
+ __old: string;
2870
+ __new: string;
2871
+ }>;
2872
+ addedForeignKeys: Record<string, string>;
2873
+ deletedForeignKeys: Record<string, string>;
2874
+ alteredForeignKeys: Record<string, {
2875
+ __old: string;
2876
+ __new: string;
2877
+ }>;
2878
+ addedCompositePKs: Record<string, string>;
2879
+ deletedCompositePKs: Record<string, string>;
2880
+ alteredCompositePKs: Record<string, {
2881
+ __old: string;
2882
+ __new: string;
2883
+ }>;
2884
+ addedUniqueConstraints: Record<string, string>;
2885
+ deletedUniqueConstraints: Record<string, string>;
2886
+ alteredUniqueConstraints: Record<string, {
2887
+ __old: string;
2888
+ __new: string;
2889
+ }>;
2890
+ }[];
2891
+ alteredEnums: never[];
2892
+ }, {
2893
+ alteredTablesWithColumns: {
1419
2894
  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;
2895
+ schema: string;
2896
+ altered: {
2897
+ default?: {
2898
+ value?: any;
2899
+ type: "added";
2900
+ } | {
2901
+ value?: any;
2902
+ type: "deleted";
2903
+ } | {
2904
+ old?: any;
2905
+ new?: any;
2906
+ type: "changed";
2907
+ } | undefined;
2908
+ type?: {
2909
+ type: "changed";
2910
+ old: string;
2911
+ new: string;
2912
+ } | undefined;
2913
+ onUpdate?: {
2914
+ type: "added";
2915
+ value: boolean;
2916
+ } | {
2917
+ type: "deleted";
2918
+ value: boolean;
2919
+ } | {
2920
+ type: "changed";
2921
+ old: boolean;
2922
+ new: boolean;
2923
+ } | undefined;
2924
+ primaryKey?: {
2925
+ type: "added";
2926
+ value: boolean;
2927
+ } | {
2928
+ type: "deleted";
2929
+ value: boolean;
2930
+ } | {
2931
+ type: "changed";
2932
+ old: boolean;
2933
+ new: boolean;
2934
+ } | undefined;
2935
+ notNull?: {
2936
+ type: "added";
2937
+ value: boolean;
2938
+ } | {
2939
+ type: "deleted";
2940
+ value: boolean;
2941
+ } | {
2942
+ type: "changed";
2943
+ old: boolean;
2944
+ new: boolean;
2945
+ } | undefined;
2946
+ autoincrement?: {
2947
+ type: "added";
2948
+ value: boolean;
2949
+ } | {
2950
+ type: "deleted";
2951
+ value: boolean;
2952
+ } | {
2953
+ type: "changed";
2954
+ old: boolean;
2955
+ new: boolean;
2956
+ } | undefined;
2957
+ typeSchema?: {
2958
+ type: "added";
2959
+ value: string;
2960
+ } | {
2961
+ type: "deleted";
2962
+ value: string;
2963
+ } | {
2964
+ type: "changed";
2965
+ old: string;
2966
+ new: string;
2967
+ } | undefined;
2968
+ name: string | {
2969
+ type: "changed";
2970
+ old: string;
2971
+ new: string;
2972
+ };
2973
+ }[];
2974
+ addedIndexes: Record<string, string>;
2975
+ deletedIndexes: Record<string, string>;
2976
+ alteredIndexes: Record<string, {
2977
+ __old: string;
2978
+ __new: string;
1431
2979
  }>;
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;
2980
+ addedForeignKeys: Record<string, string>;
2981
+ deletedForeignKeys: Record<string, string>;
2982
+ alteredForeignKeys: Record<string, {
2983
+ __old: string;
2984
+ __new: string;
1453
2985
  }>;
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;
2986
+ addedCompositePKs: Record<string, string>;
2987
+ deletedCompositePKs: Record<string, string>;
2988
+ alteredCompositePKs: Record<string, {
2989
+ __old: string;
2990
+ __new: string;
2991
+ }>;
2992
+ addedUniqueConstraints: Record<string, string>;
2993
+ deletedUniqueConstraints: Record<string, string>;
2994
+ alteredUniqueConstraints: Record<string, {
2995
+ __old: string;
2996
+ __new: string;
2997
+ }>;
2998
+ }[];
2999
+ alteredEnums: never[];
3000
+ }>;
3001
+ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3002
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
3003
+ name: import("zod").ZodString;
3004
+ schema: import("zod").ZodString;
3005
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
3006
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
3007
+ type: import("zod").ZodEnum<["changed"]>;
3008
+ old: import("zod").ZodString;
3009
+ new: import("zod").ZodString;
1572
3010
  }, "strip", ZodTypeAny, {
1573
3011
  type: "changed";
1574
3012
  old: string;
@@ -1578,10 +3016,10 @@ export declare const diffResultScheme: z.ZodObject<{
1578
3016
  old: string;
1579
3017
  new: string;
1580
3018
  }>]>;
1581
- type: z.ZodOptional<z.ZodObject<{
1582
- type: z.ZodEnum<["changed"]>;
1583
- old: z.ZodString;
1584
- new: z.ZodString;
3019
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
3020
+ type: import("zod").ZodEnum<["changed"]>;
3021
+ old: import("zod").ZodString;
3022
+ new: import("zod").ZodString;
1585
3023
  }, "strip", ZodTypeAny, {
1586
3024
  type: "changed";
1587
3025
  old: string;
@@ -1591,28 +3029,28 @@ export declare const diffResultScheme: z.ZodObject<{
1591
3029
  old: string;
1592
3030
  new: string;
1593
3031
  }>>;
1594
- default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1595
- type: z.ZodLiteral<"added">;
1596
- value: z.ZodAny;
3032
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3033
+ type: import("zod").ZodLiteral<"added">;
3034
+ value: import("zod").ZodAny;
1597
3035
  }, "strip", ZodTypeAny, {
1598
3036
  value?: any;
1599
3037
  type: "added";
1600
3038
  }, {
1601
3039
  value?: any;
1602
3040
  type: "added";
1603
- }>, z.ZodObject<{
1604
- type: z.ZodLiteral<"deleted">;
1605
- value: z.ZodAny;
3041
+ }>, import("zod").ZodObject<{
3042
+ type: import("zod").ZodLiteral<"deleted">;
3043
+ value: import("zod").ZodAny;
1606
3044
  }, "strip", ZodTypeAny, {
1607
3045
  value?: any;
1608
3046
  type: "deleted";
1609
3047
  }, {
1610
3048
  value?: any;
1611
3049
  type: "deleted";
1612
- }>, z.ZodObject<{
1613
- type: z.ZodLiteral<"changed">;
1614
- old: z.ZodAny;
1615
- new: z.ZodAny;
3050
+ }>, import("zod").ZodObject<{
3051
+ type: import("zod").ZodLiteral<"changed">;
3052
+ old: import("zod").ZodAny;
3053
+ new: import("zod").ZodAny;
1616
3054
  }, "strip", ZodTypeAny, {
1617
3055
  old?: any;
1618
3056
  new?: any;
@@ -1622,28 +3060,28 @@ export declare const diffResultScheme: z.ZodObject<{
1622
3060
  new?: any;
1623
3061
  type: "changed";
1624
3062
  }>]>>;
1625
- primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1626
- type: z.ZodLiteral<"added">;
1627
- value: z.ZodBoolean;
3063
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3064
+ type: import("zod").ZodLiteral<"added">;
3065
+ value: import("zod").ZodBoolean;
1628
3066
  }, "strip", ZodTypeAny, {
1629
3067
  type: "added";
1630
3068
  value: boolean;
1631
3069
  }, {
1632
3070
  type: "added";
1633
3071
  value: boolean;
1634
- }>, z.ZodObject<{
1635
- type: z.ZodLiteral<"deleted">;
1636
- value: z.ZodBoolean;
3072
+ }>, import("zod").ZodObject<{
3073
+ type: import("zod").ZodLiteral<"deleted">;
3074
+ value: import("zod").ZodBoolean;
1637
3075
  }, "strip", ZodTypeAny, {
1638
3076
  type: "deleted";
1639
3077
  value: boolean;
1640
3078
  }, {
1641
3079
  type: "deleted";
1642
3080
  value: boolean;
1643
- }>, z.ZodObject<{
1644
- type: z.ZodLiteral<"changed">;
1645
- old: z.ZodBoolean;
1646
- new: z.ZodBoolean;
3081
+ }>, import("zod").ZodObject<{
3082
+ type: import("zod").ZodLiteral<"changed">;
3083
+ old: import("zod").ZodBoolean;
3084
+ new: import("zod").ZodBoolean;
1647
3085
  }, "strip", ZodTypeAny, {
1648
3086
  type: "changed";
1649
3087
  old: boolean;
@@ -1653,28 +3091,28 @@ export declare const diffResultScheme: z.ZodObject<{
1653
3091
  old: boolean;
1654
3092
  new: boolean;
1655
3093
  }>]>>;
1656
- notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1657
- type: z.ZodLiteral<"added">;
1658
- value: z.ZodBoolean;
3094
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3095
+ type: import("zod").ZodLiteral<"added">;
3096
+ value: import("zod").ZodBoolean;
1659
3097
  }, "strip", ZodTypeAny, {
1660
3098
  type: "added";
1661
3099
  value: boolean;
1662
3100
  }, {
1663
3101
  type: "added";
1664
3102
  value: boolean;
1665
- }>, z.ZodObject<{
1666
- type: z.ZodLiteral<"deleted">;
1667
- value: z.ZodBoolean;
3103
+ }>, import("zod").ZodObject<{
3104
+ type: import("zod").ZodLiteral<"deleted">;
3105
+ value: import("zod").ZodBoolean;
1668
3106
  }, "strip", ZodTypeAny, {
1669
3107
  type: "deleted";
1670
3108
  value: boolean;
1671
3109
  }, {
1672
3110
  type: "deleted";
1673
3111
  value: boolean;
1674
- }>, z.ZodObject<{
1675
- type: z.ZodLiteral<"changed">;
1676
- old: z.ZodBoolean;
1677
- new: z.ZodBoolean;
3112
+ }>, import("zod").ZodObject<{
3113
+ type: import("zod").ZodLiteral<"changed">;
3114
+ old: import("zod").ZodBoolean;
3115
+ new: import("zod").ZodBoolean;
1678
3116
  }, "strip", ZodTypeAny, {
1679
3117
  type: "changed";
1680
3118
  old: boolean;
@@ -1684,28 +3122,59 @@ export declare const diffResultScheme: z.ZodObject<{
1684
3122
  old: boolean;
1685
3123
  new: boolean;
1686
3124
  }>]>>;
1687
- onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1688
- type: z.ZodLiteral<"added">;
1689
- value: z.ZodBoolean;
3125
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3126
+ type: import("zod").ZodLiteral<"added">;
3127
+ value: import("zod").ZodString;
3128
+ }, "strip", ZodTypeAny, {
3129
+ type: "added";
3130
+ value: string;
3131
+ }, {
3132
+ type: "added";
3133
+ value: string;
3134
+ }>, import("zod").ZodObject<{
3135
+ type: import("zod").ZodLiteral<"deleted">;
3136
+ value: import("zod").ZodString;
3137
+ }, "strip", ZodTypeAny, {
3138
+ type: "deleted";
3139
+ value: string;
3140
+ }, {
3141
+ type: "deleted";
3142
+ value: string;
3143
+ }>, import("zod").ZodObject<{
3144
+ type: import("zod").ZodLiteral<"changed">;
3145
+ old: import("zod").ZodString;
3146
+ new: import("zod").ZodString;
3147
+ }, "strip", ZodTypeAny, {
3148
+ type: "changed";
3149
+ old: string;
3150
+ new: string;
3151
+ }, {
3152
+ type: "changed";
3153
+ old: string;
3154
+ new: string;
3155
+ }>]>>;
3156
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3157
+ type: import("zod").ZodLiteral<"added">;
3158
+ value: import("zod").ZodBoolean;
1690
3159
  }, "strip", ZodTypeAny, {
1691
3160
  type: "added";
1692
3161
  value: boolean;
1693
3162
  }, {
1694
3163
  type: "added";
1695
3164
  value: boolean;
1696
- }>, z.ZodObject<{
1697
- type: z.ZodLiteral<"deleted">;
1698
- value: z.ZodBoolean;
3165
+ }>, import("zod").ZodObject<{
3166
+ type: import("zod").ZodLiteral<"deleted">;
3167
+ value: import("zod").ZodBoolean;
1699
3168
  }, "strip", ZodTypeAny, {
1700
3169
  type: "deleted";
1701
3170
  value: boolean;
1702
3171
  }, {
1703
3172
  type: "deleted";
1704
3173
  value: boolean;
1705
- }>, z.ZodObject<{
1706
- type: z.ZodLiteral<"changed">;
1707
- old: z.ZodBoolean;
1708
- new: z.ZodBoolean;
3174
+ }>, import("zod").ZodObject<{
3175
+ type: import("zod").ZodLiteral<"changed">;
3176
+ old: import("zod").ZodBoolean;
3177
+ new: import("zod").ZodBoolean;
1709
3178
  }, "strip", ZodTypeAny, {
1710
3179
  type: "changed";
1711
3180
  old: boolean;
@@ -1715,28 +3184,28 @@ export declare const diffResultScheme: z.ZodObject<{
1715
3184
  old: boolean;
1716
3185
  new: boolean;
1717
3186
  }>]>>;
1718
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1719
- type: z.ZodLiteral<"added">;
1720
- value: z.ZodBoolean;
3187
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3188
+ type: import("zod").ZodLiteral<"added">;
3189
+ value: import("zod").ZodBoolean;
1721
3190
  }, "strip", ZodTypeAny, {
1722
3191
  type: "added";
1723
3192
  value: boolean;
1724
3193
  }, {
1725
3194
  type: "added";
1726
3195
  value: boolean;
1727
- }>, z.ZodObject<{
1728
- type: z.ZodLiteral<"deleted">;
1729
- value: z.ZodBoolean;
3196
+ }>, import("zod").ZodObject<{
3197
+ type: import("zod").ZodLiteral<"deleted">;
3198
+ value: import("zod").ZodBoolean;
1730
3199
  }, "strip", ZodTypeAny, {
1731
3200
  type: "deleted";
1732
3201
  value: boolean;
1733
3202
  }, {
1734
3203
  type: "deleted";
1735
3204
  value: boolean;
1736
- }>, z.ZodObject<{
1737
- type: z.ZodLiteral<"changed">;
1738
- old: z.ZodBoolean;
1739
- new: z.ZodBoolean;
3205
+ }>, import("zod").ZodObject<{
3206
+ type: import("zod").ZodLiteral<"changed">;
3207
+ old: import("zod").ZodBoolean;
3208
+ new: import("zod").ZodBoolean;
1740
3209
  }, "strip", ZodTypeAny, {
1741
3210
  type: "changed";
1742
3211
  old: boolean;
@@ -1807,6 +3276,17 @@ export declare const diffResultScheme: z.ZodObject<{
1807
3276
  old: boolean;
1808
3277
  new: boolean;
1809
3278
  } | undefined;
3279
+ typeSchema?: {
3280
+ type: "added";
3281
+ value: string;
3282
+ } | {
3283
+ type: "deleted";
3284
+ value: string;
3285
+ } | {
3286
+ type: "changed";
3287
+ old: string;
3288
+ new: string;
3289
+ } | undefined;
1810
3290
  name: string | {
1811
3291
  type: "changed";
1812
3292
  old: string;
@@ -1873,17 +3353,28 @@ export declare const diffResultScheme: z.ZodObject<{
1873
3353
  old: boolean;
1874
3354
  new: boolean;
1875
3355
  } | undefined;
3356
+ typeSchema?: {
3357
+ type: "added";
3358
+ value: string;
3359
+ } | {
3360
+ type: "deleted";
3361
+ value: string;
3362
+ } | {
3363
+ type: "changed";
3364
+ old: string;
3365
+ new: string;
3366
+ } | undefined;
1876
3367
  name: string | {
1877
3368
  type: "changed";
1878
3369
  old: string;
1879
3370
  new: string;
1880
3371
  };
1881
3372
  }>, "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;
3373
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3374
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3375
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3376
+ __new: import("zod").ZodString;
3377
+ __old: import("zod").ZodString;
1887
3378
  }, "strict", ZodTypeAny, {
1888
3379
  __old: string;
1889
3380
  __new: string;
@@ -1891,11 +3382,11 @@ export declare const diffResultScheme: z.ZodObject<{
1891
3382
  __old: string;
1892
3383
  __new: string;
1893
3384
  }>>;
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;
3385
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3386
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3387
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3388
+ __new: import("zod").ZodString;
3389
+ __old: import("zod").ZodString;
1899
3390
  }, "strict", ZodTypeAny, {
1900
3391
  __old: string;
1901
3392
  __new: string;
@@ -1903,11 +3394,11 @@ export declare const diffResultScheme: z.ZodObject<{
1903
3394
  __old: string;
1904
3395
  __new: string;
1905
3396
  }>>;
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;
3397
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3398
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3399
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3400
+ __new: import("zod").ZodString;
3401
+ __old: import("zod").ZodString;
1911
3402
  }, "strip", ZodTypeAny, {
1912
3403
  __old: string;
1913
3404
  __new: string;
@@ -1915,11 +3406,11 @@ export declare const diffResultScheme: z.ZodObject<{
1915
3406
  __old: string;
1916
3407
  __new: string;
1917
3408
  }>>;
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;
3409
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3410
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3411
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3412
+ __new: import("zod").ZodString;
3413
+ __old: import("zod").ZodString;
1923
3414
  }, "strip", ZodTypeAny, {
1924
3415
  __old: string;
1925
3416
  __new: string;
@@ -1929,44 +3420,7 @@ export declare const diffResultScheme: z.ZodObject<{
1929
3420
  }>>;
1930
3421
  }, "strict", ZodTypeAny, {
1931
3422
  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
- }[];
3423
+ schema: string;
1970
3424
  altered: {
1971
3425
  default?: {
1972
3426
  value?: any;
@@ -2028,6 +3482,17 @@ export declare const diffResultScheme: z.ZodObject<{
2028
3482
  old: boolean;
2029
3483
  new: boolean;
2030
3484
  } | undefined;
3485
+ typeSchema?: {
3486
+ type: "added";
3487
+ value: string;
3488
+ } | {
3489
+ type: "deleted";
3490
+ value: string;
3491
+ } | {
3492
+ type: "changed";
3493
+ old: string;
3494
+ new: string;
3495
+ } | undefined;
2031
3496
  name: string | {
2032
3497
  type: "changed";
2033
3498
  old: string;
@@ -2060,44 +3525,7 @@ export declare const diffResultScheme: z.ZodObject<{
2060
3525
  }>;
2061
3526
  }, {
2062
3527
  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
- }[];
3528
+ schema: string;
2101
3529
  altered: {
2102
3530
  default?: {
2103
3531
  value?: any;
@@ -2159,6 +3587,17 @@ export declare const diffResultScheme: z.ZodObject<{
2159
3587
  old: boolean;
2160
3588
  new: boolean;
2161
3589
  } | undefined;
3590
+ typeSchema?: {
3591
+ type: "added";
3592
+ value: string;
3593
+ } | {
3594
+ type: "deleted";
3595
+ value: string;
3596
+ } | {
3597
+ type: "changed";
3598
+ old: string;
3599
+ new: string;
3600
+ } | undefined;
2162
3601
  name: string | {
2163
3602
  type: "changed";
2164
3603
  old: string;
@@ -2190,122 +3629,11 @@ export declare const diffResultScheme: z.ZodObject<{
2190
3629
  __new: string;
2191
3630
  }>;
2192
3631
  }>, "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">;
2217
- }, "strict", ZodTypeAny, {
2218
- name: string;
2219
- addedValues: string[];
2220
- deletedValues: string[];
2221
- }, {
2222
- name: string;
2223
- addedValues: string[];
2224
- deletedValues: string[];
2225
- }>, "many">;
2226
- addedSchemas: z.ZodArray<z.ZodString, "many">;
2227
- deletedSchemas: z.ZodArray<z.ZodString, "many">;
3632
+ alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "many">;
2228
3633
  }, "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
3634
  alteredTablesWithColumns: {
2270
3635
  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;
2308
- }[];
3636
+ schema: string;
2309
3637
  altered: {
2310
3638
  default?: {
2311
3639
  value?: any;
@@ -2367,6 +3695,17 @@ export declare const diffResultScheme: z.ZodObject<{
2367
3695
  old: boolean;
2368
3696
  new: boolean;
2369
3697
  } | undefined;
3698
+ typeSchema?: {
3699
+ type: "added";
3700
+ value: string;
3701
+ } | {
3702
+ type: "deleted";
3703
+ value: string;
3704
+ } | {
3705
+ type: "changed";
3706
+ old: string;
3707
+ new: string;
3708
+ } | undefined;
2370
3709
  name: string | {
2371
3710
  type: "changed";
2372
3711
  old: string;
@@ -2398,102 +3737,11 @@ export declare const diffResultScheme: z.ZodObject<{
2398
3737
  __new: string;
2399
3738
  }>;
2400
3739
  }[];
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[];
3740
+ alteredEnums: never[];
2416
3741
  }, {
2417
- addedTables: {
2418
- schema?: string | undefined;
2419
- compositePrimaryKeys?: Record<string, string> | undefined;
2420
- uniqueConstraints?: Record<string, string> | undefined;
2421
- 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;
2433
- }>;
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;
2453
- }>;
2454
- indexes: Record<string, string>;
2455
- foreignKeys: Record<string, string>;
2456
- }[];
2457
3742
  alteredTablesWithColumns: {
2458
3743
  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
- }[];
3744
+ schema: string;
2497
3745
  altered: {
2498
3746
  default?: {
2499
3747
  value?: any;
@@ -2555,6 +3803,17 @@ export declare const diffResultScheme: z.ZodObject<{
2555
3803
  old: boolean;
2556
3804
  new: boolean;
2557
3805
  } | undefined;
3806
+ typeSchema?: {
3807
+ type: "added";
3808
+ value: string;
3809
+ } | {
3810
+ type: "deleted";
3811
+ value: string;
3812
+ } | {
3813
+ type: "changed";
3814
+ old: string;
3815
+ new: string;
3816
+ } | undefined;
2558
3817
  name: string | {
2559
3818
  type: "changed";
2560
3819
  old: string;
@@ -2586,21 +3845,7 @@ export declare const diffResultScheme: z.ZodObject<{
2586
3845
  __new: string;
2587
3846
  }>;
2588
3847
  }[];
2589
- addedEnums: {
2590
- name: string;
2591
- values: string[];
2592
- }[];
2593
- deletedEnums: {
2594
- name: string;
2595
- values: string[];
2596
- }[];
2597
- alteredEnums: {
2598
- name: string;
2599
- addedValues: string[];
2600
- deletedValues: string[];
2601
- }[];
2602
- addedSchemas: string[];
2603
- deletedSchemas: string[];
3848
+ alteredEnums: never[];
2604
3849
  }>;
2605
3850
  export type Column = TypeOf<typeof columnSchema>;
2606
3851
  export type AlteredColumn = TypeOf<typeof alteredColumnSchema>;
@@ -2608,16 +3853,33 @@ export type Enum = TypeOf<typeof enumSchema>;
2608
3853
  export type Table = TypeOf<typeof tableScheme>;
2609
3854
  export type AlteredTable = TypeOf<typeof alteredTableScheme>;
2610
3855
  export type DiffResult = TypeOf<typeof diffResultScheme>;
2611
- export interface TablesResolverInput<T extends {
3856
+ export type DiffResultMysql = TypeOf<typeof diffResultSchemeMysql>;
3857
+ export type DiffResultSQLite = TypeOf<typeof diffResultSchemeSQLite>;
3858
+ export interface ResolverInput<T extends {
3859
+ name: string;
3860
+ }> {
3861
+ created: T[];
3862
+ deleted: T[];
3863
+ }
3864
+ export interface ResolverOutput<T extends {
2612
3865
  name: string;
2613
3866
  }> {
2614
3867
  created: T[];
3868
+ renamed: {
3869
+ from: T;
3870
+ to: T;
3871
+ }[];
2615
3872
  deleted: T[];
2616
3873
  }
2617
- export interface TablesResolverOutput<T extends {
3874
+ export interface ResolverOutputWithMoved<T extends {
2618
3875
  name: string;
2619
3876
  }> {
2620
3877
  created: T[];
3878
+ moved: {
3879
+ name: string;
3880
+ schemaFrom: string;
3881
+ schemaTo: string;
3882
+ }[];
2621
3883
  renamed: {
2622
3884
  from: T;
2623
3885
  to: T;
@@ -2644,11 +3906,25 @@ export interface ColumnsResolverOutput<T extends {
2644
3906
  }[];
2645
3907
  deleted: T[];
2646
3908
  }
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<{
3909
+ 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<{
3910
+ statements: JsonStatement[];
3911
+ sqlStatements: string[];
3912
+ _meta: {
3913
+ schemas: {};
3914
+ tables: {};
3915
+ columns: {};
3916
+ } | undefined;
3917
+ }>;
3918
+ 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<{
3919
+ statements: JsonStatement[];
3920
+ sqlStatements: string[];
3921
+ _meta: {
3922
+ schemas: {};
3923
+ tables: {};
3924
+ columns: {};
3925
+ } | undefined;
3926
+ }>;
3927
+ export declare const applySqliteSnapshotsDiff: (json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>) => Promise<{
2652
3928
  statements: JsonStatement[];
2653
3929
  sqlStatements: string[];
2654
3930
  _meta: {