drizzle-kit 0.20.17-4e262b7 → 0.20.17-7776aba

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/bin.cjs +22248 -23435
  2. package/cli/commands/migrate.d.ts +135 -152
  3. package/cli/commands/mysqlIntrospect.d.ts +79 -15
  4. package/cli/commands/mysqlPushUtils.d.ts +8 -4
  5. package/cli/commands/mysqlUp.d.ts +4 -0
  6. package/cli/commands/pgConnect.d.ts +5 -0
  7. package/cli/commands/pgIntrospect.d.ts +76 -12
  8. package/cli/commands/pgPushUtils.d.ts +6 -3
  9. package/cli/commands/pgUp.d.ts +4 -0
  10. package/cli/commands/sqliteIntrospect.d.ts +29 -26
  11. package/cli/commands/sqlitePushUtils.d.ts +10 -4
  12. package/cli/commands/sqliteUtils.d.ts +162 -0
  13. package/cli/commands/upFolders.d.ts +27 -0
  14. package/cli/commands/utils.d.ts +255 -39
  15. package/cli/validations/common.d.ts +7 -208
  16. package/cli/validations/mysql.d.ts +337 -7
  17. package/cli/validations/outputs.d.ts +0 -1
  18. package/cli/validations/pg.d.ts +405 -4
  19. package/cli/views.d.ts +5 -7
  20. package/drivers/index.d.ts +39 -0
  21. package/global.d.ts +1 -3
  22. package/index.d.mts +6 -8
  23. package/index.d.ts +6 -8
  24. package/index.js +0 -1
  25. package/introspect-mysql.d.ts +9 -0
  26. package/introspect-pg.d.ts +12 -0
  27. package/introspect-sqlite.d.ts +2 -2
  28. package/jsonDiffer.d.ts +29 -14
  29. package/jsonStatements.d.ts +11 -38
  30. package/package.json +52 -24
  31. package/payload.d.mts +5 -5
  32. package/payload.d.ts +5 -5
  33. package/payload.js +24222 -26044
  34. package/payload.mjs +19956 -21767
  35. package/schemaValidator.d.ts +286 -289
  36. package/serializer/mysqlImports.d.ts +7 -3
  37. package/serializer/mysqlSchema.d.ts +1323 -2454
  38. package/serializer/mysqlSerializer.d.ts +6 -6
  39. package/serializer/pgImports.d.ts +2 -2
  40. package/serializer/pgSchema.d.ts +1283 -1742
  41. package/serializer/pgSerializer.d.ts +2 -2
  42. package/serializer/sqliteImports.d.ts +4 -2
  43. package/serializer/sqliteSchema.d.ts +979 -553
  44. package/serializer/sqliteSerializer.d.ts +4 -4
  45. package/snapshotsDiffer.d.ts +1209 -2486
  46. package/utils/words.d.ts +1 -1
  47. package/utils-studio.d.mts +1 -0
  48. package/utils-studio.d.ts +1 -0
  49. package/utils-studio.js +849 -7058
  50. package/utils-studio.mjs +829 -7035
  51. package/utils.d.ts +141 -14
  52. package/utils.js +7161 -4625
  53. package/utils.mjs +7121 -4585
  54. package/cli/utils.d.ts +0 -12
  55. package/cli/validations/cli.d.ts +0 -169
  56. package/cli/validations/sqlite.d.ts +0 -34
@@ -1,168 +1,162 @@
1
- import { TypeOf, ZodTypeAny } from "zod";
1
+ import { TypeOf, ZodTypeAny, z } from "zod";
2
2
  import { JsonStatement } from "./jsonStatements";
3
- import { SQLiteSchema, SQLiteSchemaSquashed } from "./serializer/sqliteSchema";
4
- import { MySqlSchema, MySqlSchemaSquashed } from "./serializer/mysqlSchema";
5
- import { PgSchema, PgSchemaSquashed } from "./serializer/pgSchema";
6
- import { Named } from "./cli/commands/migrate";
7
- export declare const makePatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
8
- type: import("zod").ZodLiteral<"added">;
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">;
9
6
  value: T;
10
- }, "strip", ZodTypeAny, { [k in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
11
- type: import("zod").ZodLiteral<"added">;
7
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
8
+ type: "added";
9
+ value: T["_output"];
10
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.objectUtil.addQuestionMarks<{
11
+ type: "added";
12
+ value: T["_output"];
13
+ }>[k_1]; } : never, z.objectUtil.addQuestionMarks<{
14
+ type: "added";
15
+ value: T["_input"];
16
+ }> extends infer T_2 ? { [k_3 in keyof T_2]: z.objectUtil.addQuestionMarks<{
17
+ type: "added";
18
+ value: T["_input"];
19
+ }>[k_3]; } : never>, z.ZodObject<{
20
+ type: z.ZodLiteral<"deleted">;
12
21
  value: T;
13
- }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
14
- type: import("zod").ZodLiteral<"added">;
15
- value: T;
16
- }>, any>[k]; }, { [k_1 in keyof import("zod").baseObjectInputType<{
17
- type: import("zod").ZodLiteral<"added">;
18
- value: T;
19
- }>]: import("zod").baseObjectInputType<{
20
- type: import("zod").ZodLiteral<"added">;
21
- value: T;
22
- }>[k_1]; }>, import("zod").ZodObject<{
23
- type: import("zod").ZodLiteral<"deleted">;
24
- value: T;
25
- }, "strip", ZodTypeAny, { [k_2 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
26
- type: import("zod").ZodLiteral<"deleted">;
27
- value: T;
28
- }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
29
- type: import("zod").ZodLiteral<"deleted">;
30
- value: T;
31
- }>, any>[k_2]; }, { [k_1_1 in keyof import("zod").baseObjectInputType<{
32
- type: import("zod").ZodLiteral<"deleted">;
33
- value: T;
34
- }>]: import("zod").baseObjectInputType<{
35
- type: import("zod").ZodLiteral<"deleted">;
36
- value: T;
37
- }>[k_1_1]; }>, import("zod").ZodObject<{
38
- type: import("zod").ZodLiteral<"changed">;
39
- old: T;
40
- new: T;
41
- }, "strip", ZodTypeAny, { [k_3 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
42
- type: import("zod").ZodLiteral<"changed">;
43
- old: T;
44
- new: T;
45
- }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
46
- type: import("zod").ZodLiteral<"changed">;
47
- old: T;
48
- new: T;
49
- }>, any>[k_3]; }, { [k_1_2 in keyof import("zod").baseObjectInputType<{
50
- type: import("zod").ZodLiteral<"changed">;
51
- old: T;
52
- new: T;
53
- }>]: import("zod").baseObjectInputType<{
54
- type: import("zod").ZodLiteral<"changed">;
22
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
23
+ type: "deleted";
24
+ value: T["_output"];
25
+ }> extends infer T_3 ? { [k_1_1 in keyof T_3]: z.objectUtil.addQuestionMarks<{
26
+ type: "deleted";
27
+ value: T["_output"];
28
+ }>[k_1_1]; } : never, z.objectUtil.addQuestionMarks<{
29
+ type: "deleted";
30
+ value: T["_input"];
31
+ }> extends infer T_4 ? { [k_3_1 in keyof T_4]: z.objectUtil.addQuestionMarks<{
32
+ type: "deleted";
33
+ value: T["_input"];
34
+ }>[k_3_1]; } : never>, z.ZodObject<{
35
+ type: z.ZodLiteral<"changed">;
55
36
  old: T;
56
37
  new: T;
57
- }>[k_1_2]; }>]>;
58
- export declare const makeSelfOrPatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
59
- type: import("zod").ZodLiteral<"none">;
38
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
39
+ type: "changed";
40
+ old: T["_output"];
41
+ new: T["_output"];
42
+ }> extends infer T_5 ? { [k_1_2 in keyof T_5]: z.objectUtil.addQuestionMarks<{
43
+ type: "changed";
44
+ old: T["_output"];
45
+ new: T["_output"];
46
+ }>[k_1_2]; } : never, z.objectUtil.addQuestionMarks<{
47
+ type: "changed";
48
+ old: T["_input"];
49
+ new: T["_input"];
50
+ }> extends infer T_6 ? { [k_3_2 in keyof T_6]: z.objectUtil.addQuestionMarks<{
51
+ type: "changed";
52
+ old: T["_input"];
53
+ 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<{
59
+ type: "none";
60
+ value: T["_output"] | undefined;
61
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.objectUtil.addQuestionMarks<{
62
+ type: "none";
63
+ value: T["_output"] | undefined;
64
+ }>[k_1]; } : never, z.objectUtil.addQuestionMarks<{
65
+ type: "none";
66
+ value: T["_input"] | undefined;
67
+ }> extends infer T_2 ? { [k_3 in keyof T_2]: z.objectUtil.addQuestionMarks<{
68
+ type: "none";
69
+ value: T["_input"] | undefined;
70
+ }>[k_3]; } : never>, z.ZodObject<{
71
+ type: z.ZodLiteral<"added">;
60
72
  value: T;
61
- }, "strip", ZodTypeAny, { [k in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
62
- type: import("zod").ZodLiteral<"none">;
73
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
74
+ type: "added";
75
+ value: T["_output"];
76
+ }> extends infer T_3 ? { [k_1_1 in keyof T_3]: z.objectUtil.addQuestionMarks<{
77
+ type: "added";
78
+ value: T["_output"];
79
+ }>[k_1_1]; } : never, z.objectUtil.addQuestionMarks<{
80
+ type: "added";
81
+ value: T["_input"];
82
+ }> extends infer T_4 ? { [k_3_1 in keyof T_4]: z.objectUtil.addQuestionMarks<{
83
+ type: "added";
84
+ value: T["_input"];
85
+ }>[k_3_1]; } : never>, z.ZodObject<{
86
+ type: z.ZodLiteral<"deleted">;
63
87
  value: T;
64
- }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
65
- type: import("zod").ZodLiteral<"none">;
66
- value: T;
67
- }>, any>[k]; }, { [k_1 in keyof import("zod").baseObjectInputType<{
68
- type: import("zod").ZodLiteral<"none">;
69
- value: T;
70
- }>]: import("zod").baseObjectInputType<{
71
- type: import("zod").ZodLiteral<"none">;
72
- value: T;
73
- }>[k_1]; }>, import("zod").ZodObject<{
74
- type: import("zod").ZodLiteral<"added">;
75
- value: T;
76
- }, "strip", ZodTypeAny, { [k_2 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
77
- type: import("zod").ZodLiteral<"added">;
78
- value: T;
79
- }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
80
- type: import("zod").ZodLiteral<"added">;
81
- value: T;
82
- }>, any>[k_2]; }, { [k_1_1 in keyof import("zod").baseObjectInputType<{
83
- type: import("zod").ZodLiteral<"added">;
84
- value: T;
85
- }>]: import("zod").baseObjectInputType<{
86
- type: import("zod").ZodLiteral<"added">;
87
- value: T;
88
- }>[k_1_1]; }>, import("zod").ZodObject<{
89
- type: import("zod").ZodLiteral<"deleted">;
90
- value: T;
91
- }, "strip", ZodTypeAny, { [k_3 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
92
- type: import("zod").ZodLiteral<"deleted">;
93
- value: T;
94
- }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
95
- type: import("zod").ZodLiteral<"deleted">;
96
- value: T;
97
- }>, any>[k_3]; }, { [k_1_2 in keyof import("zod").baseObjectInputType<{
98
- type: import("zod").ZodLiteral<"deleted">;
99
- value: T;
100
- }>]: import("zod").baseObjectInputType<{
101
- type: import("zod").ZodLiteral<"deleted">;
102
- value: T;
103
- }>[k_1_2]; }>, import("zod").ZodObject<{
104
- type: import("zod").ZodLiteral<"changed">;
105
- old: T;
106
- new: T;
107
- }, "strip", ZodTypeAny, { [k_4 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
108
- type: import("zod").ZodLiteral<"changed">;
109
- old: T;
110
- new: T;
111
- }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
112
- type: import("zod").ZodLiteral<"changed">;
113
- old: T;
114
- new: T;
115
- }>, any>[k_4]; }, { [k_1_3 in keyof import("zod").baseObjectInputType<{
116
- type: import("zod").ZodLiteral<"changed">;
117
- old: T;
118
- new: T;
119
- }>]: import("zod").baseObjectInputType<{
120
- type: import("zod").ZodLiteral<"changed">;
88
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
89
+ type: "deleted";
90
+ value: T["_output"];
91
+ }> extends infer T_5 ? { [k_1_2 in keyof T_5]: z.objectUtil.addQuestionMarks<{
92
+ type: "deleted";
93
+ value: T["_output"];
94
+ }>[k_1_2]; } : never, z.objectUtil.addQuestionMarks<{
95
+ type: "deleted";
96
+ value: T["_input"];
97
+ }> extends infer T_6 ? { [k_3_2 in keyof T_6]: z.objectUtil.addQuestionMarks<{
98
+ type: "deleted";
99
+ value: T["_input"];
100
+ }>[k_3_2]; } : never>, z.ZodObject<{
101
+ type: z.ZodLiteral<"changed">;
121
102
  old: T;
122
103
  new: T;
123
- }>[k_1_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>;
104
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
105
+ type: "changed";
106
+ old: T["_output"];
107
+ new: T["_output"];
108
+ }> extends infer T_7 ? { [k_1_3 in keyof T_7]: z.objectUtil.addQuestionMarks<{
109
+ type: "changed";
110
+ old: T["_output"];
111
+ new: T["_output"];
112
+ }>[k_1_3]; } : never, z.objectUtil.addQuestionMarks<{
113
+ type: "changed";
114
+ old: T["_input"];
115
+ new: T["_input"];
116
+ }> extends infer T_8 ? { [k_3_3 in keyof T_8]: z.objectUtil.addQuestionMarks<{
117
+ type: "changed";
118
+ old: T["_input"];
119
+ 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>;
136
132
  }, "strict", ZodTypeAny, {
137
- name: string;
138
- type: string;
139
133
  isUnique?: any;
140
134
  default?: any;
141
135
  onUpdate?: boolean | undefined;
142
136
  primaryKey?: boolean | undefined;
143
137
  notNull?: boolean | undefined;
144
138
  autoincrement?: boolean | undefined;
145
- typeSchema?: string | undefined;
146
139
  uniqueName?: string | undefined;
147
140
  nullsNotDistinct?: boolean | undefined;
148
- }, {
149
141
  name: string;
150
142
  type: string;
143
+ }, {
151
144
  isUnique?: any;
152
145
  default?: any;
153
146
  onUpdate?: boolean | undefined;
154
147
  primaryKey?: boolean | undefined;
155
148
  notNull?: boolean | undefined;
156
149
  autoincrement?: boolean | undefined;
157
- typeSchema?: string | undefined;
158
150
  uniqueName?: string | undefined;
159
151
  nullsNotDistinct?: boolean | undefined;
152
+ name: string;
153
+ type: string;
160
154
  }>;
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;
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;
166
160
  }, "strip", ZodTypeAny, {
167
161
  type: "changed";
168
162
  old: string;
@@ -172,10 +166,10 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
172
166
  old: string;
173
167
  new: string;
174
168
  }>]>;
