drizzle-kit 0.20.16 → 0.20.17-5938f5d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/bin.cjs +67328 -54482
  2. package/cli/commands/migrate.d.ts +152 -135
  3. package/cli/commands/mysqlIntrospect.d.ts +15 -79
  4. package/cli/commands/mysqlPushUtils.d.ts +4 -8
  5. package/cli/commands/pgIntrospect.d.ts +12 -76
  6. package/cli/commands/pgPushUtils.d.ts +3 -6
  7. package/cli/commands/sqliteIntrospect.d.ts +26 -29
  8. package/cli/commands/sqlitePushUtils.d.ts +4 -10
  9. package/cli/commands/utils.d.ts +39 -255
  10. package/cli/utils.d.ts +13 -0
  11. package/cli/validations/cli.d.ts +169 -0
  12. package/cli/validations/common.d.ts +208 -7
  13. package/cli/validations/mysql.d.ts +7 -337
  14. package/cli/validations/outputs.d.ts +1 -0
  15. package/cli/validations/pg.d.ts +4 -411
  16. package/cli/validations/sqlite.d.ts +34 -0
  17. package/cli/views.d.ts +7 -5
  18. package/global.d.ts +3 -1
  19. package/index.d.mts +23 -15
  20. package/index.d.ts +23 -15
  21. package/index.js +1 -0
  22. package/introspect-sqlite.d.ts +2 -2
  23. package/jsonDiffer.d.ts +14 -29
  24. package/jsonStatements.d.ts +38 -11
  25. package/package.json +26 -51
  26. package/payload.d.mts +5 -5
  27. package/payload.d.ts +5 -5
  28. package/payload.js +34052 -32232
  29. package/payload.mjs +26475 -24666
  30. package/schemaValidator.d.ts +289 -286
  31. package/serializer/mysqlImports.d.ts +3 -7
  32. package/serializer/mysqlSchema.d.ts +2501 -1370
  33. package/serializer/mysqlSerializer.d.ts +6 -6
  34. package/serializer/pgImports.d.ts +2 -2
  35. package/serializer/pgSchema.d.ts +1741 -1282
  36. package/serializer/pgSerializer.d.ts +2 -2
  37. package/serializer/sqliteImports.d.ts +2 -4
  38. package/serializer/sqliteSchema.d.ts +553 -979
  39. package/serializer/sqliteSerializer.d.ts +4 -4
  40. package/snapshotsDiffer.d.ts +2486 -1209
  41. package/utils/words.d.ts +1 -1
  42. package/utils-studio.d.mts +0 -1
  43. package/utils-studio.d.ts +0 -1
  44. package/utils-studio.js +7056 -847
  45. package/utils-studio.mjs +7034 -828
  46. package/utils.d.ts +14 -141
  47. package/utils.js +4380 -6916
  48. package/utils.mjs +4593 -7129
  49. package/cli/commands/mysqlUp.d.ts +0 -4
  50. package/cli/commands/pgConnect.d.ts +0 -5
  51. package/cli/commands/pgUp.d.ts +0 -4
  52. package/cli/commands/sqliteUtils.d.ts +0 -162
  53. package/cli/commands/upFolders.d.ts +0 -27
  54. package/drivers/index.d.ts +0 -39
  55. package/introspect-mysql.d.ts +0 -9
  56. package/introspect-pg.d.ts +0 -12
@@ -1,162 +1,168 @@
1
- import { TypeOf, ZodTypeAny, z } from "zod";
1
+ import { TypeOf, ZodTypeAny } from "zod";
2
2
  import { JsonStatement } from "./jsonStatements";
3
- import { CommonSquashedSchema, Dialect } from "./schemaValidator";
4
- export declare const makePatched: <T extends ZodTypeAny>(schema: T) => z.ZodUnion<[z.ZodObject<{
5
- type: z.ZodLiteral<"added">;
3
+ import { SQLiteSchema, SQLiteSchemaSquashed } from "./serializer/sqliteSchema";
4
+ import { MySqlSchema, MySqlSchemaSquashed } from "./serializer/mysqlSchema";
5
+ import { PgSchema, PgSchemaSquashed } from "./serializer/pgSchema";
6
+ import { Named } from "./cli/commands/migrate";
7
+ export declare const makePatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
8
+ type: import("zod").ZodLiteral<"added">;
6
9
  value: T;
7
- }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
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">;
10
+ }, "strip", ZodTypeAny, { [k in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
11
+ type: import("zod").ZodLiteral<"added">;
21
12
  value: T;
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">;
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">;
36
55
  old: T;
37
56
  new: T;
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">;
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">;
72
60
  value: T;
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">;
61
+ }, "strip", ZodTypeAny, { [k in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
62
+ type: import("zod").ZodLiteral<"none">;
87
63
  value: T;
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">;
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">;
102
121
  old: T;
103
122
  new: T;
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>;
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>;
132
136
  }, "strict", ZodTypeAny, {
137
+ name: string;
138
+ type: string;
133
139
  isUnique?: any;
134
140
  default?: any;
135
141
  onUpdate?: boolean | undefined;
136
142
  primaryKey?: boolean | undefined;
137
143
  notNull?: boolean | undefined;
138
144
  autoincrement?: boolean | undefined;
145
+ typeSchema?: string | undefined;
139
146
  uniqueName?: string | undefined;
140
147
  nullsNotDistinct?: boolean | undefined;
148
+ }, {
141
149
  name: string;
142
150
  type: string;
143
- }, {
144
151
  isUnique?: any;
145
152
  default?: any;
146
153
  onUpdate?: boolean | undefined;
147
154
  primaryKey?: boolean | undefined;
148
155
  notNull?: boolean | undefined;
149
156
  autoincrement?: boolean | undefined;
157
+ typeSchema?: string | undefined;
150
158
  uniqueName?: string | undefined;
151
159
  nullsNotDistinct?: boolean | undefined;
152
- name: string;
153
- type: string;
154
160
  }>;
155
- declare const alteredColumnSchema: z.ZodObject<{
156
- name: z.ZodUnion<[z.ZodString, z.ZodObject<{
157
- type: z.ZodEnum<["changed"]>;
158
- old: z.ZodString;
159
- new: z.ZodString;
161
+ declare const alteredColumnSchema: import("zod").ZodObject<{
162
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
163
+ type: import("zod").ZodEnum<["changed"]>;
164
+ old: import("zod").ZodString;
165
+ new: import("zod").ZodString;
160
166
  }, "strip", ZodTypeAny, {
161
167
  type: "changed";
162
168
  old: string;
@@ -166,10 +172,10 @@ declare const alteredColumnSchema: z.ZodObject<{
166
172
  old: string;
167
173
  new: string;
168
174
  }>]>;
169
- type: z.ZodOptional<z.ZodObject<{
170
- type: z.ZodEnum<["changed"]>;
171
- old: z.ZodString;
172
- new: z.ZodString;
175
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
176
+ type: import("zod").ZodEnum<["changed"]>;
177
+ old: import("zod").ZodString;
178
+ new: import("zod").ZodString;
173
179
  }, "strip", ZodTypeAny, {
174
180
  type: "changed";
175
181
  old: string;
@@ -179,59 +185,59 @@ declare const alteredColumnSchema: z.ZodObject<{
179
185
  old: string;
180
186
  new: string;
181
187
  }>>;
182
- default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
183
- type: z.ZodLiteral<"added">;
184
- value: z.ZodAny;
188
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
189
+ type: import("zod").ZodLiteral<"added">;
190
+ value: import("zod").ZodAny;
185
191
  }, "strip", ZodTypeAny, {
186
- value?: any;
187
192
  type: "added";
188
- }, {
189
193
  value?: any;
194
+ }, {
190
195
  type: "added";
191
- }>, z.ZodObject<{
192
- type: z.ZodLiteral<"deleted">;
193
- value: z.ZodAny;
194
- }, "strip", ZodTypeAny, {
195
196
  value?: any;
197
+ }>, import("zod").ZodObject<{
198
+ type: import("zod").ZodLiteral<"deleted">;
199
+ value: import("zod").ZodAny;
200
+ }, "strip", ZodTypeAny, {
196
201
  type: "deleted";
197
- }, {
198
202
  value?: any;
203
+ }, {
199
204
  type: "deleted";
200
- }>, z.ZodObject<{
201
- type: z.ZodLiteral<"changed">;
202
- old: z.ZodAny;
203
- new: z.ZodAny;
205
+ value?: any;
206
+ }>, import("zod").ZodObject<{
207
+ type: import("zod").ZodLiteral<"changed">;
208
+ old: import("zod").ZodAny;
209
+ new: import("zod").ZodAny;
204
210
  }, "strip", ZodTypeAny, {
211
+ type: "changed";
205
212
  old?: any;
206
213
  new?: any;
207
- type: "changed";
208
214
  }, {
215
+ type: "changed";
209
216
  old?: any;
210
217
  new?: any;
211
- type: "changed";
212
218
  }>]>>;
213
- primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
214
- type: z.ZodLiteral<"added">;
215
- value: z.ZodBoolean;
219
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
220
+ type: import("zod").ZodLiteral<"added">;
221
+ value: import("zod").ZodBoolean;
216
222
  }, "strip", ZodTypeAny, {
217
223
  type: "added";
218
224
  value: boolean;
219
225
  }, {
220
226
  type: "added";
221
227
  value: boolean;
222
- }>, z.ZodObject<{
223
- type: z.ZodLiteral<"deleted">;
224
- value: z.ZodBoolean;
228
+ }>, import("zod").ZodObject<{
229
+ type: import("zod").ZodLiteral<"deleted">;
230
+ value: import("zod").ZodBoolean;
225
231
  }, "strip", ZodTypeAny, {
226
232
  type: "deleted";
227
233
  value: boolean;
228
234
  }, {
229
235
  type: "deleted";
230
236
  value: boolean;
231
- }>, z.ZodObject<{
232
- type: z.ZodLiteral<"changed">;
233
- old: z.ZodBoolean;
234
- new: z.ZodBoolean;
237
+ }>, import("zod").ZodObject<{
238
+ type: import("zod").ZodLiteral<"changed">;
239
+ old: import("zod").ZodBoolean;
240
+ new: import("zod").ZodBoolean;
235
241
  }, "strip", ZodTypeAny, {
236
242
  type: "changed";
237
243
  old: boolean;
@@ -241,28 +247,28 @@ declare const alteredColumnSchema: z.ZodObject<{
241
247
  old: boolean;
242
248
  new: boolean;
243
249
  }>]>>;
244
- notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
245
- type: z.ZodLiteral<"added">;
246
- value: z.ZodBoolean;
250
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
251
+ type: import("zod").ZodLiteral<"added">;
252
+ value: import("zod").ZodBoolean;
247
253
  }, "strip", ZodTypeAny, {
248
254
  type: "added";
249
255
  value: boolean;
250
256
  }, {
251
257
  type: "added";
252
258
  value: boolean;
253
- }>, z.ZodObject<{
254
- type: z.ZodLiteral<"deleted">;
255
- value: z.ZodBoolean;
259
+ }>, import("zod").ZodObject<{
260
+ type: import("zod").ZodLiteral<"deleted">;
261
+ value: import("zod").ZodBoolean;
256
262
  }, "strip", ZodTypeAny, {
257
263
  type: "deleted";
258
264
  value: boolean;
259
265
  }, {
260
266
  type: "deleted";
261
267
  value: boolean;
262
- }>, z.ZodObject<{
263
- type: z.ZodLiteral<"changed">;
264
- old: z.ZodBoolean;
265
- new: z.ZodBoolean;
268
+ }>, import("zod").ZodObject<{
269
+ type: import("zod").ZodLiteral<"changed">;
270
+ old: import("zod").ZodBoolean;
271
+ new: import("zod").ZodBoolean;
266
272
  }, "strip", ZodTypeAny, {
267
273
  type: "changed";
268
274
  old: boolean;
@@ -272,28 +278,59 @@ declare const alteredColumnSchema: z.ZodObject<{
272
278
  old: boolean;
273
279
  new: boolean;
274
280
  }>]>>;
275
- onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
276
- type: z.ZodLiteral<"added">;
277
- value: z.ZodBoolean;
281
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
282
+ type: import("zod").ZodLiteral<"added">;
283
+ value: import("zod").ZodString;
284
+ }, "strip", ZodTypeAny, {
285
+ type: "added";
286
+ value: string;
287
+ }, {
288
+ type: "added";
289
+ value: string;
290
+ }>, import("zod").ZodObject<{
291
+ type: import("zod").ZodLiteral<"deleted">;
292
+ value: import("zod").ZodString;
293
+ }, "strip", ZodTypeAny, {
294
+ type: "deleted";
295
+ value: string;
296
+ }, {
297
+ type: "deleted";
298
+ value: string;
299
+ }>, import("zod").ZodObject<{
300
+ type: import("zod").ZodLiteral<"changed">;
301
+ old: import("zod").ZodString;
302
+ new: import("zod").ZodString;
303
+ }, "strip", ZodTypeAny, {
304
+ type: "changed";
305
+ old: string;
306
+ new: string;
307
+ }, {
308
+ type: "changed";
309
+ old: string;
310
+ new: string;
311
+ }>]>>;
312
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
313
+ type: import("zod").ZodLiteral<"added">;
314
+ value: import("zod").ZodBoolean;
278
315
  }, "strip", ZodTypeAny, {
279
316
  type: "added";
280
317
  value: boolean;
281
318
  }, {
282
319
  type: "added";
283
320
  value: boolean;
284
- }>, z.ZodObject<{
285
- type: z.ZodLiteral<"deleted">;
286
- value: z.ZodBoolean;
321
+ }>, import("zod").ZodObject<{
322
+ type: import("zod").ZodLiteral<"deleted">;
323
+ value: import("zod").ZodBoolean;
287
324
  }, "strip", ZodTypeAny, {
288
325
  type: "deleted";
289
326
  value: boolean;
290
327
  }, {
291
328
  type: "deleted";
292
329
  value: boolean;
293
- }>, z.ZodObject<{
294
- type: z.ZodLiteral<"changed">;
295
- old: z.ZodBoolean;
296
- new: z.ZodBoolean;
330
+ }>, import("zod").ZodObject<{
331
+ type: import("zod").ZodLiteral<"changed">;
332
+ old: import("zod").ZodBoolean;
333
+ new: import("zod").ZodBoolean;
297
334
  }, "strip", ZodTypeAny, {
298
335
  type: "changed";
299
336
  old: boolean;
@@ -303,28 +340,28 @@ declare const alteredColumnSchema: z.ZodObject<{
303
340
  old: boolean;
304
341
  new: boolean;
305
342
  }>]>>;
