drizzle-kit 0.20.17-cab52ad → 0.20.17-d71f2ee

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/@types/utils.d.ts +13 -0
  2. package/bin.cjs +372 -7335
  3. package/cli/commands/migrate.d.ts +287 -0
  4. package/cli/commands/mysqlIntrospect.d.ts +50 -0
  5. package/cli/commands/mysqlPushUtils.d.ts +14 -0
  6. package/cli/commands/pgIntrospect.d.ts +59 -0
  7. package/cli/commands/pgPushUtils.d.ts +11 -0
  8. package/cli/commands/sqliteIntrospect.d.ts +103 -0
  9. package/cli/commands/sqlitePushUtils.d.ts +15 -0
  10. package/cli/commands/utils.d.ts +180 -0
  11. package/cli/connections.d.ts +18 -0
  12. package/cli/selector-ui.d.ts +13 -0
  13. package/cli/utils.d.ts +13 -0
  14. package/cli/validations/cli.d.ts +169 -0
  15. package/cli/validations/common.d.ts +214 -0
  16. package/cli/validations/mysql.d.ts +29 -0
  17. package/cli/validations/outputs.d.ts +41 -0
  18. package/cli/validations/pg.d.ts +46 -0
  19. package/cli/validations/sqlite.d.ts +22 -0
  20. package/cli/validations/studio.d.ts +92 -0
  21. package/cli/views.d.ts +70 -0
  22. package/global.d.ts +6 -0
  23. package/index.d.mts +6 -14
  24. package/index.d.ts +6 -14
  25. package/introspect-sqlite.d.ts +10 -0
  26. package/jsonDiffer.d.ts +61 -0
  27. package/jsonStatements.d.ts +376 -0
  28. package/migrationPreparator.d.ts +35 -0
  29. package/package.json +16 -5
  30. package/payload.d.mts +18 -987
  31. package/payload.d.ts +18 -987
  32. package/payload.js +16831 -19058
  33. package/payload.mjs +16827 -19079
  34. package/schemaValidator.d.ts +1316 -0
  35. package/serializer/index.d.ts +9 -0
  36. package/serializer/mysqlImports.d.ts +7 -0
  37. package/serializer/mysqlSchema.d.ts +4650 -0
  38. package/serializer/mysqlSerializer.d.ts +7 -0
  39. package/serializer/pgImports.d.ts +11 -0
  40. package/serializer/pgSchema.d.ts +4792 -0
  41. package/serializer/pgSerializer.d.ts +7 -0
  42. package/serializer/schemaToDrizzle.d.ts +7 -0
  43. package/serializer/sqliteImports.d.ts +7 -0
  44. package/serializer/sqliteSchema.d.ts +2801 -0
  45. package/serializer/sqliteSerializer.d.ts +6 -0
  46. package/serializer/studio.d.ts +53 -0
  47. package/snapshotsDiffer.d.ts +3936 -0
  48. package/sqlgenerator.d.ts +33 -0
  49. package/utils/words.d.ts +7 -0
  50. package/utils-studio.d.mts +4 -0
  51. package/utils-studio.d.ts +4 -0
  52. package/utils.d.ts +78 -0