175
- type: import("zod").ZodOptional<import("zod").ZodObject<{
176
- type: import("zod").ZodEnum<["changed"]>;
177
- old: import("zod").ZodString;
178
- new: import("zod").ZodString;
169
+ type: z.ZodOptional<z.ZodObject<{
170
+ type: z.ZodEnum<["changed"]>;
171
+ old: z.ZodString;
172
+ new: z.ZodString;
179
173
  }, "strip", ZodTypeAny, {
180
174
  type: "changed";
181
175
  old: string;
@@ -185,59 +179,59 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
185
179
  old: string;
186
180
  new: string;
187
181
  }>>;
188
- default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
189
- type: import("zod").ZodLiteral<"added">;
190
- value: import("zod").ZodAny;
182
+ default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
183
+ type: z.ZodLiteral<"added">;
184
+ value: z.ZodAny;
191
185
  }, "strip", ZodTypeAny, {
192
- type: "added";
193
186
  value?: any;
194
- }, {
195
187
  type: "added";
188
+ }, {
196
189
  value?: any;
197
- }>, import("zod").ZodObject<{
198
- type: import("zod").ZodLiteral<"deleted">;
199
- value: import("zod").ZodAny;
190
+ type: "added";
191
+ }>, z.ZodObject<{
192
+ type: z.ZodLiteral<"deleted">;
193
+ value: z.ZodAny;
200
194
  }, "strip", ZodTypeAny, {
201
- type: "deleted";
202
195
  value?: any;
203
- }, {
204
196
  type: "deleted";
197
+ }, {
205
198
  value?: any;
206
- }>, import("zod").ZodObject<{
207
- type: import("zod").ZodLiteral<"changed">;
208
- old: import("zod").ZodAny;
209
- new: import("zod").ZodAny;
199
+ type: "deleted";
200
+ }>, z.ZodObject<{
201
+ type: z.ZodLiteral<"changed">;
202
+ old: z.ZodAny;
203
+ new: z.ZodAny;
210
204
  }, "strip", ZodTypeAny, {
211
- type: "changed";
212
205
  old?: any;
213
206
  new?: any;
214
- }, {
215
207
  type: "changed";
208
+ }, {
216
209
  old?: any;
217
210
  new?: any;
211
+ type: "changed";
218
212
  }>]>>;
219
- primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
220
- type: import("zod").ZodLiteral<"added">;
221
- value: import("zod").ZodBoolean;
213
+ primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
214
+ type: z.ZodLiteral<"added">;
215
+ value: z.ZodBoolean;
222
216
  }, "strip", ZodTypeAny, {
223
217
  type: "added";
224
218
  value: boolean;
225
219
  }, {
226
220
  type: "added";
227
221
  value: boolean;
228
- }>, import("zod").ZodObject<{
229
- type: import("zod").ZodLiteral<"deleted">;
230
- value: import("zod").ZodBoolean;
222
+ }>, z.ZodObject<{
223
+ type: z.ZodLiteral<"deleted">;
224
+ value: z.ZodBoolean;
231
225
  }, "strip", ZodTypeAny, {
232
226
  type: "deleted";
233
227
  value: boolean;
234
228
  }, {
235
229
  type: "deleted";
236
230
  value: boolean;
237
- }>, import("zod").ZodObject<{
238
- type: import("zod").ZodLiteral<"changed">;
239
- old: import("zod").ZodBoolean;
240
- new: import("zod").ZodBoolean;
231
+ }>, z.ZodObject<{
232
+ type: z.ZodLiteral<"changed">;
233
+ old: z.ZodBoolean;
234
+ new: z.ZodBoolean;
241
235
  }, "strip", ZodTypeAny, {
242
236
  type: "changed";
243
237
  old: boolean;
@@ -247,28 +241,28 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
247
241
  old: boolean;
248
242
  new: boolean;
249
243
  }>]>>;
250
- notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
251
- type: import("zod").ZodLiteral<"added">;
252
- value: import("zod").ZodBoolean;
244
+ notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
245
+ type: z.ZodLiteral<"added">;
246
+ value: z.ZodBoolean;
253
247
  }, "strip", ZodTypeAny, {
254
248
  type: "added";
255
249
  value: boolean;
256
250
  }, {
257
251
  type: "added";
258
252
  value: boolean;
259
- }>, import("zod").ZodObject<{
260
- type: import("zod").ZodLiteral<"deleted">;
261
- value: import("zod").ZodBoolean;
253
+ }>, z.ZodObject<{
254
+ type: z.ZodLiteral<"deleted">;
255
+ value: z.ZodBoolean;
262
256
  }, "strip", ZodTypeAny, {
263
257
  type: "deleted";
264
258
  value: boolean;
265
259
  }, {
266
260
  type: "deleted";
267
261
  value: boolean;
268
- }>, import("zod").ZodObject<{
269
- type: import("zod").ZodLiteral<"changed">;
270
- old: import("zod").ZodBoolean;
271
- new: import("zod").ZodBoolean;
262
+ }>, z.ZodObject<{
263
+ type: z.ZodLiteral<"changed">;
264
+ old: z.ZodBoolean;
265
+ new: z.ZodBoolean;
272
266
  }, "strip", ZodTypeAny, {
273
267
  type: "changed";
274
268
  old: boolean;
@@ -278,59 +272,28 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
278
272
  old: boolean;
279
273
  new: boolean;
280
274
  }>]>>;
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;
275
+ onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
276
+ type: z.ZodLiteral<"added">;
277
+ value: z.ZodBoolean;
315
278
  }, "strip", ZodTypeAny, {
316
279
  type: "added";
317
280
  value: boolean;
318
281
  }, {
319
282
  type: "added";
320
283
  value: boolean;
321
- }>, import("zod").ZodObject<{
322
- type: import("zod").ZodLiteral<"deleted">;
323
- value: import("zod").ZodBoolean;
284
+ }>, z.ZodObject<{
285
+ type: z.ZodLiteral<"deleted">;
286
+ value: z.ZodBoolean;
324
287
  }, "strip", ZodTypeAny, {
325
288
  type: "deleted";
326
289
  value: boolean;
327
290
  }, {
328
291
  type: "deleted";
329
292
  value: boolean;
330
- }>, import("zod").ZodObject<{
331
- type: import("zod").ZodLiteral<"changed">;
332
- old: import("zod").ZodBoolean;
333
- new: import("zod").ZodBoolean;
293
+ }>, z.ZodObject<{
294
+ type: z.ZodLiteral<"changed">;
295
+ old: z.ZodBoolean;
296
+ new: z.ZodBoolean;
334
297
  }, "strip", ZodTypeAny, {
335
298
  type: "changed";
336
299
  old: boolean;
@@ -340,28 +303,28 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
340
303
  old: boolean;
341
304
  new: boolean;
342
305
  }>]>>;
343
- autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
344
- type: import("zod").ZodLiteral<"added">;
345
- value: import("zod").ZodBoolean;
306
+ autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
307
+ type: z.ZodLiteral<"added">;
308
+ value: z.ZodBoolean;
346
309
  }, "strip", ZodTypeAny, {
347
310
  type: "added";
348
311
  value: boolean;
349
312
  }, {
350
313
  type: "added";
351
314
  value: boolean;
352
- }>, import("zod").ZodObject<{
353
- type: import("zod").ZodLiteral<"deleted">;
354
- value: import("zod").ZodBoolean;
315
+ }>, z.ZodObject<{
316
+ type: z.ZodLiteral<"deleted">;
317
+ value: z.ZodBoolean;
355
318
  }, "strip", ZodTypeAny, {
356
319
  type: "deleted";
357
320
  value: boolean;
358
321
  }, {
359
322
  type: "deleted";
360
323
  value: boolean;
361
- }>, import("zod").ZodObject<{
362
- type: import("zod").ZodLiteral<"changed">;
363
- old: import("zod").ZodBoolean;
364
- new: import("zod").ZodBoolean;
324
+ }>, z.ZodObject<{
325
+ type: z.ZodLiteral<"changed">;
326
+ old: z.ZodBoolean;
327
+ new: z.ZodBoolean;
365
328
  }, "strip", ZodTypeAny, {
366
329
  type: "changed";
367
330
  old: boolean;
@@ -372,21 +335,16 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
372
335
  new: boolean;
373
336
  }>]>>;