306
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
307
- type: z.ZodLiteral<"added">;
308
- value: z.ZodBoolean;
343
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
344
+ type: import("zod").ZodLiteral<"added">;
345
+ value: import("zod").ZodBoolean;
309
346
  }, "strip", ZodTypeAny, {
310
347
  type: "added";
311
348
  value: boolean;
312
349
  }, {
313
350
  type: "added";
314
351
  value: boolean;
315
- }>, z.ZodObject<{
316
- type: z.ZodLiteral<"deleted">;
317
- value: z.ZodBoolean;
352
+ }>, import("zod").ZodObject<{
353
+ type: import("zod").ZodLiteral<"deleted">;
354
+ value: import("zod").ZodBoolean;
318
355
  }, "strip", ZodTypeAny, {
319
356
  type: "deleted";
320
357
  value: boolean;
321
358
  }, {
322
359
  type: "deleted";
323
360
  value: boolean;
324
- }>, z.ZodObject<{
325
- type: z.ZodLiteral<"changed">;
326
- old: z.ZodBoolean;
327
- new: z.ZodBoolean;
361
+ }>, import("zod").ZodObject<{
362
+ type: import("zod").ZodLiteral<"changed">;
363
+ old: import("zod").ZodBoolean;
364
+ new: import("zod").ZodBoolean;
328
365
  }, "strip", ZodTypeAny, {
329
366
  type: "changed";
330
367
  old: boolean;
@@ -335,16 +372,21 @@ declare const alteredColumnSchema: z.ZodObject<{
335
372
  new: boolean;
336
373
  }>]>>;