@@ -0,0 +1,3936 @@
1
+ import { TypeOf, ZodTypeAny } from "zod";
2
+ import { JsonStatement } from "./jsonStatements";
3
+ import { SQLiteSchemaSquashed } from "./serializer/sqliteSchema";
4
+ import { MySqlSchema, MySqlSchemaSquashed } from "./serializer/mysqlSchema";
5
+ import { PgSchema, PgSchemaSquashed } from "./serializer/pgSchema";
6
+ import { Named } from "./cli/commands/migrate";
7
+ export declare const makePatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
8
+ type: import("zod").ZodLiteral<"added">;
9
+ value: T;
10
+ }, "strip", ZodTypeAny, { [k in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
11
+ type: import("zod").ZodLiteral<"added">;
12
+ value: T;
13
+ }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
14
+ type: import("zod").ZodLiteral<"added">;
15
+ value: T;
16
+ }>, any>[k]; }, { [k_1 in keyof import("zod").baseObjectInputType<{
17
+ type: import("zod").ZodLiteral<"added">;
18
+ value: T;
19
+ }>]: import("zod").baseObjectInputType<{
20
+ type: import("zod").ZodLiteral<"added">;
21
+ value: T;
22
+ }>[k_1]; }>, import("zod").ZodObject<{
23
+ type: import("zod").ZodLiteral<"deleted">;
24
+ value: T;
25
+ }, "strip", ZodTypeAny, { [k_2 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
26
+ type: import("zod").ZodLiteral<"deleted">;
27
+ value: T;
28
+ }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
29
+ type: import("zod").ZodLiteral<"deleted">;
30
+ value: T;
31
+ }>, any>[k_2]; }, { [k_1_1 in keyof import("zod").baseObjectInputType<{
32
+ type: import("zod").ZodLiteral<"deleted">;
33
+ value: T;
34
+ }>]: import("zod").baseObjectInputType<{
35
+ type: import("zod").ZodLiteral<"deleted">;
36
+ value: T;
37
+ }>[k_1_1]; }>, import("zod").ZodObject<{
38
+ type: import("zod").ZodLiteral<"changed">;
39
+ old: T;
40
+ new: T;
41
+ }, "strip", ZodTypeAny, { [k_3 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
42
+ type: import("zod").ZodLiteral<"changed">;
43
+ old: T;
44
+ new: T;
45
+ }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
46
+ type: import("zod").ZodLiteral<"changed">;
47
+ old: T;
48
+ new: T;
49
+ }>, any>[k_3]; }, { [k_1_2 in keyof import("zod").baseObjectInputType<{
50
+ type: import("zod").ZodLiteral<"changed">;
51
+ old: T;
52
+ new: T;
53
+ }>]: import("zod").baseObjectInputType<{
54
+ type: import("zod").ZodLiteral<"changed">;
55
+ old: T;
56
+ new: T;
57
+ }>[k_1_2]; }>]>;
58
+ export declare const makeSelfOrPatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
59
+ type: import("zod").ZodLiteral<"none">;
60
+ value: T;
61
+ }, "strip", ZodTypeAny, { [k in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
62
+ type: import("zod").ZodLiteral<"none">;
63
+ value: T;
64
+ }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
65
+ type: import("zod").ZodLiteral<"none">;
66
+ value: T;
67
+ }>, any>[k]; }, { [k_1 in keyof import("zod").baseObjectInputType<{
68
+ type: import("zod").ZodLiteral<"none">;
69
+ value: T;
70
+ }>]: import("zod").baseObjectInputType<{
71
+ type: import("zod").ZodLiteral<"none">;
72
+ value: T;
73
+ }>[k_1]; }>, import("zod").ZodObject<{
74
+ type: import("zod").ZodLiteral<"added">;
75
+ value: T;
76
+ }, "strip", ZodTypeAny, { [k_2 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
77
+ type: import("zod").ZodLiteral<"added">;
78
+ value: T;
79
+ }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
80
+ type: import("zod").ZodLiteral<"added">;
81
+ value: T;
82
+ }>, any>[k_2]; }, { [k_1_1 in keyof import("zod").baseObjectInputType<{
83
+ type: import("zod").ZodLiteral<"added">;
84
+ value: T;
85
+ }>]: import("zod").baseObjectInputType<{
86
+ type: import("zod").ZodLiteral<"added">;
87
+ value: T;
88
+ }>[k_1_1]; }>, import("zod").ZodObject<{
89
+ type: import("zod").ZodLiteral<"deleted">;
90
+ value: T;
91
+ }, "strip", ZodTypeAny, { [k_3 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
92
+ type: import("zod").ZodLiteral<"deleted">;
93
+ value: T;
94
+ }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
95
+ type: import("zod").ZodLiteral<"deleted">;
96
+ value: T;
97
+ }>, any>[k_3]; }, { [k_1_2 in keyof import("zod").baseObjectInputType<{
98
+ type: import("zod").ZodLiteral<"deleted">;
99
+ value: T;
100
+ }>]: import("zod").baseObjectInputType<{
101
+ type: import("zod").ZodLiteral<"deleted">;
102
+ value: T;
103
+ }>[k_1_2]; }>, import("zod").ZodObject<{
104
+ type: import("zod").ZodLiteral<"changed">;
105
+ old: T;
106
+ new: T;
107
+ }, "strip", ZodTypeAny, { [k_4 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
108
+ type: import("zod").ZodLiteral<"changed">;
109
+ old: T;
110
+ new: T;
111
+ }>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
112
+ type: import("zod").ZodLiteral<"changed">;
113
+ old: T;
114
+ new: T;
115
+ }>, any>[k_4]; }, { [k_1_3 in keyof import("zod").baseObjectInputType<{
116
+ type: import("zod").ZodLiteral<"changed">;
117
+ old: T;
118
+ new: T;
119
+ }>]: import("zod").baseObjectInputType<{
120
+ type: import("zod").ZodLiteral<"changed">;
121
+ old: T;
122
+ new: T;
123
+ }>[k_1_3]; }>]>;
124
+ declare const columnSchema: import("zod").ZodObject<{
125
+ name: import("zod").ZodString;
126
+ type: import("zod").ZodString;
127
+ typeSchema: import("zod").ZodOptional<import("zod").ZodString>;
128
+ primaryKey: import("zod").ZodOptional<import("zod").ZodBoolean>;
129
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
130
+ notNull: import("zod").ZodOptional<import("zod").ZodBoolean>;
131
+ autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
132
+ onUpdate: import("zod").ZodOptional<import("zod").ZodBoolean>;
133
+ isUnique: import("zod").ZodOptional<import("zod").ZodAny>;
134
+ uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
135
+ nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
136
+ }, "strict", ZodTypeAny, {
137
+ name: string;
138
+ type: string;
139
+ isUnique?: any;
140
+ default?: any;
141
+ onUpdate?: boolean | undefined;
142
+ primaryKey?: boolean | undefined;
143
+ notNull?: boolean | undefined;
144
+ autoincrement?: boolean | undefined;
145
+ typeSchema?: string | undefined;
146
+ uniqueName?: string | undefined;
147
+ nullsNotDistinct?: boolean | undefined;
148
+ }, {
149
+ name: string;
150
+ type: string;
151
+ isUnique?: any;
152
+ default?: any;
153
+ onUpdate?: boolean | undefined;
154
+ primaryKey?: boolean | undefined;
155
+ notNull?: boolean | undefined;
156
+ autoincrement?: boolean | undefined;
157
+ typeSchema?: string | undefined;
158
+ uniqueName?: string | undefined;
159
+ nullsNotDistinct?: boolean | undefined;
160
+ }>;
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;
166
+ }, "strip", ZodTypeAny, {
167
+ type: "changed";
168
+ old: string;
169
+ new: string;
170
+ }, {
171
+ type: "changed";
172
+ old: string;
173
+ new: string;
174
+ }>]>;
175
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
176
+ type: import("zod").ZodEnum<["changed"]>;
177
+ old: import("zod").ZodString;
178
+ new: import("zod").ZodString;
179
+ }, "strip", ZodTypeAny, {
180
+ type: "changed";
181
+ old: string;
182
+ new: string;
183
+ }, {
184
+ type: "changed";
185
+ old: string;
186
+ new: string;
187
+ }>>;
188
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
189
+ type: import("zod").ZodLiteral<"added">;
190
+ value: import("zod").ZodAny;
191
+ }, "strip", ZodTypeAny, {
192
+ type: "added";
193
+ value?: any;
194
+ }, {
195
+ type: "added";
196
+ value?: any;
197
+ }>, import("zod").ZodObject<{
198
+ type: import("zod").ZodLiteral<"deleted">;
199
+ value: import("zod").ZodAny;
200
+ }, "strip", ZodTypeAny, {
201
+ type: "deleted";
202
+ value?: any;
203
+ }, {
204
+ type: "deleted";
205
+ value?: any;
206
+ }>, import("zod").ZodObject<{
207
+ type: import("zod").ZodLiteral<"changed">;
208
+ old: import("zod").ZodAny;
209
+ new: import("zod").ZodAny;
210
+ }, "strip", ZodTypeAny, {
211
+ type: "changed";
212
+ old?: any;
213
+ new?: any;
214
+ }, {
215
+ type: "changed";
216
+ old?: any;
217
+ new?: any;
218
+ }>]>>;
219
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
220
+ type: import("zod").ZodLiteral<"added">;
221
+ value: import("zod").ZodBoolean;
222
+ }, "strip", ZodTypeAny, {
223
+ type: "added";
224
+ value: boolean;
225
+ }, {
226
+ type: "added";
227
+ value: boolean;
228
+ }>, import("zod").ZodObject<{
229
+ type: import("zod").ZodLiteral<"deleted">;
230
+ value: import("zod").ZodBoolean;
231
+ }, "strip", ZodTypeAny, {
232
+ type: "deleted";
233
+ value: boolean;
234
+ }, {
235
+ type: "deleted";
236
+ value: boolean;
237
+ }>, import("zod").ZodObject<{
238
+ type: import("zod").ZodLiteral<"changed">;
239
+ old: import("zod").ZodBoolean;
240
+ new: import("zod").ZodBoolean;
241
+ }, "strip", ZodTypeAny, {
242
+ type: "changed";
243
+ old: boolean;
244
+ new: boolean;
245
+ }, {
246
+ type: "changed";
247
+ old: boolean;
248
+ new: boolean;
249
+ }>]>>;
250
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
251
+ type: import("zod").ZodLiteral<"added">;
252
+ value: import("zod").ZodBoolean;
253
+ }, "strip", ZodTypeAny, {
254
+ type: "added";
255
+ value: boolean;
256
+ }, {
257
+ type: "added";
258
+ value: boolean;
259
+ }>, import("zod").ZodObject<{
260
+ type: import("zod").ZodLiteral<"deleted">;
261
+ value: import("zod").ZodBoolean;
262
+ }, "strip", ZodTypeAny, {
263
+ type: "deleted";
264
+ value: boolean;
265
+ }, {
266
+ type: "deleted";
267
+ value: boolean;
268
+ }>, import("zod").ZodObject<{
269
+ type: import("zod").ZodLiteral<"changed">;
270
+ old: import("zod").ZodBoolean;
271
+ new: import("zod").ZodBoolean;
272
+ }, "strip", ZodTypeAny, {
273
+ type: "changed";
274
+ old: boolean;
275
+ new: boolean;
276
+ }, {
277
+ type: "changed";
278
+ old: boolean;
279
+ new: boolean;
280
+ }>]>>;
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;
315
+ }, "strip", ZodTypeAny, {
316
+ type: "added";
317
+ value: boolean;
318
+ }, {
319
+ type: "added";
320
+ value: boolean;
321
+ }>, import("zod").ZodObject<{
322
+ type: import("zod").ZodLiteral<"deleted">;
323
+ value: import("zod").ZodBoolean;
324
+ }, "strip", ZodTypeAny, {
325
+ type: "deleted";
326
+ value: boolean;
327
+ }, {
328
+ type: "deleted";
329
+ value: boolean;
330
+ }>, import("zod").ZodObject<{
331
+ type: import("zod").ZodLiteral<"changed">;
332
+ old: import("zod").ZodBoolean;
333
+ new: import("zod").ZodBoolean;
334
+ }, "strip", ZodTypeAny, {
335
+ type: "changed";
336
+ old: boolean;
337
+ new: boolean;
338
+ }, {
339
+ type: "changed";
340
+ old: boolean;
341
+ new: boolean;
342
+ }>]>>;
343
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
344
+ type: import("zod").ZodLiteral<"added">;
345
+ value: import("zod").ZodBoolean;
346
+ }, "strip", ZodTypeAny, {
347
+ type: "added";
348
+ value: boolean;
349
+ }, {
350
+ type: "added";
351
+ value: boolean;
352
+ }>, import("zod").ZodObject<{
353
+ type: import("zod").ZodLiteral<"deleted">;
354
+ value: import("zod").ZodBoolean;
355
+ }, "strip", ZodTypeAny, {
356
+ type: "deleted";
357
+ value: boolean;
358
+ }, {
359
+ type: "deleted";
360
+ value: boolean;
361
+ }>, import("zod").ZodObject<{
362
+ type: import("zod").ZodLiteral<"changed">;
363
+ old: import("zod").ZodBoolean;
364
+ new: import("zod").ZodBoolean;
365
+ }, "strip", ZodTypeAny, {
366
+ type: "changed";
367
+ old: boolean;
368
+ new: boolean;
369
+ }, {
370
+ type: "changed";
371
+ old: boolean;
372
+ new: boolean;
373
+ }>]>>;
374
+ }, "strict", ZodTypeAny, {
375
+ name: string | {
376
+ type: "changed";
377
+ old: string;
378
+ new: string;
379
+ };
380
+ default?: {
381
+ type: "added";
382
+ value?: any;
383
+ } | {
384
+ type: "deleted";
385
+ value?: any;
386
+ } | {
387
+ type: "changed";
388
+ old?: any;
389
+ new?: any;
390
+ } | undefined;
391
+ type?: {
392
+ type: "changed";
393
+ old: string;
394
+ new: string;
395
+ } | undefined;
396
+ onUpdate?: {
397
+ type: "added";
398
+ value: boolean;
399
+ } | {
400
+ type: "deleted";
401
+ value: boolean;
402
+ } | {
403
+ type: "changed";
404
+ old: boolean;
405
+ new: boolean;
406
+ } | undefined;
407
+ primaryKey?: {
408
+ type: "added";
409
+ value: boolean;
410
+ } | {
411
+ type: "deleted";
412
+ value: boolean;
413
+ } | {
414
+ type: "changed";
415
+ old: boolean;
416
+ new: boolean;
417
+ } | undefined;
418
+ notNull?: {
419
+ type: "added";
420
+ value: boolean;
421
+ } | {
422
+ type: "deleted";
423
+ value: boolean;
424
+ } | {
425
+ type: "changed";
426
+ old: boolean;
427
+ new: boolean;
428
+ } | undefined;
429
+ autoincrement?: {
430
+ type: "added";
431
+ value: boolean;
432
+ } | {
433
+ type: "deleted";
434
+ value: boolean;
435
+ } | {
436
+ type: "changed";
437
+ old: boolean;
438
+ new: boolean;
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
+ }, {
452
+ name: string | {
453
+ type: "changed";
454
+ old: string;
455
+ new: string;
456
+ };
457
+ default?: {
458
+ type: "added";
459
+ value?: any;
460
+ } | {
461
+ type: "deleted";
462
+ value?: any;
463
+ } | {
464
+ type: "changed";
465
+ old?: any;
466
+ new?: any;
467
+ } | undefined;
468
+ type?: {
469
+ type: "changed";
470
+ old: string;
471
+ new: string;
472
+ } | undefined;
473
+ onUpdate?: {
474
+ type: "added";
475
+ value: boolean;
476
+ } | {
477
+ type: "deleted";
478
+ value: boolean;
479
+ } | {
480
+ type: "changed";
481
+ old: boolean;
482
+ new: boolean;
483
+ } | undefined;
484
+ primaryKey?: {
485
+ type: "added";
486
+ value: boolean;
487
+ } | {
488
+ type: "deleted";
489
+ value: boolean;
490
+ } | {
491
+ type: "changed";
492
+ old: boolean;
493
+ new: boolean;
494
+ } | undefined;
495
+ notNull?: {
496
+ type: "added";
497
+ value: boolean;
498
+ } | {
499
+ type: "deleted";
500
+ value: boolean;
501
+ } | {
502
+ type: "changed";
503
+ old: boolean;
504
+ new: boolean;
505
+ } | undefined;
506
+ autoincrement?: {
507
+ type: "added";
508
+ value: boolean;
509
+ } | {
510
+ type: "deleted";
511
+ value: boolean;
512
+ } | {
513
+ type: "changed";
514
+ old: boolean;
515
+ new: boolean;
516
+ } | undefined;
517
+ typeSchema?: {
518
+ type: "added";
519
+ value: string;
520
+ } | {
521
+ type: "deleted";
522
+ value: string;
523
+ } | {
524
+ type: "changed";
525
+ old: string;
526
+ new: string;
527
+ } | undefined;
528
+ }>;
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">;
533
+ }, "strict", ZodTypeAny, {
534
+ name: string;
535
+ values: string[];
536
+ schema: string;
537
+ }, {
538
+ name: string;
539
+ values: string[];
540
+ schema: string;
541
+ }>;
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>;
557
+ }, "strict", ZodTypeAny, {
558
+ name: string;
559
+ type: string;
560
+ isUnique?: any;
561
+ default?: any;
562
+ onUpdate?: boolean | undefined;
563
+ primaryKey?: boolean | undefined;
564
+ notNull?: boolean | undefined;
565
+ autoincrement?: boolean | undefined;
566
+ typeSchema?: string | undefined;
567
+ uniqueName?: string | undefined;
568
+ nullsNotDistinct?: boolean | undefined;
569
+ }, {
570
+ name: string;
571
+ type: string;
572
+ isUnique?: any;
573
+ default?: any;
574
+ onUpdate?: boolean | undefined;
575
+ primaryKey?: boolean | undefined;
576
+ notNull?: boolean | undefined;
577
+ autoincrement?: boolean | undefined;
578
+ typeSchema?: string | undefined;
579
+ uniqueName?: string | undefined;
580
+ nullsNotDistinct?: boolean | undefined;
581
+ }>>;
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>>;
586
+ }, "strict", ZodTypeAny, {
587
+ name: string;
588
+ columns: Record<string, {
589
+ name: string;
590
+ type: string;
591
+ isUnique?: any;
592
+ default?: any;
593
+ onUpdate?: boolean | undefined;
594
+ primaryKey?: boolean | undefined;
595
+ notNull?: boolean | undefined;
596
+ autoincrement?: boolean | undefined;
597
+ typeSchema?: string | undefined;
598
+ uniqueName?: string | undefined;
599
+ nullsNotDistinct?: boolean | undefined;
600
+ }>;
601
+ indexes: Record<string, string>;
602
+ foreignKeys: Record<string, string>;
603
+ schema: string;
604
+ compositePrimaryKeys: Record<string, string>;
605
+ uniqueConstraints: Record<string, string>;
606
+ }, {
607
+ name: string;
608
+ columns: Record<string, {
609
+ name: string;
610
+ type: string;
611
+ isUnique?: any;
612
+ default?: any;
613
+ onUpdate?: boolean | undefined;
614
+ primaryKey?: boolean | undefined;
615
+ notNull?: boolean | undefined;
616
+ autoincrement?: boolean | undefined;
617
+ typeSchema?: string | undefined;
618
+ uniqueName?: string | undefined;
619
+ nullsNotDistinct?: boolean | undefined;
620
+ }>;
621
+ indexes: Record<string, string>;
622
+ foreignKeys: Record<string, string>;
623
+ schema?: string | undefined;
624
+ compositePrimaryKeys?: Record<string, string> | undefined;
625
+ uniqueConstraints?: Record<string, string> | undefined;
626
+ }>;
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;
635
+ }, "strip", ZodTypeAny, {
636
+ type: "changed";
637
+ old: string;
638
+ new: string;
639
+ }, {
640
+ type: "changed";
641
+ old: string;
642
+ new: string;
643
+ }>]>;
644
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
645
+ type: import("zod").ZodEnum<["changed"]>;
646
+ old: import("zod").ZodString;
647
+ new: import("zod").ZodString;
648
+ }, "strip", ZodTypeAny, {
649
+ type: "changed";
650
+ old: string;
651
+ new: string;
652
+ }, {
653
+ type: "changed";
654
+ old: string;
655
+ new: string;
656
+ }>>;
657
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
658
+ type: import("zod").ZodLiteral<"added">;
659
+ value: import("zod").ZodAny;
660
+ }, "strip", ZodTypeAny, {
661
+ type: "added";
662
+ value?: any;
663
+ }, {
664
+ type: "added";
665
+ value?: any;
666
+ }>, import("zod").ZodObject<{
667
+ type: import("zod").ZodLiteral<"deleted">;
668
+ value: import("zod").ZodAny;
669
+ }, "strip", ZodTypeAny, {
670
+ type: "deleted";
671
+ value?: any;
672
+ }, {
673
+ type: "deleted";
674
+ value?: any;
675
+ }>, import("zod").ZodObject<{
676
+ type: import("zod").ZodLiteral<"changed">;
677
+ old: import("zod").ZodAny;
678
+ new: import("zod").ZodAny;
679
+ }, "strip", ZodTypeAny, {
680
+ type: "changed";
681
+ old?: any;
682
+ new?: any;
683
+ }, {
684
+ type: "changed";
685
+ old?: any;
686
+ new?: any;
687
+ }>]>>;
688
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
689
+ type: import("zod").ZodLiteral<"added">;
690
+ value: import("zod").ZodBoolean;
691
+ }, "strip", ZodTypeAny, {
692
+ type: "added";
693
+ value: boolean;
694
+ }, {
695
+ type: "added";
696
+ value: boolean;
697
+ }>, import("zod").ZodObject<{
698
+ type: import("zod").ZodLiteral<"deleted">;
699
+ value: import("zod").ZodBoolean;
700
+ }, "strip", ZodTypeAny, {
701
+ type: "deleted";
702
+ value: boolean;
703
+ }, {
704
+ type: "deleted";
705
+ value: boolean;
706
+ }>, import("zod").ZodObject<{
707
+ type: import("zod").ZodLiteral<"changed">;
708
+ old: import("zod").ZodBoolean;
709
+ new: import("zod").ZodBoolean;
710
+ }, "strip", ZodTypeAny, {
711
+ type: "changed";
712
+ old: boolean;
713
+ new: boolean;
714
+ }, {
715
+ type: "changed";
716
+ old: boolean;
717
+ new: boolean;
718
+ }>]>>;
719
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
720
+ type: import("zod").ZodLiteral<"added">;
721
+ value: import("zod").ZodBoolean;
722
+ }, "strip", ZodTypeAny, {
723
+ type: "added";
724
+ value: boolean;
725
+ }, {
726
+ type: "added";
727
+ value: boolean;
728
+ }>, import("zod").ZodObject<{
729
+ type: import("zod").ZodLiteral<"deleted">;
730
+ value: import("zod").ZodBoolean;
731
+ }, "strip", ZodTypeAny, {
732
+ type: "deleted";
733
+ value: boolean;
734
+ }, {
735
+ type: "deleted";
736
+ value: boolean;
737
+ }>, import("zod").ZodObject<{
738
+ type: import("zod").ZodLiteral<"changed">;
739
+ old: import("zod").ZodBoolean;
740
+ new: import("zod").ZodBoolean;
741
+ }, "strip", ZodTypeAny, {
742
+ type: "changed";
743
+ old: boolean;
744
+ new: boolean;
745
+ }, {
746
+ type: "changed";
747
+ old: boolean;
748
+ new: boolean;
749
+ }>]>>;
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;
784
+ }, "strip", ZodTypeAny, {
785
+ type: "added";
786
+ value: boolean;
787
+ }, {
788
+ type: "added";
789
+ value: boolean;
790
+ }>, import("zod").ZodObject<{
791
+ type: import("zod").ZodLiteral<"deleted">;
792
+ value: import("zod").ZodBoolean;
793
+ }, "strip", ZodTypeAny, {
794
+ type: "deleted";
795
+ value: boolean;
796
+ }, {
797
+ type: "deleted";
798
+ value: boolean;
799
+ }>, import("zod").ZodObject<{
800
+ type: import("zod").ZodLiteral<"changed">;
801
+ old: import("zod").ZodBoolean;
802
+ new: import("zod").ZodBoolean;
803
+ }, "strip", ZodTypeAny, {
804
+ type: "changed";
805
+ old: boolean;
806
+ new: boolean;
807
+ }, {
808
+ type: "changed";
809
+ old: boolean;
810
+ new: boolean;
811
+ }>]>>;
812
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
813
+ type: import("zod").ZodLiteral<"added">;
814
+ value: import("zod").ZodBoolean;
815
+ }, "strip", ZodTypeAny, {
816
+ type: "added";
817
+ value: boolean;
818
+ }, {
819
+ type: "added";
820
+ value: boolean;
821
+ }>, import("zod").ZodObject<{
822
+ type: import("zod").ZodLiteral<"deleted">;
823
+ value: import("zod").ZodBoolean;
824
+ }, "strip", ZodTypeAny, {
825
+ type: "deleted";
826
+ value: boolean;
827
+ }, {
828
+ type: "deleted";
829
+ value: boolean;
830
+ }>, import("zod").ZodObject<{
831
+ type: import("zod").ZodLiteral<"changed">;
832
+ old: import("zod").ZodBoolean;
833
+ new: import("zod").ZodBoolean;
834
+ }, "strip", ZodTypeAny, {
835
+ type: "changed";
836
+ old: boolean;
837
+ new: boolean;
838
+ }, {
839
+ type: "changed";
840
+ old: boolean;
841
+ new: boolean;
842
+ }>]>>;
843
+ }, "strict", ZodTypeAny, {
844
+ name: string | {
845
+ type: "changed";
846
+ old: string;
847
+ new: string;
848
+ };
849
+ default?: {
850
+ type: "added";
851
+ value?: any;
852
+ } | {
853
+ type: "deleted";
854
+ value?: any;
855
+ } | {
856
+ type: "changed";
857
+ old?: any;
858
+ new?: any;
859
+ } | undefined;
860
+ type?: {
861
+ type: "changed";
862
+ old: string;
863
+ new: string;
864
+ } | undefined;
865
+ onUpdate?: {
866
+ type: "added";
867
+ value: boolean;
868
+ } | {
869
+ type: "deleted";
870
+ value: boolean;
871
+ } | {
872
+ type: "changed";
873
+ old: boolean;
874
+ new: boolean;
875
+ } | undefined;
876
+ primaryKey?: {
877
+ type: "added";
878
+ value: boolean;
879
+ } | {
880
+ type: "deleted";
881
+ value: boolean;
882
+ } | {
883
+ type: "changed";
884
+ old: boolean;
885
+ new: boolean;
886
+ } | undefined;
887
+ notNull?: {
888
+ type: "added";
889
+ value: boolean;
890
+ } | {
891
+ type: "deleted";
892
+ value: boolean;
893
+ } | {
894
+ type: "changed";
895
+ old: boolean;
896
+ new: boolean;
897
+ } | undefined;
898
+ autoincrement?: {
899
+ type: "added";
900
+ value: boolean;
901
+ } | {
902
+ type: "deleted";
903
+ value: boolean;
904
+ } | {
905
+ type: "changed";
906
+ old: boolean;
907
+ new: boolean;
908
+ } | undefined;
909
+ typeSchema?: {
910
+ type: "added";
911
+ value: string;
912
+ } | {
913
+ type: "deleted";
914
+ value: string;
915
+ } | {
916
+ type: "changed";
917
+ old: string;
918
+ new: string;
919
+ } | undefined;
920
+ }, {
921
+ name: string | {
922
+ type: "changed";
923
+ old: string;
924
+ new: string;
925
+ };
926
+ default?: {
927
+ type: "added";
928
+ value?: any;
929
+ } | {
930
+ type: "deleted";
931
+ value?: any;
932
+ } | {
933
+ type: "changed";
934
+ old?: any;
935
+ new?: any;
936
+ } | undefined;
937
+ type?: {
938
+ type: "changed";
939
+ old: string;
940
+ new: string;
941
+ } | undefined;
942
+ onUpdate?: {
943
+ type: "added";
944
+ value: boolean;
945
+ } | {
946
+ type: "deleted";
947
+ value: boolean;
948
+ } | {
949
+ type: "changed";
950
+ old: boolean;
951
+ new: boolean;
952
+ } | undefined;
953
+ primaryKey?: {
954
+ type: "added";
955
+ value: boolean;
956
+ } | {
957
+ type: "deleted";
958
+ value: boolean;
959
+ } | {
960
+ type: "changed";
961
+ old: boolean;
962
+ new: boolean;
963
+ } | undefined;
964
+ notNull?: {
965
+ type: "added";
966
+ value: boolean;
967
+ } | {
968
+ type: "deleted";
969
+ value: boolean;
970
+ } | {
971
+ type: "changed";
972
+ old: boolean;
973
+ new: boolean;
974
+ } | undefined;
975
+ autoincrement?: {
976
+ type: "added";
977
+ value: boolean;
978
+ } | {
979
+ type: "deleted";
980
+ value: boolean;
981
+ } | {
982
+ type: "changed";
983
+ old: boolean;
984
+ new: boolean;
985
+ } | undefined;
986
+ typeSchema?: {
987
+ type: "added";
988
+ value: string;
989
+ } | {
990
+ type: "deleted";
991
+ value: string;
992
+ } | {
993
+ type: "changed";
994
+ old: string;
995
+ new: string;
996
+ } | undefined;
997
+ }>, "many">;
998
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
999
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1000
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1001
+ __new: import("zod").ZodString;
1002
+ __old: import("zod").ZodString;
1003
+ }, "strict", ZodTypeAny, {
1004
+ __old: string;
1005
+ __new: string;
1006
+ }, {
1007
+ __old: string;
1008
+ __new: string;
1009
+ }>>;
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;
1015
+ }, "strict", ZodTypeAny, {
1016
+ __old: string;
1017
+ __new: string;
1018
+ }, {
1019
+ __old: string;
1020
+ __new: string;
1021
+ }>>;
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;
1027
+ }, "strip", ZodTypeAny, {
1028
+ __old: string;
1029
+ __new: string;
1030
+ }, {
1031
+ __old: string;
1032
+ __new: string;
1033
+ }>>;
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;
1039
+ }, "strip", ZodTypeAny, {
1040
+ __old: string;
1041
+ __new: string;
1042
+ }, {
1043
+ __old: string;
1044
+ __new: string;
1045
+ }>>;
1046
+ }, "strict", ZodTypeAny, {
1047
+ name: string;
1048
+ schema: string;
1049
+ altered: {
1050
+ name: string | {
1051
+ type: "changed";
1052
+ old: string;
1053
+ new: string;
1054
+ };
1055
+ default?: {
1056
+ type: "added";
1057
+ value?: any;
1058
+ } | {
1059
+ type: "deleted";
1060
+ value?: any;
1061
+ } | {
1062
+ type: "changed";
1063
+ old?: any;
1064
+ new?: any;
1065
+ } | undefined;
1066
+ type?: {
1067
+ type: "changed";
1068
+ old: string;
1069
+ new: string;
1070
+ } | undefined;
1071
+ onUpdate?: {
1072
+ type: "added";
1073
+ value: boolean;
1074
+ } | {
1075
+ type: "deleted";
1076
+ value: boolean;
1077
+ } | {
1078
+ type: "changed";
1079
+ old: boolean;
1080
+ new: boolean;
1081
+ } | undefined;
1082
+ primaryKey?: {
1083
+ type: "added";
1084
+ value: boolean;
1085
+ } | {
1086
+ type: "deleted";
1087
+ value: boolean;
1088
+ } | {
1089
+ type: "changed";
1090
+ old: boolean;
1091
+ new: boolean;
1092
+ } | undefined;
1093
+ notNull?: {
1094
+ type: "added";
1095
+ value: boolean;
1096
+ } | {
1097
+ type: "deleted";
1098
+ value: boolean;
1099
+ } | {
1100
+ type: "changed";
1101
+ old: boolean;
1102
+ new: boolean;
1103
+ } | undefined;
1104
+ autoincrement?: {
1105
+ type: "added";
1106
+ value: boolean;
1107
+ } | {
1108
+ type: "deleted";
1109
+ value: boolean;
1110
+ } | {
1111
+ type: "changed";
1112
+ old: boolean;
1113
+ new: boolean;
1114
+ } | undefined;
1115
+ typeSchema?: {
1116
+ type: "added";
1117
+ value: string;
1118
+ } | {
1119
+ type: "deleted";
1120
+ value: string;
1121
+ } | {
1122
+ type: "changed";
1123
+ old: string;
1124
+ new: string;
1125
+ } | undefined;
1126
+ }[];
1127
+ addedIndexes: Record<string, string>;
1128
+ deletedIndexes: Record<string, string>;
1129
+ alteredIndexes: Record<string, {
1130
+ __old: string;
1131
+ __new: string;
1132
+ }>;
1133
+ addedForeignKeys: Record<string, string>;
1134
+ deletedForeignKeys: Record<string, string>;
1135
+ alteredForeignKeys: Record<string, {
1136
+ __old: string;
1137
+ __new: string;
1138
+ }>;
1139
+ addedCompositePKs: Record<string, string>;
1140
+ deletedCompositePKs: Record<string, string>;
1141
+ alteredCompositePKs: Record<string, {
1142
+ __old: string;
1143
+ __new: string;
1144
+ }>;
1145
+ addedUniqueConstraints: Record<string, string>;
1146
+ deletedUniqueConstraints: Record<string, string>;
1147
+ alteredUniqueConstraints: Record<string, {
1148
+ __old: string;
1149
+ __new: string;
1150
+ }>;
1151
+ }, {
1152
+ name: string;
1153
+ schema: string;
1154
+ altered: {
1155
+ name: string | {
1156
+ type: "changed";
1157
+ old: string;
1158
+ new: string;
1159
+ };
1160
+ default?: {
1161
+ type: "added";
1162
+ value?: any;
1163
+ } | {
1164
+ type: "deleted";
1165
+ value?: any;
1166
+ } | {
1167
+ type: "changed";
1168
+ old?: any;
1169
+ new?: any;
1170
+ } | undefined;
1171
+ type?: {
1172
+ type: "changed";
1173
+ old: string;
1174
+ new: string;
1175
+ } | undefined;
1176
+ onUpdate?: {
1177
+ type: "added";
1178
+ value: boolean;
1179
+ } | {
1180
+ type: "deleted";
1181
+ value: boolean;
1182
+ } | {
1183
+ type: "changed";
1184
+ old: boolean;
1185
+ new: boolean;
1186
+ } | undefined;
1187
+ primaryKey?: {
1188
+ type: "added";
1189
+ value: boolean;
1190
+ } | {
1191
+ type: "deleted";
1192
+ value: boolean;
1193
+ } | {
1194
+ type: "changed";
1195
+ old: boolean;
1196
+ new: boolean;
1197
+ } | undefined;
1198
+ notNull?: {
1199
+ type: "added";
1200
+ value: boolean;
1201
+ } | {
1202
+ type: "deleted";
1203
+ value: boolean;
1204
+ } | {
1205
+ type: "changed";
1206
+ old: boolean;
1207
+ new: boolean;
1208
+ } | undefined;
1209
+ autoincrement?: {
1210
+ type: "added";
1211
+ value: boolean;
1212
+ } | {
1213
+ type: "deleted";
1214
+ value: boolean;
1215
+ } | {
1216
+ type: "changed";
1217
+ old: boolean;
1218
+ new: boolean;
1219
+ } | undefined;
1220
+ typeSchema?: {
1221
+ type: "added";
1222
+ value: string;
1223
+ } | {
1224
+ type: "deleted";
1225
+ value: string;
1226
+ } | {
1227
+ type: "changed";
1228
+ old: string;
1229
+ new: string;
1230
+ } | undefined;
1231
+ }[];
1232
+ addedIndexes: Record<string, string>;
1233
+ deletedIndexes: Record<string, string>;
1234
+ alteredIndexes: Record<string, {
1235
+ __old: string;
1236
+ __new: string;
1237
+ }>;
1238
+ addedForeignKeys: Record<string, string>;
1239
+ deletedForeignKeys: Record<string, string>;
1240
+ alteredForeignKeys: Record<string, {
1241
+ __old: string;
1242
+ __new: string;
1243
+ }>;
1244
+ addedCompositePKs: Record<string, string>;
1245
+ deletedCompositePKs: Record<string, string>;
1246
+ alteredCompositePKs: Record<string, {
1247
+ __old: string;
1248
+ __new: string;
1249
+ }>;
1250
+ addedUniqueConstraints: Record<string, string>;
1251
+ deletedUniqueConstraints: Record<string, string>;
1252
+ alteredUniqueConstraints: Record<string, {
1253
+ __old: string;
1254
+ __new: string;
1255
+ }>;
1256
+ }>;
1257
+ export declare const diffResultScheme: import("zod").ZodObject<{
1258
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
1259
+ name: import("zod").ZodString;
1260
+ schema: import("zod").ZodString;
1261
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
1262
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
1263
+ type: import("zod").ZodEnum<["changed"]>;
1264
+ old: import("zod").ZodString;
1265
+ new: import("zod").ZodString;
1266
+ }, "strip", ZodTypeAny, {
1267
+ type: "changed";
1268
+ old: string;
1269
+ new: string;
1270
+ }, {
1271
+ type: "changed";
1272
+ old: string;
1273
+ new: string;
1274
+ }>]>;
1275
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
1276
+ type: import("zod").ZodEnum<["changed"]>;
1277
+ old: import("zod").ZodString;
1278
+ new: import("zod").ZodString;
1279
+ }, "strip", ZodTypeAny, {
1280
+ type: "changed";
1281
+ old: string;
1282
+ new: string;
1283
+ }, {
1284
+ type: "changed";
1285
+ old: string;
1286
+ new: string;
1287
+ }>>;
1288
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1289
+ type: import("zod").ZodLiteral<"added">;
1290
+ value: import("zod").ZodAny;
1291
+ }, "strip", ZodTypeAny, {
1292
+ type: "added";
1293
+ value?: any;
1294
+ }, {
1295
+ type: "added";
1296
+ value?: any;
1297
+ }>, import("zod").ZodObject<{
1298
+ type: import("zod").ZodLiteral<"deleted">;
1299
+ value: import("zod").ZodAny;
1300
+ }, "strip", ZodTypeAny, {
1301
+ type: "deleted";
1302
+ value?: any;
1303
+ }, {
1304
+ type: "deleted";
1305
+ value?: any;
1306
+ }>, import("zod").ZodObject<{
1307
+ type: import("zod").ZodLiteral<"changed">;
1308
+ old: import("zod").ZodAny;
1309
+ new: import("zod").ZodAny;
1310
+ }, "strip", ZodTypeAny, {
1311
+ type: "changed";
1312
+ old?: any;
1313
+ new?: any;
1314
+ }, {
1315
+ type: "changed";
1316
+ old?: any;
1317
+ new?: any;
1318
+ }>]>>;
1319
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1320
+ type: import("zod").ZodLiteral<"added">;
1321
+ value: import("zod").ZodBoolean;
1322
+ }, "strip", ZodTypeAny, {
1323
+ type: "added";
1324
+ value: boolean;
1325
+ }, {
1326
+ type: "added";
1327
+ value: boolean;
1328
+ }>, import("zod").ZodObject<{
1329
+ type: import("zod").ZodLiteral<"deleted">;
1330
+ value: import("zod").ZodBoolean;
1331
+ }, "strip", ZodTypeAny, {
1332
+ type: "deleted";
1333
+ value: boolean;
1334
+ }, {
1335
+ type: "deleted";
1336
+ value: boolean;
1337
+ }>, import("zod").ZodObject<{
1338
+ type: import("zod").ZodLiteral<"changed">;
1339
+ old: import("zod").ZodBoolean;
1340
+ new: import("zod").ZodBoolean;
1341
+ }, "strip", ZodTypeAny, {
1342
+ type: "changed";
1343
+ old: boolean;
1344
+ new: boolean;
1345
+ }, {
1346
+ type: "changed";
1347
+ old: boolean;
1348
+ new: boolean;
1349
+ }>]>>;
1350
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1351
+ type: import("zod").ZodLiteral<"added">;
1352
+ value: import("zod").ZodBoolean;
1353
+ }, "strip", ZodTypeAny, {
1354
+ type: "added";
1355
+ value: boolean;
1356
+ }, {
1357
+ type: "added";
1358
+ value: boolean;
1359
+ }>, import("zod").ZodObject<{
1360
+ type: import("zod").ZodLiteral<"deleted">;
1361
+ value: import("zod").ZodBoolean;
1362
+ }, "strip", ZodTypeAny, {
1363
+ type: "deleted";
1364
+ value: boolean;
1365
+ }, {
1366
+ type: "deleted";
1367
+ value: boolean;
1368
+ }>, import("zod").ZodObject<{
1369
+ type: import("zod").ZodLiteral<"changed">;
1370
+ old: import("zod").ZodBoolean;
1371
+ new: import("zod").ZodBoolean;
1372
+ }, "strip", ZodTypeAny, {
1373
+ type: "changed";
1374
+ old: boolean;
1375
+ new: boolean;
1376
+ }, {
1377
+ type: "changed";
1378
+ old: boolean;
1379
+ new: boolean;
1380
+ }>]>>;
1381
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1382
+ type: import("zod").ZodLiteral<"added">;
1383
+ value: import("zod").ZodString;
1384
+ }, "strip", ZodTypeAny, {
1385
+ type: "added";
1386
+ value: string;
1387
+ }, {
1388
+ type: "added";
1389
+ value: string;
1390
+ }>, import("zod").ZodObject<{
1391
+ type: import("zod").ZodLiteral<"deleted">;
1392
+ value: import("zod").ZodString;
1393
+ }, "strip", ZodTypeAny, {
1394
+ type: "deleted";
1395
+ value: string;
1396
+ }, {
1397
+ type: "deleted";
1398
+ value: string;
1399
+ }>, import("zod").ZodObject<{
1400
+ type: import("zod").ZodLiteral<"changed">;
1401
+ old: import("zod").ZodString;
1402
+ new: import("zod").ZodString;
1403
+ }, "strip", ZodTypeAny, {
1404
+ type: "changed";
1405
+ old: string;
1406
+ new: string;
1407
+ }, {
1408
+ type: "changed";
1409
+ old: string;
1410
+ new: string;
1411
+ }>]>>;
1412
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1413
+ type: import("zod").ZodLiteral<"added">;
1414
+ value: import("zod").ZodBoolean;
1415
+ }, "strip", ZodTypeAny, {
1416
+ type: "added";
1417
+ value: boolean;
1418
+ }, {
1419
+ type: "added";
1420
+ value: boolean;
1421
+ }>, import("zod").ZodObject<{
1422
+ type: import("zod").ZodLiteral<"deleted">;
1423
+ value: import("zod").ZodBoolean;
1424
+ }, "strip", ZodTypeAny, {
1425
+ type: "deleted";
1426
+ value: boolean;
1427
+ }, {
1428
+ type: "deleted";
1429
+ value: boolean;
1430
+ }>, import("zod").ZodObject<{
1431
+ type: import("zod").ZodLiteral<"changed">;
1432
+ old: import("zod").ZodBoolean;
1433
+ new: import("zod").ZodBoolean;
1434
+ }, "strip", ZodTypeAny, {
1435
+ type: "changed";
1436
+ old: boolean;
1437
+ new: boolean;
1438
+ }, {
1439
+ type: "changed";
1440
+ old: boolean;
1441
+ new: boolean;
1442
+ }>]>>;
1443
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
1444
+ type: import("zod").ZodLiteral<"added">;
1445
+ value: import("zod").ZodBoolean;
1446
+ }, "strip", ZodTypeAny, {
1447
+ type: "added";
1448
+ value: boolean;
1449
+ }, {
1450
+ type: "added";
1451
+ value: boolean;
1452
+ }>, import("zod").ZodObject<{
1453
+ type: import("zod").ZodLiteral<"deleted">;
1454
+ value: import("zod").ZodBoolean;
1455
+ }, "strip", ZodTypeAny, {
1456
+ type: "deleted";
1457
+ value: boolean;
1458
+ }, {
1459
+ type: "deleted";
1460
+ value: boolean;
1461
+ }>, import("zod").ZodObject<{
1462
+ type: import("zod").ZodLiteral<"changed">;
1463
+ old: import("zod").ZodBoolean;
1464
+ new: import("zod").ZodBoolean;
1465
+ }, "strip", ZodTypeAny, {
1466
+ type: "changed";
1467
+ old: boolean;
1468
+ new: boolean;
1469
+ }, {
1470
+ type: "changed";
1471
+ old: boolean;
1472
+ new: boolean;
1473
+ }>]>>;
1474
+ }, "strict", ZodTypeAny, {
1475
+ name: string | {
1476
+ type: "changed";
1477
+ old: string;
1478
+ new: string;
1479
+ };
1480
+ default?: {
1481
+ type: "added";
1482
+ value?: any;
1483
+ } | {
1484
+ type: "deleted";
1485
+ value?: any;
1486
+ } | {
1487
+ type: "changed";
1488
+ old?: any;
1489
+ new?: any;
1490
+ } | undefined;
1491
+ type?: {
1492
+ type: "changed";
1493
+ old: string;
1494
+ new: string;
1495
+ } | undefined;
1496
+ onUpdate?: {
1497
+ type: "added";
1498
+ value: boolean;
1499
+ } | {
1500
+ type: "deleted";
1501
+ value: boolean;
1502
+ } | {
1503
+ type: "changed";
1504
+ old: boolean;
1505
+ new: boolean;
1506
+ } | undefined;
1507
+ primaryKey?: {
1508
+ type: "added";
1509
+ value: boolean;
1510
+ } | {
1511
+ type: "deleted";
1512
+ value: boolean;
1513
+ } | {
1514
+ type: "changed";
1515
+ old: boolean;
1516
+ new: boolean;
1517
+ } | undefined;
1518
+ notNull?: {
1519
+ type: "added";
1520
+ value: boolean;
1521
+ } | {
1522
+ type: "deleted";
1523
+ value: boolean;
1524
+ } | {
1525
+ type: "changed";
1526
+ old: boolean;
1527
+ new: boolean;
1528
+ } | undefined;
1529
+ autoincrement?: {
1530
+ type: "added";
1531
+ value: boolean;
1532
+ } | {
1533
+ type: "deleted";
1534
+ value: boolean;
1535
+ } | {
1536
+ type: "changed";
1537
+ old: boolean;
1538
+ new: boolean;
1539
+ } | undefined;
1540
+ typeSchema?: {
1541
+ type: "added";
1542
+ value: string;
1543
+ } | {
1544
+ type: "deleted";
1545
+ value: string;
1546
+ } | {
1547
+ type: "changed";
1548
+ old: string;
1549
+ new: string;
1550
+ } | undefined;
1551
+ }, {
1552
+ name: string | {
1553
+ type: "changed";
1554
+ old: string;
1555
+ new: string;
1556
+ };
1557
+ default?: {
1558
+ type: "added";
1559
+ value?: any;
1560
+ } | {
1561
+ type: "deleted";
1562
+ value?: any;
1563
+ } | {
1564
+ type: "changed";
1565
+ old?: any;
1566
+ new?: any;
1567
+ } | undefined;
1568
+ type?: {
1569
+ type: "changed";
1570
+ old: string;
1571
+ new: string;
1572
+ } | undefined;
1573
+ onUpdate?: {
1574
+ type: "added";
1575
+ value: boolean;
1576
+ } | {
1577
+ type: "deleted";
1578
+ value: boolean;
1579
+ } | {
1580
+ type: "changed";
1581
+ old: boolean;
1582
+ new: boolean;
1583
+ } | undefined;
1584
+ primaryKey?: {
1585
+ type: "added";
1586
+ value: boolean;
1587
+ } | {
1588
+ type: "deleted";
1589
+ value: boolean;
1590
+ } | {
1591
+ type: "changed";
1592
+ old: boolean;
1593
+ new: boolean;
1594
+ } | undefined;
1595
+ notNull?: {
1596
+ type: "added";
1597
+ value: boolean;
1598
+ } | {
1599
+ type: "deleted";
1600
+ value: boolean;
1601
+ } | {
1602
+ type: "changed";
1603
+ old: boolean;
1604
+ new: boolean;
1605
+ } | undefined;
1606
+ autoincrement?: {
1607
+ type: "added";
1608
+ value: boolean;
1609
+ } | {
1610
+ type: "deleted";
1611
+ value: boolean;
1612
+ } | {
1613
+ type: "changed";
1614
+ old: boolean;
1615
+ new: boolean;
1616
+ } | undefined;
1617
+ typeSchema?: {
1618
+ type: "added";
1619
+ value: string;
1620
+ } | {
1621
+ type: "deleted";
1622
+ value: string;
1623
+ } | {
1624
+ type: "changed";
1625
+ old: string;
1626
+ new: string;
1627
+ } | undefined;
1628
+ }>, "many">;
1629
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1630
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1631
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1632
+ __new: import("zod").ZodString;
1633
+ __old: import("zod").ZodString;
1634
+ }, "strict", ZodTypeAny, {
1635
+ __old: string;
1636
+ __new: string;
1637
+ }, {
1638
+ __old: string;
1639
+ __new: string;
1640
+ }>>;
1641
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1642
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1643
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1644
+ __new: import("zod").ZodString;
1645
+ __old: import("zod").ZodString;
1646
+ }, "strict", ZodTypeAny, {
1647
+ __old: string;
1648
+ __new: string;
1649
+ }, {
1650
+ __old: string;
1651
+ __new: string;
1652
+ }>>;
1653
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1654
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1655
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1656
+ __new: import("zod").ZodString;
1657
+ __old: import("zod").ZodString;
1658
+ }, "strip", ZodTypeAny, {
1659
+ __old: string;
1660
+ __new: string;
1661
+ }, {
1662
+ __old: string;
1663
+ __new: string;
1664
+ }>>;
1665
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1666
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1667
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1668
+ __new: import("zod").ZodString;
1669
+ __old: import("zod").ZodString;
1670
+ }, "strip", ZodTypeAny, {
1671
+ __old: string;
1672
+ __new: string;
1673
+ }, {
1674
+ __old: string;
1675
+ __new: string;
1676
+ }>>;
1677
+ }, "strict", ZodTypeAny, {
1678
+ name: string;
1679
+ schema: string;
1680
+ altered: {
1681
+ name: string | {
1682
+ type: "changed";
1683
+ old: string;
1684
+ new: string;
1685
+ };
1686
+ default?: {
1687
+ type: "added";
1688
+ value?: any;
1689
+ } | {
1690
+ type: "deleted";
1691
+ value?: any;
1692
+ } | {
1693
+ type: "changed";
1694
+ old?: any;
1695
+ new?: any;
1696
+ } | undefined;
1697
+ type?: {
1698
+ type: "changed";
1699
+ old: string;
1700
+ new: string;
1701
+ } | undefined;
1702
+ onUpdate?: {
1703
+ type: "added";
1704
+ value: boolean;
1705
+ } | {
1706
+ type: "deleted";
1707
+ value: boolean;
1708
+ } | {
1709
+ type: "changed";
1710
+ old: boolean;
1711
+ new: boolean;
1712
+ } | undefined;
1713
+ primaryKey?: {
1714
+ type: "added";
1715
+ value: boolean;
1716
+ } | {
1717
+ type: "deleted";
1718
+ value: boolean;
1719
+ } | {
1720
+ type: "changed";
1721
+ old: boolean;
1722
+ new: boolean;
1723
+ } | undefined;
1724
+ notNull?: {
1725
+ type: "added";
1726
+ value: boolean;
1727
+ } | {
1728
+ type: "deleted";
1729
+ value: boolean;
1730
+ } | {
1731
+ type: "changed";
1732
+ old: boolean;
1733
+ new: boolean;
1734
+ } | undefined;
1735
+ autoincrement?: {
1736
+ type: "added";
1737
+ value: boolean;
1738
+ } | {
1739
+ type: "deleted";
1740
+ value: boolean;
1741
+ } | {
1742
+ type: "changed";
1743
+ old: boolean;
1744
+ new: boolean;
1745
+ } | undefined;
1746
+ typeSchema?: {
1747
+ type: "added";
1748
+ value: string;
1749
+ } | {
1750
+ type: "deleted";
1751
+ value: string;
1752
+ } | {
1753
+ type: "changed";
1754
+ old: string;
1755
+ new: string;
1756
+ } | undefined;
1757
+ }[];
1758
+ addedIndexes: Record<string, string>;
1759
+ deletedIndexes: Record<string, string>;
1760
+ alteredIndexes: Record<string, {
1761
+ __old: string;
1762
+ __new: string;
1763
+ }>;
1764
+ addedForeignKeys: Record<string, string>;
1765
+ deletedForeignKeys: Record<string, string>;
1766
+ alteredForeignKeys: Record<string, {
1767
+ __old: string;
1768
+ __new: string;
1769
+ }>;
1770
+ addedCompositePKs: Record<string, string>;
1771
+ deletedCompositePKs: Record<string, string>;
1772
+ alteredCompositePKs: Record<string, {
1773
+ __old: string;
1774
+ __new: string;
1775
+ }>;
1776
+ addedUniqueConstraints: Record<string, string>;
1777
+ deletedUniqueConstraints: Record<string, string>;
1778
+ alteredUniqueConstraints: Record<string, {
1779
+ __old: string;
1780
+ __new: string;
1781
+ }>;
1782
+ }, {
1783
+ name: string;
1784
+ schema: string;
1785
+ altered: {
1786
+ name: string | {
1787
+ type: "changed";
1788
+ old: string;
1789
+ new: string;
1790
+ };
1791
+ default?: {
1792
+ type: "added";
1793
+ value?: any;
1794
+ } | {
1795
+ type: "deleted";
1796
+ value?: any;
1797
+ } | {
1798
+ type: "changed";
1799
+ old?: any;
1800
+ new?: any;
1801
+ } | undefined;
1802
+ type?: {
1803
+ type: "changed";
1804
+ old: string;
1805
+ new: string;
1806
+ } | undefined;
1807
+ onUpdate?: {
1808
+ type: "added";
1809
+ value: boolean;
1810
+ } | {
1811
+ type: "deleted";
1812
+ value: boolean;
1813
+ } | {
1814
+ type: "changed";
1815
+ old: boolean;
1816
+ new: boolean;
1817
+ } | undefined;
1818
+ primaryKey?: {
1819
+ type: "added";
1820
+ value: boolean;
1821
+ } | {
1822
+ type: "deleted";
1823
+ value: boolean;
1824
+ } | {
1825
+ type: "changed";
1826
+ old: boolean;
1827
+ new: boolean;
1828
+ } | undefined;
1829
+ notNull?: {
1830
+ type: "added";
1831
+ value: boolean;
1832
+ } | {
1833
+ type: "deleted";
1834
+ value: boolean;
1835
+ } | {
1836
+ type: "changed";
1837
+ old: boolean;
1838
+ new: boolean;
1839
+ } | undefined;
1840
+ autoincrement?: {
1841
+ type: "added";
1842
+ value: boolean;
1843
+ } | {
1844
+ type: "deleted";
1845
+ value: boolean;
1846
+ } | {
1847
+ type: "changed";
1848
+ old: boolean;
1849
+ new: boolean;
1850
+ } | undefined;
1851
+ typeSchema?: {
1852
+ type: "added";
1853
+ value: string;
1854
+ } | {
1855
+ type: "deleted";
1856
+ value: string;
1857
+ } | {
1858
+ type: "changed";
1859
+ old: string;
1860
+ new: string;
1861
+ } | undefined;
1862
+ }[];
1863
+ addedIndexes: Record<string, string>;
1864
+ deletedIndexes: Record<string, string>;
1865
+ alteredIndexes: Record<string, {
1866
+ __old: string;
1867
+ __new: string;
1868
+ }>;
1869
+ addedForeignKeys: Record<string, string>;
1870
+ deletedForeignKeys: Record<string, string>;
1871
+ alteredForeignKeys: Record<string, {
1872
+ __old: string;
1873
+ __new: string;
1874
+ }>;
1875
+ addedCompositePKs: Record<string, string>;
1876
+ deletedCompositePKs: Record<string, string>;
1877
+ alteredCompositePKs: Record<string, {
1878
+ __old: string;
1879
+ __new: string;
1880
+ }>;
1881
+ addedUniqueConstraints: Record<string, string>;
1882
+ deletedUniqueConstraints: Record<string, string>;
1883
+ alteredUniqueConstraints: Record<string, {
1884
+ __old: string;
1885
+ __new: string;
1886
+ }>;
1887
+ }>, "many">;
1888
+ alteredEnums: import("zod").ZodArray<import("zod").ZodObject<{
1889
+ name: import("zod").ZodString;
1890
+ schema: import("zod").ZodString;
1891
+ addedValues: import("zod").ZodArray<import("zod").ZodObject<{
1892
+ before: import("zod").ZodString;
1893
+ value: import("zod").ZodString;
1894
+ }, "strip", ZodTypeAny, {
1895
+ value: string;
1896
+ before: string;
1897
+ }, {
1898
+ value: string;
1899
+ before: string;
1900
+ }>, "many">;
1901
+ deletedValues: import("zod").ZodArray<import("zod").ZodString, "many">;
1902
+ }, "strict", ZodTypeAny, {
1903
+ name: string;
1904
+ schema: string;
1905
+ addedValues: {
1906
+ value: string;
1907
+ before: string;
1908
+ }[];
1909
+ deletedValues: string[];
1910
+ }, {
1911
+ name: string;
1912
+ schema: string;
1913
+ addedValues: {
1914
+ value: string;
1915
+ before: string;
1916
+ }[];
1917
+ deletedValues: string[];
1918
+ }>, "many">;
1919
+ }, "strict", ZodTypeAny, {
1920
+ alteredTablesWithColumns: {
1921
+ name: string;
1922
+ schema: string;
1923
+ altered: {
1924
+ name: string | {
1925
+ type: "changed";
1926
+ old: string;
1927
+ new: string;
1928
+ };
1929
+ default?: {
1930
+ type: "added";
1931
+ value?: any;
1932
+ } | {
1933
+ type: "deleted";
1934
+ value?: any;
1935
+ } | {
1936
+ type: "changed";
1937
+ old?: any;
1938
+ new?: any;
1939
+ } | undefined;
1940
+ type?: {
1941
+ type: "changed";
1942
+ old: string;
1943
+ new: string;
1944
+ } | undefined;
1945
+ onUpdate?: {
1946
+ type: "added";
1947
+ value: boolean;
1948
+ } | {
1949
+ type: "deleted";
1950
+ value: boolean;
1951
+ } | {
1952
+ type: "changed";
1953
+ old: boolean;
1954
+ new: boolean;
1955
+ } | undefined;
1956
+ primaryKey?: {
1957
+ type: "added";
1958
+ value: boolean;
1959
+ } | {
1960
+ type: "deleted";
1961
+ value: boolean;
1962
+ } | {
1963
+ type: "changed";
1964
+ old: boolean;
1965
+ new: boolean;
1966
+ } | undefined;
1967
+ notNull?: {
1968
+ type: "added";
1969
+ value: boolean;
1970
+ } | {
1971
+ type: "deleted";
1972
+ value: boolean;
1973
+ } | {
1974
+ type: "changed";
1975
+ old: boolean;
1976
+ new: boolean;
1977
+ } | undefined;
1978
+ autoincrement?: {
1979
+ type: "added";
1980
+ value: boolean;
1981
+ } | {
1982
+ type: "deleted";
1983
+ value: boolean;
1984
+ } | {
1985
+ type: "changed";
1986
+ old: boolean;
1987
+ new: boolean;
1988
+ } | undefined;
1989
+ typeSchema?: {
1990
+ type: "added";
1991
+ value: string;
1992
+ } | {
1993
+ type: "deleted";
1994
+ value: string;
1995
+ } | {
1996
+ type: "changed";
1997
+ old: string;
1998
+ new: string;
1999
+ } | undefined;
2000
+ }[];
2001
+ addedIndexes: Record<string, string>;
2002
+ deletedIndexes: Record<string, string>;
2003
+ alteredIndexes: Record<string, {
2004
+ __old: string;
2005
+ __new: string;
2006
+ }>;
2007
+ addedForeignKeys: Record<string, string>;
2008
+ deletedForeignKeys: Record<string, string>;
2009
+ alteredForeignKeys: Record<string, {
2010
+ __old: string;
2011
+ __new: string;
2012
+ }>;
2013
+ addedCompositePKs: Record<string, string>;
2014
+ deletedCompositePKs: Record<string, string>;
2015
+ alteredCompositePKs: Record<string, {
2016
+ __old: string;
2017
+ __new: string;
2018
+ }>;
2019
+ addedUniqueConstraints: Record<string, string>;
2020
+ deletedUniqueConstraints: Record<string, string>;
2021
+ alteredUniqueConstraints: Record<string, {
2022
+ __old: string;
2023
+ __new: string;
2024
+ }>;
2025
+ }[];
2026
+ alteredEnums: {
2027
+ name: string;
2028
+ schema: string;
2029
+ addedValues: {
2030
+ value: string;
2031
+ before: string;
2032
+ }[];
2033
+ deletedValues: string[];
2034
+ }[];
2035
+ }, {
2036
+ alteredTablesWithColumns: {
2037
+ name: string;
2038
+ schema: string;
2039
+ altered: {
2040
+ name: string | {
2041
+ type: "changed";
2042
+ old: string;
2043
+ new: string;
2044
+ };
2045
+ default?: {
2046
+ type: "added";
2047
+ value?: any;
2048
+ } | {
2049
+ type: "deleted";
2050
+ value?: any;
2051
+ } | {
2052
+ type: "changed";
2053
+ old?: any;
2054
+ new?: any;
2055
+ } | undefined;
2056
+ type?: {
2057
+ type: "changed";
2058
+ old: string;
2059
+ new: string;
2060
+ } | undefined;
2061
+ onUpdate?: {
2062
+ type: "added";
2063
+ value: boolean;
2064
+ } | {
2065
+ type: "deleted";
2066
+ value: boolean;
2067
+ } | {
2068
+ type: "changed";
2069
+ old: boolean;
2070
+ new: boolean;
2071
+ } | undefined;
2072
+ primaryKey?: {
2073
+ type: "added";
2074
+ value: boolean;
2075
+ } | {
2076
+ type: "deleted";
2077
+ value: boolean;
2078
+ } | {
2079
+ type: "changed";
2080
+ old: boolean;
2081
+ new: boolean;
2082
+ } | undefined;
2083
+ notNull?: {
2084
+ type: "added";
2085
+ value: boolean;
2086
+ } | {
2087
+ type: "deleted";
2088
+ value: boolean;
2089
+ } | {
2090
+ type: "changed";
2091
+ old: boolean;
2092
+ new: boolean;
2093
+ } | undefined;
2094
+ autoincrement?: {
2095
+ type: "added";
2096
+ value: boolean;
2097
+ } | {
2098
+ type: "deleted";
2099
+ value: boolean;
2100
+ } | {
2101
+ type: "changed";
2102
+ old: boolean;
2103
+ new: boolean;
2104
+ } | undefined;
2105
+ typeSchema?: {
2106
+ type: "added";
2107
+ value: string;
2108
+ } | {
2109
+ type: "deleted";
2110
+ value: string;
2111
+ } | {
2112
+ type: "changed";
2113
+ old: string;
2114
+ new: string;
2115
+ } | undefined;
2116
+ }[];
2117
+ addedIndexes: Record<string, string>;
2118
+ deletedIndexes: Record<string, string>;
2119
+ alteredIndexes: Record<string, {
2120
+ __old: string;
2121
+ __new: string;
2122
+ }>;
2123
+ addedForeignKeys: Record<string, string>;
2124
+ deletedForeignKeys: Record<string, string>;
2125
+ alteredForeignKeys: Record<string, {
2126
+ __old: string;
2127
+ __new: string;
2128
+ }>;
2129
+ addedCompositePKs: Record<string, string>;
2130
+ deletedCompositePKs: Record<string, string>;
2131
+ alteredCompositePKs: Record<string, {
2132
+ __old: string;
2133
+ __new: string;
2134
+ }>;
2135
+ addedUniqueConstraints: Record<string, string>;
2136
+ deletedUniqueConstraints: Record<string, string>;
2137
+ alteredUniqueConstraints: Record<string, {
2138
+ __old: string;
2139
+ __new: string;
2140
+ }>;
2141
+ }[];
2142
+ alteredEnums: {
2143
+ name: string;
2144
+ schema: string;
2145
+ addedValues: {
2146
+ value: string;
2147
+ before: string;
2148
+ }[];
2149
+ deletedValues: string[];
2150
+ }[];
2151
+ }>;
2152
+ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
2153
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
2154
+ name: import("zod").ZodString;
2155
+ schema: import("zod").ZodString;
2156
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
2157
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
2158
+ type: import("zod").ZodEnum<["changed"]>;
2159
+ old: import("zod").ZodString;
2160
+ new: import("zod").ZodString;
2161
+ }, "strip", ZodTypeAny, {
2162
+ type: "changed";
2163
+ old: string;
2164
+ new: string;
2165
+ }, {
2166
+ type: "changed";
2167
+ old: string;
2168
+ new: string;
2169
+ }>]>;
2170
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
2171
+ type: import("zod").ZodEnum<["changed"]>;
2172
+ old: import("zod").ZodString;
2173
+ new: import("zod").ZodString;
2174
+ }, "strip", ZodTypeAny, {
2175
+ type: "changed";
2176
+ old: string;
2177
+ new: string;
2178
+ }, {
2179
+ type: "changed";
2180
+ old: string;
2181
+ new: string;
2182
+ }>>;
2183
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2184
+ type: import("zod").ZodLiteral<"added">;
2185
+ value: import("zod").ZodAny;
2186
+ }, "strip", ZodTypeAny, {
2187
+ type: "added";
2188
+ value?: any;
2189
+ }, {
2190
+ type: "added";
2191
+ value?: any;
2192
+ }>, import("zod").ZodObject<{
2193
+ type: import("zod").ZodLiteral<"deleted">;
2194
+ value: import("zod").ZodAny;
2195
+ }, "strip", ZodTypeAny, {
2196
+ type: "deleted";
2197
+ value?: any;
2198
+ }, {
2199
+ type: "deleted";
2200
+ value?: any;
2201
+ }>, import("zod").ZodObject<{
2202
+ type: import("zod").ZodLiteral<"changed">;
2203
+ old: import("zod").ZodAny;
2204
+ new: import("zod").ZodAny;
2205
+ }, "strip", ZodTypeAny, {
2206
+ type: "changed";
2207
+ old?: any;
2208
+ new?: any;
2209
+ }, {
2210
+ type: "changed";
2211
+ old?: any;
2212
+ new?: any;
2213
+ }>]>>;
2214
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2215
+ type: import("zod").ZodLiteral<"added">;
2216
+ value: import("zod").ZodBoolean;
2217
+ }, "strip", ZodTypeAny, {
2218
+ type: "added";
2219
+ value: boolean;
2220
+ }, {
2221
+ type: "added";
2222
+ value: boolean;
2223
+ }>, import("zod").ZodObject<{
2224
+ type: import("zod").ZodLiteral<"deleted">;
2225
+ value: import("zod").ZodBoolean;
2226
+ }, "strip", ZodTypeAny, {
2227
+ type: "deleted";
2228
+ value: boolean;
2229
+ }, {
2230
+ type: "deleted";
2231
+ value: boolean;
2232
+ }>, import("zod").ZodObject<{
2233
+ type: import("zod").ZodLiteral<"changed">;
2234
+ old: import("zod").ZodBoolean;
2235
+ new: import("zod").ZodBoolean;
2236
+ }, "strip", ZodTypeAny, {
2237
+ type: "changed";
2238
+ old: boolean;
2239
+ new: boolean;
2240
+ }, {
2241
+ type: "changed";
2242
+ old: boolean;
2243
+ new: boolean;
2244
+ }>]>>;
2245
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2246
+ type: import("zod").ZodLiteral<"added">;
2247
+ value: import("zod").ZodBoolean;
2248
+ }, "strip", ZodTypeAny, {
2249
+ type: "added";
2250
+ value: boolean;
2251
+ }, {
2252
+ type: "added";
2253
+ value: boolean;
2254
+ }>, import("zod").ZodObject<{
2255
+ type: import("zod").ZodLiteral<"deleted">;
2256
+ value: import("zod").ZodBoolean;
2257
+ }, "strip", ZodTypeAny, {
2258
+ type: "deleted";
2259
+ value: boolean;
2260
+ }, {
2261
+ type: "deleted";
2262
+ value: boolean;
2263
+ }>, import("zod").ZodObject<{
2264
+ type: import("zod").ZodLiteral<"changed">;
2265
+ old: import("zod").ZodBoolean;
2266
+ new: import("zod").ZodBoolean;
2267
+ }, "strip", ZodTypeAny, {
2268
+ type: "changed";
2269
+ old: boolean;
2270
+ new: boolean;
2271
+ }, {
2272
+ type: "changed";
2273
+ old: boolean;
2274
+ new: boolean;
2275
+ }>]>>;
2276
+ typeSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2277
+ type: import("zod").ZodLiteral<"added">;
2278
+ value: import("zod").ZodString;
2279
+ }, "strip", ZodTypeAny, {
2280
+ type: "added";
2281
+ value: string;
2282
+ }, {
2283
+ type: "added";
2284
+ value: string;
2285
+ }>, import("zod").ZodObject<{
2286
+ type: import("zod").ZodLiteral<"deleted">;
2287
+ value: import("zod").ZodString;
2288
+ }, "strip", ZodTypeAny, {
2289
+ type: "deleted";
2290
+ value: string;
2291
+ }, {
2292
+ type: "deleted";
2293
+ value: string;
2294
+ }>, import("zod").ZodObject<{
2295
+ type: import("zod").ZodLiteral<"changed">;
2296
+ old: import("zod").ZodString;
2297
+ new: import("zod").ZodString;
2298
+ }, "strip", ZodTypeAny, {
2299
+ type: "changed";
2300
+ old: string;
2301
+ new: string;
2302
+ }, {
2303
+ type: "changed";
2304
+ old: string;
2305
+ new: string;
2306
+ }>]>>;
2307
+ onUpdate: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2308
+ type: import("zod").ZodLiteral<"added">;
2309
+ value: import("zod").ZodBoolean;
2310
+ }, "strip", ZodTypeAny, {
2311
+ type: "added";
2312
+ value: boolean;
2313
+ }, {
2314
+ type: "added";
2315
+ value: boolean;
2316
+ }>, import("zod").ZodObject<{
2317
+ type: import("zod").ZodLiteral<"deleted">;
2318
+ value: import("zod").ZodBoolean;
2319
+ }, "strip", ZodTypeAny, {
2320
+ type: "deleted";
2321
+ value: boolean;
2322
+ }, {
2323
+ type: "deleted";
2324
+ value: boolean;
2325
+ }>, import("zod").ZodObject<{
2326
+ type: import("zod").ZodLiteral<"changed">;
2327
+ old: import("zod").ZodBoolean;
2328
+ new: import("zod").ZodBoolean;
2329
+ }, "strip", ZodTypeAny, {
2330
+ type: "changed";
2331
+ old: boolean;
2332
+ new: boolean;
2333
+ }, {
2334
+ type: "changed";
2335
+ old: boolean;
2336
+ new: boolean;
2337
+ }>]>>;
2338
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
2339
+ type: import("zod").ZodLiteral<"added">;
2340
+ value: import("zod").ZodBoolean;
2341
+ }, "strip", ZodTypeAny, {
2342
+ type: "added";
2343
+ value: boolean;
2344
+ }, {
2345
+ type: "added";
2346
+ value: boolean;
2347
+ }>, import("zod").ZodObject<{
2348
+ type: import("zod").ZodLiteral<"deleted">;
2349
+ value: import("zod").ZodBoolean;
2350
+ }, "strip", ZodTypeAny, {
2351
+ type: "deleted";
2352
+ value: boolean;
2353
+ }, {
2354
+ type: "deleted";
2355
+ value: boolean;
2356
+ }>, import("zod").ZodObject<{
2357
+ type: import("zod").ZodLiteral<"changed">;
2358
+ old: import("zod").ZodBoolean;
2359
+ new: import("zod").ZodBoolean;
2360
+ }, "strip", ZodTypeAny, {
2361
+ type: "changed";
2362
+ old: boolean;
2363
+ new: boolean;
2364
+ }, {
2365
+ type: "changed";
2366
+ old: boolean;
2367
+ new: boolean;
2368
+ }>]>>;
2369
+ }, "strict", ZodTypeAny, {
2370
+ name: string | {
2371
+ type: "changed";
2372
+ old: string;
2373
+ new: string;
2374
+ };
2375
+ default?: {
2376
+ type: "added";
2377
+ value?: any;
2378
+ } | {
2379
+ type: "deleted";
2380
+ value?: any;
2381
+ } | {
2382
+ type: "changed";
2383
+ old?: any;
2384
+ new?: any;
2385
+ } | undefined;
2386
+ type?: {
2387
+ type: "changed";
2388
+ old: string;
2389
+ new: string;
2390
+ } | undefined;
2391
+ onUpdate?: {
2392
+ type: "added";
2393
+ value: boolean;
2394
+ } | {
2395
+ type: "deleted";
2396
+ value: boolean;
2397
+ } | {
2398
+ type: "changed";
2399
+ old: boolean;
2400
+ new: boolean;
2401
+ } | undefined;
2402
+ primaryKey?: {
2403
+ type: "added";
2404
+ value: boolean;
2405
+ } | {
2406
+ type: "deleted";
2407
+ value: boolean;
2408
+ } | {
2409
+ type: "changed";
2410
+ old: boolean;
2411
+ new: boolean;
2412
+ } | undefined;
2413
+ notNull?: {
2414
+ type: "added";
2415
+ value: boolean;
2416
+ } | {
2417
+ type: "deleted";
2418
+ value: boolean;
2419
+ } | {
2420
+ type: "changed";
2421
+ old: boolean;
2422
+ new: boolean;
2423
+ } | undefined;
2424
+ autoincrement?: {
2425
+ type: "added";
2426
+ value: boolean;
2427
+ } | {
2428
+ type: "deleted";
2429
+ value: boolean;
2430
+ } | {
2431
+ type: "changed";
2432
+ old: boolean;
2433
+ new: boolean;
2434
+ } | undefined;
2435
+ typeSchema?: {
2436
+ type: "added";
2437
+ value: string;
2438
+ } | {
2439
+ type: "deleted";
2440
+ value: string;
2441
+ } | {
2442
+ type: "changed";
2443
+ old: string;
2444
+ new: string;
2445
+ } | undefined;
2446
+ }, {
2447
+ name: string | {
2448
+ type: "changed";
2449
+ old: string;
2450
+ new: string;
2451
+ };
2452
+ default?: {
2453
+ type: "added";
2454
+ value?: any;
2455
+ } | {
2456
+ type: "deleted";
2457
+ value?: any;
2458
+ } | {
2459
+ type: "changed";
2460
+ old?: any;
2461
+ new?: any;
2462
+ } | undefined;
2463
+ type?: {
2464
+ type: "changed";
2465
+ old: string;
2466
+ new: string;
2467
+ } | undefined;
2468
+ onUpdate?: {
2469
+ type: "added";
2470
+ value: boolean;
2471
+ } | {
2472
+ type: "deleted";
2473
+ value: boolean;
2474
+ } | {
2475
+ type: "changed";
2476
+ old: boolean;
2477
+ new: boolean;
2478
+ } | undefined;
2479
+ primaryKey?: {
2480
+ type: "added";
2481
+ value: boolean;
2482
+ } | {
2483
+ type: "deleted";
2484
+ value: boolean;
2485
+ } | {
2486
+ type: "changed";
2487
+ old: boolean;
2488
+ new: boolean;
2489
+ } | undefined;
2490
+ notNull?: {
2491
+ type: "added";
2492
+ value: boolean;
2493
+ } | {
2494
+ type: "deleted";
2495
+ value: boolean;
2496
+ } | {
2497
+ type: "changed";
2498
+ old: boolean;
2499
+ new: boolean;
2500
+ } | undefined;
2501
+ autoincrement?: {
2502
+ type: "added";
2503
+ value: boolean;
2504
+ } | {
2505
+ type: "deleted";
2506
+ value: boolean;
2507
+ } | {
2508
+ type: "changed";
2509
+ old: boolean;
2510
+ new: boolean;
2511
+ } | undefined;
2512
+ typeSchema?: {
2513
+ type: "added";
2514
+ value: string;
2515
+ } | {
2516
+ type: "deleted";
2517
+ value: string;
2518
+ } | {
2519
+ type: "changed";
2520
+ old: string;
2521
+ new: string;
2522
+ } | undefined;
2523
+ }>, "many">;
2524
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2525
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2526
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2527
+ __new: import("zod").ZodString;
2528
+ __old: import("zod").ZodString;
2529
+ }, "strict", ZodTypeAny, {
2530
+ __old: string;
2531
+ __new: string;
2532
+ }, {
2533
+ __old: string;
2534
+ __new: string;
2535
+ }>>;
2536
+ addedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2537
+ deletedForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2538
+ alteredForeignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2539
+ __new: import("zod").ZodString;
2540
+ __old: import("zod").ZodString;
2541
+ }, "strict", ZodTypeAny, {
2542
+ __old: string;
2543
+ __new: string;
2544
+ }, {
2545
+ __old: string;
2546
+ __new: string;
2547
+ }>>;
2548
+ addedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2549
+ deletedCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2550
+ alteredCompositePKs: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2551
+ __new: import("zod").ZodString;
2552
+ __old: import("zod").ZodString;
2553
+ }, "strip", ZodTypeAny, {
2554
+ __old: string;
2555
+ __new: string;
2556
+ }, {
2557
+ __old: string;
2558
+ __new: string;
2559
+ }>>;
2560
+ addedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2561
+ deletedUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2562
+ alteredUniqueConstraints: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2563
+ __new: import("zod").ZodString;
2564
+ __old: import("zod").ZodString;
2565
+ }, "strip", ZodTypeAny, {
2566
+ __old: string;
2567
+ __new: string;
2568
+ }, {
2569
+ __old: string;
2570
+ __new: string;
2571
+ }>>;
2572
+ }, "strict", ZodTypeAny, {
2573
+ name: string;
2574
+ schema: string;
2575
+ altered: {
2576
+ name: string | {
2577
+ type: "changed";
2578
+ old: string;
2579
+ new: string;
2580
+ };
2581
+ default?: {
2582
+ type: "added";
2583
+ value?: any;
2584
+ } | {
2585
+ type: "deleted";
2586
+ value?: any;
2587
+ } | {
2588
+ type: "changed";
2589
+ old?: any;
2590
+ new?: any;
2591
+ } | undefined;
2592
+ type?: {
2593
+ type: "changed";
2594
+ old: string;
2595
+ new: string;
2596
+ } | undefined;
2597
+ onUpdate?: {
2598
+ type: "added";
2599
+ value: boolean;
2600
+ } | {
2601
+ type: "deleted";
2602
+ value: boolean;
2603
+ } | {
2604
+ type: "changed";
2605
+ old: boolean;
2606
+ new: boolean;
2607
+ } | undefined;
2608
+ primaryKey?: {
2609
+ type: "added";
2610
+ value: boolean;
2611
+ } | {
2612
+ type: "deleted";
2613
+ value: boolean;
2614
+ } | {
2615
+ type: "changed";
2616
+ old: boolean;
2617
+ new: boolean;
2618
+ } | undefined;
2619
+ notNull?: {
2620
+ type: "added";
2621
+ value: boolean;
2622
+ } | {
2623
+ type: "deleted";
2624
+ value: boolean;
2625
+ } | {
2626
+ type: "changed";
2627
+ old: boolean;
2628
+ new: boolean;
2629
+ } | undefined;
2630
+ autoincrement?: {
2631
+ type: "added";
2632
+ value: boolean;
2633
+ } | {
2634
+ type: "deleted";
2635
+ value: boolean;
2636
+ } | {
2637
+ type: "changed";
2638
+ old: boolean;
2639
+ new: boolean;
2640
+ } | undefined;
2641
+ typeSchema?: {
2642
+ type: "added";
2643
+ value: string;
2644
+ } | {
2645
+ type: "deleted";
2646
+ value: string;
2647
+ } | {
2648
+ type: "changed";
2649
+ old: string;
2650
+ new: string;
2651
+ } | undefined;
2652
+ }[];
2653
+ addedIndexes: Record<string, string>;
2654
+ deletedIndexes: Record<string, string>;
2655
+ alteredIndexes: Record<string, {
2656
+ __old: string;
2657
+ __new: string;
2658
+ }>;
2659
+ addedForeignKeys: Record<string, string>;
2660
+ deletedForeignKeys: Record<string, string>;
2661
+ alteredForeignKeys: Record<string, {
2662
+ __old: string;
2663
+ __new: string;
2664
+ }>;
2665
+ addedCompositePKs: Record<string, string>;
2666
+ deletedCompositePKs: Record<string, string>;
2667
+ alteredCompositePKs: Record<string, {
2668
+ __old: string;
2669
+ __new: string;
2670
+ }>;
2671
+ addedUniqueConstraints: Record<string, string>;
2672
+ deletedUniqueConstraints: Record<string, string>;
2673
+ alteredUniqueConstraints: Record<string, {
2674
+ __old: string;
2675
+ __new: string;
2676
+ }>;
2677
+ }, {
2678
+ name: string;
2679
+ schema: string;
2680
+ altered: {
2681
+ name: string | {
2682
+ type: "changed";
2683
+ old: string;
2684
+ new: string;
2685
+ };
2686
+ default?: {
2687
+ type: "added";
2688
+ value?: any;
2689
+ } | {
2690
+ type: "deleted";
2691
+ value?: any;
2692
+ } | {
2693
+ type: "changed";
2694
+ old?: any;
2695
+ new?: any;
2696
+ } | undefined;
2697
+ type?: {
2698
+ type: "changed";
2699
+ old: string;
2700
+ new: string;
2701
+ } | undefined;
2702
+ onUpdate?: {
2703
+ type: "added";
2704
+ value: boolean;
2705
+ } | {
2706
+ type: "deleted";
2707
+ value: boolean;
2708
+ } | {
2709
+ type: "changed";
2710
+ old: boolean;
2711
+ new: boolean;
2712
+ } | undefined;
2713
+ primaryKey?: {
2714
+ type: "added";
2715
+ value: boolean;
2716
+ } | {
2717
+ type: "deleted";
2718
+ value: boolean;
2719
+ } | {
2720
+ type: "changed";
2721
+ old: boolean;
2722
+ new: boolean;
2723
+ } | undefined;
2724
+ notNull?: {
2725
+ type: "added";
2726
+ value: boolean;
2727
+ } | {
2728
+ type: "deleted";
2729
+ value: boolean;
2730
+ } | {
2731
+ type: "changed";
2732
+ old: boolean;
2733
+ new: boolean;
2734
+ } | undefined;
2735
+ autoincrement?: {
2736
+ type: "added";
2737
+ value: boolean;
2738
+ } | {
2739
+ type: "deleted";
2740
+ value: boolean;
2741
+ } | {
2742
+ type: "changed";
2743
+ old: boolean;
2744
+ new: boolean;
2745
+ } | undefined;
2746
+ typeSchema?: {
2747
+ type: "added";
2748
+ value: string;
2749
+ } | {
2750
+ type: "deleted";
2751
+ value: string;
2752
+ } | {
2753
+ type: "changed";
2754
+ old: string;
2755
+ new: string;
2756
+ } | undefined;
2757
+ }[];
2758
+ addedIndexes: Record<string, string>;
2759
+ deletedIndexes: Record<string, string>;
2760
+ alteredIndexes: Record<string, {
2761
+ __old: string;
2762
+ __new: string;
2763
+ }>;
2764
+ addedForeignKeys: Record<string, string>;
2765
+ deletedForeignKeys: Record<string, string>;
2766
+ alteredForeignKeys: Record<string, {
2767
+ __old: string;
2768
+ __new: string;
2769
+ }>;
2770
+ addedCompositePKs: Record<string, string>;
2771
+ deletedCompositePKs: Record<string, string>;
2772
+ alteredCompositePKs: Record<string, {
2773
+ __old: string;
2774
+ __new: string;
2775
+ }>;
2776
+ addedUniqueConstraints: Record<string, string>;
2777
+ deletedUniqueConstraints: Record<string, string>;
2778
+ alteredUniqueConstraints: Record<string, {
2779
+ __old: string;
2780
+ __new: string;
2781
+ }>;
2782
+ }>, "many">;
2783
+ alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "many">;
2784
+ }, "strict", ZodTypeAny, {
2785
+ alteredTablesWithColumns: {
2786
+ name: string;
2787
+ schema: string;
2788
+ altered: {
2789
+ name: string | {
2790
+ type: "changed";
2791
+ old: string;
2792
+ new: string;
2793
+ };
2794
+ default?: {
2795
+ type: "added";
2796
+ value?: any;
2797
+ } | {
2798
+ type: "deleted";
2799
+ value?: any;
2800
+ } | {
2801
+ type: "changed";
2802
+ old?: any;
2803
+ new?: any;
2804
+ } | undefined;
2805
+ type?: {
2806
+ type: "changed";
2807
+ old: string;
2808
+ new: string;
2809
+ } | undefined;
2810
+ onUpdate?: {
2811
+ type: "added";
2812
+ value: boolean;
2813
+ } | {
2814
+ type: "deleted";
2815
+ value: boolean;
2816
+ } | {
2817
+ type: "changed";
2818
+ old: boolean;
2819
+ new: boolean;
2820
+ } | undefined;
2821
+ primaryKey?: {
2822
+ type: "added";
2823
+ value: boolean;
2824
+ } | {
2825
+ type: "deleted";
2826
+ value: boolean;
2827
+ } | {
2828
+ type: "changed";
2829
+ old: boolean;
2830
+ new: boolean;
2831
+ } | undefined;
2832
+ notNull?: {
2833
+ type: "added";
2834
+ value: boolean;
2835
+ } | {
2836
+ type: "deleted";
2837
+ value: boolean;
2838
+ } | {
2839
+ type: "changed";
2840
+ old: boolean;
2841
+ new: boolean;
2842
+ } | undefined;
2843
+ autoincrement?: {
2844
+ type: "added";
2845
+ value: boolean;
2846
+ } | {
2847
+ type: "deleted";
2848
+ value: boolean;
2849
+ } | {
2850
+ type: "changed";
2851
+ old: boolean;
2852
+ new: boolean;
2853
+ } | undefined;
2854
+ typeSchema?: {
2855
+ type: "added";
2856
+ value: string;
2857
+ } | {
2858
+ type: "deleted";
2859
+ value: string;
2860
+ } | {
2861
+ type: "changed";
2862
+ old: string;
2863
+ new: string;
2864
+ } | undefined;
2865
+ }[];
2866
+ addedIndexes: Record<string, string>;
2867
+ deletedIndexes: Record<string, string>;
2868
+ alteredIndexes: Record<string, {
2869
+ __old: string;
2870
+ __new: string;
2871
+ }>;
2872
+ addedForeignKeys: Record<string, string>;
2873
+ deletedForeignKeys: Record<string, string>;
2874
+ alteredForeignKeys: Record<string, {
2875
+ __old: string;
2876
+ __new: string;
2877
+ }>;
2878
+ addedCompositePKs: Record<string, string>;
2879
+ deletedCompositePKs: Record<string, string>;
2880
+ alteredCompositePKs: Record<string, {
2881
+ __old: string;
2882
+ __new: string;
2883
+ }>;
2884
+ addedUniqueConstraints: Record<string, string>;
2885
+ deletedUniqueConstraints: Record<string, string>;
2886
+ alteredUniqueConstraints: Record<string, {
2887
+ __old: string;
2888
+ __new: string;
2889
+ }>;
2890
+ }[];
2891
+ alteredEnums: never[];
2892
+ }, {
2893
+ alteredTablesWithColumns: {
2894
+ name: string;
2895
+ schema: string;
2896
+ altered: {
2897
+ name: string | {
2898
+ type: "changed";
2899
+ old: string;
2900
+ new: string;
2901
+ };
2902
+ default?: {
2903
+ type: "added";
2904
+ value?: any;
2905
+ } | {
2906
+ type: "deleted";
2907
+ value?: any;
2908
+ } | {
2909
+ type: "changed";
2910
+ old?: any;
2911
+ new?: any;
2912
+ } | undefined;
2913
+ type?: {
2914
+ type: "changed";
2915
+ old: string;
2916
+ new: string;
2917
+ } | undefined;
2918
+ onUpdate?: {
2919
+ type: "added";
2920
+ value: boolean;
2921
+ } | {
2922
+ type: "deleted";
2923
+ value: boolean;
2924
+ } | {
2925
+ type: "changed";
2926
+ old: boolean;
2927
+ new: boolean;
2928
+ } | undefined;
2929
+ primaryKey?: {
2930
+ type: "added";
2931
+ value: boolean;
2932
+ } | {
2933
+ type: "deleted";
2934
+ value: boolean;
2935
+ } | {
2936
+ type: "changed";
2937
+ old: boolean;
2938
+ new: boolean;
2939
+ } | undefined;
2940
+ notNull?: {
2941
+ type: "added";
2942
+ value: boolean;
2943
+ } | {
2944
+ type: "deleted";
2945
+ value: boolean;
2946
+ } | {
2947
+ type: "changed";
2948
+ old: boolean;
2949
+ new: boolean;
2950
+ } | undefined;
2951
+ autoincrement?: {
2952
+ type: "added";
2953
+ value: boolean;
2954
+ } | {
2955
+ type: "deleted";
2956
+ value: boolean;
2957
+ } | {
2958
+ type: "changed";
2959
+ old: boolean;
2960
+ new: boolean;
2961
+ } | undefined;
2962
+ typeSchema?: {
2963
+ type: "added";
2964
+ value: string;
2965
+ } | {
2966
+ type: "deleted";
2967
+ value: string;
2968
+ } | {
2969
+ type: "changed";
2970
+ old: string;
2971
+ new: string;
2972
+ } | undefined;
2973
+ }[];
2974
+ addedIndexes: Record<string, string>;
2975
+ deletedIndexes: Record<string, string>;
2976
+ alteredIndexes: Record<string, {
2977
+ __old: string;
2978
+ __new: string;
2979
+ }>;
2980
+ addedForeignKeys: Record<string, string>;
2981
+ deletedForeignKeys: Record<string, string>;
2982
+ alteredForeignKeys: Record<string, {
2983
+ __old: string;
2984
+ __new: string;
2985
+ }>;
2986
+ addedCompositePKs: Record<string, string>;
2987
+ deletedCompositePKs: Record<string, string>;
2988
+ alteredCompositePKs: Record<string, {
2989
+ __old: string;
2990
+ __new: string;
2991
+ }>;
2992
+ addedUniqueConstraints: Record<string, string>;
2993
+ deletedUniqueConstraints: Record<string, string>;
2994
+ alteredUniqueConstraints: Record<string, {
2995
+ __old: string;
2996
+ __new: string;
2997
+ }>;
2998
+ }[];
2999
+ alteredEnums: never[];
3000
+ }>;
3001
+ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
3002
+ alteredTablesWithColumns: import("zod").ZodArray<import("zod").ZodObject<{
3003
+ name: import("zod").ZodString;
3004
+ schema: import("zod").ZodString;
3005
+ altered: import("zod").ZodArray<import("zod").ZodObject<{
3006
+ name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
3007
+ type: import("zod").ZodEnum<["changed"]>;
3008
+ old: import("zod").ZodString;
3009
+ new: import("zod").ZodString;
3010
+ }, "strip", ZodTypeAny, {
3011
+ type: "changed";
3012
+ old: string;
3013
+ new: string;
3014
+ }, {
3015
+ type: "changed";
3016
+ old: string;
3017
+ new: string;
3018
+ }>]>;
3019
+ type: import("zod").ZodOptional<import("zod").ZodObject<{
3020
+ type: import("zod").ZodEnum<["changed"]>;
3021
+ old: import("zod").ZodString;
3022
+ new: import("zod").ZodString;
3023
+ }, "strip", ZodTypeAny, {
3024
+ type: "changed";
3025
+ old: string;
3026
+ new: string;
3027
+ }, {
3028
+ type: "changed";
3029
+ old: string;
3030
+ new: string;
3031
+ }>>;
3032
+ default: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3033
+ type: import("zod").ZodLiteral<"added">;
3034
+ value: import("zod").ZodAny;
3035
+ }, "strip", ZodTypeAny, {
3036
+ type: "added";
3037
+ value?: any;
3038
+ }, {
3039
+ type: "added";
3040
+ value?: any;
3041
+ }>, import("zod").ZodObject<{
3042
+ type: import("zod").ZodLiteral<"deleted">;
3043
+ value: import("zod").ZodAny;
3044
+ }, "strip", ZodTypeAny, {
3045
+ type: "deleted";
3046
+ value?: any;
3047
+ }, {
3048
+ type: "deleted";
3049
+ value?: any;
3050
+ }>, import("zod").ZodObject<{
3051
+ type: import("zod").ZodLiteral<"changed">;
3052
+ old: import("zod").ZodAny;
3053
+ new: import("zod").ZodAny;
3054
+ }, "strip", ZodTypeAny, {
3055
+ type: "changed";
3056
+ old?: any;
3057
+ new?: any;
3058
+ }, {
3059
+ type: "changed";
3060
+ old?: any;
3061
+ new?: any;
3062
+ }>]>>;
3063
+ primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3064
+ type: import("zod").ZodLiteral<"added">;
3065
+ value: import("zod").ZodBoolean;
3066
+ }, "strip", ZodTypeAny, {
3067
+ type: "added";
3068
+ value: boolean;
3069
+ }, {
3070
+ type: "added";
3071
+ value: boolean;
3072
+ }>, import("zod").ZodObject<{
3073
+ type: import("zod").ZodLiteral<"deleted">;
3074
+ value: import("zod").ZodBoolean;
3075
+ }, "strip", ZodTypeAny, {
3076
+ type: "deleted";
3077
+ value: boolean;
3078
+ }, {
3079
+ type: "deleted";
3080
+ value: boolean;
3081
+ }>, import("zod").ZodObject<{
3082
+ type: import("zod").ZodLiteral<"changed">;
3083
+ old: import("zod").ZodBoolean;
3084
+ new: import("zod").ZodBoolean;
3085
+ }, "strip", ZodTypeAny, {
3086
+ type: "changed";
3087
+ old: boolean;
3088
+ new: boolean;
3089
+ }, {
3090
+ type: "changed";
3091
+ old: boolean;
3092
+ new: boolean;
3093
+ }>]>>;
3094
+ notNull: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3095
+ type: import("zod").ZodLiteral<"added">;
3096
+ value: import("zod").ZodBoolean;
3097
+ }, "strip", ZodTypeAny, {
3098
+ type: "added";
3099
+ value: boolean;
3100
+ }, {
3101
+ type: "added";
3102
+ value: boolean;
3103
+ }>, import("zod").ZodObject<{
3104
+ type: import("zod").ZodLiteral<"deleted">;
3105
+ value: import("zod").ZodBoolean;
3106
+ }, "strip", ZodTypeAny, {
3107
+ type: "deleted";
3108
+ value: boolean;
3109
+ }, {
3110
+ type: "deleted";
3111
+ value: boolean;
3112
+ }>, import("zod").ZodObject<{
3113
+ type: import("zod").ZodLiteral<"changed">;
3114
+ old: import("zod").ZodBoolean;
3115
+ new: import("zod").ZodBoolean;
3116
+ }, "strip", ZodTypeAny, {
3117
+ type: "changed";
3118
+ old: boolean;
3119
+ new: boolean;
3120
+ }, {
3121
+ type: "changed";
3122
+ old: boolean;
3123
+ new: boolean;
3124
+ }>]>>;
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;
3159
+ }, "strip", ZodTypeAny, {
3160
+ type: "added";
3161
+ value: boolean;
3162
+ }, {
3163
+ type: "added";
3164
+ value: boolean;
3165
+ }>, import("zod").ZodObject<{
3166
+ type: import("zod").ZodLiteral<"deleted">;
3167
+ value: import("zod").ZodBoolean;
3168
+ }, "strip", ZodTypeAny, {
3169
+ type: "deleted";
3170
+ value: boolean;
3171
+ }, {
3172
+ type: "deleted";
3173
+ value: boolean;
3174
+ }>, import("zod").ZodObject<{
3175
+ type: import("zod").ZodLiteral<"changed">;
3176
+ old: import("zod").ZodBoolean;
3177
+ new: import("zod").ZodBoolean;
3178
+ }, "strip", ZodTypeAny, {
3179
+ type: "changed";
3180
+ old: boolean;
3181
+ new: boolean;
3182
+ }, {
3183
+ type: "changed";
3184
+ old: boolean;
3185
+ new: boolean;
3186
+ }>]>>;
3187
+ autoincrement: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
3188
+ type: import("zod").ZodLiteral<"added">;
3189
+ value: import("zod").ZodBoolean;
3190
+ }, "strip", ZodTypeAny, {
3191
+ type: "added";
3192
+ value: boolean;
3193
+ }, {
3194
+ type: "added";
3195
+ value: boolean;
3196
+ }>, import("zod").ZodObject<{
3197
+ type: import("zod").ZodLiteral<"deleted">;
3198
+ value: import("zod").ZodBoolean;
3199
+ }, "strip", ZodTypeAny, {
3200
+ type: "deleted";
3201
+ value: boolean;
3202
+ }, {
3203
+ type: "deleted";
3204
+ value: boolean;
3205
+ }>, import("zod").ZodObject<{
3206
+ type: import("zod").ZodLiteral<"changed">;
3207
+ old: import("zod").ZodBoolean;
3208
+ new: import("zod").ZodBoolean;
3209
+ }, "strip", ZodTypeAny, {
3210
+ type: "changed";
3211
+ old: boolean;
3212
+ new: boolean;
3213
+ }, {
3214
+ type: "changed";
3215
+ old: boolean;
3216
+ new: boolean;
3217
+ }>]>>;
3218
+ }, "strict", ZodTypeAny, {
3219
+ name: string | {
3220
+ type: "changed";
3221
+ old: string;
3222
+ new: string;
3223
+ };
3224
+ default?: {
3225
+ type: "added";
3226
+ value?: any;
3227
+ } | {
3228
+ type: "deleted";
3229
+ value?: any;
3230
+ } | {
3231
+ type: "changed";
3232
+ old?: any;
3233
+ new?: any;
3234
+ } | undefined;
3235
+ type?: {
3236
+ type: "changed";
3237
+ old: string;
3238
+ new: string;
3239
+ } | undefined;
3240
+ onUpdate?: {
3241
+ type: "added";
3242
+ value: boolean;
3243
+ } | {
3244
+ type: "deleted";
3245
+ value: boolean;
3246
+ } | {
3247
+ type: "changed";
3248
+ old: boolean;
3249
+ new: boolean;
3250
+ } | undefined;
3251
+ primaryKey?: {
3252
+ type: "added";
3253
+ value: boolean;
3254
+ } | {
3255
+ type: "deleted";
3256
+ value: boolean;
3257
+ } | {
3258
+ type: "changed";
3259
+ old: boolean;
3260
+ new: boolean;
3261
+ } | undefined;
3262
+ notNull?: {
3263
+ type: "added";
3264
+ value: boolean;
3265
+ } | {
3266
+ type: "deleted";
3267
+ value: boolean;
3268
+ } | {
3269
+ type: "changed";
3270
+ old: boolean;
3271
+ new: boolean;
3272
+ } | undefined;
3273
+ autoincrement?: {
3274
+ type: "added";
3275
+ value: boolean;
3276
+ } | {
3277
+ type: "deleted";
3278
+ value: boolean;
3279
+ } | {
3280
+ type: "changed";
3281
+ old: boolean;
3282
+ new: boolean;
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
+ }, {
3296
+ name: string | {
3297
+ type: "changed";
3298
+ old: string;
3299
+ new: string;
3300
+ };
3301
+ default?: {
3302
+ type: "added";
3303
+ value?: any;
3304
+ } | {
3305
+ type: "deleted";
3306
+ value?: any;
3307
+ } | {
3308
+ type: "changed";
3309
+ old?: any;
3310
+ new?: any;
3311
+ } | undefined;
3312
+ type?: {
3313
+ type: "changed";
3314
+ old: string;
3315
+ new: string;
3316
+ } | undefined;
3317
+ onUpdate?: {
3318
+ type: "added";
3319
+ value: boolean;
3320
+ } | {
3321
+ type: "deleted";
3322
+ value: boolean;
3323
+ } | {
3324
+ type: "changed";
3325
+ old: boolean;
3326
+ new: boolean;
3327
+ } | undefined;
3328
+ primaryKey?: {
3329
+ type: "added";
3330
+ value: boolean;
3331
+ } | {
3332
+ type: "deleted";
3333
+ value: boolean;
3334
+ } | {
3335
+ type: "changed";
3336
+ old: boolean;
3337
+ new: boolean;
3338
+ } | undefined;
3339
+ notNull?: {
3340
+ type: "added";
3341
+ value: boolean;
3342
+ } | {
3343
+ type: "deleted";
3344
+ value: boolean;
3345
+ } | {
3346
+ type: "changed";
3347
+ old: boolean;
3348
+ new: boolean;
3349
+ } | undefined;
3350
+ autoincrement?: {
3351
+ type: "added";
3352
+ value: boolean;
3353
+ } | {
3354
+ type: "deleted";
3355
+ value: boolean;
3356
+ } | {
3357
+ type: "changed";
3358
+ old: boolean;
3359
+ new: boolean;
3360
+ } | undefined;
3361
+ typeSchema?: {
3362
+ type: "added";
3363
+ value: string;
3364
+ } | {
3365
+ type: "deleted";
3366
+ value: string;
3367
+ } | {
3368
+ type: "changed";
3369
+ old: string;
3370
+ new: string;
3371
+ } | undefined;
3372
+ }>, "many">;
3373
+ addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3374
+ deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3375
+ alteredIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3376
+ __new: import("zod").ZodString;
3377
+ __old: import("zod").ZodString;
3378
+ }, "strict", ZodTypeAny, {
3379
+ __old: string;
3380
+ __new: string;
3381
+ }, {
3382
+ __old: string;
3383
+ __new: string;
3384
+ }>>;
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;
3390
+ }, "strict", ZodTypeAny, {
3391
+ __old: string;
3392
+ __new: string;
3393
+ }, {
3394
+ __old: string;
3395
+ __new: string;
3396
+ }>>;
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;
3402
+ }, "strip", ZodTypeAny, {
3403
+ __old: string;
3404
+ __new: string;
3405
+ }, {
3406
+ __old: string;
3407
+ __new: string;
3408
+ }>>;
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;
3414
+ }, "strip", ZodTypeAny, {
3415
+ __old: string;
3416
+ __new: string;
3417
+ }, {
3418
+ __old: string;
3419
+ __new: string;
3420
+ }>>;
3421
+ }, "strict", ZodTypeAny, {
3422
+ name: string;
3423
+ schema: string;
3424
+ altered: {
3425
+ name: string | {
3426
+ type: "changed";
3427
+ old: string;
3428
+ new: string;
3429
+ };
3430
+ default?: {
3431
+ type: "added";
3432
+ value?: any;
3433
+ } | {
3434
+ type: "deleted";
3435
+ value?: any;
3436
+ } | {
3437
+ type: "changed";
3438
+ old?: any;
3439
+ new?: any;
3440
+ } | undefined;
3441
+ type?: {
3442
+ type: "changed";
3443
+ old: string;
3444
+ new: string;
3445
+ } | undefined;
3446
+ onUpdate?: {
3447
+ type: "added";
3448
+ value: boolean;
3449
+ } | {
3450
+ type: "deleted";
3451
+ value: boolean;
3452
+ } | {
3453
+ type: "changed";
3454
+ old: boolean;
3455
+ new: boolean;
3456
+ } | undefined;
3457
+ primaryKey?: {
3458
+ type: "added";
3459
+ value: boolean;
3460
+ } | {
3461
+ type: "deleted";
3462
+ value: boolean;
3463
+ } | {
3464
+ type: "changed";
3465
+ old: boolean;
3466
+ new: boolean;
3467
+ } | undefined;
3468
+ notNull?: {
3469
+ type: "added";
3470
+ value: boolean;
3471
+ } | {
3472
+ type: "deleted";
3473
+ value: boolean;
3474
+ } | {
3475
+ type: "changed";
3476
+ old: boolean;
3477
+ new: boolean;
3478
+ } | undefined;
3479
+ autoincrement?: {
3480
+ type: "added";
3481
+ value: boolean;
3482
+ } | {
3483
+ type: "deleted";
3484
+ value: boolean;
3485
+ } | {
3486
+ type: "changed";
3487
+ old: boolean;
3488
+ new: boolean;
3489
+ } | undefined;
3490
+ typeSchema?: {
3491
+ type: "added";
3492
+ value: string;
3493
+ } | {
3494
+ type: "deleted";
3495
+ value: string;
3496
+ } | {
3497
+ type: "changed";
3498
+ old: string;
3499
+ new: string;
3500
+ } | undefined;
3501
+ }[];
3502
+ addedIndexes: Record<string, string>;
3503
+ deletedIndexes: Record<string, string>;
3504
+ alteredIndexes: Record<string, {
3505
+ __old: string;
3506
+ __new: string;
3507
+ }>;
3508
+ addedForeignKeys: Record<string, string>;
3509
+ deletedForeignKeys: Record<string, string>;
3510
+ alteredForeignKeys: Record<string, {
3511
+ __old: string;
3512
+ __new: string;
3513
+ }>;
3514
+ addedCompositePKs: Record<string, string>;
3515
+ deletedCompositePKs: Record<string, string>;
3516
+ alteredCompositePKs: Record<string, {
3517
+ __old: string;
3518
+ __new: string;
3519
+ }>;
3520
+ addedUniqueConstraints: Record<string, string>;
3521
+ deletedUniqueConstraints: Record<string, string>;
3522
+ alteredUniqueConstraints: Record<string, {
3523
+ __old: string;
3524
+ __new: string;
3525
+ }>;
3526
+ }, {
3527
+ name: string;
3528
+ schema: string;
3529
+ altered: {
3530
+ name: string | {
3531
+ type: "changed";
3532
+ old: string;
3533
+ new: string;
3534
+ };
3535
+ default?: {
3536
+ type: "added";
3537
+ value?: any;
3538
+ } | {
3539
+ type: "deleted";
3540
+ value?: any;
3541
+ } | {
3542
+ type: "changed";
3543
+ old?: any;
3544
+ new?: any;
3545
+ } | undefined;
3546
+ type?: {
3547
+ type: "changed";
3548
+ old: string;
3549
+ new: string;
3550
+ } | undefined;
3551
+ onUpdate?: {
3552
+ type: "added";
3553
+ value: boolean;
3554
+ } | {
3555
+ type: "deleted";
3556
+ value: boolean;
3557
+ } | {
3558
+ type: "changed";
3559
+ old: boolean;
3560
+ new: boolean;
3561
+ } | undefined;
3562
+ primaryKey?: {
3563
+ type: "added";
3564
+ value: boolean;
3565
+ } | {
3566
+ type: "deleted";
3567
+ value: boolean;
3568
+ } | {
3569
+ type: "changed";
3570
+ old: boolean;
3571
+ new: boolean;
3572
+ } | undefined;
3573
+ notNull?: {
3574
+ type: "added";
3575
+ value: boolean;
3576
+ } | {
3577
+ type: "deleted";
3578
+ value: boolean;
3579
+ } | {
3580
+ type: "changed";
3581
+ old: boolean;
3582
+ new: boolean;
3583
+ } | undefined;
3584
+ autoincrement?: {
3585
+ type: "added";
3586
+ value: boolean;
3587
+ } | {
3588
+ type: "deleted";
3589
+ value: boolean;
3590
+ } | {
3591
+ type: "changed";
3592
+ old: boolean;
3593
+ new: boolean;
3594
+ } | undefined;
3595
+ typeSchema?: {
3596
+ type: "added";
3597
+ value: string;
3598
+ } | {
3599
+ type: "deleted";
3600
+ value: string;
3601
+ } | {
3602
+ type: "changed";
3603
+ old: string;
3604
+ new: string;
3605
+ } | undefined;
3606
+ }[];
3607
+ addedIndexes: Record<string, string>;
3608
+ deletedIndexes: Record<string, string>;
3609
+ alteredIndexes: Record<string, {
3610
+ __old: string;
3611
+ __new: string;
3612
+ }>;
3613
+ addedForeignKeys: Record<string, string>;
3614
+ deletedForeignKeys: Record<string, string>;
3615
+ alteredForeignKeys: Record<string, {
3616
+ __old: string;
3617
+ __new: string;
3618
+ }>;
3619
+ addedCompositePKs: Record<string, string>;
3620
+ deletedCompositePKs: Record<string, string>;
3621
+ alteredCompositePKs: Record<string, {
3622
+ __old: string;
3623
+ __new: string;
3624
+ }>;
3625
+ addedUniqueConstraints: Record<string, string>;
3626
+ deletedUniqueConstraints: Record<string, string>;
3627
+ alteredUniqueConstraints: Record<string, {
3628
+ __old: string;
3629
+ __new: string;
3630
+ }>;
3631
+ }>, "many">;
3632
+ alteredEnums: import("zod").ZodArray<import("zod").ZodNever, "many">;
3633
+ }, "strict", ZodTypeAny, {
3634
+ alteredTablesWithColumns: {
3635
+ name: string;
3636
+ schema: string;
3637
+ altered: {
3638
+ name: string | {
3639
+ type: "changed";
3640
+ old: string;
3641
+ new: string;
3642
+ };
3643
+ default?: {
3644
+ type: "added";
3645
+ value?: any;
3646
+ } | {
3647
+ type: "deleted";
3648
+ value?: any;
3649
+ } | {
3650
+ type: "changed";
3651
+ old?: any;
3652
+ new?: any;
3653
+ } | undefined;
3654
+ type?: {
3655
+ type: "changed";
3656
+ old: string;
3657
+ new: string;
3658
+ } | undefined;
3659
+ onUpdate?: {
3660
+ type: "added";
3661
+ value: boolean;
3662
+ } | {
3663
+ type: "deleted";
3664
+ value: boolean;
3665
+ } | {
3666
+ type: "changed";
3667
+ old: boolean;
3668
+ new: boolean;
3669
+ } | undefined;
3670
+ primaryKey?: {
3671
+ type: "added";
3672
+ value: boolean;
3673
+ } | {
3674
+ type: "deleted";
3675
+ value: boolean;
3676
+ } | {
3677
+ type: "changed";
3678
+ old: boolean;
3679
+ new: boolean;
3680
+ } | undefined;
3681
+ notNull?: {
3682
+ type: "added";
3683
+ value: boolean;
3684
+ } | {
3685
+ type: "deleted";
3686
+ value: boolean;
3687
+ } | {
3688
+ type: "changed";
3689
+ old: boolean;
3690
+ new: boolean;
3691
+ } | undefined;
3692
+ autoincrement?: {
3693
+ type: "added";
3694
+ value: boolean;
3695
+ } | {
3696
+ type: "deleted";
3697
+ value: boolean;
3698
+ } | {
3699
+ type: "changed";
3700
+ old: boolean;
3701
+ new: boolean;
3702
+ } | undefined;
3703
+ typeSchema?: {
3704
+ type: "added";
3705
+ value: string;
3706
+ } | {
3707
+ type: "deleted";
3708
+ value: string;
3709
+ } | {
3710
+ type: "changed";
3711
+ old: string;
3712
+ new: string;
3713
+ } | undefined;
3714
+ }[];
3715
+ addedIndexes: Record<string, string>;
3716
+ deletedIndexes: Record<string, string>;
3717
+ alteredIndexes: Record<string, {
3718
+ __old: string;
3719
+ __new: string;
3720
+ }>;
3721
+ addedForeignKeys: Record<string, string>;
3722
+ deletedForeignKeys: Record<string, string>;
3723
+ alteredForeignKeys: Record<string, {
3724
+ __old: string;
3725
+ __new: string;
3726
+ }>;
3727
+ addedCompositePKs: Record<string, string>;
3728
+ deletedCompositePKs: Record<string, string>;
3729
+ alteredCompositePKs: Record<string, {
3730
+ __old: string;
3731
+ __new: string;
3732
+ }>;
3733
+ addedUniqueConstraints: Record<string, string>;
3734
+ deletedUniqueConstraints: Record<string, string>;
3735
+ alteredUniqueConstraints: Record<string, {
3736
+ __old: string;
3737
+ __new: string;
3738
+ }>;
3739
+ }[];
3740
+ alteredEnums: never[];
3741
+ }, {
3742
+ alteredTablesWithColumns: {
3743
+ name: string;
3744
+ schema: string;
3745
+ altered: {
3746
+ name: string | {
3747
+ type: "changed";
3748
+ old: string;
3749
+ new: string;
3750
+ };
3751
+ default?: {
3752
+ type: "added";
3753
+ value?: any;
3754
+ } | {
3755
+ type: "deleted";
3756
+ value?: any;
3757
+ } | {
3758
+ type: "changed";
3759
+ old?: any;
3760
+ new?: any;
3761
+ } | undefined;
3762
+ type?: {
3763
+ type: "changed";
3764
+ old: string;
3765
+ new: string;
3766
+ } | undefined;
3767
+ onUpdate?: {
3768
+ type: "added";
3769
+ value: boolean;
3770
+ } | {
3771
+ type: "deleted";
3772
+ value: boolean;
3773
+ } | {
3774
+ type: "changed";
3775
+ old: boolean;
3776
+ new: boolean;
3777
+ } | undefined;
3778
+ primaryKey?: {
3779
+ type: "added";
3780
+ value: boolean;
3781
+ } | {
3782
+ type: "deleted";
3783
+ value: boolean;
3784
+ } | {
3785
+ type: "changed";
3786
+ old: boolean;
3787
+ new: boolean;
3788
+ } | undefined;
3789
+ notNull?: {
3790
+ type: "added";
3791
+ value: boolean;
3792
+ } | {
3793
+ type: "deleted";
3794
+ value: boolean;
3795
+ } | {
3796
+ type: "changed";
3797
+ old: boolean;
3798
+ new: boolean;
3799
+ } | undefined;
3800
+ autoincrement?: {
3801
+ type: "added";
3802
+ value: boolean;
3803
+ } | {
3804
+ type: "deleted";
3805
+ value: boolean;
3806
+ } | {
3807
+ type: "changed";
3808
+ old: boolean;
3809
+ new: boolean;
3810
+ } | undefined;
3811
+ typeSchema?: {
3812
+ type: "added";
3813
+ value: string;
3814
+ } | {
3815
+ type: "deleted";
3816
+ value: string;
3817
+ } | {
3818
+ type: "changed";
3819
+ old: string;
3820
+ new: string;
3821
+ } | undefined;
3822
+ }[];
3823
+ addedIndexes: Record<string, string>;
3824
+ deletedIndexes: Record<string, string>;
3825
+ alteredIndexes: Record<string, {
3826
+ __old: string;
3827
+ __new: string;
3828
+ }>;
3829
+ addedForeignKeys: Record<string, string>;
3830
+ deletedForeignKeys: Record<string, string>;
3831
+ alteredForeignKeys: Record<string, {
3832
+ __old: string;
3833
+ __new: string;
3834
+ }>;
3835
+ addedCompositePKs: Record<string, string>;
3836
+ deletedCompositePKs: Record<string, string>;
3837
+ alteredCompositePKs: Record<string, {
3838
+ __old: string;
3839
+ __new: string;
3840
+ }>;
3841
+ addedUniqueConstraints: Record<string, string>;
3842
+ deletedUniqueConstraints: Record<string, string>;
3843
+ alteredUniqueConstraints: Record<string, {
3844
+ __old: string;
3845
+ __new: string;
3846
+ }>;
3847
+ }[];
3848
+ alteredEnums: never[];
3849
+ }>;
3850
+ export type Column = TypeOf<typeof columnSchema>;
3851
+ export type AlteredColumn = TypeOf<typeof alteredColumnSchema>;
3852
+ export type Enum = TypeOf<typeof enumSchema>;
3853
+ export type Table = TypeOf<typeof tableScheme>;
3854
+ export type AlteredTable = TypeOf<typeof alteredTableScheme>;
3855
+ export type DiffResult = TypeOf<typeof diffResultScheme>;
3856
+ export type DiffResultMysql = TypeOf<typeof diffResultSchemeMysql>;
3857
+ export type DiffResultSQLite = TypeOf<typeof diffResultSchemeSQLite>;
3858
+ export interface ResolverInput<T extends {
3859
+ name: string;
3860
+ }> {
3861
+ created: T[];
3862
+ deleted: T[];
3863
+ }
3864
+ export interface ResolverOutput<T extends {
3865
+ name: string;
3866
+ }> {
3867
+ created: T[];
3868
+ renamed: {
3869
+ from: T;
3870
+ to: T;
3871
+ }[];
3872
+ deleted: T[];
3873
+ }
3874
+ export interface ResolverOutputWithMoved<T extends {
3875
+ name: string;
3876
+ }> {
3877
+ created: T[];
3878
+ moved: {
3879
+ name: string;
3880
+ schemaFrom: string;
3881
+ schemaTo: string;
3882
+ }[];
3883
+ renamed: {
3884
+ from: T;
3885
+ to: T;
3886
+ }[];
3887
+ deleted: T[];
3888
+ }
3889
+ export interface ColumnsResolverInput<T extends {
3890
+ name: string;
3891
+ }> {
3892
+ tableName: string;
3893
+ schema: string;
3894
+ created: T[];
3895
+ deleted: T[];
3896
+ }
3897
+ export interface ColumnsResolverOutput<T extends {
3898
+ name: string;
3899
+ }> {
3900
+ tableName: string;
3901
+ schema: string;
3902
+ created: T[];
3903
+ renamed: {
3904
+ from: T;
3905
+ to: T;
3906
+ }[];
3907
+ deleted: T[];
3908
+ }
3909
+ export declare const applyPgSnapshotsDiff: (json1: PgSchemaSquashed, json2: PgSchemaSquashed, schemasResolver: (input: ResolverInput<Named>) => Promise<ResolverOutput<Named>>, enumsResolver: (input: ResolverInput<Enum>) => Promise<ResolverOutputWithMoved<Enum>>, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>, prevFull: PgSchema, curFull: PgSchema) => Promise<{
3910
+ statements: JsonStatement[];
3911
+ sqlStatements: string[];
3912
+ _meta: {
3913
+ schemas: {};
3914
+ tables: {};
3915
+ columns: {};
3916
+ } | undefined;
3917
+ }>;
3918
+ export declare const applyMysqlSnapshotsDiff: (json1: MySqlSchemaSquashed, json2: MySqlSchemaSquashed, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>, prevFull: MySqlSchema, curFull: MySqlSchema) => Promise<{
3919
+ statements: JsonStatement[];
3920
+ sqlStatements: string[];
3921
+ _meta: {
3922
+ schemas: {};
3923
+ tables: {};
3924
+ columns: {};
3925
+ } | undefined;
3926
+ }>;
3927
+ export declare const applySqliteSnapshotsDiff: (json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>) => Promise<{
3928
+ statements: JsonStatement[];
3929
+ sqlStatements: string[];
3930
+ _meta: {
3931
+ schemas: {};
3932
+ tables: {};
3933
+ columns: {};
3934
+ } | undefined;
3935
+ }>;
3936
+ export {};