374
337
  }, "strict", ZodTypeAny, {
375
- name: string | {
376
- type: "changed";
377
- old: string;
378
- new: string;
379
- };
380
338
  default?: {
381
- type: "added";
382
339
  value?: any;
340
+ type: "added";
383
341
  } | {
384
- type: "deleted";
385
342
  value?: any;
343
+ type: "deleted";
386
344
  } | {
387
- type: "changed";
388
345
  old?: any;
389
346
  new?: any;
347
+ type: "changed";
390
348
  } | undefined;
391
349
  type?: {
392
350
  type: "changed";
@@ -437,33 +395,22 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
437
395
  old: boolean;
438
396
  new: boolean;
439
397
  } | undefined;
440
- typeSchema?: {
441
- type: "added";
442
- value: string;
443
- } | {
444
- type: "deleted";
445
- value: string;
446
- } | {
447
- type: "changed";
448
- old: string;
449
- new: string;
450
- } | undefined;
451
- }, {
452
398
  name: string | {
453
399
  type: "changed";
454
400
  old: string;
455
401
  new: string;
456
402
  };
403
+ }, {
457
404
  default?: {
458
- type: "added";
459
405
  value?: any;
406
+ type: "added";
460
407
  } | {
461
- type: "deleted";
462
408
  value?: any;
409
+ type: "deleted";
463
410
  } | {
464
- type: "changed";
465
411
  old?: any;
466
412
  new?: any;
413
+ type: "changed";
467
414
  } | undefined;
468
415
  type?: {
469
416
  type: "changed";
@@ -514,89 +461,76 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
514
461
  old: boolean;
515
462
  new: boolean;
516
463
  } | undefined;
517
- typeSchema?: {
518
- type: "added";
519
- value: string;
520
- } | {
521
- type: "deleted";
522
- value: string;
523
- } | {
464
+ name: string | {
524
465
  type: "changed";
525
466
  old: string;
526
467
  new: string;
527
- } | undefined;
468
+ };
528
469
  }>;
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">;
470
+ declare const enumSchema: z.ZodObject<{
471
+ name: z.ZodString;
472
+ values: z.ZodArray<z.ZodString, "many">;
533
473
  }, "strict", ZodTypeAny, {
534
474
  name: string;
535
475
  values: string[];
536
- schema: string;
537
476
  }, {
538
477
  name: string;
539
478
  values: string[];
540
- schema: string;
541
479
  }>;
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>;
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>;
557
494
  }, "strict", ZodTypeAny, {
558
- name: string;
559
- type: string;
560
495
  isUnique?: any;
561
496
  default?: any;
562
497
  onUpdate?: boolean | undefined;
563
498
  primaryKey?: boolean | undefined;
564
499
  notNull?: boolean | undefined;
565
500
  autoincrement?: boolean | undefined;
566
- typeSchema?: string | undefined;
567
501
  uniqueName?: string | undefined;
568
502
  nullsNotDistinct?: boolean | undefined;
569
- }, {
570
503
  name: string;
571
504
  type: string;
505
+ }, {
572
506
  isUnique?: any;
573
507
  default?: any;
574
508
  onUpdate?: boolean | undefined;
575
509
  primaryKey?: boolean | undefined;
576
510
  notNull?: boolean | undefined;
577
511
  autoincrement?: boolean | undefined;
578
- typeSchema?: string | undefined;
579
512
  uniqueName?: string | undefined;
580
513
  nullsNotDistinct?: boolean | undefined;
514
+ name: string;
515
+ type: string;
581
516
  }>>;
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>>;
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>>;
586
521
  }, "strict", ZodTypeAny, {
587
522
  name: string;
588
523
  columns: Record<string, {
589
- name: string;
590
- type: string;
591
524
  isUnique?: any;
592
525
  default?: any;
593
526
  onUpdate?: boolean | undefined;
594
527
  primaryKey?: boolean | undefined;
595
528
  notNull?: boolean | undefined;
596
529
  autoincrement?: boolean | undefined;
597
- typeSchema?: string | undefined;
598
530
  uniqueName?: string | undefined;
599
531
  nullsNotDistinct?: boolean | undefined;
532
+ name: string;
533
+ type: string;
600
534
  }>;
601
535
  indexes: Record<string, string>;
602
536
  foreignKeys: Record<string, string>;
@@ -604,34 +538,140 @@ declare const tableScheme: import("zod").ZodObject<{
604
538
  compositePrimaryKeys: Record<string, string>;
605
539
  uniqueConstraints: Record<string, string>;
606
540
  }, {
541
+ schema?: string | undefined;
542
+ compositePrimaryKeys?: Record<string, string> | undefined;
543
+ uniqueConstraints?: Record<string, string> | undefined;
607
544
  name: string;
608
545
  columns: Record<string, {
609
- name: string;
610
- type: string;
611
546
  isUnique?: any;
612
547
  default?: any;
613
548
  onUpdate?: boolean | undefined;
614
549
  primaryKey?: boolean | undefined;
615
550
  notNull?: boolean | undefined;
616
551
  autoincrement?: boolean | undefined;
617
- typeSchema?: string | undefined;
618
552
  uniqueName?: string | undefined;
619
553
  nullsNotDistinct?: boolean | undefined;
554
+ name: string;
555
+ type: string;
620
556
  }>;
621
557
  indexes: Record<string, string>;
622
558
  foreignKeys: Record<string, string>;
623
- schema?: string | undefined;
624
- compositePrimaryKeys?: Record<string, string> | undefined;
625
- uniqueConstraints?: Record<string, string> | undefined;
626
559
  }>;
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;
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;
635
675
  }, "strip", ZodTypeAny, {
636
676
  type: "changed";
637
677
  old: string;
@@ -641,10 +681,10 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
641
681
  old: string;
642
682
  new: string;
643
683
  }>]>;
644
- type: import("zod").ZodOptional<import("zod").ZodObject<{
645
- type: import("zod").ZodEnum<["changed"]>;
646
- old: import("zod").ZodString;
647
- new: import("zod").ZodString;
684
+ type: z.ZodOptional<z.ZodObject<{
685
+ type: z.ZodEnum<["changed"]>;
686
+ old: z.ZodString;
687
+ new: z.ZodString;
648
688
  }, "strip", ZodTypeAny, {
649
689
  type: "changed";
650
690
  old: string;
@@ -654,59 +694,59 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
654
694
  old: string;
655
695
  new: string;
656
696
  }>>;
657
- default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
658
- type: import("zod").ZodLiteral<"added">;
659
- value: import("zod").ZodAny;
697
+ default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
698
+ type: z.ZodLiteral<"added">;
699
+ value: z.ZodAny;
660
700
  }, "strip", ZodTypeAny, {
661
- type: "added";
662
701
  value?: any;
663
- }, {
664
702
  type: "added";
703
+ }, {
665
704
  value?: any;
666
- }>, import("zod").ZodObject<{
667
- type: import("zod").ZodLiteral<"deleted">;
668
- value: import("zod").ZodAny;
705
+ type: "added";
706
+ }>, z.ZodObject<{
707
+ type: z.ZodLiteral<"deleted">;
708
+ value: z.ZodAny;
669
709
  }, "strip", ZodTypeAny, {
670
- type: "deleted";
671
710
  value?: any;
672
- }, {
673
711
  type: "deleted";
712
+ }, {
674
713
  value?: any;
675
- }>, import("zod").ZodObject<{
676
- type: import("zod").ZodLiteral<"changed">;
677
- old: import("zod").ZodAny;
678
- new: import("zod").ZodAny;
714
+ type: "deleted";
715
+ }>, z.ZodObject<{
716
+ type: z.ZodLiteral<"changed">;
717
+ old: z.ZodAny;
718
+ new: z.ZodAny;
679
719
  }, "strip", ZodTypeAny, {
680
- type: "changed";
681
720
  old?: any;
682
721
  new?: any;
683
- }, {
684
722
  type: "changed";
723
+ }, {
685
724
  old?: any;
686
725
  new?: any;
726
+ type: "changed";
687
727
  }>]>>;
688
- primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
689
- type: import("zod").ZodLiteral<"added">;
690
- value: import("zod").ZodBoolean;
728
+ primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
+ type: z.ZodLiteral<"added">;
730
+ value: z.ZodBoolean;
691
731
  }, "strip", ZodTypeAny, {
692
732
  type: "added";
693
733
  value: boolean;
694
734
  }, {
695
735
  type: "added";
696
736
  value: boolean;
697
- }>, import("zod").ZodObject<{
698
- type: import("zod").ZodLiteral<"deleted">;
699
- value: import("zod").ZodBoolean;
737
+ }>, z.ZodObject<{
738
+ type: z.ZodLiteral<"deleted">;
739
+ value: z.ZodBoolean;
700
740
  }, "strip", ZodTypeAny, {
701
741
  type: "deleted";
702
742
  value: boolean;
703
743
  }, {
704
744
  type: "deleted";
705
745
  value: boolean;
706
- }>, import("zod").ZodObject<{
707
- type: import("zod").ZodLiteral<"changed">;
708
- old: import("zod").ZodBoolean;
709
- new: import("zod").ZodBoolean;
746
+ }>, z.ZodObject<{
747
+ type: z.ZodLiteral<"changed">;
748
+ old: z.ZodBoolean;
749
+ new: z.ZodBoolean;
710
750
  }, "strip", ZodTypeAny, {
711
751
  type: "changed";
712
752
  old: boolean;
@@ -716,28 +756,28 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
716
756
  old: boolean;
717
757
  new: boolean;
718
758
  }>]>>;
719
- notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
720
- type: import("zod").ZodLiteral<"added">;
721
- value: import("zod").ZodBoolean;
759
+ notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
760
+ type: z.ZodLiteral<"added">;
761
+ value: z.ZodBoolean;
722
762
  }, "strip", ZodTypeAny, {
723
763
  type: "added";
724
764
  value: boolean;
725
765
  }, {
726
766
  type: "added";
727
767
  value: boolean;
728
- }>, import("zod").ZodObject<{
729
- type: import("zod").ZodLiteral<"deleted">;
730
- value: import("zod").ZodBoolean;
768
+ }>, z.ZodObject<{
769
+ type: z.ZodLiteral<"deleted">;
770
+ value: z.ZodBoolean;
731
771
  }, "strip", ZodTypeAny, {
732
772
  type: "deleted";
733
773
  value: boolean;
734
774
  }, {
735
775
  type: "deleted";
736
776
  value: boolean;
737
- }>, import("zod").ZodObject<{
738
- type: import("zod").ZodLiteral<"changed">;
739
- old: import("zod").ZodBoolean;
740
- new: import("zod").ZodBoolean;
777
+ }>, z.ZodObject<{
778
+ type: z.ZodLiteral<"changed">;
779
+ old: z.ZodBoolean;
780
+ new: z.ZodBoolean;
741
781
  }, "strip", ZodTypeAny, {
742
782
  type: "changed";
743
783
  old: boolean;
@@ -747,59 +787,28 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
747
787
  old: boolean;
748
788
  new: boolean;
749
789
  }>]>>;
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;
790
+ onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
791
+ type: z.ZodLiteral<"added">;
792
+ value: z.ZodBoolean;
784
793
  }, "strip", ZodTypeAny, {
785
794
  type: "added";
786
795
  value: boolean;
787
796
  }, {
788
797
  type: "added";
789
798
  value: boolean;
790
- }>, import("zod").ZodObject<{
791
- type: import("zod").ZodLiteral<"deleted">;
792
- value: import("zod").ZodBoolean;
799
+ }>, z.ZodObject<{
800
+ type: z.ZodLiteral<"deleted">;
801
+ value: z.ZodBoolean;
793
802
  }, "strip", ZodTypeAny, {
794
803
  type: "deleted";
795
804
  value: boolean;
796
805
  }, {
797
806
  type: "deleted";
798
807
  value: boolean;
799
- }>, import("zod").ZodObject<{
800
- type: import("zod").ZodLiteral<"changed">;
801
- old: import("zod").ZodBoolean;
802
- new: import("zod").ZodBoolean;
808
+ }>, z.ZodObject<{
809
+ type: z.ZodLiteral<"changed">;
810
+ old: z.ZodBoolean;
811
+ new: z.ZodBoolean;
803
812
  }, "strip", ZodTypeAny, {
804
813
  type: "changed";
805
814
  old: boolean;
@@ -809,28 +818,28 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
809
818
  old: boolean;
810
819
  new: boolean;
811
820
  }>]>>;
812
- autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
813
- type: import("zod").ZodLiteral<"added">;
814
- value: import("zod").ZodBoolean;
821
+ autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
822
+ type: z.ZodLiteral<"added">;
823
+ value: z.ZodBoolean;
815
824
  }, "strip", ZodTypeAny, {
816
825
  type: "added";
817
826
  value: boolean;
818
827
  }, {
819
828
  type: "added";
820
829
  value: boolean;
821
- }>, import("zod").ZodObject<{
822
- type: import("zod").ZodLiteral<"deleted">;
823
- value: import("zod").ZodBoolean;
830
+ }>, z.ZodObject<{
831
+ type: z.ZodLiteral<"deleted">;
832
+ value: z.ZodBoolean;
824
833
  }, "strip", ZodTypeAny, {
825
834
  type: "deleted";
826
835
  value: boolean;
827
836
  }, {
828
837
  type: "deleted";
829
838
  value: boolean;
830
- }>, import("zod").ZodObject<{
831
- type: import("zod").ZodLiteral<"changed">;
832
- old: import("zod").ZodBoolean;
833
- new: import("zod").ZodBoolean;
839
+ }>, z.ZodObject<{
840
+ type: z.ZodLiteral<"changed">;
841
+ old: z.ZodBoolean;
842
+ new: z.ZodBoolean;
834
843
  }, "strip", ZodTypeAny, {
835
844
  type: "changed";
836
845
  old: boolean;
@@ -841,21 +850,16 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
841
850
  new: boolean;
842
851
  }>]>>;