337
374
  }, "strict", ZodTypeAny, {
375
+ name: string | {
376
+ type: "changed";
377
+ old: string;
378
+ new: string;
379
+ };
338
380
  default?: {
339
- value?: any;
340
381
  type: "added";
341
- } | {
342
382
  value?: any;
383
+ } | {
343
384
  type: "deleted";
385
+ value?: any;
344
386
  } | {
387
+ type: "changed";
345
388
  old?: any;
346
389
  new?: any;
347
- type: "changed";
348
390
  } | undefined;
349
391
  type?: {
350
392
  type: "changed";
@@ -395,22 +437,33 @@ declare const alteredColumnSchema: z.ZodObject<{
395
437
  old: boolean;
396
438
  new: boolean;
397
439
  } | 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
+ }, {
398
452
  name: string | {
399
453
  type: "changed";
400
454
  old: string;
401
455
  new: string;
402
456
  };
403
- }, {
404
457
  default?: {
405
- value?: any;
406
458
  type: "added";
407
- } | {
408
459
  value?: any;
460
+ } | {
409
461
  type: "deleted";
462
+ value?: any;
410
463
  } | {
464
+ type: "changed";
411
465
  old?: any;
412
466
  new?: any;
413
- type: "changed";
414
467
  } | undefined;
415
468
  type?: {
416
469
  type: "changed";
@@ -461,76 +514,89 @@ declare const alteredColumnSchema: z.ZodObject<{
461
514
  old: boolean;
462
515
  new: boolean;
463
516
  } | undefined;
464
- name: string | {
517
+ typeSchema?: {
518
+ type: "added";
519
+ value: string;
520
+ } | {
521
+ type: "deleted";
522
+ value: string;
523
+ } | {
465
524
  type: "changed";
466
525
  old: string;
467
526
  new: string;
468
- };
527
+ } | undefined;
469
528
  }>;
470
- declare const enumSchema: z.ZodObject<{
471
- name: z.ZodString;
472
- values: z.ZodArray<z.ZodString, "many">;
529
+ declare const enumSchema: import("zod").ZodObject<{
530
+ name: import("zod").ZodString;
531
+ schema: import("zod").ZodString;
532
+ values: import("zod").ZodArray<import("zod").ZodString, "many">;
473
533
  }, "strict", ZodTypeAny, {
474
534
  name: string;
475
535
  values: string[];
536
+ schema: string;
476
537
  }, {
477
538
  name: string;
478
539
  values: string[];
540
+ schema: string;
479
541
  }>;
480
- declare const tableScheme: z.ZodObject<{
481
- name: z.ZodString;
482
- schema: z.ZodDefault<z.ZodString>;
483
- columns: z.ZodRecord<z.ZodString, z.ZodObject<{
484
- name: z.ZodString;
485
- type: z.ZodString;
486
- primaryKey: z.ZodOptional<z.ZodBoolean>;
487
- default: z.ZodOptional<z.ZodAny>;
488
- notNull: z.ZodOptional<z.ZodBoolean>;
489
- autoincrement: z.ZodOptional<z.ZodBoolean>;
490
- onUpdate: z.ZodOptional<z.ZodBoolean>;
491
- isUnique: z.ZodOptional<z.ZodAny>;
492
- uniqueName: z.ZodOptional<z.ZodString>;
493
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
542
+ declare const tableScheme: import("zod").ZodObject<{
543
+ name: import("zod").ZodString;
544
+ schema: import("zod").ZodDefault<import("zod").ZodString>;
545
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
546
+ name: import("zod").ZodString;
547
+ type: import("zod").ZodString;
548
+ typeSchema: import("zod").ZodOptional<import("zod").ZodString>;
549
+ primaryKey: import("zod").ZodOptional<import("zod").ZodBoolean>;
550
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
551
+ notNull: import("zod").ZodOptional<import("zod").ZodBoolean>;
552
+ autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
553
+ onUpdate: import("zod").ZodOptional<import("zod").ZodBoolean>;
554
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
555
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
556
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
494
557
  }, "strict", ZodTypeAny, {
558
+ name: string;
559
+ type: string;
495
560
  isUnique?: any;
496
561
  default?: any;
497
562
  onUpdate?: boolean | undefined;
498
563
  primaryKey?: boolean | undefined;
499
564
  notNull?: boolean | undefined;
500
565
  autoincrement?: boolean | undefined;
566
+ typeSchema?: string | undefined;
501
567
  uniqueName?: string | undefined;
502
568
  nullsNotDistinct?: boolean | undefined;
569
+ }, {
503
570
  name: string;
504
571
  type: string;
505
- }, {
506
572
  isUnique?: any;
507
573
  default?: any;
508
574
  onUpdate?: boolean | undefined;
509
575
  primaryKey?: boolean | undefined;
510
576
  notNull?: boolean | undefined;
511
577
  autoincrement?: boolean | undefined;
578
+ typeSchema?: string | undefined;
512
579
  uniqueName?: string | undefined;
513
580
  nullsNotDistinct?: boolean | undefined;
514
- name: string;
515
- type: string;
516
581
  }>>;
517
- indexes: z.ZodRecord<z.ZodString, z.ZodString>;
518
- foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
519
- compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
520
- uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
582
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
583
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
584
+ compositePrimaryKeys: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
585
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
521
586
  }, "strict", ZodTypeAny, {
522
587
  name: string;
523
588
  columns: Record<string, {
589
+ name: string;
590
+ type: string;
524
591
  isUnique?: any;
525
592
  default?: any;
526
593
  onUpdate?: boolean | undefined;
527
594
  primaryKey?: boolean | undefined;
528
595
  notNull?: boolean | undefined;
529
596
  autoincrement?: boolean | undefined;
597
+ typeSchema?: string | undefined;
530
598
  uniqueName?: string | undefined;
531
599
  nullsNotDistinct?: boolean | undefined;
532
- name: string;
533
- type: string;
534
600
  }>;
535
601
  indexes: Record<string, string>;
536
602
  foreignKeys: Record<string, string>;
@@ -538,140 +604,34 @@ declare const tableScheme: z.ZodObject<{
538
604
  compositePrimaryKeys: Record<string, string>;
539
605
  uniqueConstraints: Record<string, string>;
540
606
  }, {
541
- schema?: string | undefined;
542
- compositePrimaryKeys?: Record<string, string> | undefined;
543
- uniqueConstraints?: Record<string, string> | undefined;
544
607
  name: string;
545
608
  columns: Record<string, {
609
+ name: string;
610
+ type: string;
546
611
  isUnique?: any;
547
612
  default?: any;
548
613
  onUpdate?: boolean | undefined;
549
614
  primaryKey?: boolean | undefined;
550
615
  notNull?: boolean | undefined;
551
616
  autoincrement?: boolean | undefined;
617
+ typeSchema?: string | undefined;
552
618
  uniqueName?: string | undefined;
553
619
  nullsNotDistinct?: boolean | undefined;
554
- name: string;
555
- type: string;
556
620
  }>;
557
621
  indexes: Record<string, string>;
558
622
  foreignKeys: Record<string, string>;
623
+ schema?: string | undefined;
624
+ compositePrimaryKeys?: Record<string, string> | undefined;
625
+ uniqueConstraints?: Record<string, string> | undefined;
559
626
  }>;
560
- export declare const alteredTableScheme: z.ZodObject<{
561
- name: z.ZodString;
562
- schema: z.ZodUnion<[z.ZodObject<{
563
- type: z.ZodLiteral<"none">;
564
- value: z.ZodOptional<z.ZodString>;
565
- }, "strip", ZodTypeAny, {
566
- value?: string | undefined;
567
- type: "none";
568
- }, {
569
- value?: string | undefined;
570
- type: "none";
571
- }>, z.ZodObject<{
572
- type: z.ZodLiteral<"added">;
573
- value: z.ZodString;
574
- }, "strip", ZodTypeAny, {
575
- type: "added";
576
- value: string;
577
- }, {
578
- type: "added";
579
- value: string;
580
- }>, z.ZodObject<{
581
- type: z.ZodLiteral<"deleted">;
582
- value: z.ZodString;
583
- }, "strip", ZodTypeAny, {
584
- type: "deleted";
585
- value: string;
586
- }, {
587
- type: "deleted";
588
- value: string;
589
- }>, z.ZodObject<{
590
- type: z.ZodLiteral<"changed">;
591
- old: z.ZodString;
592
- new: z.ZodString;
593
- }, "strip", ZodTypeAny, {
594
- type: "changed";
595
- old: string;
596
- new: string;
597
- }, {
598
- type: "changed";
599
- old: string;
600
- new: string;
601
- }>]>;
602
- deleted: z.ZodArray<z.ZodObject<{
603
- name: z.ZodString;
604
- type: z.ZodString;
605
- primaryKey: z.ZodOptional<z.ZodBoolean>;
606
- default: z.ZodOptional<z.ZodAny>;
607
- notNull: z.ZodOptional<z.ZodBoolean>;
608
- autoincrement: z.ZodOptional<z.ZodBoolean>;
609
- onUpdate: z.ZodOptional<z.ZodBoolean>;
610
- isUnique: z.ZodOptional<z.ZodAny>;
611
- uniqueName: z.ZodOptional<z.ZodString>;
612
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
613
- }, "strict", ZodTypeAny, {
614
- isUnique?: any;
615
- default?: any;
616
- onUpdate?: boolean | undefined;
617
- primaryKey?: boolean | undefined;
618
- notNull?: boolean | undefined;
619
- autoincrement?: boolean | undefined;
620
- uniqueName?: string | undefined;
621
- nullsNotDistinct?: boolean | undefined;
622
- name: string;
623
- type: string;
624
- }, {
625
- isUnique?: any;
626
- default?: any;
627
- onUpdate?: boolean | undefined;
628
- primaryKey?: boolean | undefined;
629
- notNull?: boolean | undefined;
630
- autoincrement?: boolean | undefined;
631
- uniqueName?: string | undefined;
632
- nullsNotDistinct?: boolean | undefined;
633
- name: string;
634
- type: string;
635
- }>, "many">;
636
- added: z.ZodArray<z.ZodObject<{
637
- name: z.ZodString;
638
- type: z.ZodString;
639
- primaryKey: z.ZodOptional<z.ZodBoolean>;
640
- default: z.ZodOptional<z.ZodAny>;
641
- notNull: z.ZodOptional<z.ZodBoolean>;
642
- autoincrement: z.ZodOptional<z.ZodBoolean>;
643
- onUpdate: z.ZodOptional<z.ZodBoolean>;
644
- isUnique: z.ZodOptional<z.ZodAny>;
645
- uniqueName: z.ZodOptional<z.ZodString>;
646
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
647
- }, "strict", ZodTypeAny, {
648
- isUnique?: any;
649
- default?: any;
650
- onUpdate?: boolean | undefined;
651
- primaryKey?: boolean | undefined;
652
- notNull?: boolean | undefined;
653
- autoincrement?: boolean | undefined;
654
- uniqueName?: string | undefined;
655
- nullsNotDistinct?: boolean | undefined;
656
- name: string;
657
- type: string;
658
- }, {
659
- isUnique?: any;
660
- default?: any;
661
- onUpdate?: boolean | undefined;
662
- primaryKey?: boolean | undefined;
663
- notNull?: boolean | undefined;
664
- autoincrement?: boolean | undefined;
665
- uniqueName?: string | undefined;
666
- nullsNotDistinct?: boolean | undefined;
667
- name: string;
668
- type: string;
669
- }>, "many">;
670
- altered: z.ZodArray<z.ZodObject<{
671
- name: z.ZodUnion<[z.ZodString, z.ZodObject<{
672
- type: z.ZodEnum<["changed"]>;
673
- old: z.ZodString;
674
- new: z.ZodString;
627
+ export declare const alteredTableScheme: import("zod").ZodObject<{
628
+ name: import("zod").ZodString;
629
+ schema: import("zod").ZodString;
630
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
631
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
632
+ type: import("zod").ZodEnum<["changed"]>;
633
+ old: import("zod").ZodString;
634
+ new: import("zod").ZodString;
675
635
  }, "strip", ZodTypeAny, {
676
636
  type: "changed";
677
637
  old: string;
@@ -681,10 +641,10 @@ export declare const alteredTableScheme: z.ZodObject<{
681
641
  old: string;
682
642
  new: string;
683
643
  }>]>;
684
- type: z.ZodOptional<z.ZodObject<{
685
- type: z.ZodEnum<["changed"]>;
686
- old: z.ZodString;
687
- new: z.ZodString;
644
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
645
+ type: import("zod").ZodEnum<["changed"]>;
646
+ old: import("zod").ZodString;
647
+ new: import("zod").ZodString;
688
648
  }, "strip", ZodTypeAny, {
689
649
  type: "changed";
690
650
  old: string;
@@ -694,59 +654,59 @@ export declare const alteredTableScheme: z.ZodObject<{
694
654
  old: string;
695
655
  new: string;
696
656
  }>>;
697
- default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
698
- type: z.ZodLiteral<"added">;
699
- value: z.ZodAny;
657
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
658
+ type: import("zod").ZodLiteral<"added">;
659
+ value: import("zod").ZodAny;
700
660
  }, "strip", ZodTypeAny, {
701
- value?: any;
702
661
  type: "added";
703
- }, {
704
662
  value?: any;
663
+ }, {
705
664
  type: "added";
706
- }>, z.ZodObject<{
707
- type: z.ZodLiteral<"deleted">;
708
- value: z.ZodAny;
709
- }, "strip", ZodTypeAny, {
710
665
  value?: any;
666
+ }>, import("zod").ZodObject<{
667
+ type: import("zod").ZodLiteral<"deleted">;
668
+ value: import("zod").ZodAny;
669
+ }, "strip", ZodTypeAny, {
711
670
  type: "deleted";
712
- }, {
713
671
  value?: any;
672
+ }, {
714
673
  type: "deleted";
715
- }>, z.ZodObject<{
716
- type: z.ZodLiteral<"changed">;
717
- old: z.ZodAny;
718
- new: z.ZodAny;
674
+ value?: any;
675
+ }>, import("zod").ZodObject<{
676
+ type: import("zod").ZodLiteral<"changed">;
677
+ old: import("zod").ZodAny;
678
+ new: import("zod").ZodAny;
719
679
  }, "strip", ZodTypeAny, {
680
+ type: "changed";
720
681
  old?: any;
721
682
  new?: any;
722
- type: "changed";
723
683
  }, {
684
+ type: "changed";
724
685
  old?: any;
725
686
  new?: any;
726
- type: "changed";
727
687
  }>]>>;
728
- primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
- type: z.ZodLiteral<"added">;
730
- value: z.ZodBoolean;
688
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
689
+ type: import("zod").ZodLiteral<"added">;
690
+ value: import("zod").ZodBoolean;
731
691
  }, "strip", ZodTypeAny, {
732
692
  type: "added";
733
693
  value: boolean;
734
694
  }, {
735
695
  type: "added";
736
696
  value: boolean;
737
- }>, z.ZodObject<{
738
- type: z.ZodLiteral<"deleted">;
739
- value: z.ZodBoolean;
697
+ }>, import("zod").ZodObject<{
698
+ type: import("zod").ZodLiteral<"deleted">;
699
+ value: import("zod").ZodBoolean;
740
700
  }, "strip", ZodTypeAny, {
741
701
  type: "deleted";
742
702
  value: boolean;
743
703
  }, {
744
704
  type: "deleted";
745
705
  value: boolean;
746
- }>, z.ZodObject<{
747
- type: z.ZodLiteral<"changed">;
748
- old: z.ZodBoolean;
749
- new: z.ZodBoolean;
706
+ }>, import("zod").ZodObject<{
707
+ type: import("zod").ZodLiteral<"changed">;
708
+ old: import("zod").ZodBoolean;
709
+ new: import("zod").ZodBoolean;
750
710
  }, "strip", ZodTypeAny, {
751
711
  type: "changed";
752
712
  old: boolean;
@@ -756,28 +716,28 @@ export declare const alteredTableScheme: z.ZodObject<{
756
716
  old: boolean;
757
717
  new: boolean;
758
718
  }>]>>;
759
- notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
760
- type: z.ZodLiteral<"added">;
761
- value: z.ZodBoolean;
719
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
720
+ type: import("zod").ZodLiteral<"added">;
721
+ value: import("zod").ZodBoolean;
762
722
  }, "strip", ZodTypeAny, {
763
723
  type: "added";
764
724
  value: boolean;
765
725
  }, {
766
726
  type: "added";
767
727
  value: boolean;
768
- }>, z.ZodObject<{
769
- type: z.ZodLiteral<"deleted">;
770
- value: z.ZodBoolean;
728
+ }>, import("zod").ZodObject<{
729
+ type: import("zod").ZodLiteral<"deleted">;
730
+ value: import("zod").ZodBoolean;
771
731
  }, "strip", ZodTypeAny, {
772
732
  type: "deleted";
773
733
  value: boolean;
774
734
  }, {
775
735
  type: "deleted";
776
736
  value: boolean;
777
- }>, z.ZodObject<{
778
- type: z.ZodLiteral<"changed">;
779
- old: z.ZodBoolean;
780
- new: z.ZodBoolean;
737
+ }>, import("zod").ZodObject<{
738
+ type: import("zod").ZodLiteral<"changed">;
739
+ old: import("zod").ZodBoolean;
740
+ new: import("zod").ZodBoolean;
781
741
  }, "strip", ZodTypeAny, {
782
742
  type: "changed";
783
743
  old: boolean;
@@ -787,28 +747,59 @@ export declare const alteredTableScheme: z.ZodObject<{
787
747
  old: boolean;
788
748
  new: boolean;
789
749
  }>]>>;
790
- onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
791
- type: z.ZodLiteral<"added">;
792
- value: z.ZodBoolean;
750
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
751
+ type: import("zod").ZodLiteral<"added">;
752
+ value: import("zod").ZodString;
753
+ }, "strip", ZodTypeAny, {
754
+ type: "added";
755
+ value: string;
756
+ }, {
757
+ type: "added";
758
+ value: string;
759
+ }>, import("zod").ZodObject<{
760
+ type: import("zod").ZodLiteral<"deleted">;
761
+ value: import("zod").ZodString;
762
+ }, "strip", ZodTypeAny, {
763
+ type: "deleted";
764
+ value: string;
765
+ }, {
766
+ type: "deleted";
767
+ value: string;
768
+ }>, import("zod").ZodObject<{
769
+ type: import("zod").ZodLiteral<"changed">;
770
+ old: import("zod").ZodString;
771
+ new: import("zod").ZodString;
772
+ }, "strip", ZodTypeAny, {
773
+ type: "changed";
774
+ old: string;
775
+ new: string;
776
+ }, {
777
+ type: "changed";
778
+ old: string;
779
+ new: string;
780
+ }>]>>;
781
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
782
+ type: import("zod").ZodLiteral<"added">;
783
+ value: import("zod").ZodBoolean;
793
784
  }, "strip", ZodTypeAny, {
794
785
  type: "added";
795
786
  value: boolean;
796
787
  }, {
797
788
  type: "added";
798
789
  value: boolean;
799
- }>, z.ZodObject<{
800
- type: z.ZodLiteral<"deleted">;
801
- value: z.ZodBoolean;
790
+ }>, import("zod").ZodObject<{
791
+ type: import("zod").ZodLiteral<"deleted">;
792
+ value: import("zod").ZodBoolean;
802
793
  }, "strip", ZodTypeAny, {
803
794
  type: "deleted";
804
795
  value: boolean;
805
796
  }, {
806
797
  type: "deleted";
807
798
  value: boolean;
808
- }>, z.ZodObject<{
809
- type: z.ZodLiteral<"changed">;
810
- old: z.ZodBoolean;
811
- new: z.ZodBoolean;
799
+ }>, import("zod").ZodObject<{
800
+ type: import("zod").ZodLiteral<"changed">;
801
+ old: import("zod").ZodBoolean;
802
+ new: import("zod").ZodBoolean;
812
803
  }, "strip", ZodTypeAny, {
813
804
  type: "changed";
814
805
  old: boolean;
@@ -818,28 +809,28 @@ export declare const alteredTableScheme: z.ZodObject<{
818
809
  old: boolean;
819
810
  new: boolean;
820
811
  }>]>>;
821
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
822
- type: z.ZodLiteral<"added">;
823
- value: z.ZodBoolean;
812
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
813
+ type: import("zod").ZodLiteral<"added">;
814
+ value: import("zod").ZodBoolean;
824
815
  }, "strip", ZodTypeAny, {
825
816
  type: "added";
826
817
  value: boolean;
827
818
  }, {
828
819
  type: "added";
829
820
  value: boolean;
830
- }>, z.ZodObject<{
831
- type: z.ZodLiteral<"deleted">;
832
- value: z.ZodBoolean;
821
+ }>, import("zod").ZodObject<{
822
+ type: import("zod").ZodLiteral<"deleted">;
823
+ value: import("zod").ZodBoolean;
833
824
  }, "strip", ZodTypeAny, {
834
825
  type: "deleted";
835
826
  value: boolean;
836
827
  }, {
837
828
  type: "deleted";
838
829
  value: boolean;
839
- }>, z.ZodObject<{
840
- type: z.ZodLiteral<"changed">;
841
- old: z.ZodBoolean;
842
- new: z.ZodBoolean;
830
+ }>, import("zod").ZodObject<{
831
+ type: import("zod").ZodLiteral<"changed">;
832
+ old: import("zod").ZodBoolean;
833
+ new: import("zod").ZodBoolean;
843
834
  }, "strip", ZodTypeAny, {
844
835
  type: "changed";
845
836
  old: boolean;
@@ -850,16 +841,21 @@ export declare const alteredTableScheme: z.ZodObject<{
850
841
  new: boolean;
851
842
  }>]>>;
852
843
  }, "strict", ZodTypeAny, {
844
+ name: string | {
845
+ type: "changed";
846
+ old: string;
847
+ new: string;
848
+ };
853
849
  default?: {
854
- value?: any;
855
850
  type: "added";
856
- } | {
857
851
  value?: any;
852
+ } | {
858
853
  type: "deleted";
854
+ value?: any;
859
855
  } | {
856
+ type: "changed";
860
857
  old?: any;
861
858
  new?: any;
862
- type: "changed";
863
859
  } | undefined;
864
860
  type?: {
865
861
  type: "changed";
@@ -910,22 +906,33 @@ export declare const alteredTableScheme: z.ZodObject<{
910
906
  old: boolean;
911
907
  new: boolean;
912
908
  } | undefined;
913
- name: string | {
909
+ typeSchema?: {
910
+ type: "added";
911
+ value: string;
912
+ } | {
913
+ type: "deleted";
914
+ value: string;
915
+ } | {
914
916
  type: "changed";
915
917
  old: string;
916
918
  new: string;
917
- };
919
+ } | undefined;
918
920
  }, {
921
+ name: string | {
922
+ type: "changed";
923
+ old: string;
924
+ new: string;
925
+ };
919
926
  default?: {
920
- value?: any;
921
927
  type: "added";
922
- } | {
923
928
  value?: any;
929
+ } | {
924
930
  type: "deleted";
931
+ value?: any;
925
932
  } | {
933
+ type: "changed";
926
934
  old?: any;
927
935
  new?: any;
928
- type: "changed";
929
936
  } | undefined;
930
937
  type?: {
931
938
  type: "changed";
@@ -976,17 +983,23 @@ export declare const alteredTableScheme: z.ZodObject<{
976
983
  old: boolean;
977
984
  new: boolean;
978
985
  } | undefined;
979
- name: string | {
986
+ typeSchema?: {
987
+ type: "added";
988
+ value: string;
989
+ } | {
990
+ type: "deleted";
991
+ value: string;
992
+ } | {
980
993
  type: "changed";
981
994
  old: string;
982
995
  new: string;
983
- };
996
+ } | undefined;
984
997
  }>, "many">;
985
- addedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
986
- deletedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
987
- alteredIndexes: z.ZodRecord<z.ZodString, z.ZodObject<{
988
- __new: z.ZodString;
989
- __old: z.ZodString;
998
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
999
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1000
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1001
+ __new: import("zod").ZodString;
1002
+ __old: import("zod").ZodString;
990
1003
  }, "strict", ZodTypeAny, {
991
1004
  __old: string;
992
1005
  __new: string;
@@ -994,11 +1007,11 @@ export declare const alteredTableScheme: z.ZodObject<{
994
1007
  __old: string;
995
1008
  __new: string;
996
1009
  }>>;
997
- addedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
998
- deletedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
999
- alteredForeignKeys: z.ZodRecord<z.ZodString, z.ZodObject<{
1000
- __new: z.ZodString;
1001
- __old: z.ZodString;
1010
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1011
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1012
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1013
+ __new: import("zod").ZodString;
1014
+ __old: import("zod").ZodString;
1002
1015
  }, "strict", ZodTypeAny, {
1003
1016
  __old: string;
1004
1017
  __new: string;
@@ -1006,11 +1019,11 @@ export declare const alteredTableScheme: z.ZodObject<{
1006
1019
  __old: string;
1007
1020
  __new: string;
1008
1021
  }>>;
1009
- addedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1010
- deletedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1011
- alteredCompositePKs: z.ZodRecord<z.ZodString, z.ZodObject<{
1012
- __new: z.ZodString;
1013
- __old: z.ZodString;
1022
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1023
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1024
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1025
+ __new: import("zod").ZodString;
1026
+ __old: import("zod").ZodString;
1014
1027
  }, "strip", ZodTypeAny, {
1015
1028
  __old: string;
1016
1029
  __new: string;
@@ -1018,11 +1031,11 @@ export declare const alteredTableScheme: z.ZodObject<{
1018
1031
  __old: string;
1019
1032
  __new: string;
1020
1033
  }>>;
1021
- addedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1022
- deletedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1023
- alteredUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodObject<{
1024
- __new: z.ZodString;
1025
- __old: z.ZodString;
1034
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1035
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1036
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1037
+ __new: import("zod").ZodString;
1038
+ __old: import("zod").ZodString;
1026
1039
  }, "strip", ZodTypeAny, {
1027
1040
  __old: string;
1028
1041
  __new: string;
@@ -1032,55 +1045,23 @@ export declare const alteredTableScheme: z.ZodObject<{
1032
1045
  }>>;
1033
1046
  }, "strict", ZodTypeAny, {
1034
1047
  name: string;
1035
- schema: {
1036
- value?: string | undefined;
1037
- type: "none";
1038
- } | {
1039
- type: "added";
1040
- value: string;
1041
- } | {
1042
- type: "deleted";
1043
- value: string;
1044
- } | {
1045
- type: "changed";
1046
- old: string;
1047
- new: string;
1048
- };
1049
- added: {
1050
- isUnique?: any;
1051
- default?: any;
1052
- onUpdate?: boolean | undefined;
1053
- primaryKey?: boolean | undefined;
1054
- notNull?: boolean | undefined;
1055
- autoincrement?: boolean | undefined;
1056
- uniqueName?: string | undefined;
1057
- nullsNotDistinct?: boolean | undefined;
1058
- name: string;
1059
- type: string;
1060
- }[];
1061
- deleted: {
1062
- isUnique?: any;
1063
- default?: any;
1064
- onUpdate?: boolean | undefined;
1065
- primaryKey?: boolean | undefined;
1066
- notNull?: boolean | undefined;
1067
- autoincrement?: boolean | undefined;
1068
- uniqueName?: string | undefined;
1069
- nullsNotDistinct?: boolean | undefined;
1070
- name: string;
1071
- type: string;
1072
- }[];
1048
+ schema: string;
1073
1049
  altered: {
1050
+ name: string | {
1051
+ type: "changed";
1052
+ old: string;
1053
+ new: string;
1054
+ };
1074
1055
  default?: {
1075
- value?: any;
1076
1056
  type: "added";
1077
- } | {
1078
1057
  value?: any;
1058
+ } | {
1079
1059
  type: "deleted";
1060
+ value?: any;
1080
1061
  } | {
1062
+ type: "changed";
1081
1063
  old?: any;
1082
1064
  new?: any;
1083
- type: "changed";
1084
1065
  } | undefined;
1085
1066
  type?: {
1086
1067
  type: "changed";
@@ -1131,11 +1112,17 @@ export declare const alteredTableScheme: z.ZodObject<{
1131
1112
  old: boolean;
1132
1113
  new: boolean;
1133
1114
  } | undefined;
1134
- name: string | {
1115
+ typeSchema?: {
1116
+ type: "added";
1117
+ value: string;
1118
+ } | {
1119
+ type: "deleted";
1120
+ value: string;
1121
+ } | {
1135
1122
  type: "changed";
1136
1123
  old: string;
1137
1124
  new: string;
1138
- };
1125
+ } | undefined;
1139
1126
  }[];
1140
1127
  addedIndexes: Record<string, string>;
1141
1128
  deletedIndexes: Record<string, string>;
@@ -1163,55 +1150,23 @@ export declare const alteredTableScheme: z.ZodObject<{
1163
1150
  }>;
1164
1151
  }, {
1165
1152
  name: string;
1166
- schema: {
1167
- value?: string | undefined;
1168
- type: "none";
1169
- } | {
1170
- type: "added";
1171
- value: string;
1172
- } | {
1173
- type: "deleted";
1174
- value: string;
1175
- } | {
1176
- type: "changed";
1177
- old: string;
1178
- new: string;
1179
- };
1180
- added: {
1181
- isUnique?: any;
1182
- default?: any;
1183
- onUpdate?: boolean | undefined;
1184
- primaryKey?: boolean | undefined;
1185
- notNull?: boolean | undefined;
1186
- autoincrement?: boolean | undefined;
1187
- uniqueName?: string | undefined;
1188
- nullsNotDistinct?: boolean | undefined;
1189
- name: string;
1190
- type: string;
1191
- }[];
1192
- deleted: {
1193
- isUnique?: any;
1194
- default?: any;
1195
- onUpdate?: boolean | undefined;
1196
- primaryKey?: boolean | undefined;
1197
- notNull?: boolean | undefined;
1198
- autoincrement?: boolean | undefined;
1199
- uniqueName?: string | undefined;
1200
- nullsNotDistinct?: boolean | undefined;
1201
- name: string;
1202
- type: string;
1203
- }[];
1153
+ schema: string;
1204
1154
  altered: {
1155
+ name: string | {
1156
+ type: "changed";
1157
+ old: string;
1158
+ new: string;
1159
+ };
1205
1160
  default?: {
1206
- value?: any;
1207
1161
  type: "added";
1208
- } | {
1209
1162
  value?: any;
1163
+ } | {
1210
1164
  type: "deleted";
1165
+ value?: any;
1211
1166
  } | {
1167
+ type: "changed";
1212
1168
  old?: any;
1213
1169
  new?: any;
1214
- type: "changed";
1215
1170
  } | undefined;
1216
1171
  type?: {
1217
1172
  type: "changed";
@@ -1262,11 +1217,17 @@ export declare const alteredTableScheme: z.ZodObject<{
1262
1217
  old: boolean;
1263
1218
  new: boolean;
1264
1219
  } | undefined;
1265
- name: string | {
1220
+ typeSchema?: {
1221
+ type: "added";
1222
+ value: string;
1223
+ } | {
1224
+ type: "deleted";
1225
+ value: string;
1226
+ } | {
1266
1227
  type: "changed";
1267
1228
  old: string;
1268
1229
  new: string;
1269
- };
1230
+ } | undefined;
1270
1231
  }[];
1271
1232
  addedIndexes: Record<string, string>;
1272
1233
  deletedIndexes: Record<string, string>;
@@ -1293,282 +1254,15 @@ export declare const alteredTableScheme: z.ZodObject<{
1293
1254
  __new: string;
1294
1255
  }>;
1295
1256
  }>;
1296
- export declare const diffResultScheme: z.ZodObject<{
1297
- addedTables: z.ZodArray<z.ZodObject<{
1298
- name: z.ZodString;
1299
- schema: z.ZodDefault<z.ZodString>;
1300
- columns: z.ZodRecord<z.ZodString, z.ZodObject<{
1301
- name: z.ZodString;
1302
- type: z.ZodString;
1303
- primaryKey: z.ZodOptional<z.ZodBoolean>;
1304
- default: z.ZodOptional<z.ZodAny>;
1305
- notNull: z.ZodOptional<z.ZodBoolean>;
1306
- autoincrement: z.ZodOptional<z.ZodBoolean>;
1307
- onUpdate: z.ZodOptional<z.ZodBoolean>;
1308
- isUnique: z.ZodOptional<z.ZodAny>;
1309
- uniqueName: z.ZodOptional<z.ZodString>;
1310
- nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1311
- }, "strict", ZodTypeAny, {
1312
- isUnique?: any;
1313
- default?: any;
1314
- onUpdate?: boolean | undefined;
1315
- primaryKey?: boolean | undefined;
1316
- notNull?: boolean | undefined;
1317
- autoincrement?: boolean | undefined;
1318
- uniqueName?: string | undefined;
1319
- nullsNotDistinct?: boolean | undefined;
1320
- name: string;
1321
- type: string;
1322
- }, {
1323
- isUnique?: any;
1324
- default?: any;
1325
- onUpdate?: boolean | undefined;
1326
- primaryKey?: boolean | undefined;
1327
- notNull?: boolean | undefined;
1328
- autoincrement?: boolean | undefined;
1329
- uniqueName?: string | undefined;
1330
- nullsNotDistinct?: boolean | undefined;
1331
- name: string;
1332
- type: string;
1333
- }>>;
1334
- indexes: z.ZodRecord<z.ZodString, z.ZodString>;
1335
- foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1336
- compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1337
- uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1338
- }, "strict", ZodTypeAny, {
1339
- name: string;
1340
- columns: Record<string, {
1341
- isUnique?: any;
1342
- default?: any;
1343
- onUpdate?: boolean | undefined;
1344
- primaryKey?: boolean | undefined;
1345
- notNull?: boolean | undefined;
1346
- autoincrement?: boolean | undefined;
1347
- uniqueName?: string | undefined;
1348
- nullsNotDistinct?: boolean | undefined;
1349
- name: string;
1350
- type: string;
1351
- }>;
1352
- indexes: Record<string, string>;
1353
- foreignKeys: Record<string, string>;
1354
- schema: string;
1355
- compositePrimaryKeys: Record<string, string>;
1356
- uniqueConstraints: Record<string, string>;
1357
- }, {
1358
- schema?: string | undefined;
1359
- compositePrimaryKeys?: Record<string, string> | undefined;
1360
- uniqueConstraints?: Record<string, string> | undefined;
1361
- name: string;
1362
- columns: Record<string, {
1363
- isUnique?: any;
1364
- default?: any;
1365
- onUpdate?: boolean | undefined;
1366
- primaryKey?: boolean | undefined;
1367
- notNull?: boolean | undefined;
1368
- autoincrement?: boolean | undefined;
1369
- uniqueName?: string | undefined;
1370
- nullsNotDistinct?: boolean | undefined;
1371
- name: string;
1372
- type: string;
1373
- }>;
1374
- indexes: Record<string, string>;
1375
- foreignKeys: Record<string, string>;
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;
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;
1572
1266
  }, "strip", ZodTypeAny, {
1573
1267
  type: "changed";
1574
1268
  old: string;
@@ -1578,10 +1272,10 @@ export declare const diffResultScheme: z.ZodObject<{
1578
1272
  old: string;
1579
1273
  new: string;
1580
1274
  }>]>;
1581
- type: z.ZodOptional<z.ZodObject<{
1582
- type: z.ZodEnum<["changed"]>;
1583
- old: z.ZodString;
1584
- new: z.ZodString;
1275
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
1276
+ type: import("zod").ZodEnum<["changed"]>;
1277
+ old: import("zod").ZodString;
1278
+ new: import("zod").ZodString;
1585
1279
  }, "strip", ZodTypeAny, {
1586
1280
  type: "changed";
1587
1281
  old: string;
@@ -1591,59 +1285,1803 @@ export declare const diffResultScheme: z.ZodObject<{
1591
1285
  old: string;
1592
1286
  new: string;
1593
1287
  }>>;
1594
- default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1595
- type: z.ZodLiteral<"added">;
1596
- value: z.ZodAny;
1288
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1289
+ type: import("zod").ZodLiteral<"added">;
1290
+ value: import("zod").ZodAny;
1597
1291
  }, "strip", ZodTypeAny, {
1598
- value?: any;
1599
1292
  type: "added";
1600
- }, {
1601
1293
  value?: any;
1294
+ }, {
1602
1295
  type: "added";
1603
- }>, z.ZodObject<{
1604
- type: z.ZodLiteral<"deleted">;
1605
- value: z.ZodAny;
1606
- }, "strip", ZodTypeAny, {
1607
1296
  value?: any;
1297
+ }>, import("zod").ZodObject<{
1298
+ type: import("zod").ZodLiteral<"deleted">;
1299
+ value: import("zod").ZodAny;
1300
+ }, "strip", ZodTypeAny, {
1608
1301
  type: "deleted";
1609
- }, {
1610
1302
  value?: any;
1303
+ }, {
1611
1304
  type: "deleted";
1612
- }>, z.ZodObject<{
1613
- type: z.ZodLiteral<"changed">;
1614
- old: z.ZodAny;
1615
- new: z.ZodAny;
1305
+ value?: any;
1306
+ }>, import("zod").ZodObject<{
1307
+ type: import("zod").ZodLiteral<"changed">;
1308
+ old: import("zod").ZodAny;
1309
+ new: import("zod").ZodAny;
1616
1310
  }, "strip", ZodTypeAny, {
1311
+ type: "changed";
1312
+ old?: any;
1313
+ new?: any;
1314
+ }, {
1315
+ type: "changed";
1617
1316
  old?: any;
1618
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
+ type: "added";
1386
+ value: string;
1387
+ }, {
1388
+ type: "added";
1389
+ value: string;
1390
+ }>, import("zod").ZodObject<{
1391
+ type: import("zod").ZodLiteral<"deleted">;
1392
+ value: import("zod").ZodString;
1393
+ }, "strip", ZodTypeAny, {
1394
+ type: "deleted";
1395
+ value: string;
1396
+ }, {
1397
+ type: "deleted";
1398
+ value: string;
1399
+ }>, import("zod").ZodObject<{
1400
+ type: import("zod").ZodLiteral<"changed">;
1401
+ old: import("zod").ZodString;
1402
+ new: import("zod").ZodString;
1403
+ }, "strip", ZodTypeAny, {
1404
+ type: "changed";
1405
+ old: string;
1406
+ new: string;
1407
+ }, {
1619
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;
1620
1418
  }, {
1419
+ type: "added";
1420
+ value: boolean;
1421
+ }>, import("zod").ZodObject<{
1422
+ type: import("zod").ZodLiteral<"deleted">;
1423
+ value: import("zod").ZodBoolean;
1424
+ }, "strip", ZodTypeAny, {
1425
+ type: "deleted";
1426
+ value: boolean;
1427
+ }, {
1428
+ type: "deleted";
1429
+ value: boolean;
1430
+ }>, import("zod").ZodObject<{
1431
+ type: import("zod").ZodLiteral<"changed">;
1432
+ old: import("zod").ZodBoolean;
1433
+ new: import("zod").ZodBoolean;
1434
+ }, "strip", ZodTypeAny, {
1435
+ type: "changed";
1436
+ old: boolean;
1437
+ new: boolean;
1438
+ }, {
1439
+ type: "changed";
1440
+ old: boolean;
1441
+ new: boolean;
1442
+ }>]>>;
1443
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1444
+ type: import("zod").ZodLiteral<"added">;
1445
+ value: import("zod").ZodBoolean;
1446
+ }, "strip", ZodTypeAny, {
1447
+ type: "added";
1448
+ value: boolean;
1449
+ }, {
1450
+ type: "added";
1451
+ value: boolean;
1452
+ }>, import("zod").ZodObject<{
1453
+ type: import("zod").ZodLiteral<"deleted">;
1454
+ value: import("zod").ZodBoolean;
1455
+ }, "strip", ZodTypeAny, {
1456
+ type: "deleted";
1457
+ value: boolean;
1458
+ }, {
1459
+ type: "deleted";
1460
+ value: boolean;
1461
+ }>, import("zod").ZodObject<{
1462
+ type: import("zod").ZodLiteral<"changed">;
1463
+ old: import("zod").ZodBoolean;
1464
+ new: import("zod").ZodBoolean;
1465
+ }, "strip", ZodTypeAny, {
1466
+ type: "changed";
1467
+ old: boolean;
1468
+ new: boolean;
1469
+ }, {
1470
+ type: "changed";
1471
+ old: boolean;
1472
+ new: boolean;
1473
+ }>]>>;
1474
+ }, "strict", ZodTypeAny, {
1475
+ 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";
1621
3060
  old?: any;
1622
3061
  new?: any;
1623
- type: "changed";
1624
3062
  }>]>>;
1625
- primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1626
- type: z.ZodLiteral<"added">;
1627
- value: z.ZodBoolean;
3063
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3064
+ type: import("zod").ZodLiteral<"added">;
3065
+ value: import("zod").ZodBoolean;
1628
3066
  }, "strip", ZodTypeAny, {
1629
3067
  type: "added";
1630
3068
  value: boolean;
1631
3069
  }, {
1632
3070
  type: "added";
1633
3071
  value: boolean;
1634
- }>, z.ZodObject<{
1635
- type: z.ZodLiteral<"deleted">;
1636
- value: z.ZodBoolean;
3072
+ }>, import("zod").ZodObject<{
3073
+ type: import("zod").ZodLiteral<"deleted">;
3074
+ value: import("zod").ZodBoolean;
1637
3075
  }, "strip", ZodTypeAny, {
1638
3076
  type: "deleted";
1639
3077
  value: boolean;
1640
3078
  }, {
1641
3079
  type: "deleted";
1642
3080
  value: boolean;
1643
- }>, z.ZodObject<{
1644
- type: z.ZodLiteral<"changed">;
1645
- old: z.ZodBoolean;
1646
- new: z.ZodBoolean;
3081
+ }>, import("zod").ZodObject<{
3082
+ type: import("zod").ZodLiteral<"changed">;
3083
+ old: import("zod").ZodBoolean;
3084
+ new: import("zod").ZodBoolean;
1647
3085
  }, "strip", ZodTypeAny, {
1648
3086
  type: "changed";
1649
3087
  old: boolean;
@@ -1653,28 +3091,28 @@ export declare const diffResultScheme: z.ZodObject<{
1653
3091
  old: boolean;
1654
3092
  new: boolean;
1655
3093
  }>]>>;
1656
- notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1657
- type: z.ZodLiteral<"added">;
1658
- value: z.ZodBoolean;
3094
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3095
+ type: import("zod").ZodLiteral<"added">;
3096
+ value: import("zod").ZodBoolean;
1659
3097
  }, "strip", ZodTypeAny, {
1660
3098
  type: "added";
1661
3099
  value: boolean;
1662
3100
  }, {
1663
3101
  type: "added";
1664
3102
  value: boolean;
1665
- }>, z.ZodObject<{
1666
- type: z.ZodLiteral<"deleted">;
1667
- value: z.ZodBoolean;
3103
+ }>, import("zod").ZodObject<{
3104
+ type: import("zod").ZodLiteral<"deleted">;
3105
+ value: import("zod").ZodBoolean;
1668
3106
  }, "strip", ZodTypeAny, {
1669
3107
  type: "deleted";
1670
3108
  value: boolean;
1671
3109
  }, {
1672
3110
  type: "deleted";
1673
3111
  value: boolean;
1674
- }>, z.ZodObject<{
1675
- type: z.ZodLiteral<"changed">;
1676
- old: z.ZodBoolean;
1677
- new: z.ZodBoolean;
3112
+ }>, import("zod").ZodObject<{
3113
+ type: import("zod").ZodLiteral<"changed">;
3114
+ old: import("zod").ZodBoolean;
3115
+ new: import("zod").ZodBoolean;
1678
3116
  }, "strip", ZodTypeAny, {
1679
3117
  type: "changed";
1680
3118
  old: boolean;
@@ -1684,28 +3122,59 @@ export declare const diffResultScheme: z.ZodObject<{
1684
3122
  old: boolean;
1685
3123
  new: boolean;
1686
3124
  }>]>>;
1687
- onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1688
- type: z.ZodLiteral<"added">;
1689
- value: z.ZodBoolean;
3125
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3126
+ type: import("zod").ZodLiteral<"added">;
3127
+ value: import("zod").ZodString;
3128
+ }, "strip", ZodTypeAny, {
3129
+ type: "added";
3130
+ value: string;
3131
+ }, {
3132
+ type: "added";
3133
+ value: string;
3134
+ }>, import("zod").ZodObject<{
3135
+ type: import("zod").ZodLiteral<"deleted">;
3136
+ value: import("zod").ZodString;
3137
+ }, "strip", ZodTypeAny, {
3138
+ type: "deleted";
3139
+ value: string;
3140
+ }, {
3141
+ type: "deleted";
3142
+ value: string;
3143
+ }>, import("zod").ZodObject<{
3144
+ type: import("zod").ZodLiteral<"changed">;
3145
+ old: import("zod").ZodString;
3146
+ new: import("zod").ZodString;
3147
+ }, "strip", ZodTypeAny, {
3148
+ type: "changed";
3149
+ old: string;
3150
+ new: string;
3151
+ }, {
3152
+ type: "changed";
3153
+ old: string;
3154
+ new: string;
3155
+ }>]>>;
3156
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3157
+ type: import("zod").ZodLiteral<"added">;
3158
+ value: import("zod").ZodBoolean;
1690
3159
  }, "strip", ZodTypeAny, {
1691
3160
  type: "added";
1692
3161
  value: boolean;
1693
3162
  }, {
1694
3163
  type: "added";
1695
3164
  value: boolean;
1696
- }>, z.ZodObject<{
1697
- type: z.ZodLiteral<"deleted">;
1698
- value: z.ZodBoolean;
3165
+ }>, import("zod").ZodObject<{
3166
+ type: import("zod").ZodLiteral<"deleted">;
3167
+ value: import("zod").ZodBoolean;
1699
3168
  }, "strip", ZodTypeAny, {
1700
3169
  type: "deleted";
1701
3170
  value: boolean;
1702
3171
  }, {
1703
3172
  type: "deleted";
1704
3173
  value: boolean;
1705
- }>, z.ZodObject<{
1706
- type: z.ZodLiteral<"changed">;
1707
- old: z.ZodBoolean;
1708
- new: z.ZodBoolean;
3174
+ }>, import("zod").ZodObject<{
3175
+ type: import("zod").ZodLiteral<"changed">;
3176
+ old: import("zod").ZodBoolean;
3177
+ new: import("zod").ZodBoolean;
1709
3178
  }, "strip", ZodTypeAny, {
1710
3179
  type: "changed";
1711
3180
  old: boolean;
@@ -1715,28 +3184,28 @@ export declare const diffResultScheme: z.ZodObject<{
1715
3184
  old: boolean;
1716
3185
  new: boolean;
1717
3186
  }>]>>;