843
852
  }, "strict", ZodTypeAny, {
844
- name: string | {
845
- type: "changed";
846
- old: string;
847
- new: string;
848
- };
849
853
  default?: {
850
- type: "added";
851
854
  value?: any;
855
+ type: "added";
852
856
  } | {
853
- type: "deleted";
854
857
  value?: any;
858
+ type: "deleted";
855
859
  } | {
856
- type: "changed";
857
860
  old?: any;
858
861
  new?: any;
862
+ type: "changed";
859
863
  } | undefined;
860
864
  type?: {
861
865
  type: "changed";
@@ -906,33 +910,22 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
906
910
  old: boolean;
907
911
  new: boolean;
908
912
  } | undefined;
909
- typeSchema?: {
910
- type: "added";
911
- value: string;
912
- } | {
913
- type: "deleted";
914
- value: string;
915
- } | {
916
- type: "changed";
917
- old: string;
918
- new: string;
919
- } | undefined;
920
- }, {
921
- name: string | {
913
+ name: string | {
922
914
  type: "changed";
923
915
  old: string;
924
916
  new: string;
925
917
  };
918
+ }, {
926
919
  default?: {
927
- type: "added";
928
920
  value?: any;
921
+ type: "added";
929
922
  } | {
930
- type: "deleted";
931
923
  value?: any;
924
+ type: "deleted";
932
925
  } | {
933
- type: "changed";
934
926
  old?: any;
935
927
  new?: any;
928
+ type: "changed";
936
929
  } | undefined;
937
930
  type?: {
938
931
  type: "changed";
@@ -983,23 +976,17 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
983
976
  old: boolean;
984
977
  new: boolean;
985
978
  } | undefined;
986
- typeSchema?: {
987
- type: "added";
988
- value: string;
989
- } | {
990
- type: "deleted";
991
- value: string;
992
- } | {
979
+ name: string | {
993
980
  type: "changed";
994
981
  old: string;
995
982
  new: string;
996
- } | undefined;
983
+ };
997
984
  }>, "many">;
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;
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;
1003
990
  }, "strict", ZodTypeAny, {
1004
991
  __old: string;
1005
992
  __new: string;
@@ -1007,11 +994,11 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
1007
994
  __old: string;
1008
995
  __new: string;
1009
996
  }>>;
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;
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;
1015
1002
  }, "strict", ZodTypeAny, {
1016
1003
  __old: string;
1017
1004
  __new: string;
@@ -1019,11 +1006,11 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
1019
1006
  __old: string;
1020
1007
  __new: string;
1021
1008
  }>>;
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;
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;
1027
1014
  }, "strip", ZodTypeAny, {
1028
1015
  __old: string;
1029
1016
  __new: string;
@@ -1031,11 +1018,11 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
1031
1018
  __old: string;
1032
1019
  __new: string;
1033
1020
  }>>;
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;
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;
1039
1026
  }, "strip", ZodTypeAny, {
1040
1027
  __old: string;
1041
1028
  __new: string;
@@ -1045,23 +1032,55 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
1045
1032
  }>>;
1046
1033
  }, "strict", ZodTypeAny, {
1047
1034
  name: string;
1048
- schema: 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
+ }[];
1049
1073
  altered: {
1050
- name: string | {
1051
- type: "changed";
1052
- old: string;
1053
- new: string;
1054
- };
1055
1074
  default?: {
1056
- type: "added";
1057
1075
  value?: any;
1076
+ type: "added";
1058
1077
  } | {
1059
- type: "deleted";
1060
1078
  value?: any;
1079
+ type: "deleted";
1061
1080
  } | {
1062
- type: "changed";
1063
1081
  old?: any;
1064
1082
  new?: any;
1083
+ type: "changed";
1065
1084
  } | undefined;
1066
1085
  type?: {
1067
1086
  type: "changed";
@@ -1112,17 +1131,11 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
1112
1131
  old: boolean;
1113
1132
  new: boolean;
1114
1133
  } | undefined;
1115
- typeSchema?: {
1116
- type: "added";
1117
- value: string;
1118
- } | {
1119
- type: "deleted";
1120
- value: string;
1121
- } | {
1134
+ name: string | {
1122
1135
  type: "changed";
1123
1136
  old: string;
1124
1137
  new: string;
1125
- } | undefined;
1138
+ };
1126
1139
  }[];
1127
1140
  addedIndexes: Record<string, string>;
1128
1141
  deletedIndexes: Record<string, string>;
@@ -1150,23 +1163,55 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
1150
1163
  }>;
1151
1164
  }, {
1152
1165
  name: string;
1153
- schema: 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
+ }[];
1154
1204
  altered: {
1155
- name: string | {
1156
- type: "changed";
1157
- old: string;
1158
- new: string;
1159
- };
1160
1205
  default?: {
1161
- type: "added";
1162
1206
  value?: any;
1207
+ type: "added";
1163
1208
  } | {
1164
- type: "deleted";
1165
1209
  value?: any;
1210
+ type: "deleted";
1166
1211
  } | {
1167
- type: "changed";
1168
1212
  old?: any;
1169
1213
  new?: any;
1214
+ type: "changed";
1170
1215
  } | undefined;
1171
1216
  type?: {
1172
1217
  type: "changed";
@@ -1217,17 +1262,11 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
1217
1262
  old: boolean;
1218
1263
  new: boolean;
1219
1264
  } | undefined;
1220
- typeSchema?: {
1221
- type: "added";
1222
- value: string;
1223
- } | {
1224
- type: "deleted";
1225
- value: string;
1226
- } | {
1265
+ name: string | {
1227
1266
  type: "changed";
1228
1267
  old: string;
1229
1268
  new: string;
1230
- } | undefined;
1269
+ };
1231
1270
  }[];
1232
1271
  addedIndexes: Record<string, string>;
1233
1272
  deletedIndexes: Record<string, string>;
@@ -1254,15 +1293,282 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
1254
1293
  __new: string;
1255
1294
  }>;
1256
1295
  }>;
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;
1296
+ export declare const diffResultScheme: z.ZodObject<{
1297
+ addedTables: z.ZodArray<z.ZodObject<{
1298
+ name: z.ZodString;
1299
+ schema: z.ZodDefault<z.ZodString>;
1300
+ columns: z.ZodRecord<z.ZodString, z.ZodObject<{
1301
+ name: z.ZodString;
1302
+ type: z.ZodString;
1303
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
1304
+ default: z.ZodOptional<z.ZodAny>;
1305
+ notNull: z.ZodOptional<z.ZodBoolean>;
1306
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
1307
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
1308
+ isUnique: z.ZodOptional<z.ZodAny>;
1309
+ uniqueName: z.ZodOptional<z.ZodString>;
1310
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1311
+ }, "strict", ZodTypeAny, {
1312
+ isUnique?: any;
1313
+ default?: any;
1314
+ onUpdate?: boolean | undefined;
1315
+ primaryKey?: boolean | undefined;
1316
+ notNull?: boolean | undefined;
1317
+ autoincrement?: boolean | undefined;
1318
+ uniqueName?: string | undefined;
1319
+ nullsNotDistinct?: boolean | undefined;
1320
+ name: string;
1321
+ type: string;
1322
+ }, {
1323
+ isUnique?: any;
1324
+ default?: any;
1325
+ onUpdate?: boolean | undefined;
1326
+ primaryKey?: boolean | undefined;
1327
+ notNull?: boolean | undefined;
1328
+ autoincrement?: boolean | undefined;
1329
+ uniqueName?: string | undefined;
1330
+ nullsNotDistinct?: boolean | undefined;
1331
+ name: string;
1332
+ type: string;
1333
+ }>>;
1334
+ indexes: z.ZodRecord<z.ZodString, z.ZodString>;
1335
+ foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1336
+ compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1337
+ uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1338
+ }, "strict", ZodTypeAny, {
1339
+ name: string;
1340
+ columns: Record<string, {
1341
+ isUnique?: any;
1342
+ default?: any;
1343
+ onUpdate?: boolean | undefined;
1344
+ primaryKey?: boolean | undefined;
1345
+ notNull?: boolean | undefined;
1346
+ autoincrement?: boolean | undefined;
1347
+ uniqueName?: string | undefined;
1348
+ nullsNotDistinct?: boolean | undefined;
1349
+ name: string;
1350
+ type: string;
1351
+ }>;
1352
+ indexes: Record<string, string>;
1353
+ foreignKeys: Record<string, string>;
1354
+ schema: string;
1355
+ compositePrimaryKeys: Record<string, string>;
1356
+ uniqueConstraints: Record<string, string>;
1357
+ }, {
1358
+ schema?: string | undefined;
1359
+ compositePrimaryKeys?: Record<string, string> | undefined;
1360
+ uniqueConstraints?: Record<string, string> | undefined;
1361
+ name: string;
1362
+ columns: Record<string, {
1363
+ isUnique?: any;
1364
+ default?: any;
1365
+ onUpdate?: boolean | undefined;
1366
+ primaryKey?: boolean | undefined;
1367
+ notNull?: boolean | undefined;
1368
+ autoincrement?: boolean | undefined;
1369
+ uniqueName?: string | undefined;
1370
+ nullsNotDistinct?: boolean | undefined;
1371
+ name: string;
1372
+ type: string;
1373
+ }>;
1374
+ indexes: Record<string, string>;
1375
+ foreignKeys: Record<string, string>;
1376
+ }>, "many">;
1377
+ deletedTables: z.ZodArray<z.ZodObject<{
1378
+ name: z.ZodString;
1379
+ schema: z.ZodDefault<z.ZodString>;
1380
+ columns: z.ZodRecord<z.ZodString, z.ZodObject<{
1381
+ name: z.ZodString;
1382
+ type: z.ZodString;
1383
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
1384
+ default: z.ZodOptional<z.ZodAny>;
1385
+ notNull: z.ZodOptional<z.ZodBoolean>;
1386
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
1387
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
1388
+ isUnique: z.ZodOptional<z.ZodAny>;
1389
+ uniqueName: z.ZodOptional<z.ZodString>;
1390
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1391
+ }, "strict", ZodTypeAny, {
1392
+ isUnique?: any;
1393
+ default?: any;
1394
+ onUpdate?: boolean | undefined;
1395
+ primaryKey?: boolean | undefined;
1396
+ notNull?: boolean | undefined;
1397
+ autoincrement?: boolean | undefined;
1398
+ uniqueName?: string | undefined;
1399
+ nullsNotDistinct?: boolean | undefined;
1400
+ name: string;
1401
+ type: string;
1402
+ }, {
1403
+ isUnique?: any;
1404
+ default?: any;
1405
+ onUpdate?: boolean | undefined;
1406
+ primaryKey?: boolean | undefined;
1407
+ notNull?: boolean | undefined;
1408
+ autoincrement?: boolean | undefined;
1409
+ uniqueName?: string | undefined;
1410
+ nullsNotDistinct?: boolean | undefined;
1411
+ name: string;
1412
+ type: string;
1413
+ }>>;
1414
+ indexes: z.ZodRecord<z.ZodString, z.ZodString>;
1415
+ foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1416
+ compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1417
+ uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1418
+ }, "strict", ZodTypeAny, {
1419
+ name: string;
1420
+ columns: Record<string, {
1421
+ isUnique?: any;
1422
+ default?: any;
1423
+ onUpdate?: boolean | undefined;
1424
+ primaryKey?: boolean | undefined;
1425
+ notNull?: boolean | undefined;
1426
+ autoincrement?: boolean | undefined;
1427
+ uniqueName?: string | undefined;
1428
+ nullsNotDistinct?: boolean | undefined;
1429
+ name: string;
1430
+ type: string;
1431
+ }>;
1432
+ indexes: Record<string, string>;
1433
+ foreignKeys: Record<string, string>;
1434
+ schema: string;
1435
+ compositePrimaryKeys: Record<string, string>;
1436
+ uniqueConstraints: Record<string, string>;
1437
+ }, {
1438
+ schema?: string | undefined;
1439
+ compositePrimaryKeys?: Record<string, string> | undefined;
1440
+ uniqueConstraints?: Record<string, string> | undefined;
1441
+ name: string;
1442
+ columns: Record<string, {
1443
+ isUnique?: any;
1444
+ default?: any;
1445
+ onUpdate?: boolean | undefined;
1446
+ primaryKey?: boolean | undefined;
1447
+ notNull?: boolean | undefined;
1448
+ autoincrement?: boolean | undefined;
1449
+ uniqueName?: string | undefined;
1450
+ nullsNotDistinct?: boolean | undefined;
1451
+ name: string;
1452
+ type: string;
1453
+ }>;
1454
+ indexes: Record<string, string>;
1455
+ foreignKeys: Record<string, string>;
1456
+ }>, "many">;
1457
+ alteredTablesWithColumns: z.ZodArray<z.ZodObject<{
1458
+ name: z.ZodString;
1459
+ schema: z.ZodUnion<[z.ZodObject<{
1460
+ type: z.ZodLiteral<"none">;
1461
+ value: z.ZodOptional<z.ZodString>;
1462
+ }, "strip", ZodTypeAny, {
1463
+ value?: string | undefined;
1464
+ type: "none";
1465
+ }, {
1466
+ value?: string | undefined;
1467
+ type: "none";
1468
+ }>, z.ZodObject<{
1469
+ type: z.ZodLiteral<"added">;
1470
+ value: z.ZodString;
1471
+ }, "strip", ZodTypeAny, {
1472
+ type: "added";
1473
+ value: string;
1474
+ }, {
1475
+ type: "added";
1476
+ value: string;
1477
+ }>, z.ZodObject<{
1478
+ type: z.ZodLiteral<"deleted">;
1479
+ value: z.ZodString;
1480
+ }, "strip", ZodTypeAny, {
1481
+ type: "deleted";
1482
+ value: string;
1483
+ }, {
1484
+ type: "deleted";
1485
+ value: string;
1486
+ }>, z.ZodObject<{
1487
+ type: z.ZodLiteral<"changed">;
1488
+ old: z.ZodString;
1489
+ new: z.ZodString;
1490
+ }, "strip", ZodTypeAny, {
1491
+ type: "changed";
1492
+ old: string;
1493
+ new: string;
1494
+ }, {
1495
+ type: "changed";
1496
+ old: string;
1497
+ new: string;
1498
+ }>]>;
1499
+ deleted: z.ZodArray<z.ZodObject<{
1500
+ name: z.ZodString;
1501
+ type: z.ZodString;
1502
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
1503
+ default: z.ZodOptional<z.ZodAny>;
1504
+ notNull: z.ZodOptional<z.ZodBoolean>;
1505
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
1506
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
1507
+ isUnique: z.ZodOptional<z.ZodAny>;
1508
+ uniqueName: z.ZodOptional<z.ZodString>;
1509
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1510
+ }, "strict", ZodTypeAny, {
1511
+ isUnique?: any;
1512
+ default?: any;
1513
+ onUpdate?: boolean | undefined;
1514
+ primaryKey?: boolean | undefined;
1515
+ notNull?: boolean | undefined;
1516
+ autoincrement?: boolean | undefined;
1517
+ uniqueName?: string | undefined;
1518
+ nullsNotDistinct?: boolean | undefined;
1519
+ name: string;
1520
+ type: string;
1521
+ }, {
1522
+ isUnique?: any;
1523
+ default?: any;
1524
+ onUpdate?: boolean | undefined;
1525
+ primaryKey?: boolean | undefined;
1526
+ notNull?: boolean | undefined;
1527
+ autoincrement?: boolean | undefined;
1528
+ uniqueName?: string | undefined;
1529
+ nullsNotDistinct?: boolean | undefined;
1530
+ name: string;
1531
+ type: string;
1532
+ }>, "many">;
1533
+ added: z.ZodArray<z.ZodObject<{
1534
+ name: z.ZodString;
1535
+ type: z.ZodString;
1536
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
1537
+ default: z.ZodOptional<z.ZodAny>;
1538
+ notNull: z.ZodOptional<z.ZodBoolean>;
1539
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
1540
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
1541
+ isUnique: z.ZodOptional<z.ZodAny>;
1542
+ uniqueName: z.ZodOptional<z.ZodString>;
1543
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1544
+ }, "strict", ZodTypeAny, {
1545
+ isUnique?: any;
1546
+ default?: any;
1547
+ onUpdate?: boolean | undefined;
1548
+ primaryKey?: boolean | undefined;
1549
+ notNull?: boolean | undefined;
1550
+ autoincrement?: boolean | undefined;
1551
+ uniqueName?: string | undefined;
1552
+ nullsNotDistinct?: boolean | undefined;
1553
+ name: string;
1554
+ type: string;
1555
+ }, {
1556
+ isUnique?: any;
1557
+ default?: any;
1558
+ onUpdate?: boolean | undefined;
1559
+ primaryKey?: boolean | undefined;
1560
+ notNull?: boolean | undefined;
1561
+ autoincrement?: boolean | undefined;
1562
+ uniqueName?: string | undefined;
1563
+ nullsNotDistinct?: boolean | undefined;
1564
+ name: string;
1565
+ type: string;
1566
+ }>, "many">;
1567
+ altered: z.ZodArray<z.ZodObject<{
1568
+ name: z.ZodUnion<[z.ZodString, z.ZodObject<{
1569
+ type: z.ZodEnum<["changed"]>;
1570
+ old: z.ZodString;
1571
+ new: z.ZodString;
1266
1572
  }, "strip", ZodTypeAny, {
1267
1573
  type: "changed";
1268
1574
  old: string;
@@ -1272,10 +1578,10 @@ export declare const diffResultScheme: import("zod").ZodObject<{
1272
1578
  old: string;
1273
1579
  new: string;
1274
1580
  }>]>;
1275
- type: import("zod").ZodOptional<import("zod").ZodObject<{
1276
- type: import("zod").ZodEnum<["changed"]>;
1277
- old: import("zod").ZodString;
1278
- new: import("zod").ZodString;
1581
+ type: z.ZodOptional<z.ZodObject<{
1582
+ type: z.ZodEnum<["changed"]>;
1583
+ old: z.ZodString;
1584
+ new: z.ZodString;
1279
1585
  }, "strip", ZodTypeAny, {
1280
1586
  type: "changed";
1281
1587
  old: string;
@@ -1285,1803 +1591,59 @@ export declare const diffResultScheme: import("zod").ZodObject<{
1285
1591
  old: string;
1286
1592
  new: string;
1287
1593
  }>>;
1288
- default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1289
- type: import("zod").ZodLiteral<"added">;
1290
- value: import("zod").ZodAny;
1594
+ default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1595
+ type: z.ZodLiteral<"added">;
1596
+ value: z.ZodAny;
1291
1597
  }, "strip", ZodTypeAny, {
1292
- type: "added";
1293
1598
  value?: any;
1294
- }, {
1295
1599
  type: "added";
1296
- value?: any;
1297
- }>, import("zod").ZodObject<{
1298
- type: import("zod").ZodLiteral<"deleted">;
1299
- value: import("zod").ZodAny;
1300
- }, "strip", ZodTypeAny, {
1301
- type: "deleted";
1302
- value?: any;
1303
1600
  }, {
1304
- type: "deleted";
1305
1601
  value?: any;
1306
- }>, import("zod").ZodObject<{
1307
- type: import("zod").ZodLiteral<"changed">;
1308
- old: import("zod").ZodAny;
1309
- new: import("zod").ZodAny;
1310
- }, "strip", ZodTypeAny, {
1311
- type: "changed";
1312
- old?: any;
1313
- new?: any;
1314
- }, {
1315
- type: "changed";
1316
- old?: any;
1317
- new?: any;
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
1602
  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;
1603
+ }>, z.ZodObject<{
1604
+ type: z.ZodLiteral<"deleted">;
1605
+ value: z.ZodAny;
1393
1606
  }, "strip", ZodTypeAny, {
1607
+ value?: any;
1394
1608
  type: "deleted";
1395
- value: string;
1396
1609
  }, {
1610
+ value?: any;
1397
1611
  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;
1612
+ }>, z.ZodObject<{
1613
+ type: z.ZodLiteral<"changed">;
1614
+ old: z.ZodAny;
1615
+ new: z.ZodAny;
1403
1616
  }, "strip", ZodTypeAny, {
1617
+ old?: any;
1618
+ new?: any;
1404
1619
  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
1620
  }, {
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
- name: string | {
1476
- type: "changed";
1477
- old: string;
1478
- new: string;
1479
- };
1480
- default?: {
1481
- type: "added";
1482
- value?: any;
1483
- } | {
1484
- type: "deleted";
1485
- value?: any;
1486
- } | {
1487
- type: "changed";
1488
- old?: any;
1489
- new?: any;
1490
- } | undefined;
1491
- type?: {
1492
- type: "changed";
1493
- old: string;
1494
- new: string;
1495
- } | undefined;
1496
- onUpdate?: {
1497
- type: "added";
1498
- value: boolean;
1499
- } | {
1500
- type: "deleted";
1501
- value: boolean;
1502
- } | {
1503
- type: "changed";
1504
- old: boolean;
1505
- new: boolean;
1506
- } | undefined;
1507
- primaryKey?: {
1508
- type: "added";
1509
- value: boolean;
1510
- } | {
1511
- type: "deleted";
1512
- value: boolean;
1513
- } | {
1514
- type: "changed";
1515
- old: boolean;
1516
- new: boolean;
1517
- } | undefined;
1518
- notNull?: {
1519
- type: "added";
1520
- value: boolean;
1521
- } | {
1522
- type: "deleted";
1523
- value: boolean;
1524
- } | {
1525
- type: "changed";
1526
- old: boolean;
1527
- new: boolean;
1528
- } | undefined;
1529
- autoincrement?: {
1530
- type: "added";
1531
- value: boolean;
1532
- } | {
1533
- type: "deleted";
1534
- value: boolean;
1535
- } | {
1536
- type: "changed";
1537
- old: boolean;
1538
- new: boolean;
1539
- } | undefined;
1540
- typeSchema?: {
1541
- type: "added";
1542
- value: string;
1543
- } | {
1544
- type: "deleted";
1545
- value: string;
1546
- } | {
1547
- type: "changed";
1548
- old: string;
1549
- new: string;
1550
- } | undefined;
1551
- }, {
1552
- name: string | {
1553
- type: "changed";
1554
- old: string;
1555
- new: string;
1556
- };
1557
- default?: {
1558
- type: "added";
1559
- value?: any;
1560
- } | {
1561
- type: "deleted";
1562
- value?: any;
1563
- } | {
1564
- type: "changed";
1565
- old?: any;
1566
- new?: any;
1567
- } | undefined;
1568
- type?: {
1569
- type: "changed";
1570
- old: string;
1571
- new: string;
1572
- } | undefined;
1573
- onUpdate?: {
1574
- type: "added";
1575
- value: boolean;
1576
- } | {
1577
- type: "deleted";
1578
- value: boolean;
1579
- } | {
1580
- type: "changed";
1581
- old: boolean;
1582
- new: boolean;
1583
- } | undefined;
1584
- primaryKey?: {
1585
- type: "added";
1586
- value: boolean;
1587
- } | {
1588
- type: "deleted";
1589
- value: boolean;
1590
- } | {
1591
- type: "changed";
1592
- old: boolean;
1593
- new: boolean;
1594
- } | undefined;
1595
- notNull?: {
1596
- type: "added";
1597
- value: boolean;
1598
- } | {
1599
- type: "deleted";
1600
- value: boolean;
1601
- } | {
1602
- type: "changed";
1603
- old: boolean;
1604
- new: boolean;
1605
- } | undefined;
1606
- autoincrement?: {
1607
- type: "added";
1608
- value: boolean;
1609
- } | {
1610
- type: "deleted";
1611
- value: boolean;
1612
- } | {
1613
- type: "changed";
1614
- old: boolean;
1615
- new: boolean;
1616
- } | undefined;
1617
- typeSchema?: {
1618
- type: "added";
1619
- value: string;
1620
- } | {
1621
- type: "deleted";
1622
- value: string;
1623
- } | {
1624
- type: "changed";
1625
- old: string;
1626
- new: string;
1627
- } | undefined;
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
- name: string | {
1682
- type: "changed";
1683
- old: string;
1684
- new: string;
1685
- };
1686
- default?: {
1687
- type: "added";
1688
- value?: any;
1689
- } | {
1690
- type: "deleted";
1691
- value?: any;
1692
- } | {
1693
- type: "changed";
1694
- old?: any;
1695
- new?: any;
1696
- } | undefined;
1697
- type?: {
1698
- type: "changed";
1699
- old: string;
1700
- new: string;
1701
- } | undefined;
1702
- onUpdate?: {
1703
- type: "added";
1704
- value: boolean;
1705
- } | {
1706
- type: "deleted";
1707
- value: boolean;
1708
- } | {
1709
- type: "changed";
1710
- old: boolean;
1711
- new: boolean;
1712
- } | undefined;
1713
- primaryKey?: {
1714
- type: "added";
1715
- value: boolean;
1716
- } | {
1717
- type: "deleted";
1718
- value: boolean;
1719
- } | {
1720
- type: "changed";
1721
- old: boolean;
1722
- new: boolean;
1723
- } | undefined;
1724
- notNull?: {
1725
- type: "added";
1726
- value: boolean;
1727
- } | {
1728
- type: "deleted";
1729
- value: boolean;
1730
- } | {
1731
- type: "changed";
1732
- old: boolean;
1733
- new: boolean;
1734
- } | undefined;
1735
- autoincrement?: {
1736
- type: "added";
1737
- value: boolean;
1738
- } | {
1739
- type: "deleted";
1740
- value: boolean;
1741
- } | {
1742
- type: "changed";
1743
- old: boolean;
1744
- new: boolean;
1745
- } | undefined;
1746
- typeSchema?: {
1747
- type: "added";
1748
- value: string;
1749
- } | {
1750
- type: "deleted";
1751
- value: string;
1752
- } | {
1753
- type: "changed";
1754
- old: string;
1755
- new: string;
1756
- } | undefined;
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
- name: string | {
1787
- type: "changed";
1788
- old: string;
1789
- new: string;
1790
- };
1791
- default?: {
1792
- type: "added";
1793
- value?: any;
1794
- } | {
1795
- type: "deleted";
1796
- value?: any;
1797
- } | {
1798
- type: "changed";
1799
- old?: any;
1800
- new?: any;
1801
- } | undefined;
1802
- type?: {
1803
- type: "changed";
1804
- old: string;
1805
- new: string;
1806
- } | undefined;
1807
- onUpdate?: {
1808
- type: "added";
1809
- value: boolean;
1810
- } | {
1811
- type: "deleted";
1812
- value: boolean;
1813
- } | {
1814
- type: "changed";
1815
- old: boolean;
1816
- new: boolean;
1817
- } | undefined;
1818
- primaryKey?: {
1819
- type: "added";
1820
- value: boolean;
1821
- } | {
1822
- type: "deleted";
1823
- value: boolean;
1824
- } | {
1825
- type: "changed";
1826
- old: boolean;
1827
- new: boolean;
1828
- } | undefined;
1829
- notNull?: {
1830
- type: "added";
1831
- value: boolean;
1832
- } | {
1833
- type: "deleted";
1834
- value: boolean;
1835
- } | {
1836
- type: "changed";
1837
- old: boolean;
1838
- new: boolean;
1839
- } | undefined;
1840
- autoincrement?: {
1841
- type: "added";
1842
- value: boolean;
1843
- } | {
1844
- type: "deleted";
1845
- value: boolean;
1846
- } | {
1847
- type: "changed";
1848
- old: boolean;
1849
- new: boolean;
1850
- } | undefined;
1851
- typeSchema?: {
1852
- type: "added";
1853
- value: string;
1854
- } | {
1855
- type: "deleted";
1856
- value: string;
1857
- } | {
1858
- type: "changed";
1859
- old: string;
1860
- new: string;
1861
- } | undefined;
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
- name: string | {
1925
- type: "changed";
1926
- old: string;
1927
- new: string;
1928
- };
1929
- default?: {
1930
- type: "added";
1931
- value?: any;
1932
- } | {
1933
- type: "deleted";
1934
- value?: any;
1935
- } | {
1936
- type: "changed";
1937
- old?: any;
1938
- new?: any;
1939
- } | undefined;
1940
- type?: {
1941
- type: "changed";
1942
- old: string;
1943
- new: string;
1944
- } | undefined;
1945
- onUpdate?: {
1946
- type: "added";
1947
- value: boolean;
1948
- } | {
1949
- type: "deleted";
1950
- value: boolean;
1951
- } | {
1952
- type: "changed";
1953
- old: boolean;
1954
- new: boolean;
1955
- } | undefined;
1956
- primaryKey?: {
1957
- type: "added";
1958
- value: boolean;
1959
- } | {
1960
- type: "deleted";
1961
- value: boolean;
1962
- } | {
1963
- type: "changed";
1964
- old: boolean;
1965
- new: boolean;
1966
- } | undefined;
1967
- notNull?: {
1968
- type: "added";
1969
- value: boolean;
1970
- } | {
1971
- type: "deleted";
1972
- value: boolean;
1973
- } | {
1974
- type: "changed";
1975
- old: boolean;
1976
- new: boolean;
1977
- } | undefined;
1978
- autoincrement?: {
1979
- type: "added";
1980
- value: boolean;
1981
- } | {
1982
- type: "deleted";
1983
- value: boolean;
1984
- } | {
1985
- type: "changed";
1986
- old: boolean;
1987
- new: boolean;
1988
- } | undefined;
1989
- typeSchema?: {
1990
- type: "added";
1991
- value: string;
1992
- } | {
1993
- type: "deleted";
1994
- value: string;
1995
- } | {
1996
- type: "changed";
1997
- old: string;
1998
- new: string;
1999
- } | undefined;
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
- name: string | {
2041
- type: "changed";
2042
- old: string;
2043
- new: string;
2044
- };
2045
- default?: {
2046
- type: "added";
2047
- value?: any;
2048
- } | {
2049
- type: "deleted";
2050
- value?: any;
2051
- } | {
2052
- type: "changed";
2053
- old?: any;
2054
- new?: any;
2055
- } | undefined;
2056
- type?: {
2057
- type: "changed";
2058
- old: string;
2059
- new: string;
2060
- } | undefined;
2061
- onUpdate?: {
2062
- type: "added";
2063
- value: boolean;
2064
- } | {
2065
- type: "deleted";
2066
- value: boolean;
2067
- } | {
2068
- type: "changed";
2069
- old: boolean;
2070
- new: boolean;
2071
- } | undefined;
2072
- primaryKey?: {
2073
- type: "added";
2074
- value: boolean;
2075
- } | {
2076
- type: "deleted";
2077
- value: boolean;
2078
- } | {
2079
- type: "changed";
2080
- old: boolean;
2081
- new: boolean;
2082
- } | undefined;
2083
- notNull?: {
2084
- type: "added";
2085
- value: boolean;
2086
- } | {
2087
- type: "deleted";
2088
- value: boolean;
2089
- } | {
2090
- type: "changed";
2091
- old: boolean;
2092
- new: boolean;
2093
- } | undefined;
2094
- autoincrement?: {
2095
- type: "added";
2096
- value: boolean;
2097
- } | {
2098
- type: "deleted";
2099
- value: boolean;
2100
- } | {
2101
- type: "changed";
2102
- old: boolean;
2103
- new: boolean;
2104
- } | undefined;
2105
- typeSchema?: {
2106
- type: "added";
2107
- value: string;
2108
- } | {
2109
- type: "deleted";
2110
- value: string;
2111
- } | {
2112
- type: "changed";
2113
- old: string;
2114
- new: string;
2115
- } | undefined;
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
- type: "added";
2188
- value?: any;
2189
- }, {
2190
- type: "added";
2191
- value?: any;
2192
- }>, import("zod").ZodObject<{
2193
- type: import("zod").ZodLiteral<"deleted">;
2194
- value: import("zod").ZodAny;
2195
- }, "strip", ZodTypeAny, {
2196
- type: "deleted";
2197
- value?: any;
2198
- }, {
2199
- type: "deleted";
2200
- value?: any;
2201
- }>, import("zod").ZodObject<{
2202
- type: import("zod").ZodLiteral<"changed">;
2203
- old: import("zod").ZodAny;
2204
- new: import("zod").ZodAny;
2205
- }, "strip", ZodTypeAny, {
2206
- type: "changed";
2207
- old?: any;
2208
- new?: any;
2209
- }, {
2210
- type: "changed";
2211
- old?: any;
2212
- new?: any;
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
- name: string | {
2371
- type: "changed";
2372
- old: string;
2373
- new: string;
2374
- };
2375
- default?: {
2376
- type: "added";
2377
- value?: any;
2378
- } | {
2379
- type: "deleted";
2380
- value?: any;
2381
- } | {
2382
- type: "changed";
2383
- old?: any;
2384
- new?: any;
2385
- } | undefined;
2386
- type?: {
2387
- type: "changed";
2388
- old: string;
2389
- new: string;
2390
- } | undefined;
2391
- onUpdate?: {
2392
- type: "added";
2393
- value: boolean;
2394
- } | {
2395
- type: "deleted";
2396
- value: boolean;
2397
- } | {
2398
- type: "changed";
2399
- old: boolean;
2400
- new: boolean;
2401
- } | undefined;
2402
- primaryKey?: {
2403
- type: "added";
2404
- value: boolean;
2405
- } | {
2406
- type: "deleted";
2407
- value: boolean;
2408
- } | {
2409
- type: "changed";
2410
- old: boolean;
2411
- new: boolean;
2412
- } | undefined;
2413
- notNull?: {
2414
- type: "added";
2415
- value: boolean;
2416
- } | {
2417
- type: "deleted";
2418
- value: boolean;
2419
- } | {
2420
- type: "changed";
2421
- old: boolean;
2422
- new: boolean;
2423
- } | undefined;
2424
- autoincrement?: {
2425
- type: "added";
2426
- value: boolean;
2427
- } | {
2428
- type: "deleted";
2429
- value: boolean;
2430
- } | {
2431
- type: "changed";
2432
- old: boolean;
2433
- new: boolean;
2434
- } | undefined;
2435
- typeSchema?: {
2436
- type: "added";
2437
- value: string;
2438
- } | {
2439
- type: "deleted";
2440
- value: string;
2441
- } | {
2442
- type: "changed";
2443
- old: string;
2444
- new: string;
2445
- } | undefined;
2446
- }, {
2447
- name: string | {
2448
- type: "changed";
2449
- old: string;
2450
- new: string;
2451
- };
2452
- default?: {
2453
- type: "added";
2454
- value?: any;
2455
- } | {
2456
- type: "deleted";
2457
- value?: any;
2458
- } | {
2459
- type: "changed";
2460
- old?: any;
2461
- new?: any;
2462
- } | undefined;
2463
- type?: {
2464
- type: "changed";
2465
- old: string;
2466
- new: string;
2467
- } | undefined;
2468
- onUpdate?: {
2469
- type: "added";
2470
- value: boolean;
2471
- } | {
2472
- type: "deleted";
2473
- value: boolean;
2474
- } | {
2475
- type: "changed";
2476
- old: boolean;
2477
- new: boolean;
2478
- } | undefined;
2479
- primaryKey?: {
2480
- type: "added";
2481
- value: boolean;
2482
- } | {
2483
- type: "deleted";
2484
- value: boolean;
2485
- } | {
2486
- type: "changed";
2487
- old: boolean;
2488
- new: boolean;
2489
- } | undefined;
2490
- notNull?: {
2491
- type: "added";
2492
- value: boolean;
2493
- } | {
2494
- type: "deleted";
2495
- value: boolean;
2496
- } | {
2497
- type: "changed";
2498
- old: boolean;
2499
- new: boolean;
2500
- } | undefined;
2501
- autoincrement?: {
2502
- type: "added";
2503
- value: boolean;
2504
- } | {
2505
- type: "deleted";
2506
- value: boolean;
2507
- } | {
2508
- type: "changed";
2509
- old: boolean;
2510
- new: boolean;
2511
- } | undefined;
2512
- typeSchema?: {
2513
- type: "added";
2514
- value: string;
2515
- } | {
2516
- type: "deleted";
2517
- value: string;
2518
- } | {
2519
- type: "changed";
2520
- old: string;
2521
- new: string;
2522
- } | undefined;
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
- name: string | {
2577
- type: "changed";
2578
- old: string;
2579
- new: string;
2580
- };
2581
- default?: {
2582
- type: "added";
2583
- value?: any;
2584
- } | {
2585
- type: "deleted";
2586
- value?: any;
2587
- } | {
2588
- type: "changed";
2589
- old?: any;
2590
- new?: any;
2591
- } | undefined;
2592
- type?: {
2593
- type: "changed";
2594
- old: string;
2595
- new: string;
2596
- } | undefined;
2597
- onUpdate?: {
2598
- type: "added";
2599
- value: boolean;
2600
- } | {
2601
- type: "deleted";
2602
- value: boolean;
2603
- } | {
2604
- type: "changed";
2605
- old: boolean;
2606
- new: boolean;
2607
- } | undefined;
2608
- primaryKey?: {
2609
- type: "added";
2610
- value: boolean;
2611
- } | {
2612
- type: "deleted";
2613
- value: boolean;
2614
- } | {
2615
- type: "changed";
2616
- old: boolean;
2617
- new: boolean;
2618
- } | undefined;
2619
- notNull?: {
2620
- type: "added";
2621
- value: boolean;
2622
- } | {
2623
- type: "deleted";
2624
- value: boolean;
2625
- } | {
2626
- type: "changed";
2627
- old: boolean;
2628
- new: boolean;
2629
- } | undefined;
2630
- autoincrement?: {
2631
- type: "added";
2632
- value: boolean;
2633
- } | {
2634
- type: "deleted";
2635
- value: boolean;
2636
- } | {
2637
- type: "changed";
2638
- old: boolean;
2639
- new: boolean;
2640
- } | undefined;
2641
- typeSchema?: {
2642
- type: "added";
2643
- value: string;
2644
- } | {
2645
- type: "deleted";
2646
- value: string;
2647
- } | {
2648
- type: "changed";
2649
- old: string;
2650
- new: string;
2651
- } | undefined;
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
- name: string | {
2682
- type: "changed";
2683
- old: string;
2684
- new: string;
2685
- };
2686
- default?: {
2687
- type: "added";
2688
- value?: any;
2689
- } | {
2690
- type: "deleted";
2691
- value?: any;
2692
- } | {
2693
- type: "changed";
2694
- old?: any;
2695
- new?: any;
2696
- } | undefined;
2697
- type?: {
2698
- type: "changed";
2699
- old: string;
2700
- new: string;
2701
- } | undefined;
2702
- onUpdate?: {
2703
- type: "added";
2704
- value: boolean;
2705
- } | {
2706
- type: "deleted";
2707
- value: boolean;
2708
- } | {
2709
- type: "changed";
2710
- old: boolean;
2711
- new: boolean;
2712
- } | undefined;
2713
- primaryKey?: {
2714
- type: "added";
2715
- value: boolean;
2716
- } | {
2717
- type: "deleted";
2718
- value: boolean;
2719
- } | {
2720
- type: "changed";
2721
- old: boolean;
2722
- new: boolean;
2723
- } | undefined;
2724
- notNull?: {
2725
- type: "added";
2726
- value: boolean;
2727
- } | {
2728
- type: "deleted";
2729
- value: boolean;
2730
- } | {
2731
- type: "changed";
2732
- old: boolean;
2733
- new: boolean;
2734
- } | undefined;
2735
- autoincrement?: {
2736
- type: "added";
2737
- value: boolean;
2738
- } | {
2739
- type: "deleted";
2740
- value: boolean;
2741
- } | {
2742
- type: "changed";
2743
- old: boolean;
2744
- new: boolean;
2745
- } | undefined;
2746
- typeSchema?: {
2747
- type: "added";
2748
- value: string;
2749
- } | {
2750
- type: "deleted";
2751
- value: string;
2752
- } | {
2753
- type: "changed";
2754
- old: string;
2755
- new: string;
2756
- } | undefined;
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
- }>;
2782
- }>, "many">;
2783
- alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "many">;
2784
- }, "strict", ZodTypeAny, {
2785
- alteredTablesWithColumns: {
2786
- name: string;
2787
- schema: string;
2788
- altered: {
2789
- name: string | {
2790
- type: "changed";
2791
- old: string;
2792
- new: string;
2793
- };
2794
- default?: {
2795
- type: "added";
2796
- value?: any;
2797
- } | {
2798
- type: "deleted";
2799
- value?: any;
2800
- } | {
2801
- type: "changed";
2802
- old?: any;
2803
- new?: any;
2804
- } | undefined;
2805
- type?: {
2806
- type: "changed";
2807
- old: string;
2808
- new: string;
2809
- } | undefined;
2810
- onUpdate?: {
2811
- type: "added";
2812
- value: boolean;
2813
- } | {
2814
- type: "deleted";
2815
- value: boolean;
2816
- } | {
2817
- type: "changed";
2818
- old: boolean;
2819
- new: boolean;
2820
- } | undefined;
2821
- primaryKey?: {
2822
- type: "added";
2823
- value: boolean;
2824
- } | {
2825
- type: "deleted";
2826
- value: boolean;
2827
- } | {
2828
- type: "changed";
2829
- old: boolean;
2830
- new: boolean;
2831
- } | undefined;
2832
- notNull?: {
2833
- type: "added";
2834
- value: boolean;
2835
- } | {
2836
- type: "deleted";
2837
- value: boolean;
2838
- } | {
2839
- type: "changed";
2840
- old: boolean;
2841
- new: boolean;
2842
- } | undefined;
2843
- autoincrement?: {
2844
- type: "added";
2845
- value: boolean;
2846
- } | {
2847
- type: "deleted";
2848
- value: boolean;
2849
- } | {
2850
- type: "changed";
2851
- old: boolean;
2852
- new: boolean;
2853
- } | undefined;
2854
- typeSchema?: {
2855
- type: "added";
2856
- value: string;
2857
- } | {
2858
- type: "deleted";
2859
- value: string;
2860
- } | {
2861
- type: "changed";
2862
- old: string;
2863
- new: string;
2864
- } | undefined;
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: {
2894
- name: string;
2895
- schema: string;
2896
- altered: {
2897
- name: string | {
2898
- type: "changed";
2899
- old: string;
2900
- new: string;
2901
- };
2902
- default?: {
2903
- type: "added";
2904
- value?: any;
2905
- } | {
2906
- type: "deleted";
2907
- value?: any;
2908
- } | {
2909
- type: "changed";
2910
- old?: any;
2911
- new?: any;
2912
- } | undefined;
2913
- type?: {
2914
- type: "changed";
2915
- old: string;
2916
- new: string;
2917
- } | undefined;
2918
- onUpdate?: {
2919
- type: "added";
2920
- value: boolean;
2921
- } | {
2922
- type: "deleted";
2923
- value: boolean;
2924
- } | {
2925
- type: "changed";
2926
- old: boolean;
2927
- new: boolean;
2928
- } | undefined;
2929
- primaryKey?: {
2930
- type: "added";
2931
- value: boolean;
2932
- } | {
2933
- type: "deleted";
2934
- value: boolean;
2935
- } | {
2936
- type: "changed";
2937
- old: boolean;
2938
- new: boolean;
2939
- } | undefined;
2940
- notNull?: {
2941
- type: "added";
2942
- value: boolean;
2943
- } | {
2944
- type: "deleted";
2945
- value: boolean;
2946
- } | {
2947
- type: "changed";
2948
- old: boolean;
2949
- new: boolean;
2950
- } | undefined;
2951
- autoincrement?: {
2952
- type: "added";
2953
- value: boolean;
2954
- } | {
2955
- type: "deleted";
2956
- value: boolean;
2957
- } | {
2958
- type: "changed";
2959
- old: boolean;
2960
- new: boolean;
2961
- } | undefined;
2962
- typeSchema?: {
2963
- type: "added";
2964
- value: string;
2965
- } | {
2966
- type: "deleted";
2967
- value: string;
2968
- } | {
2969
- type: "changed";
2970
- old: string;
2971
- new: string;
2972
- } | undefined;
2973
- }[];
2974
- addedIndexes: Record<string, string>;
2975
- deletedIndexes: Record<string, string>;
2976
- alteredIndexes: Record<string, {
2977
- __old: string;
2978
- __new: string;
2979
- }>;
2980
- addedForeignKeys: Record<string, string>;
2981
- deletedForeignKeys: Record<string, string>;
2982
- alteredForeignKeys: Record<string, {
2983
- __old: string;
2984
- __new: string;
2985
- }>;
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;
3010
- }, "strip", ZodTypeAny, {
3011
- type: "changed";
3012
- old: string;
3013
- new: string;
3014
- }, {
3015
- type: "changed";
3016
- old: string;
3017
- new: string;
3018
- }>]>;
3019
- type: import("zod").ZodOptional<import("zod").ZodObject<{
3020
- type: import("zod").ZodEnum<["changed"]>;
3021
- old: import("zod").ZodString;
3022
- new: import("zod").ZodString;
3023
- }, "strip", ZodTypeAny, {
3024
- type: "changed";
3025
- old: string;
3026
- new: string;
3027
- }, {
3028
- type: "changed";
3029
- old: string;
3030
- new: string;
3031
- }>>;
3032
- default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3033
- type: import("zod").ZodLiteral<"added">;
3034
- value: import("zod").ZodAny;
3035
- }, "strip", ZodTypeAny, {
3036
- type: "added";
3037
- value?: any;
3038
- }, {
3039
- type: "added";
3040
- value?: any;
3041
- }>, import("zod").ZodObject<{
3042
- type: import("zod").ZodLiteral<"deleted">;
3043
- value: import("zod").ZodAny;
3044
- }, "strip", ZodTypeAny, {
3045
- type: "deleted";
3046
- value?: any;
3047
- }, {
3048
- type: "deleted";
3049
- value?: any;
3050
- }>, import("zod").ZodObject<{
3051
- type: import("zod").ZodLiteral<"changed">;
3052
- old: import("zod").ZodAny;
3053
- new: import("zod").ZodAny;
3054
- }, "strip", ZodTypeAny, {
3055
- type: "changed";
3056
- old?: any;
3057
- new?: any;
3058
- }, {
3059
- type: "changed";
3060
1621
  old?: any;
3061
1622
  new?: any;
1623
+ type: "changed";
3062
1624
  }>]>>;
3063
- primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3064
- type: import("zod").ZodLiteral<"added">;
3065
- value: import("zod").ZodBoolean;
1625
+ primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1626
+ type: z.ZodLiteral<"added">;
1627
+ value: z.ZodBoolean;
3066
1628
  }, "strip", ZodTypeAny, {
3067
1629
  type: "added";
3068
1630
  value: boolean;
3069
1631
  }, {
3070
1632
  type: "added";
3071
1633
  value: boolean;
3072
- }>, import("zod").ZodObject<{
3073
- type: import("zod").ZodLiteral<"deleted">;
3074
- value: import("zod").ZodBoolean;
1634
+ }>, z.ZodObject<{
1635
+ type: z.ZodLiteral<"deleted">;
1636
+ value: z.ZodBoolean;
3075
1637
  }, "strip", ZodTypeAny, {
3076
1638
  type: "deleted";
3077
1639
  value: boolean;
3078
1640
  }, {
3079
1641
  type: "deleted";
3080
1642
  value: boolean;
3081
- }>, import("zod").ZodObject<{
3082
- type: import("zod").ZodLiteral<"changed">;
3083
- old: import("zod").ZodBoolean;
3084
- new: import("zod").ZodBoolean;
1643
+ }>, z.ZodObject<{
1644
+ type: z.ZodLiteral<"changed">;
1645
+ old: z.ZodBoolean;
1646
+ new: z.ZodBoolean;
3085
1647
  }, "strip", ZodTypeAny, {
3086
1648
  type: "changed";
3087
1649
  old: boolean;
@@ -3091,28 +1653,28 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3091
1653
  old: boolean;
3092
1654
  new: boolean;
3093
1655
  }>]>>;
3094
- notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3095
- type: import("zod").ZodLiteral<"added">;
3096
- value: import("zod").ZodBoolean;
1656
+ notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1657
+ type: z.ZodLiteral<"added">;
1658
+ value: z.ZodBoolean;
3097
1659
  }, "strip", ZodTypeAny, {
3098
1660
  type: "added";
3099
1661
  value: boolean;
3100
1662
  }, {
3101
1663
  type: "added";
3102
1664
  value: boolean;
3103
- }>, import("zod").ZodObject<{
3104
- type: import("zod").ZodLiteral<"deleted">;
3105
- value: import("zod").ZodBoolean;
1665
+ }>, z.ZodObject<{
1666
+ type: z.ZodLiteral<"deleted">;
1667
+ value: z.ZodBoolean;
3106
1668
  }, "strip", ZodTypeAny, {
3107
1669
  type: "deleted";
3108
1670
  value: boolean;
3109
1671
  }, {
3110
1672
  type: "deleted";
3111
1673
  value: boolean;
3112
- }>, import("zod").ZodObject<{
3113
- type: import("zod").ZodLiteral<"changed">;
3114
- old: import("zod").ZodBoolean;
3115
- new: import("zod").ZodBoolean;
1674
+ }>, z.ZodObject<{
1675
+ type: z.ZodLiteral<"changed">;
1676
+ old: z.ZodBoolean;
1677
+ new: z.ZodBoolean;
3116
1678
  }, "strip", ZodTypeAny, {
3117
1679
  type: "changed";
3118
1680
  old: boolean;
@@ -3122,59 +1684,28 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3122
1684
  old: boolean;
3123
1685
  new: boolean;
3124
1686
  }>]>>;
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;
1687
+ onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1688
+ type: z.ZodLiteral<"added">;
1689
+ value: z.ZodBoolean;
3159
1690
  }, "strip", ZodTypeAny, {
3160
1691
  type: "added";
3161
1692
  value: boolean;
3162
1693
  }, {
3163
1694
  type: "added";
3164
1695
  value: boolean;
3165
- }>, import("zod").ZodObject<{
3166
- type: import("zod").ZodLiteral<"deleted">;
3167
- value: import("zod").ZodBoolean;
1696
+ }>, z.ZodObject<{
1697
+ type: z.ZodLiteral<"deleted">;
1698
+ value: z.ZodBoolean;
3168
1699
  }, "strip", ZodTypeAny, {
3169
1700
  type: "deleted";
3170
1701
  value: boolean;
3171
1702
  }, {
3172
1703
  type: "deleted";
3173
1704
  value: boolean;
3174
- }>, import("zod").ZodObject<{
3175
- type: import("zod").ZodLiteral<"changed">;
3176
- old: import("zod").ZodBoolean;
3177
- new: import("zod").ZodBoolean;
1705
+ }>, z.ZodObject<{
1706
+ type: z.ZodLiteral<"changed">;
1707
+ old: z.ZodBoolean;
1708
+ new: z.ZodBoolean;
3178
1709
  }, "strip", ZodTypeAny, {
3179
1710
  type: "changed";
3180
1711
  old: boolean;
@@ -3184,28 +1715,28 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3184
1715
  old: boolean;
3185
1716
  new: boolean;
3186
1717
  }>]>>;