1718
- autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1719
- type: z.ZodLiteral<"added">;
1720
- value: z.ZodBoolean;
3187
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3188
+ type: import("zod").ZodLiteral<"added">;
3189
+ value: import("zod").ZodBoolean;
1721
3190
  }, "strip", ZodTypeAny, {
1722
3191
  type: "added";
1723
3192
  value: boolean;
1724
3193
  }, {
1725
3194
  type: "added";
1726
3195
  value: boolean;
1727
- }>, z.ZodObject<{
1728
- type: z.ZodLiteral<"deleted">;
1729
- value: z.ZodBoolean;
3196
+ }>, import("zod").ZodObject<{
3197
+ type: import("zod").ZodLiteral<"deleted">;
3198
+ value: import("zod").ZodBoolean;
1730
3199
  }, "strip", ZodTypeAny, {
1731
3200
  type: "deleted";
1732
3201
  value: boolean;
1733
3202
  }, {
1734
3203
  type: "deleted";
1735
3204
  value: boolean;
1736
- }>, z.ZodObject<{
1737
- type: z.ZodLiteral<"changed">;
1738
- old: z.ZodBoolean;
1739
- new: z.ZodBoolean;
3205
+ }>, import("zod").ZodObject<{
3206
+ type: import("zod").ZodLiteral<"changed">;
3207
+ old: import("zod").ZodBoolean;
3208
+ new: import("zod").ZodBoolean;
1740
3209
  }, "strip", ZodTypeAny, {
1741
3210
  type: "changed";
1742
3211
  old: boolean;
@@ -1747,16 +3216,21 @@ export declare const diffResultScheme: z.ZodObject<{
1747
3216
  new: boolean;
1748
3217
  }>]>>;