3187
- autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3188
- type: import("zod").ZodLiteral<"added">;
3189
- value: import("zod").ZodBoolean;
1718
+ autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1719
+ type: z.ZodLiteral<"added">;
1720
+ value: z.ZodBoolean;
3190
1721
  }, "strip", ZodTypeAny, {
3191
1722
  type: "added";
3192
1723
  value: boolean;
3193
1724
  }, {
3194
1725
  type: "added";
3195
1726
  value: boolean;
3196
- }>, import("zod").ZodObject<{
3197
- type: import("zod").ZodLiteral<"deleted">;
3198
- value: import("zod").ZodBoolean;
1727
+ }>, z.ZodObject<{
1728
+ type: z.ZodLiteral<"deleted">;
1729
+ value: z.ZodBoolean;
3199
1730
  }, "strip", ZodTypeAny, {
3200
1731
  type: "deleted";
3201
1732
  value: boolean;
3202
1733
  }, {
3203
1734
  type: "deleted";
3204
1735
  value: boolean;
3205
- }>, import("zod").ZodObject<{
3206
- type: import("zod").ZodLiteral<"changed">;
3207
- old: import("zod").ZodBoolean;
3208
- new: import("zod").ZodBoolean;
1736
+ }>, z.ZodObject<{
1737
+ type: z.ZodLiteral<"changed">;
1738
+ old: z.ZodBoolean;
1739
+ new: z.ZodBoolean;
3209
1740
  }, "strip", ZodTypeAny, {
3210
1741
  type: "changed";
3211
1742
  old: boolean;
@@ -3216,21 +1747,16 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3216
1747
  new: boolean;
3217
1748
  }>]>>;
3218
1749
  }, "strict", ZodTypeAny, {
3219
- name: string | {
3220
- type: "changed";
3221
- old: string;
3222
- new: string;
3223
- };
3224
1750
  default?: {
3225
- type: "added";
3226
1751
  value?: any;
1752
+ type: "added";
3227
1753
  } | {
3228
- type: "deleted";
3229
1754
  value?: any;
1755
+ type: "deleted";
3230
1756
  } | {
3231
- type: "changed";
3232
1757
  old?: any;
3233
1758
  new?: any;
1759
+ type: "changed";
3234
1760
  } | undefined;
3235
1761
  type?: {
3236
1762
  type: "changed";
@@ -3281,33 +1807,22 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3281
1807
  old: boolean;
3282
1808
  new: boolean;
3283
1809
  } | undefined;
3284
- typeSchema?: {
3285
- type: "added";
3286
- value: string;
3287
- } | {
3288
- type: "deleted";
3289
- value: string;
3290
- } | {
3291
- type: "changed";
3292
- old: string;
3293
- new: string;
3294
- } | undefined;
3295
- }, {
3296
1810
  name: string | {
3297
1811
  type: "changed";
3298
1812
  old: string;
3299
1813
  new: string;
3300
1814
  };
1815
+ }, {
3301
1816
  default?: {
3302
- type: "added";
3303
1817
  value?: any;
1818
+ type: "added";
3304
1819
  } | {
3305
- type: "deleted";
3306
1820
  value?: any;
1821
+ type: "deleted";
3307
1822
  } | {
3308
- type: "changed";
3309
1823
  old?: any;
3310
1824
  new?: any;
1825
+ type: "changed";
3311
1826
  } | undefined;
3312
1827
  type?: {
3313
1828
  type: "changed";
@@ -3358,23 +1873,17 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3358
1873
  old: boolean;
3359
1874
  new: boolean;
3360
1875
  } | undefined;
3361
- typeSchema?: {
3362
- type: "added";
3363
- value: string;
3364
- } | {
3365
- type: "deleted";
3366
- value: string;
3367
- } | {
1876
+ name: string | {
3368
1877
  type: "changed";
3369
1878
  old: string;
3370
1879
  new: string;
3371
- } | undefined;
1880
+ };
3372
1881
  }>, "many">;
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;
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;
3378
1887
  }, "strict", ZodTypeAny, {
3379
1888
  __old: string;
3380
1889
  __new: string;
@@ -3382,11 +1891,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3382
1891
  __old: string;
3383
1892
  __new: string;
3384
1893
  }>>;
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;
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;
3390
1899
  }, "strict", ZodTypeAny, {
3391
1900
  __old: string;
3392
1901
  __new: string;
@@ -3394,11 +1903,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3394
1903
  __old: string;
3395
1904
  __new: string;
3396
1905
  }>>;
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;
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;
3402
1911
  }, "strip", ZodTypeAny, {
3403
1912
  __old: string;
3404
1913
  __new: string;
@@ -3406,11 +1915,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3406
1915
  __old: string;
3407
1916
  __new: string;
3408
1917
  }>>;
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;
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;
3414
1923
  }, "strip", ZodTypeAny, {
3415
1924
  __old: string;
3416
1925
  __new: string;
@@ -3420,23 +1929,55 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3420
1929
  }>>;