1749
3218
  }, "strict", ZodTypeAny, {
3219
+ name: string | {
3220
+ type: "changed";
3221
+ old: string;
3222
+ new: string;
3223
+ };
1750
3224
  default?: {
1751
- value?: any;
1752
3225
  type: "added";
1753
- } | {
1754
3226
  value?: any;
3227
+ } | {
1755
3228
  type: "deleted";
3229
+ value?: any;
1756
3230
  } | {
3231
+ type: "changed";
1757
3232
  old?: any;
1758
3233
  new?: any;
1759
- type: "changed";
1760
3234
  } | undefined;
1761
3235
  type?: {
1762
3236
  type: "changed";
@@ -1807,22 +3281,33 @@ export declare const diffResultScheme: z.ZodObject<{
1807
3281
  old: boolean;
1808
3282
  new: boolean;
1809
3283
  } | 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
+ }, {
1810
3296
  name: string | {
1811
3297
  type: "changed";
1812
3298
  old: string;
1813
3299
  new: string;
1814
3300
  };
1815
- }, {
1816
3301
  default?: {
1817
- value?: any;
1818
3302
  type: "added";
1819
- } | {
1820
3303
  value?: any;
3304
+ } | {
1821
3305
  type: "deleted";
3306
+ value?: any;
1822
3307
  } | {
3308
+ type: "changed";
1823
3309
  old?: any;
1824
3310
  new?: any;
1825
- type: "changed";
1826
3311
  } | undefined;
1827
3312
  type?: {
1828
3313
  type: "changed";
@@ -1873,17 +3358,23 @@ export declare const diffResultScheme: z.ZodObject<{
1873
3358
  old: boolean;
1874
3359
  new: boolean;
1875
3360
  } | undefined;
1876
- name: string | {
3361
+ typeSchema?: {
3362
+ type: "added";
3363
+ value: string;
3364
+ } | {
3365
+ type: "deleted";
3366
+ value: string;
3367
+ } | {
1877
3368
  type: "changed";
1878
3369
  old: string;
1879
3370
  new: string;
1880
- };
3371
+ } | undefined;
1881
3372
  }>, "many">;
1882
- addedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
1883
- deletedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
1884
- alteredIndexes: z.ZodRecord<z.ZodString, z.ZodObject<{
1885
- __new: z.ZodString;
1886
- __old: z.ZodString;
3373
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3374
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3375
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3376
+ __new: import("zod").ZodString;
3377
+ __old: import("zod").ZodString;
1887
3378
  }, "strict", ZodTypeAny, {
1888
3379
  __old: string;
1889
3380
  __new: string;
@@ -1891,11 +3382,11 @@ export declare const diffResultScheme: z.ZodObject<{
1891
3382
  __old: string;
1892
3383
  __new: string;
1893
3384
  }>>;
1894
- addedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1895
- deletedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1896
- alteredForeignKeys: z.ZodRecord<z.ZodString, z.ZodObject<{
1897
- __new: z.ZodString;
1898
- __old: z.ZodString;
3385
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3386
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3387
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3388
+ __new: import("zod").ZodString;
3389
+ __old: import("zod").ZodString;
1899
3390
  }, "strict", ZodTypeAny, {
1900
3391
  __old: string;
1901
3392
  __new: string;
@@ -1903,11 +3394,11 @@ export declare const diffResultScheme: z.ZodObject<{
1903
3394
  __old: string;
1904
3395
  __new: string;
1905
3396
  }>>;
1906
- addedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1907
- deletedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1908
- alteredCompositePKs: z.ZodRecord<z.ZodString, z.ZodObject<{
1909
- __new: z.ZodString;
1910
- __old: z.ZodString;
3397
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3398
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3399
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3400
+ __new: import("zod").ZodString;
3401
+ __old: import("zod").ZodString;
1911
3402
  }, "strip", ZodTypeAny, {
1912
3403
  __old: string;
1913
3404
  __new: string;
@@ -1915,11 +3406,11 @@ export declare const diffResultScheme: z.ZodObject<{
1915
3406
  __old: string;
1916
3407
  __new: string;
1917
3408
  }>>;
1918
- addedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1919
- deletedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1920
- alteredUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodObject<{
1921
- __new: z.ZodString;
1922
- __old: z.ZodString;
3409
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3410
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3411
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3412
+ __new: import("zod").ZodString;
3413
+ __old: import("zod").ZodString;
1923
3414
  }, "strip", ZodTypeAny, {
1924
3415
  __old: string;
1925
3416
  __new: string;
@@ -1929,55 +3420,23 @@ export declare const diffResultScheme: z.ZodObject<{
1929
3420
  }>>;
1930
3421
  }, "strict", ZodTypeAny, {
1931
3422
  name: string;
1932
- schema: {
1933
- value?: string | undefined;
1934
- type: "none";
1935
- } | {
1936
- type: "added";
1937
- value: string;
1938
- } | {
1939
- type: "deleted";
1940
- value: string;
1941
- } | {
1942
- type: "changed";
1943
- old: string;
1944
- new: string;
1945
- };
1946
- added: {
1947
- isUnique?: any;
1948
- default?: any;
1949
- onUpdate?: boolean | undefined;
1950
- primaryKey?: boolean | undefined;
1951
- notNull?: boolean | undefined;
1952
- autoincrement?: boolean | undefined;
1953
- uniqueName?: string | undefined;
1954
- nullsNotDistinct?: boolean | undefined;
1955
- name: string;
1956
- type: string;
1957
- }[];
1958
- deleted: {
1959
- isUnique?: any;
1960
- default?: any;
1961
- onUpdate?: boolean | undefined;
1962
- primaryKey?: boolean | undefined;
1963
- notNull?: boolean | undefined;
1964
- autoincrement?: boolean | undefined;
1965
- uniqueName?: string | undefined;
1966
- nullsNotDistinct?: boolean | undefined;
1967
- name: string;
1968
- type: string;
1969
- }[];
3423
+ schema: string;
1970
3424
  altered: {
3425
+ name: string | {
3426
+ type: "changed";
3427
+ old: string;
3428
+ new: string;
3429
+ };
1971
3430
  default?: {
1972
- value?: any;
1973
3431
  type: "added";
1974
- } | {
1975
3432
  value?: any;
3433
+ } | {
1976
3434
  type: "deleted";
3435
+ value?: any;
1977
3436
  } | {
3437
+ type: "changed";
1978
3438
  old?: any;
1979
3439
  new?: any;
1980
- type: "changed";
1981
3440
  } | undefined;
1982
3441
  type?: {
1983
3442
  type: "changed";
@@ -2028,11 +3487,17 @@ export declare const diffResultScheme: z.ZodObject<{
2028
3487
  old: boolean;
2029
3488
  new: boolean;
2030
3489
  } | undefined;
2031
- name: string | {
3490
+ typeSchema?: {
3491
+ type: "added";
3492
+ value: string;
3493
+ } | {
3494
+ type: "deleted";
3495
+ value: string;
3496
+ } | {
2032
3497
  type: "changed";
2033
3498
  old: string;
2034
3499
  new: string;
2035
- };
3500
+ } | undefined;
2036
3501
  }[];
2037
3502
  addedIndexes: Record<string, string>;
2038
3503
  deletedIndexes: Record<string, string>;
@@ -2060,55 +3525,23 @@ export declare const diffResultScheme: z.ZodObject<{
2060
3525
  }>;
2061
3526
  }, {
2062
3527
  name: string;
2063
- schema: {
2064
- value?: string | undefined;
2065
- type: "none";
2066
- } | {
2067
- type: "added";
2068
- value: string;
2069
- } | {
2070
- type: "deleted";
2071
- value: string;
2072
- } | {
2073
- type: "changed";
2074
- old: string;
2075
- new: string;
2076
- };
2077
- added: {
2078
- isUnique?: any;
2079
- default?: any;
2080
- onUpdate?: boolean | undefined;
2081
- primaryKey?: boolean | undefined;
2082
- notNull?: boolean | undefined;
2083
- autoincrement?: boolean | undefined;
2084
- uniqueName?: string | undefined;
2085
- nullsNotDistinct?: boolean | undefined;
2086
- name: string;
2087
- type: string;
2088
- }[];
2089
- deleted: {
2090
- isUnique?: any;
2091
- default?: any;
2092
- onUpdate?: boolean | undefined;
2093
- primaryKey?: boolean | undefined;
2094
- notNull?: boolean | undefined;
2095
- autoincrement?: boolean | undefined;
2096
- uniqueName?: string | undefined;
2097
- nullsNotDistinct?: boolean | undefined;
2098
- name: string;
2099
- type: string;
2100
- }[];
3528
+ schema: string;
2101
3529
  altered: {
3530
+ name: string | {
3531
+ type: "changed";
3532
+ old: string;
3533
+ new: string;
3534
+ };
2102
3535
  default?: {
2103
- value?: any;
2104
3536
  type: "added";
2105
- } | {
2106
3537
  value?: any;
3538
+ } | {
2107
3539
  type: "deleted";
3540
+ value?: any;
2108
3541
  } | {
3542
+ type: "changed";
2109
3543
  old?: any;
2110
3544
  new?: any;
2111
- type: "changed";
2112
3545
  } | undefined;
2113
3546
  type?: {
2114
3547
  type: "changed";
@@ -2159,11 +3592,17 @@ export declare const diffResultScheme: z.ZodObject<{
2159
3592
  old: boolean;
2160
3593
  new: boolean;
2161
3594
  } | undefined;
2162
- name: string | {
3595
+ typeSchema?: {
3596
+ type: "added";
3597
+ value: string;
3598
+ } | {
3599
+ type: "deleted";
3600
+ value: string;
3601
+ } | {
2163
3602
  type: "changed";
2164
3603
  old: string;
2165
3604
  new: string;
2166
- };
3605
+ } | undefined;
2167
3606
  }[];
2168
3607
  addedIndexes: Record<string, string>;
2169
3608
  deletedIndexes: Record<string, string>;
@@ -2190,133 +3629,27 @@ export declare const diffResultScheme: z.ZodObject<{
2190
3629
  __new: string;
2191
3630
  }>;
2192
3631
  }>, "many">;
2193
- addedEnums: z.ZodArray<z.ZodObject<{
2194
- name: z.ZodString;
2195
- values: z.ZodArray<z.ZodString, "many">;
2196
- }, "strict", ZodTypeAny, {
2197
- name: string;
2198
- values: string[];
2199
- }, {
2200
- name: string;
2201
- values: string[];
2202
- }>, "many">;
2203
- deletedEnums: z.ZodArray<z.ZodObject<{
2204
- name: z.ZodString;
2205
- values: z.ZodArray<z.ZodString, "many">;
2206
- }, "strict", ZodTypeAny, {
2207
- name: string;
2208
- values: string[];
2209
- }, {
2210
- name: string;
2211
- values: string[];
2212
- }>, "many">;
2213
- alteredEnums: z.ZodArray<z.ZodObject<{
2214
- name: z.ZodString;
2215
- addedValues: z.ZodArray<z.ZodString, "many">;
2216
- deletedValues: z.ZodArray<z.ZodString, "many">;
2217
- }, "strict", ZodTypeAny, {
2218
- name: string;
2219
- addedValues: string[];
2220
- deletedValues: string[];
2221
- }, {
2222
- name: string;
2223
- addedValues: string[];
2224
- deletedValues: string[];
2225
- }>, "many">;
2226
- addedSchemas: z.ZodArray<z.ZodString, "many">;
2227
- deletedSchemas: z.ZodArray<z.ZodString, "many">;
3632
+ alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "many">;
2228
3633
  }, "strict", ZodTypeAny, {
2229
- addedTables: {
2230
- name: string;
2231
- columns: Record<string, {
2232
- isUnique?: any;
2233
- default?: any;
2234
- onUpdate?: boolean | undefined;
2235
- primaryKey?: boolean | undefined;
2236
- notNull?: boolean | undefined;
2237
- autoincrement?: boolean | undefined;
2238
- uniqueName?: string | undefined;
2239
- nullsNotDistinct?: boolean | undefined;
2240
- name: string;
2241
- type: string;
2242
- }>;
2243
- indexes: Record<string, string>;
2244
- foreignKeys: Record<string, string>;
2245
- schema: string;
2246
- compositePrimaryKeys: Record<string, string>;
2247
- uniqueConstraints: Record<string, string>;
2248
- }[];
2249
- deletedTables: {
2250
- name: string;
2251
- columns: Record<string, {
2252
- isUnique?: any;
2253
- default?: any;
2254
- onUpdate?: boolean | undefined;
2255
- primaryKey?: boolean | undefined;
2256
- notNull?: boolean | undefined;
2257
- autoincrement?: boolean | undefined;
2258
- uniqueName?: string | undefined;
2259
- nullsNotDistinct?: boolean | undefined;
2260
- name: string;
2261
- type: string;
2262
- }>;
2263
- indexes: Record<string, string>;
2264
- foreignKeys: Record<string, string>;
2265
- schema: string;
2266
- compositePrimaryKeys: Record<string, string>;
2267
- uniqueConstraints: Record<string, string>;
2268
- }[];
2269
3634
  alteredTablesWithColumns: {
2270
3635
  name: string;
2271
- schema: {
2272
- value?: string | undefined;
2273
- type: "none";
2274
- } | {
2275
- type: "added";
2276
- value: string;
2277
- } | {
2278
- type: "deleted";
2279
- value: string;
2280
- } | {
2281
- type: "changed";
2282
- old: string;
2283
- new: string;
2284
- };
2285
- added: {
2286
- isUnique?: any;
2287
- default?: any;
2288
- onUpdate?: boolean | undefined;
2289
- primaryKey?: boolean | undefined;
2290
- notNull?: boolean | undefined;
2291
- autoincrement?: boolean | undefined;
2292
- uniqueName?: string | undefined;
2293
- nullsNotDistinct?: boolean | undefined;
2294
- name: string;
2295
- type: string;
2296
- }[];
2297
- deleted: {
2298
- isUnique?: any;
2299
- default?: any;
2300
- onUpdate?: boolean | undefined;
2301
- primaryKey?: boolean | undefined;
2302
- notNull?: boolean | undefined;
2303
- autoincrement?: boolean | undefined;
2304
- uniqueName?: string | undefined;
2305
- nullsNotDistinct?: boolean | undefined;
2306
- name: string;
2307
- type: string;
2308
- }[];
3636
+ schema: string;
2309
3637
  altered: {
3638
+ name: string | {
3639
+ type: "changed";
3640
+ old: string;
3641
+ new: string;
3642
+ };
2310
3643
  default?: {
2311
- value?: any;
2312
3644
  type: "added";
2313
- } | {
2314
3645
  value?: any;
3646
+ } | {
2315
3647
  type: "deleted";
3648
+ value?: any;
2316
3649
  } | {
3650
+ type: "changed";
2317
3651
  old?: any;
2318
3652
  new?: any;
2319
- type: "changed";
2320
3653
  } | undefined;
2321
3654
  type?: {
2322
3655
  type: "changed";
@@ -2367,11 +3700,17 @@ export declare const diffResultScheme: z.ZodObject<{
2367
3700
  old: boolean;
2368
3701
  new: boolean;
2369
3702
  } | undefined;
2370
- name: string | {
3703
+ typeSchema?: {
3704
+ type: "added";
3705
+ value: string;
3706
+ } | {
3707
+ type: "deleted";
3708
+ value: string;
3709
+ } | {
2371
3710
  type: "changed";
2372
3711
  old: string;
2373
3712
  new: string;
2374
- };
3713
+ } | undefined;
2375
3714
  }[];
2376
3715
  addedIndexes: Record<string, string>;
2377
3716
  deletedIndexes: Record<string, string>;
@@ -2398,113 +3737,27 @@ export declare const diffResultScheme: z.ZodObject<{
2398
3737
  __new: string;
2399
3738
  }>;
2400
3739
  }[];
2401
- addedEnums: {
2402
- name: string;
2403
- values: string[];
2404
- }[];
2405
- deletedEnums: {
2406
- name: string;
2407
- values: string[];
2408
- }[];
2409
- alteredEnums: {
2410
- name: string;
2411
- addedValues: string[];
2412
- deletedValues: string[];
2413
- }[];
2414
- addedSchemas: string[];
2415
- deletedSchemas: string[];
3740
+ alteredEnums: never[];
2416
3741
  }, {
2417
- addedTables: {
2418
- schema?: string | undefined;
2419
- compositePrimaryKeys?: Record<string, string> | undefined;
2420
- uniqueConstraints?: Record<string, string> | undefined;
2421
- name: string;
2422
- columns: Record<string, {
2423
- isUnique?: any;
2424
- default?: any;
2425
- onUpdate?: boolean | undefined;
2426
- primaryKey?: boolean | undefined;
2427
- notNull?: boolean | undefined;
2428
- autoincrement?: boolean | undefined;
2429
- uniqueName?: string | undefined;
2430
- nullsNotDistinct?: boolean | undefined;
2431
- name: string;
2432
- type: string;
2433
- }>;
2434
- indexes: Record<string, string>;
2435
- foreignKeys: Record<string, string>;
2436
- }[];
2437
- deletedTables: {
2438
- schema?: string | undefined;
2439
- compositePrimaryKeys?: Record<string, string> | undefined;
2440
- uniqueConstraints?: Record<string, string> | undefined;
2441
- name: string;
2442
- columns: Record<string, {
2443
- isUnique?: any;
2444
- default?: any;
2445
- onUpdate?: boolean | undefined;
2446
- primaryKey?: boolean | undefined;
2447
- notNull?: boolean | undefined;
2448
- autoincrement?: boolean | undefined;
2449
- uniqueName?: string | undefined;
2450
- nullsNotDistinct?: boolean | undefined;
2451
- name: string;
2452
- type: string;
2453
- }>;
2454
- indexes: Record<string, string>;
2455
- foreignKeys: Record<string, string>;
2456
- }[];
2457
3742
  alteredTablesWithColumns: {
2458
3743
  name: string;
2459
- schema: {
2460
- value?: string | undefined;
2461
- type: "none";
2462
- } | {
2463
- type: "added";
2464
- value: string;
2465
- } | {
2466
- type: "deleted";
2467
- value: string;
2468
- } | {
2469
- type: "changed";
2470
- old: string;
2471
- new: string;
2472
- };
2473
- added: {
2474
- isUnique?: any;
2475
- default?: any;
2476
- onUpdate?: boolean | undefined;
2477
- primaryKey?: boolean | undefined;
2478
- notNull?: boolean | undefined;
2479
- autoincrement?: boolean | undefined;
2480
- uniqueName?: string | undefined;
2481
- nullsNotDistinct?: boolean | undefined;
2482
- name: string;
2483
- type: string;
2484
- }[];
2485
- deleted: {
2486
- isUnique?: any;
2487
- default?: any;
2488
- onUpdate?: boolean | undefined;
2489
- primaryKey?: boolean | undefined;
2490
- notNull?: boolean | undefined;
2491
- autoincrement?: boolean | undefined;
2492
- uniqueName?: string | undefined;
2493
- nullsNotDistinct?: boolean | undefined;
2494
- name: string;
2495
- type: string;
2496
- }[];
3744
+ schema: string;
2497
3745
  altered: {
3746
+ name: string | {
3747
+ type: "changed";
3748
+ old: string;
3749
+ new: string;
3750
+ };
2498
3751
  default?: {
2499
- value?: any;
2500
3752
  type: "added";
2501
- } | {
2502
3753
  value?: any;
3754
+ } | {
2503
3755
  type: "deleted";
3756
+ value?: any;
2504
3757
  } | {
3758
+ type: "changed";
2505
3759
  old?: any;
2506
3760
  new?: any;
2507
- type: "changed";
2508
3761
  } | undefined;
2509
3762
  type?: {
2510
3763
  type: "changed";
@@ -2555,11 +3808,17 @@ export declare const diffResultScheme: z.ZodObject<{
2555
3808
  old: boolean;
2556
3809
  new: boolean;
2557
3810
  } | undefined;
2558
- name: string | {
3811
+ typeSchema?: {
3812
+ type: "added";
3813
+ value: string;
3814
+ } | {
3815
+ type: "deleted";
3816
+ value: string;
3817
+ } | {
2559
3818
  type: "changed";
2560
3819
  old: string;
2561
3820
  new: string;
2562
- };
3821
+ } | undefined;
2563
3822
  }[];
2564
3823
  addedIndexes: Record<string, string>;
2565
3824
  deletedIndexes: Record<string, string>;
@@ -2586,21 +3845,7 @@ export declare const diffResultScheme: z.ZodObject<{
2586
3845
  __new: string;
2587
3846
  }>;
2588
3847
  }[];
2589
- addedEnums: {
2590
- name: string;
2591
- values: string[];
2592
- }[];
2593
- deletedEnums: {
2594
- name: string;
2595
- values: string[];
2596
- }[];
2597
- alteredEnums: {
2598
- name: string;
2599
- addedValues: string[];
2600
- deletedValues: string[];
2601
- }[];
2602
- addedSchemas: string[];
2603
- deletedSchemas: string[];
3848
+ alteredEnums: never[];
2604
3849
  }>;
2605
3850
  export type Column = TypeOf<typeof columnSchema>;
2606
3851
  export type AlteredColumn = TypeOf<typeof alteredColumnSchema>;
@@ -2608,16 +3853,33 @@ export type Enum = TypeOf<typeof enumSchema>;
2608
3853
  export type Table = TypeOf<typeof tableScheme>;
2609
3854
  export type AlteredTable = TypeOf<typeof alteredTableScheme>;
2610
3855
  export type DiffResult = TypeOf<typeof diffResultScheme>;
2611
- export interface TablesResolverInput<T extends {
3856
+ export type DiffResultMysql = TypeOf<typeof diffResultSchemeMysql>;
3857
+ export type DiffResultSQLite = TypeOf<typeof diffResultSchemeSQLite>;
3858
+ export interface ResolverInput<T extends {
3859
+ name: string;
3860
+ }> {
3861
+ created: T[];
3862
+ deleted: T[];
3863
+ }
3864
+ export interface ResolverOutput<T extends {
2612
3865
  name: string;
2613
3866
  }> {
2614
3867
  created: T[];
3868
+ renamed: {
3869
+ from: T;
3870
+ to: T;
3871
+ }[];
2615
3872
  deleted: T[];
2616
3873
  }
2617
- export interface TablesResolverOutput<T extends {
3874
+ export interface ResolverOutputWithMoved<T extends {
2618
3875
  name: string;
2619
3876
  }> {
2620
3877
  created: T[];
3878
+ moved: {
3879
+ name: string;
3880
+ schemaFrom: string;
3881
+ schemaTo: string;
3882
+ }[];
2621
3883
  renamed: {
2622
3884
  from: T;
2623
3885
  to: T;
@@ -2644,11 +3906,26 @@ export interface ColumnsResolverOutput<T extends {
2644
3906
  }[];
2645
3907
  deleted: T[];
2646
3908
  }
2647
- export declare const applySnapshotsDiff: (json1: CommonSquashedSchema, json2: CommonSquashedSchema, dialect: Dialect, schemasResolver: (input: TablesResolverInput<{
2648
- name: string;
2649
- }>) => Promise<TablesResolverOutput<{
2650
- name: string;
2651
- }>>, tablesResolver: (input: TablesResolverInput<Table>) => Promise<TablesResolverOutput<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>, prevFull?: any, curFull?: any) => Promise<{
3909
+ export 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<{
2652
3929
  statements: JsonStatement[];
2653
3930
  sqlStatements: string[];
2654
3931
  _meta: {