3421
1930
  }, "strict", ZodTypeAny, {
3422
1931
  name: string;
3423
- schema: 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
+ }[];
3424
1970
  altered: {
3425
- name: string | {
3426
- type: "changed";
3427
- old: string;
3428
- new: string;
3429
- };
3430
1971
  default?: {
3431
- type: "added";
3432
1972
  value?: any;
1973
+ type: "added";
3433
1974
  } | {
3434
- type: "deleted";
3435
1975
  value?: any;
1976
+ type: "deleted";
3436
1977
  } | {
3437
- type: "changed";
3438
1978
  old?: any;
3439
1979
  new?: any;
1980
+ type: "changed";
3440
1981
  } | undefined;
3441
1982
  type?: {
3442
1983
  type: "changed";
@@ -3487,17 +2028,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3487
2028
  old: boolean;
3488
2029
  new: boolean;
3489
2030
  } | undefined;
3490
- typeSchema?: {
3491
- type: "added";
3492
- value: string;
3493
- } | {
3494
- type: "deleted";
3495
- value: string;
3496
- } | {
2031
+ name: string | {
3497
2032
  type: "changed";
3498
2033
  old: string;
3499
2034
  new: string;
3500
- } | undefined;
2035
+ };
3501
2036
  }[];
3502
2037
  addedIndexes: Record<string, string>;
3503
2038
  deletedIndexes: Record<string, string>;
@@ -3525,23 +2060,55 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3525
2060
  }>;
3526
2061
  }, {
3527
2062
  name: string;
3528
- schema: 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
+ }[];
3529
2101
  altered: {
3530
- name: string | {
3531
- type: "changed";
3532
- old: string;
3533
- new: string;
3534
- };
3535
2102
  default?: {
3536
- type: "added";
3537
2103
  value?: any;
2104
+ type: "added";
3538
2105
  } | {
3539
- type: "deleted";
3540
2106
  value?: any;
2107
+ type: "deleted";
3541
2108
  } | {
3542
- type: "changed";
3543
2109
  old?: any;
3544
2110
  new?: any;
2111
+ type: "changed";
3545
2112
  } | undefined;
3546
2113
  type?: {
3547
2114
  type: "changed";
@@ -3592,17 +2159,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3592
2159
  old: boolean;
3593
2160
  new: boolean;
3594
2161
  } | undefined;
3595
- typeSchema?: {
3596
- type: "added";
3597
- value: string;
3598
- } | {
3599
- type: "deleted";
3600
- value: string;
3601
- } | {
2162
+ name: string | {
3602
2163
  type: "changed";
3603
2164
  old: string;
3604
2165
  new: string;
3605
- } | undefined;
2166
+ };
3606
2167
  }[];
3607
2168
  addedIndexes: Record<string, string>;
3608
2169
  deletedIndexes: Record<string, string>;
@@ -3629,27 +2190,133 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3629
2190
  __new: string;
3630
2191
  }>;
3631
2192
  }>, "many">;
3632
- alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "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">;
3633
2228
  }, "strict", ZodTypeAny, {
3634
- alteredTablesWithColumns: {
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: {
3635
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>;
3636
2265
  schema: string;
2266
+ compositePrimaryKeys: Record<string, string>;
2267
+ uniqueConstraints: Record<string, string>;
2268
+ }[];
2269
+ alteredTablesWithColumns: {
2270
+ 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
+ }[];
3637
2309
  altered: {
3638
- name: string | {
3639
- type: "changed";
3640
- old: string;
3641
- new: string;
3642
- };
3643
2310
  default?: {
3644
- type: "added";
3645
2311
  value?: any;
2312
+ type: "added";
3646
2313
  } | {
3647
- type: "deleted";
3648
2314
  value?: any;
2315
+ type: "deleted";
3649
2316
  } | {
3650
- type: "changed";
3651
2317
  old?: any;
3652
2318
  new?: any;
2319
+ type: "changed";
3653
2320
  } | undefined;
3654
2321
  type?: {
3655
2322
  type: "changed";
@@ -3700,17 +2367,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3700
2367
  old: boolean;
3701
2368
  new: boolean;
3702
2369
  } | undefined;
3703
- typeSchema?: {
3704
- type: "added";
3705
- value: string;
3706
- } | {
3707
- type: "deleted";
3708
- value: string;
3709
- } | {
2370
+ name: string | {
3710
2371
  type: "changed";
3711
2372
  old: string;
3712
2373
  new: string;
3713
- } | undefined;
2374
+ };
3714
2375
  }[];
3715
2376
  addedIndexes: Record<string, string>;
3716
2377
  deletedIndexes: Record<string, string>;
@@ -3737,27 +2398,113 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3737
2398
  __new: string;
3738
2399
  }>;
3739
2400
  }[];
3740
- alteredEnums: never[];
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[];
3741
2416
  }, {
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
+ }[];
3742
2457
  alteredTablesWithColumns: {
3743
2458
  name: string;
3744
- schema: 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
+ }[];
3745
2497
  altered: {
3746
- name: string | {
3747
- type: "changed";
3748
- old: string;
3749
- new: string;
3750
- };
3751
2498
  default?: {
3752
- type: "added";
3753
2499
  value?: any;
2500
+ type: "added";
3754
2501
  } | {
3755
- type: "deleted";
3756
2502
  value?: any;
2503
+ type: "deleted";
3757
2504
  } | {
3758
- type: "changed";
3759
2505
  old?: any;
3760
2506
  new?: any;
2507
+ type: "changed";
3761
2508
  } | undefined;
3762
2509
  type?: {
3763
2510
  type: "changed";
@@ -3808,17 +2555,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3808
2555
  old: boolean;
3809
2556
  new: boolean;
3810
2557
  } | undefined;
3811
- typeSchema?: {
3812
- type: "added";
3813
- value: string;
3814
- } | {
3815
- type: "deleted";
3816
- value: string;
3817
- } | {
2558
+ name: string | {
3818
2559
  type: "changed";
3819
2560
  old: string;
3820
2561
  new: string;
3821
- } | undefined;
2562
+ };
3822
2563
  }[];
3823
2564
  addedIndexes: Record<string, string>;
3824
2565
  deletedIndexes: Record<string, string>;
@@ -3845,7 +2586,21 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3845
2586
  __new: string;
3846
2587
  }>;
3847
2588
  }[];
3848
- alteredEnums: never[];
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[];
3849
2604
  }>;
3850
2605
  export type Column = TypeOf<typeof columnSchema>;
3851
2606
  export type AlteredColumn = TypeOf<typeof alteredColumnSchema>;
@@ -3853,33 +2608,16 @@ export type Enum = TypeOf<typeof enumSchema>;
3853
2608
  export type Table = TypeOf<typeof tableScheme>;
3854
2609
  export type AlteredTable = TypeOf<typeof alteredTableScheme>;
3855
2610
  export type DiffResult = TypeOf<typeof diffResultScheme>;
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 {
2611
+ export interface TablesResolverInput<T extends {
3865
2612
  name: string;
3866
2613
  }> {
3867
2614
  created: T[];
3868
- renamed: {
3869
- from: T;
3870
- to: T;
3871
- }[];
3872
2615
  deleted: T[];
3873
2616
  }
3874
- export interface ResolverOutputWithMoved<T extends {
2617
+ export interface TablesResolverOutput<T extends {
3875
2618
  name: string;
3876
2619
  }> {
3877
2620
  created: T[];
3878
- moved: {
3879
- name: string;
3880
- schemaFrom: string;
3881
- schemaTo: string;
3882
- }[];
3883
2621
  renamed: {
3884
2622
  from: T;
3885
2623
  to: T;
@@ -3906,26 +2644,11 @@ export interface ColumnsResolverOutput<T extends {
3906
2644
  }[];
3907
2645
  deleted: T[];
3908
2646
  }
3909
- export type SchemaFrom<D> = D extends "pg" ? PgSchema : D extends "mysql" ? MySqlSchema : D extends "sqlite" ? SQLiteSchema : undefined;
3910
- 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<{
3911
- statements: JsonStatement[];
3912
- sqlStatements: string[];
3913
- _meta: {
3914
- schemas: {};
3915
- tables: {};
3916
- columns: {};
3917
- } | undefined;
3918
- }>;
3919
- 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<{
3920
- statements: JsonStatement[];
3921
- sqlStatements: string[];
3922
- _meta: {
3923
- schemas: {};
3924
- tables: {};
3925
- columns: {};
3926
- } | undefined;
3927
- }>;
3928
- export declare const applySqliteSnapshotsDiff: (json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>) => Promise<{
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<{
3929
2652
  statements: JsonStatement[];
3930
2653
  sqlStatements: string[];
3931
2654
  _meta: {