drizzle-kit 0.20.18-d190692 → 0.20.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/@types/utils.d.ts +12 -0
  2. package/bin.cjs +55769 -103683
  3. package/cli/commands/migrate.d.ts +270 -0
  4. package/cli/commands/mysqlIntrospect.d.ts +119 -0
  5. package/cli/commands/mysqlPushUtils.d.ts +18 -0
  6. package/cli/commands/mysqlUp.d.ts +4 -0
  7. package/cli/commands/pgConnect.d.ts +5 -0
  8. package/cli/commands/pgIntrospect.d.ts +123 -0
  9. package/cli/commands/pgPushUtils.d.ts +14 -0
  10. package/cli/commands/pgUp.d.ts +4 -0
  11. package/cli/commands/sqliteIntrospect.d.ts +107 -0
  12. package/cli/commands/sqlitePushUtils.d.ts +21 -0
  13. package/cli/commands/sqliteUtils.d.ts +162 -0
  14. package/cli/commands/upFolders.d.ts +27 -0
  15. package/cli/commands/utils.d.ts +274 -0
  16. package/cli/selector-ui.d.ts +13 -0
  17. package/cli/validations/common.d.ts +13 -0
  18. package/cli/validations/mysql.d.ts +365 -0
  19. package/cli/validations/outputs.d.ts +40 -0
  20. package/cli/validations/pg.d.ts +438 -0
  21. package/cli/views.d.ts +61 -0
  22. package/drivers/index.d.ts +39 -0
  23. package/global.d.ts +4 -0
  24. package/index.d.mts +68 -46
  25. package/index.d.ts +68 -46
  26. package/index.js +0 -1
  27. package/introspect-mysql.d.ts +9 -0
  28. package/introspect-pg.d.ts +12 -0
  29. package/introspect-sqlite.d.ts +10 -0
  30. package/jsonDiffer.d.ts +76 -0
  31. package/jsonStatements.d.ts +349 -0
  32. package/migrationPreparator.d.ts +35 -0
  33. package/package.json +64 -31
  34. package/payload.d.mts +18 -1052
  35. package/payload.d.ts +18 -1052
  36. package/payload.js +33563 -19279
  37. package/payload.mjs +33457 -19180
  38. package/schemaValidator.d.ts +1313 -0
  39. package/serializer/index.d.ts +9 -0
  40. package/serializer/mysqlImports.d.ts +11 -0
  41. package/serializer/mysqlSchema.d.ts +3833 -0
  42. package/serializer/mysqlSerializer.d.ts +7 -0
  43. package/serializer/pgImports.d.ts +11 -0
  44. package/serializer/pgSchema.d.ts +4333 -0
  45. package/serializer/pgSerializer.d.ts +7 -0
  46. package/serializer/schemaToDrizzle.d.ts +7 -0
  47. package/serializer/sqliteImports.d.ts +9 -0
  48. package/serializer/sqliteSchema.d.ts +3227 -0
  49. package/serializer/sqliteSerializer.d.ts +6 -0
  50. package/snapshotsDiffer.d.ts +2660 -0
  51. package/sqlgenerator.d.ts +33 -0
  52. package/utils/words.d.ts +7 -0
  53. package/utils-studio.d.mts +5 -0
  54. package/utils-studio.d.ts +5 -0
  55. package/utils-studio.js +809 -4584
  56. package/utils-studio.mjs +793 -4565
  57. package/utils.d.ts +199 -0
  58. package/utils.js +7165 -4635
  59. package/utils.mjs +7125 -4595
@@ -0,0 +1,2660 @@
1
+ import { TypeOf, ZodTypeAny, z } from "zod";
2
+ import { JsonStatement } from "./jsonStatements";
3
+ import { CommonSquashedSchema, Dialect } from "./schemaValidator";
4
+ export declare const makePatched: <T extends ZodTypeAny>(schema: T) => z.ZodUnion<[z.ZodObject<{
5
+ type: z.ZodLiteral<"added">;
6
+ value: T;
7
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
8
+ type: "added";
9
+ value: T["_output"];
10
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.objectUtil.addQuestionMarks<{
11
+ type: "added";
12
+ value: T["_output"];
13
+ }>[k_1]; } : never, z.objectUtil.addQuestionMarks<{
14
+ type: "added";
15
+ value: T["_input"];
16
+ }> extends infer T_2 ? { [k_3 in keyof T_2]: z.objectUtil.addQuestionMarks<{
17
+ type: "added";
18
+ value: T["_input"];
19
+ }>[k_3]; } : never>, z.ZodObject<{
20
+ type: z.ZodLiteral<"deleted">;
21
+ value: T;
22
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
23
+ type: "deleted";
24
+ value: T["_output"];
25
+ }> extends infer T_3 ? { [k_1_1 in keyof T_3]: z.objectUtil.addQuestionMarks<{
26
+ type: "deleted";
27
+ value: T["_output"];
28
+ }>[k_1_1]; } : never, z.objectUtil.addQuestionMarks<{
29
+ type: "deleted";
30
+ value: T["_input"];
31
+ }> extends infer T_4 ? { [k_3_1 in keyof T_4]: z.objectUtil.addQuestionMarks<{
32
+ type: "deleted";
33
+ value: T["_input"];
34
+ }>[k_3_1]; } : never>, z.ZodObject<{
35
+ type: z.ZodLiteral<"changed">;
36
+ old: T;
37
+ new: T;
38
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
39
+ type: "changed";
40
+ old: T["_output"];
41
+ new: T["_output"];
42
+ }> extends infer T_5 ? { [k_1_2 in keyof T_5]: z.objectUtil.addQuestionMarks<{
43
+ type: "changed";
44
+ old: T["_output"];
45
+ new: T["_output"];
46
+ }>[k_1_2]; } : never, z.objectUtil.addQuestionMarks<{
47
+ type: "changed";
48
+ old: T["_input"];
49
+ new: T["_input"];
50
+ }> extends infer T_6 ? { [k_3_2 in keyof T_6]: z.objectUtil.addQuestionMarks<{
51
+ type: "changed";
52
+ old: T["_input"];
53
+ new: T["_input"];
54
+ }>[k_3_2]; } : never>]>;
55
+ export declare const makeSelfOrPatched: <T extends ZodTypeAny>(schema: T) => z.ZodUnion<[z.ZodObject<{
56
+ type: z.ZodLiteral<"none">;
57
+ value: z.ZodOptional<T>;
58
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
59
+ type: "none";
60
+ value: T["_output"] | undefined;
61
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.objectUtil.addQuestionMarks<{
62
+ type: "none";
63
+ value: T["_output"] | undefined;
64
+ }>[k_1]; } : never, z.objectUtil.addQuestionMarks<{
65
+ type: "none";
66
+ value: T["_input"] | undefined;
67
+ }> extends infer T_2 ? { [k_3 in keyof T_2]: z.objectUtil.addQuestionMarks<{
68
+ type: "none";
69
+ value: T["_input"] | undefined;
70
+ }>[k_3]; } : never>, z.ZodObject<{
71
+ type: z.ZodLiteral<"added">;
72
+ value: T;
73
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
74
+ type: "added";
75
+ value: T["_output"];
76
+ }> extends infer T_3 ? { [k_1_1 in keyof T_3]: z.objectUtil.addQuestionMarks<{
77
+ type: "added";
78
+ value: T["_output"];
79
+ }>[k_1_1]; } : never, z.objectUtil.addQuestionMarks<{
80
+ type: "added";
81
+ value: T["_input"];
82
+ }> extends infer T_4 ? { [k_3_1 in keyof T_4]: z.objectUtil.addQuestionMarks<{
83
+ type: "added";
84
+ value: T["_input"];
85
+ }>[k_3_1]; } : never>, z.ZodObject<{
86
+ type: z.ZodLiteral<"deleted">;
87
+ value: T;
88
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
89
+ type: "deleted";
90
+ value: T["_output"];
91
+ }> extends infer T_5 ? { [k_1_2 in keyof T_5]: z.objectUtil.addQuestionMarks<{
92
+ type: "deleted";
93
+ value: T["_output"];
94
+ }>[k_1_2]; } : never, z.objectUtil.addQuestionMarks<{
95
+ type: "deleted";
96
+ value: T["_input"];
97
+ }> extends infer T_6 ? { [k_3_2 in keyof T_6]: z.objectUtil.addQuestionMarks<{
98
+ type: "deleted";
99
+ value: T["_input"];
100
+ }>[k_3_2]; } : never>, z.ZodObject<{
101
+ type: z.ZodLiteral<"changed">;
102
+ old: T;
103
+ new: T;
104
+ }, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<{
105
+ type: "changed";
106
+ old: T["_output"];
107
+ new: T["_output"];
108
+ }> extends infer T_7 ? { [k_1_3 in keyof T_7]: z.objectUtil.addQuestionMarks<{
109
+ type: "changed";
110
+ old: T["_output"];
111
+ new: T["_output"];
112
+ }>[k_1_3]; } : never, z.objectUtil.addQuestionMarks<{
113
+ type: "changed";
114
+ old: T["_input"];
115
+ new: T["_input"];
116
+ }> extends infer T_8 ? { [k_3_3 in keyof T_8]: z.objectUtil.addQuestionMarks<{
117
+ type: "changed";
118
+ old: T["_input"];
119
+ new: T["_input"];
120
+ }>[k_3_3]; } : never>]>;
121
+ declare const columnSchema: z.ZodObject<{
122
+ name: z.ZodString;
123
+ type: z.ZodString;
124
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
125
+ default: z.ZodOptional<z.ZodAny>;
126
+ notNull: z.ZodOptional<z.ZodBoolean>;
127
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
128
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
129
+ isUnique: z.ZodOptional<z.ZodAny>;
130
+ uniqueName: z.ZodOptional<z.ZodString>;
131
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
132
+ }, "strict", ZodTypeAny, {
133
+ isUnique?: any;
134
+ default?: any;
135
+ onUpdate?: boolean | undefined;
136
+ primaryKey?: boolean | undefined;
137
+ notNull?: boolean | undefined;
138
+ autoincrement?: boolean | undefined;
139
+ uniqueName?: string | undefined;
140
+ nullsNotDistinct?: boolean | undefined;
141
+ name: string;
142
+ type: string;
143
+ }, {
144
+ isUnique?: any;
145
+ default?: any;
146
+ onUpdate?: boolean | undefined;
147
+ primaryKey?: boolean | undefined;
148
+ notNull?: boolean | undefined;
149
+ autoincrement?: boolean | undefined;
150
+ uniqueName?: string | undefined;
151
+ nullsNotDistinct?: boolean | undefined;
152
+ name: string;
153
+ type: string;
154
+ }>;
155
+ declare const alteredColumnSchema: z.ZodObject<{
156
+ name: z.ZodUnion<[z.ZodString, z.ZodObject<{
157
+ type: z.ZodEnum<["changed"]>;
158
+ old: z.ZodString;
159
+ new: z.ZodString;
160
+ }, "strip", ZodTypeAny, {
161
+ type: "changed";
162
+ old: string;
163
+ new: string;
164
+ }, {
165
+ type: "changed";
166
+ old: string;
167
+ new: string;
168
+ }>]>;
169
+ type: z.ZodOptional<z.ZodObject<{
170
+ type: z.ZodEnum<["changed"]>;
171
+ old: z.ZodString;
172
+ new: z.ZodString;
173
+ }, "strip", ZodTypeAny, {
174
+ type: "changed";
175
+ old: string;
176
+ new: string;
177
+ }, {
178
+ type: "changed";
179
+ old: string;
180
+ new: string;
181
+ }>>;
182
+ default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
183
+ type: z.ZodLiteral<"added">;
184
+ value: z.ZodAny;
185
+ }, "strip", ZodTypeAny, {
186
+ value?: any;
187
+ type: "added";
188
+ }, {
189
+ value?: any;
190
+ type: "added";
191
+ }>, z.ZodObject<{
192
+ type: z.ZodLiteral<"deleted">;
193
+ value: z.ZodAny;
194
+ }, "strip", ZodTypeAny, {
195
+ value?: any;
196
+ type: "deleted";
197
+ }, {
198
+ value?: any;
199
+ type: "deleted";
200
+ }>, z.ZodObject<{
201
+ type: z.ZodLiteral<"changed">;
202
+ old: z.ZodAny;
203
+ new: z.ZodAny;
204
+ }, "strip", ZodTypeAny, {
205
+ old?: any;
206
+ new?: any;
207
+ type: "changed";
208
+ }, {
209
+ old?: any;
210
+ new?: any;
211
+ type: "changed";
212
+ }>]>>;
213
+ primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
214
+ type: z.ZodLiteral<"added">;
215
+ value: z.ZodBoolean;
216
+ }, "strip", ZodTypeAny, {
217
+ type: "added";
218
+ value: boolean;
219
+ }, {
220
+ type: "added";
221
+ value: boolean;
222
+ }>, z.ZodObject<{
223
+ type: z.ZodLiteral<"deleted">;
224
+ value: z.ZodBoolean;
225
+ }, "strip", ZodTypeAny, {
226
+ type: "deleted";
227
+ value: boolean;
228
+ }, {
229
+ type: "deleted";
230
+ value: boolean;
231
+ }>, z.ZodObject<{
232
+ type: z.ZodLiteral<"changed">;
233
+ old: z.ZodBoolean;
234
+ new: z.ZodBoolean;
235
+ }, "strip", ZodTypeAny, {
236
+ type: "changed";
237
+ old: boolean;
238
+ new: boolean;
239
+ }, {
240
+ type: "changed";
241
+ old: boolean;
242
+ new: boolean;
243
+ }>]>>;
244
+ notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
245
+ type: z.ZodLiteral<"added">;
246
+ value: z.ZodBoolean;
247
+ }, "strip", ZodTypeAny, {
248
+ type: "added";
249
+ value: boolean;
250
+ }, {
251
+ type: "added";
252
+ value: boolean;
253
+ }>, z.ZodObject<{
254
+ type: z.ZodLiteral<"deleted">;
255
+ value: z.ZodBoolean;
256
+ }, "strip", ZodTypeAny, {
257
+ type: "deleted";
258
+ value: boolean;
259
+ }, {
260
+ type: "deleted";
261
+ value: boolean;
262
+ }>, z.ZodObject<{
263
+ type: z.ZodLiteral<"changed">;
264
+ old: z.ZodBoolean;
265
+ new: z.ZodBoolean;
266
+ }, "strip", ZodTypeAny, {
267
+ type: "changed";
268
+ old: boolean;
269
+ new: boolean;
270
+ }, {
271
+ type: "changed";
272
+ old: boolean;
273
+ new: boolean;
274
+ }>]>>;
275
+ onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
276
+ type: z.ZodLiteral<"added">;
277
+ value: z.ZodBoolean;
278
+ }, "strip", ZodTypeAny, {
279
+ type: "added";
280
+ value: boolean;
281
+ }, {
282
+ type: "added";
283
+ value: boolean;
284
+ }>, z.ZodObject<{
285
+ type: z.ZodLiteral<"deleted">;
286
+ value: z.ZodBoolean;
287
+ }, "strip", ZodTypeAny, {
288
+ type: "deleted";
289
+ value: boolean;
290
+ }, {
291
+ type: "deleted";
292
+ value: boolean;
293
+ }>, z.ZodObject<{
294
+ type: z.ZodLiteral<"changed">;
295
+ old: z.ZodBoolean;
296
+ new: z.ZodBoolean;
297
+ }, "strip", ZodTypeAny, {
298
+ type: "changed";
299
+ old: boolean;
300
+ new: boolean;
301
+ }, {
302
+ type: "changed";
303
+ old: boolean;
304
+ new: boolean;
305
+ }>]>>;
306
+ autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
307
+ type: z.ZodLiteral<"added">;
308
+ value: z.ZodBoolean;
309
+ }, "strip", ZodTypeAny, {
310
+ type: "added";
311
+ value: boolean;
312
+ }, {
313
+ type: "added";
314
+ value: boolean;
315
+ }>, z.ZodObject<{
316
+ type: z.ZodLiteral<"deleted">;
317
+ value: z.ZodBoolean;
318
+ }, "strip", ZodTypeAny, {
319
+ type: "deleted";
320
+ value: boolean;
321
+ }, {
322
+ type: "deleted";
323
+ value: boolean;
324
+ }>, z.ZodObject<{
325
+ type: z.ZodLiteral<"changed">;
326
+ old: z.ZodBoolean;
327
+ new: z.ZodBoolean;
328
+ }, "strip", ZodTypeAny, {
329
+ type: "changed";
330
+ old: boolean;
331
+ new: boolean;
332
+ }, {
333
+ type: "changed";
334
+ old: boolean;
335
+ new: boolean;
336
+ }>]>>;
337
+ }, "strict", ZodTypeAny, {
338
+ default?: {
339
+ value?: any;
340
+ type: "added";
341
+ } | {
342
+ value?: any;
343
+ type: "deleted";
344
+ } | {
345
+ old?: any;
346
+ new?: any;
347
+ type: "changed";
348
+ } | undefined;
349
+ type?: {
350
+ type: "changed";
351
+ old: string;
352
+ new: string;
353
+ } | undefined;
354
+ onUpdate?: {
355
+ type: "added";
356
+ value: boolean;
357
+ } | {
358
+ type: "deleted";
359
+ value: boolean;
360
+ } | {
361
+ type: "changed";
362
+ old: boolean;
363
+ new: boolean;
364
+ } | undefined;
365
+ primaryKey?: {
366
+ type: "added";
367
+ value: boolean;
368
+ } | {
369
+ type: "deleted";
370
+ value: boolean;
371
+ } | {
372
+ type: "changed";
373
+ old: boolean;
374
+ new: boolean;
375
+ } | undefined;
376
+ notNull?: {
377
+ type: "added";
378
+ value: boolean;
379
+ } | {
380
+ type: "deleted";
381
+ value: boolean;
382
+ } | {
383
+ type: "changed";
384
+ old: boolean;
385
+ new: boolean;
386
+ } | undefined;
387
+ autoincrement?: {
388
+ type: "added";
389
+ value: boolean;
390
+ } | {
391
+ type: "deleted";
392
+ value: boolean;
393
+ } | {
394
+ type: "changed";
395
+ old: boolean;
396
+ new: boolean;
397
+ } | undefined;
398
+ name: string | {
399
+ type: "changed";
400
+ old: string;
401
+ new: string;
402
+ };
403
+ }, {
404
+ default?: {
405
+ value?: any;
406
+ type: "added";
407
+ } | {
408
+ value?: any;
409
+ type: "deleted";
410
+ } | {
411
+ old?: any;
412
+ new?: any;
413
+ type: "changed";
414
+ } | undefined;
415
+ type?: {
416
+ type: "changed";
417
+ old: string;
418
+ new: string;
419
+ } | undefined;
420
+ onUpdate?: {
421
+ type: "added";
422
+ value: boolean;
423
+ } | {
424
+ type: "deleted";
425
+ value: boolean;
426
+ } | {
427
+ type: "changed";
428
+ old: boolean;
429
+ new: boolean;
430
+ } | undefined;
431
+ primaryKey?: {
432
+ type: "added";
433
+ value: boolean;
434
+ } | {
435
+ type: "deleted";
436
+ value: boolean;
437
+ } | {
438
+ type: "changed";
439
+ old: boolean;
440
+ new: boolean;
441
+ } | undefined;
442
+ notNull?: {
443
+ type: "added";
444
+ value: boolean;
445
+ } | {
446
+ type: "deleted";
447
+ value: boolean;
448
+ } | {
449
+ type: "changed";
450
+ old: boolean;
451
+ new: boolean;
452
+ } | undefined;
453
+ autoincrement?: {
454
+ type: "added";
455
+ value: boolean;
456
+ } | {
457
+ type: "deleted";
458
+ value: boolean;
459
+ } | {
460
+ type: "changed";
461
+ old: boolean;
462
+ new: boolean;
463
+ } | undefined;
464
+ name: string | {
465
+ type: "changed";
466
+ old: string;
467
+ new: string;
468
+ };
469
+ }>;
470
+ declare const enumSchema: z.ZodObject<{
471
+ name: z.ZodString;
472
+ values: z.ZodArray<z.ZodString, "many">;
473
+ }, "strict", ZodTypeAny, {
474
+ name: string;
475
+ values: string[];
476
+ }, {
477
+ name: string;
478
+ values: string[];
479
+ }>;
480
+ declare const tableScheme: z.ZodObject<{
481
+ name: z.ZodString;
482
+ schema: z.ZodDefault<z.ZodString>;
483
+ columns: z.ZodRecord<z.ZodString, z.ZodObject<{
484
+ name: z.ZodString;
485
+ type: z.ZodString;
486
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
487
+ default: z.ZodOptional<z.ZodAny>;
488
+ notNull: z.ZodOptional<z.ZodBoolean>;
489
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
490
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
491
+ isUnique: z.ZodOptional<z.ZodAny>;
492
+ uniqueName: z.ZodOptional<z.ZodString>;
493
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
494
+ }, "strict", ZodTypeAny, {
495
+ isUnique?: any;
496
+ default?: any;
497
+ onUpdate?: boolean | undefined;
498
+ primaryKey?: boolean | undefined;
499
+ notNull?: boolean | undefined;
500
+ autoincrement?: boolean | undefined;
501
+ uniqueName?: string | undefined;
502
+ nullsNotDistinct?: boolean | undefined;
503
+ name: string;
504
+ type: string;
505
+ }, {
506
+ isUnique?: any;
507
+ default?: any;
508
+ onUpdate?: boolean | undefined;
509
+ primaryKey?: boolean | undefined;
510
+ notNull?: boolean | undefined;
511
+ autoincrement?: boolean | undefined;
512
+ uniqueName?: string | undefined;
513
+ nullsNotDistinct?: boolean | undefined;
514
+ name: string;
515
+ type: string;
516
+ }>>;
517
+ indexes: z.ZodRecord<z.ZodString, z.ZodString>;
518
+ foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
519
+ compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
520
+ uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
521
+ }, "strict", ZodTypeAny, {
522
+ name: string;
523
+ columns: Record<string, {
524
+ isUnique?: any;
525
+ default?: any;
526
+ onUpdate?: boolean | undefined;
527
+ primaryKey?: boolean | undefined;
528
+ notNull?: boolean | undefined;
529
+ autoincrement?: boolean | undefined;
530
+ uniqueName?: string | undefined;
531
+ nullsNotDistinct?: boolean | undefined;
532
+ name: string;
533
+ type: string;
534
+ }>;
535
+ indexes: Record<string, string>;
536
+ foreignKeys: Record<string, string>;
537
+ schema: string;
538
+ compositePrimaryKeys: Record<string, string>;
539
+ uniqueConstraints: Record<string, string>;
540
+ }, {
541
+ schema?: string | undefined;
542
+ compositePrimaryKeys?: Record<string, string> | undefined;
543
+ uniqueConstraints?: Record<string, string> | undefined;
544
+ name: string;
545
+ columns: Record<string, {
546
+ isUnique?: any;
547
+ default?: any;
548
+ onUpdate?: boolean | undefined;
549
+ primaryKey?: boolean | undefined;
550
+ notNull?: boolean | undefined;
551
+ autoincrement?: boolean | undefined;
552
+ uniqueName?: string | undefined;
553
+ nullsNotDistinct?: boolean | undefined;
554
+ name: string;
555
+ type: string;
556
+ }>;
557
+ indexes: Record<string, string>;
558
+ foreignKeys: Record<string, string>;
559
+ }>;
560
+ export declare const alteredTableScheme: z.ZodObject<{
561
+ name: z.ZodString;
562
+ schema: z.ZodUnion<[z.ZodObject<{
563
+ type: z.ZodLiteral<"none">;
564
+ value: z.ZodOptional<z.ZodString>;
565
+ }, "strip", ZodTypeAny, {
566
+ value?: string | undefined;
567
+ type: "none";
568
+ }, {
569
+ value?: string | undefined;
570
+ type: "none";
571
+ }>, z.ZodObject<{
572
+ type: z.ZodLiteral<"added">;
573
+ value: z.ZodString;
574
+ }, "strip", ZodTypeAny, {
575
+ type: "added";
576
+ value: string;
577
+ }, {
578
+ type: "added";
579
+ value: string;
580
+ }>, z.ZodObject<{
581
+ type: z.ZodLiteral<"deleted">;
582
+ value: z.ZodString;
583
+ }, "strip", ZodTypeAny, {
584
+ type: "deleted";
585
+ value: string;
586
+ }, {
587
+ type: "deleted";
588
+ value: string;
589
+ }>, z.ZodObject<{
590
+ type: z.ZodLiteral<"changed">;
591
+ old: z.ZodString;
592
+ new: z.ZodString;
593
+ }, "strip", ZodTypeAny, {
594
+ type: "changed";
595
+ old: string;
596
+ new: string;
597
+ }, {
598
+ type: "changed";
599
+ old: string;
600
+ new: string;
601
+ }>]>;
602
+ deleted: z.ZodArray<z.ZodObject<{
603
+ name: z.ZodString;
604
+ type: z.ZodString;
605
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
606
+ default: z.ZodOptional<z.ZodAny>;
607
+ notNull: z.ZodOptional<z.ZodBoolean>;
608
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
609
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
610
+ isUnique: z.ZodOptional<z.ZodAny>;
611
+ uniqueName: z.ZodOptional<z.ZodString>;
612
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
613
+ }, "strict", ZodTypeAny, {
614
+ isUnique?: any;
615
+ default?: any;
616
+ onUpdate?: boolean | undefined;
617
+ primaryKey?: boolean | undefined;
618
+ notNull?: boolean | undefined;
619
+ autoincrement?: boolean | undefined;
620
+ uniqueName?: string | undefined;
621
+ nullsNotDistinct?: boolean | undefined;
622
+ name: string;
623
+ type: string;
624
+ }, {
625
+ isUnique?: any;
626
+ default?: any;
627
+ onUpdate?: boolean | undefined;
628
+ primaryKey?: boolean | undefined;
629
+ notNull?: boolean | undefined;
630
+ autoincrement?: boolean | undefined;
631
+ uniqueName?: string | undefined;
632
+ nullsNotDistinct?: boolean | undefined;
633
+ name: string;
634
+ type: string;
635
+ }>, "many">;
636
+ added: z.ZodArray<z.ZodObject<{
637
+ name: z.ZodString;
638
+ type: z.ZodString;
639
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
640
+ default: z.ZodOptional<z.ZodAny>;
641
+ notNull: z.ZodOptional<z.ZodBoolean>;
642
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
643
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
644
+ isUnique: z.ZodOptional<z.ZodAny>;
645
+ uniqueName: z.ZodOptional<z.ZodString>;
646
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
647
+ }, "strict", ZodTypeAny, {
648
+ isUnique?: any;
649
+ default?: any;
650
+ onUpdate?: boolean | undefined;
651
+ primaryKey?: boolean | undefined;
652
+ notNull?: boolean | undefined;
653
+ autoincrement?: boolean | undefined;
654
+ uniqueName?: string | undefined;
655
+ nullsNotDistinct?: boolean | undefined;
656
+ name: string;
657
+ type: string;
658
+ }, {
659
+ isUnique?: any;
660
+ default?: any;
661
+ onUpdate?: boolean | undefined;
662
+ primaryKey?: boolean | undefined;
663
+ notNull?: boolean | undefined;
664
+ autoincrement?: boolean | undefined;
665
+ uniqueName?: string | undefined;
666
+ nullsNotDistinct?: boolean | undefined;
667
+ name: string;
668
+ type: string;
669
+ }>, "many">;
670
+ altered: z.ZodArray<z.ZodObject<{
671
+ name: z.ZodUnion<[z.ZodString, z.ZodObject<{
672
+ type: z.ZodEnum<["changed"]>;
673
+ old: z.ZodString;
674
+ new: z.ZodString;
675
+ }, "strip", ZodTypeAny, {
676
+ type: "changed";
677
+ old: string;
678
+ new: string;
679
+ }, {
680
+ type: "changed";
681
+ old: string;
682
+ new: string;
683
+ }>]>;
684
+ type: z.ZodOptional<z.ZodObject<{
685
+ type: z.ZodEnum<["changed"]>;
686
+ old: z.ZodString;
687
+ new: z.ZodString;
688
+ }, "strip", ZodTypeAny, {
689
+ type: "changed";
690
+ old: string;
691
+ new: string;
692
+ }, {
693
+ type: "changed";
694
+ old: string;
695
+ new: string;
696
+ }>>;
697
+ default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
698
+ type: z.ZodLiteral<"added">;
699
+ value: z.ZodAny;
700
+ }, "strip", ZodTypeAny, {
701
+ value?: any;
702
+ type: "added";
703
+ }, {
704
+ value?: any;
705
+ type: "added";
706
+ }>, z.ZodObject<{
707
+ type: z.ZodLiteral<"deleted">;
708
+ value: z.ZodAny;
709
+ }, "strip", ZodTypeAny, {
710
+ value?: any;
711
+ type: "deleted";
712
+ }, {
713
+ value?: any;
714
+ type: "deleted";
715
+ }>, z.ZodObject<{
716
+ type: z.ZodLiteral<"changed">;
717
+ old: z.ZodAny;
718
+ new: z.ZodAny;
719
+ }, "strip", ZodTypeAny, {
720
+ old?: any;
721
+ new?: any;
722
+ type: "changed";
723
+ }, {
724
+ old?: any;
725
+ new?: any;
726
+ type: "changed";
727
+ }>]>>;
728
+ primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
729
+ type: z.ZodLiteral<"added">;
730
+ value: z.ZodBoolean;
731
+ }, "strip", ZodTypeAny, {
732
+ type: "added";
733
+ value: boolean;
734
+ }, {
735
+ type: "added";
736
+ value: boolean;
737
+ }>, z.ZodObject<{
738
+ type: z.ZodLiteral<"deleted">;
739
+ value: z.ZodBoolean;
740
+ }, "strip", ZodTypeAny, {
741
+ type: "deleted";
742
+ value: boolean;
743
+ }, {
744
+ type: "deleted";
745
+ value: boolean;
746
+ }>, z.ZodObject<{
747
+ type: z.ZodLiteral<"changed">;
748
+ old: z.ZodBoolean;
749
+ new: z.ZodBoolean;
750
+ }, "strip", ZodTypeAny, {
751
+ type: "changed";
752
+ old: boolean;
753
+ new: boolean;
754
+ }, {
755
+ type: "changed";
756
+ old: boolean;
757
+ new: boolean;
758
+ }>]>>;
759
+ notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
760
+ type: z.ZodLiteral<"added">;
761
+ value: z.ZodBoolean;
762
+ }, "strip", ZodTypeAny, {
763
+ type: "added";
764
+ value: boolean;
765
+ }, {
766
+ type: "added";
767
+ value: boolean;
768
+ }>, z.ZodObject<{
769
+ type: z.ZodLiteral<"deleted">;
770
+ value: z.ZodBoolean;
771
+ }, "strip", ZodTypeAny, {
772
+ type: "deleted";
773
+ value: boolean;
774
+ }, {
775
+ type: "deleted";
776
+ value: boolean;
777
+ }>, z.ZodObject<{
778
+ type: z.ZodLiteral<"changed">;
779
+ old: z.ZodBoolean;
780
+ new: z.ZodBoolean;
781
+ }, "strip", ZodTypeAny, {
782
+ type: "changed";
783
+ old: boolean;
784
+ new: boolean;
785
+ }, {
786
+ type: "changed";
787
+ old: boolean;
788
+ new: boolean;
789
+ }>]>>;
790
+ onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
791
+ type: z.ZodLiteral<"added">;
792
+ value: z.ZodBoolean;
793
+ }, "strip", ZodTypeAny, {
794
+ type: "added";
795
+ value: boolean;
796
+ }, {
797
+ type: "added";
798
+ value: boolean;
799
+ }>, z.ZodObject<{
800
+ type: z.ZodLiteral<"deleted">;
801
+ value: z.ZodBoolean;
802
+ }, "strip", ZodTypeAny, {
803
+ type: "deleted";
804
+ value: boolean;
805
+ }, {
806
+ type: "deleted";
807
+ value: boolean;
808
+ }>, z.ZodObject<{
809
+ type: z.ZodLiteral<"changed">;
810
+ old: z.ZodBoolean;
811
+ new: z.ZodBoolean;
812
+ }, "strip", ZodTypeAny, {
813
+ type: "changed";
814
+ old: boolean;
815
+ new: boolean;
816
+ }, {
817
+ type: "changed";
818
+ old: boolean;
819
+ new: boolean;
820
+ }>]>>;
821
+ autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
822
+ type: z.ZodLiteral<"added">;
823
+ value: z.ZodBoolean;
824
+ }, "strip", ZodTypeAny, {
825
+ type: "added";
826
+ value: boolean;
827
+ }, {
828
+ type: "added";
829
+ value: boolean;
830
+ }>, z.ZodObject<{
831
+ type: z.ZodLiteral<"deleted">;
832
+ value: z.ZodBoolean;
833
+ }, "strip", ZodTypeAny, {
834
+ type: "deleted";
835
+ value: boolean;
836
+ }, {
837
+ type: "deleted";
838
+ value: boolean;
839
+ }>, z.ZodObject<{
840
+ type: z.ZodLiteral<"changed">;
841
+ old: z.ZodBoolean;
842
+ new: z.ZodBoolean;
843
+ }, "strip", ZodTypeAny, {
844
+ type: "changed";
845
+ old: boolean;
846
+ new: boolean;
847
+ }, {
848
+ type: "changed";
849
+ old: boolean;
850
+ new: boolean;
851
+ }>]>>;
852
+ }, "strict", ZodTypeAny, {
853
+ default?: {
854
+ value?: any;
855
+ type: "added";
856
+ } | {
857
+ value?: any;
858
+ type: "deleted";
859
+ } | {
860
+ old?: any;
861
+ new?: any;
862
+ type: "changed";
863
+ } | undefined;
864
+ type?: {
865
+ type: "changed";
866
+ old: string;
867
+ new: string;
868
+ } | undefined;
869
+ onUpdate?: {
870
+ type: "added";
871
+ value: boolean;
872
+ } | {
873
+ type: "deleted";
874
+ value: boolean;
875
+ } | {
876
+ type: "changed";
877
+ old: boolean;
878
+ new: boolean;
879
+ } | undefined;
880
+ primaryKey?: {
881
+ type: "added";
882
+ value: boolean;
883
+ } | {
884
+ type: "deleted";
885
+ value: boolean;
886
+ } | {
887
+ type: "changed";
888
+ old: boolean;
889
+ new: boolean;
890
+ } | undefined;
891
+ notNull?: {
892
+ type: "added";
893
+ value: boolean;
894
+ } | {
895
+ type: "deleted";
896
+ value: boolean;
897
+ } | {
898
+ type: "changed";
899
+ old: boolean;
900
+ new: boolean;
901
+ } | undefined;
902
+ autoincrement?: {
903
+ type: "added";
904
+ value: boolean;
905
+ } | {
906
+ type: "deleted";
907
+ value: boolean;
908
+ } | {
909
+ type: "changed";
910
+ old: boolean;
911
+ new: boolean;
912
+ } | undefined;
913
+ name: string | {
914
+ type: "changed";
915
+ old: string;
916
+ new: string;
917
+ };
918
+ }, {
919
+ default?: {
920
+ value?: any;
921
+ type: "added";
922
+ } | {
923
+ value?: any;
924
+ type: "deleted";
925
+ } | {
926
+ old?: any;
927
+ new?: any;
928
+ type: "changed";
929
+ } | undefined;
930
+ type?: {
931
+ type: "changed";
932
+ old: string;
933
+ new: string;
934
+ } | undefined;
935
+ onUpdate?: {
936
+ type: "added";
937
+ value: boolean;
938
+ } | {
939
+ type: "deleted";
940
+ value: boolean;
941
+ } | {
942
+ type: "changed";
943
+ old: boolean;
944
+ new: boolean;
945
+ } | undefined;
946
+ primaryKey?: {
947
+ type: "added";
948
+ value: boolean;
949
+ } | {
950
+ type: "deleted";
951
+ value: boolean;
952
+ } | {
953
+ type: "changed";
954
+ old: boolean;
955
+ new: boolean;
956
+ } | undefined;
957
+ notNull?: {
958
+ type: "added";
959
+ value: boolean;
960
+ } | {
961
+ type: "deleted";
962
+ value: boolean;
963
+ } | {
964
+ type: "changed";
965
+ old: boolean;
966
+ new: boolean;
967
+ } | undefined;
968
+ autoincrement?: {
969
+ type: "added";
970
+ value: boolean;
971
+ } | {
972
+ type: "deleted";
973
+ value: boolean;
974
+ } | {
975
+ type: "changed";
976
+ old: boolean;
977
+ new: boolean;
978
+ } | undefined;
979
+ name: string | {
980
+ type: "changed";
981
+ old: string;
982
+ new: string;
983
+ };
984
+ }>, "many">;
985
+ addedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
986
+ deletedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
987
+ alteredIndexes: z.ZodRecord<z.ZodString, z.ZodObject<{
988
+ __new: z.ZodString;
989
+ __old: z.ZodString;
990
+ }, "strict", ZodTypeAny, {
991
+ __old: string;
992
+ __new: string;
993
+ }, {
994
+ __old: string;
995
+ __new: string;
996
+ }>>;
997
+ addedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
998
+ deletedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
999
+ alteredForeignKeys: z.ZodRecord<z.ZodString, z.ZodObject<{
1000
+ __new: z.ZodString;
1001
+ __old: z.ZodString;
1002
+ }, "strict", ZodTypeAny, {
1003
+ __old: string;
1004
+ __new: string;
1005
+ }, {
1006
+ __old: string;
1007
+ __new: string;
1008
+ }>>;
1009
+ addedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1010
+ deletedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1011
+ alteredCompositePKs: z.ZodRecord<z.ZodString, z.ZodObject<{
1012
+ __new: z.ZodString;
1013
+ __old: z.ZodString;
1014
+ }, "strip", ZodTypeAny, {
1015
+ __old: string;
1016
+ __new: string;
1017
+ }, {
1018
+ __old: string;
1019
+ __new: string;
1020
+ }>>;
1021
+ addedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1022
+ deletedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1023
+ alteredUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodObject<{
1024
+ __new: z.ZodString;
1025
+ __old: z.ZodString;
1026
+ }, "strip", ZodTypeAny, {
1027
+ __old: string;
1028
+ __new: string;
1029
+ }, {
1030
+ __old: string;
1031
+ __new: string;
1032
+ }>>;
1033
+ }, "strict", ZodTypeAny, {
1034
+ name: string;
1035
+ schema: {
1036
+ value?: string | undefined;
1037
+ type: "none";
1038
+ } | {
1039
+ type: "added";
1040
+ value: string;
1041
+ } | {
1042
+ type: "deleted";
1043
+ value: string;
1044
+ } | {
1045
+ type: "changed";
1046
+ old: string;
1047
+ new: string;
1048
+ };
1049
+ added: {
1050
+ isUnique?: any;
1051
+ default?: any;
1052
+ onUpdate?: boolean | undefined;
1053
+ primaryKey?: boolean | undefined;
1054
+ notNull?: boolean | undefined;
1055
+ autoincrement?: boolean | undefined;
1056
+ uniqueName?: string | undefined;
1057
+ nullsNotDistinct?: boolean | undefined;
1058
+ name: string;
1059
+ type: string;
1060
+ }[];
1061
+ deleted: {
1062
+ isUnique?: any;
1063
+ default?: any;
1064
+ onUpdate?: boolean | undefined;
1065
+ primaryKey?: boolean | undefined;
1066
+ notNull?: boolean | undefined;
1067
+ autoincrement?: boolean | undefined;
1068
+ uniqueName?: string | undefined;
1069
+ nullsNotDistinct?: boolean | undefined;
1070
+ name: string;
1071
+ type: string;
1072
+ }[];
1073
+ altered: {
1074
+ default?: {
1075
+ value?: any;
1076
+ type: "added";
1077
+ } | {
1078
+ value?: any;
1079
+ type: "deleted";
1080
+ } | {
1081
+ old?: any;
1082
+ new?: any;
1083
+ type: "changed";
1084
+ } | undefined;
1085
+ type?: {
1086
+ type: "changed";
1087
+ old: string;
1088
+ new: string;
1089
+ } | undefined;
1090
+ onUpdate?: {
1091
+ type: "added";
1092
+ value: boolean;
1093
+ } | {
1094
+ type: "deleted";
1095
+ value: boolean;
1096
+ } | {
1097
+ type: "changed";
1098
+ old: boolean;
1099
+ new: boolean;
1100
+ } | undefined;
1101
+ primaryKey?: {
1102
+ type: "added";
1103
+ value: boolean;
1104
+ } | {
1105
+ type: "deleted";
1106
+ value: boolean;
1107
+ } | {
1108
+ type: "changed";
1109
+ old: boolean;
1110
+ new: boolean;
1111
+ } | undefined;
1112
+ notNull?: {
1113
+ type: "added";
1114
+ value: boolean;
1115
+ } | {
1116
+ type: "deleted";
1117
+ value: boolean;
1118
+ } | {
1119
+ type: "changed";
1120
+ old: boolean;
1121
+ new: boolean;
1122
+ } | undefined;
1123
+ autoincrement?: {
1124
+ type: "added";
1125
+ value: boolean;
1126
+ } | {
1127
+ type: "deleted";
1128
+ value: boolean;
1129
+ } | {
1130
+ type: "changed";
1131
+ old: boolean;
1132
+ new: boolean;
1133
+ } | undefined;
1134
+ name: string | {
1135
+ type: "changed";
1136
+ old: string;
1137
+ new: string;
1138
+ };
1139
+ }[];
1140
+ addedIndexes: Record<string, string>;
1141
+ deletedIndexes: Record<string, string>;
1142
+ alteredIndexes: Record<string, {
1143
+ __old: string;
1144
+ __new: string;
1145
+ }>;
1146
+ addedForeignKeys: Record<string, string>;
1147
+ deletedForeignKeys: Record<string, string>;
1148
+ alteredForeignKeys: Record<string, {
1149
+ __old: string;
1150
+ __new: string;
1151
+ }>;
1152
+ addedCompositePKs: Record<string, string>;
1153
+ deletedCompositePKs: Record<string, string>;
1154
+ alteredCompositePKs: Record<string, {
1155
+ __old: string;
1156
+ __new: string;
1157
+ }>;
1158
+ addedUniqueConstraints: Record<string, string>;
1159
+ deletedUniqueConstraints: Record<string, string>;
1160
+ alteredUniqueConstraints: Record<string, {
1161
+ __old: string;
1162
+ __new: string;
1163
+ }>;
1164
+ }, {
1165
+ name: string;
1166
+ schema: {
1167
+ value?: string | undefined;
1168
+ type: "none";
1169
+ } | {
1170
+ type: "added";
1171
+ value: string;
1172
+ } | {
1173
+ type: "deleted";
1174
+ value: string;
1175
+ } | {
1176
+ type: "changed";
1177
+ old: string;
1178
+ new: string;
1179
+ };
1180
+ added: {
1181
+ isUnique?: any;
1182
+ default?: any;
1183
+ onUpdate?: boolean | undefined;
1184
+ primaryKey?: boolean | undefined;
1185
+ notNull?: boolean | undefined;
1186
+ autoincrement?: boolean | undefined;
1187
+ uniqueName?: string | undefined;
1188
+ nullsNotDistinct?: boolean | undefined;
1189
+ name: string;
1190
+ type: string;
1191
+ }[];
1192
+ deleted: {
1193
+ isUnique?: any;
1194
+ default?: any;
1195
+ onUpdate?: boolean | undefined;
1196
+ primaryKey?: boolean | undefined;
1197
+ notNull?: boolean | undefined;
1198
+ autoincrement?: boolean | undefined;
1199
+ uniqueName?: string | undefined;
1200
+ nullsNotDistinct?: boolean | undefined;
1201
+ name: string;
1202
+ type: string;
1203
+ }[];
1204
+ altered: {
1205
+ default?: {
1206
+ value?: any;
1207
+ type: "added";
1208
+ } | {
1209
+ value?: any;
1210
+ type: "deleted";
1211
+ } | {
1212
+ old?: any;
1213
+ new?: any;
1214
+ type: "changed";
1215
+ } | undefined;
1216
+ type?: {
1217
+ type: "changed";
1218
+ old: string;
1219
+ new: string;
1220
+ } | undefined;
1221
+ onUpdate?: {
1222
+ type: "added";
1223
+ value: boolean;
1224
+ } | {
1225
+ type: "deleted";
1226
+ value: boolean;
1227
+ } | {
1228
+ type: "changed";
1229
+ old: boolean;
1230
+ new: boolean;
1231
+ } | undefined;
1232
+ primaryKey?: {
1233
+ type: "added";
1234
+ value: boolean;
1235
+ } | {
1236
+ type: "deleted";
1237
+ value: boolean;
1238
+ } | {
1239
+ type: "changed";
1240
+ old: boolean;
1241
+ new: boolean;
1242
+ } | undefined;
1243
+ notNull?: {
1244
+ type: "added";
1245
+ value: boolean;
1246
+ } | {
1247
+ type: "deleted";
1248
+ value: boolean;
1249
+ } | {
1250
+ type: "changed";
1251
+ old: boolean;
1252
+ new: boolean;
1253
+ } | undefined;
1254
+ autoincrement?: {
1255
+ type: "added";
1256
+ value: boolean;
1257
+ } | {
1258
+ type: "deleted";
1259
+ value: boolean;
1260
+ } | {
1261
+ type: "changed";
1262
+ old: boolean;
1263
+ new: boolean;
1264
+ } | undefined;
1265
+ name: string | {
1266
+ type: "changed";
1267
+ old: string;
1268
+ new: string;
1269
+ };
1270
+ }[];
1271
+ addedIndexes: Record<string, string>;
1272
+ deletedIndexes: Record<string, string>;
1273
+ alteredIndexes: Record<string, {
1274
+ __old: string;
1275
+ __new: string;
1276
+ }>;
1277
+ addedForeignKeys: Record<string, string>;
1278
+ deletedForeignKeys: Record<string, string>;
1279
+ alteredForeignKeys: Record<string, {
1280
+ __old: string;
1281
+ __new: string;
1282
+ }>;
1283
+ addedCompositePKs: Record<string, string>;
1284
+ deletedCompositePKs: Record<string, string>;
1285
+ alteredCompositePKs: Record<string, {
1286
+ __old: string;
1287
+ __new: string;
1288
+ }>;
1289
+ addedUniqueConstraints: Record<string, string>;
1290
+ deletedUniqueConstraints: Record<string, string>;
1291
+ alteredUniqueConstraints: Record<string, {
1292
+ __old: string;
1293
+ __new: string;
1294
+ }>;
1295
+ }>;
1296
+ export declare const diffResultScheme: z.ZodObject<{
1297
+ addedTables: z.ZodArray<z.ZodObject<{
1298
+ name: z.ZodString;
1299
+ schema: z.ZodDefault<z.ZodString>;
1300
+ columns: z.ZodRecord<z.ZodString, z.ZodObject<{
1301
+ name: z.ZodString;
1302
+ type: z.ZodString;
1303
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
1304
+ default: z.ZodOptional<z.ZodAny>;
1305
+ notNull: z.ZodOptional<z.ZodBoolean>;
1306
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
1307
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
1308
+ isUnique: z.ZodOptional<z.ZodAny>;
1309
+ uniqueName: z.ZodOptional<z.ZodString>;
1310
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1311
+ }, "strict", ZodTypeAny, {
1312
+ isUnique?: any;
1313
+ default?: any;
1314
+ onUpdate?: boolean | undefined;
1315
+ primaryKey?: boolean | undefined;
1316
+ notNull?: boolean | undefined;
1317
+ autoincrement?: boolean | undefined;
1318
+ uniqueName?: string | undefined;
1319
+ nullsNotDistinct?: boolean | undefined;
1320
+ name: string;
1321
+ type: string;
1322
+ }, {
1323
+ isUnique?: any;
1324
+ default?: any;
1325
+ onUpdate?: boolean | undefined;
1326
+ primaryKey?: boolean | undefined;
1327
+ notNull?: boolean | undefined;
1328
+ autoincrement?: boolean | undefined;
1329
+ uniqueName?: string | undefined;
1330
+ nullsNotDistinct?: boolean | undefined;
1331
+ name: string;
1332
+ type: string;
1333
+ }>>;
1334
+ indexes: z.ZodRecord<z.ZodString, z.ZodString>;
1335
+ foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1336
+ compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1337
+ uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1338
+ }, "strict", ZodTypeAny, {
1339
+ name: string;
1340
+ columns: Record<string, {
1341
+ isUnique?: any;
1342
+ default?: any;
1343
+ onUpdate?: boolean | undefined;
1344
+ primaryKey?: boolean | undefined;
1345
+ notNull?: boolean | undefined;
1346
+ autoincrement?: boolean | undefined;
1347
+ uniqueName?: string | undefined;
1348
+ nullsNotDistinct?: boolean | undefined;
1349
+ name: string;
1350
+ type: string;
1351
+ }>;
1352
+ indexes: Record<string, string>;
1353
+ foreignKeys: Record<string, string>;
1354
+ schema: string;
1355
+ compositePrimaryKeys: Record<string, string>;
1356
+ uniqueConstraints: Record<string, string>;
1357
+ }, {
1358
+ schema?: string | undefined;
1359
+ compositePrimaryKeys?: Record<string, string> | undefined;
1360
+ uniqueConstraints?: Record<string, string> | undefined;
1361
+ name: string;
1362
+ columns: Record<string, {
1363
+ isUnique?: any;
1364
+ default?: any;
1365
+ onUpdate?: boolean | undefined;
1366
+ primaryKey?: boolean | undefined;
1367
+ notNull?: boolean | undefined;
1368
+ autoincrement?: boolean | undefined;
1369
+ uniqueName?: string | undefined;
1370
+ nullsNotDistinct?: boolean | undefined;
1371
+ name: string;
1372
+ type: string;
1373
+ }>;
1374
+ indexes: Record<string, string>;
1375
+ foreignKeys: Record<string, string>;
1376
+ }>, "many">;
1377
+ deletedTables: z.ZodArray<z.ZodObject<{
1378
+ name: z.ZodString;
1379
+ schema: z.ZodDefault<z.ZodString>;
1380
+ columns: z.ZodRecord<z.ZodString, z.ZodObject<{
1381
+ name: z.ZodString;
1382
+ type: z.ZodString;
1383
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
1384
+ default: z.ZodOptional<z.ZodAny>;
1385
+ notNull: z.ZodOptional<z.ZodBoolean>;
1386
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
1387
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
1388
+ isUnique: z.ZodOptional<z.ZodAny>;
1389
+ uniqueName: z.ZodOptional<z.ZodString>;
1390
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1391
+ }, "strict", ZodTypeAny, {
1392
+ isUnique?: any;
1393
+ default?: any;
1394
+ onUpdate?: boolean | undefined;
1395
+ primaryKey?: boolean | undefined;
1396
+ notNull?: boolean | undefined;
1397
+ autoincrement?: boolean | undefined;
1398
+ uniqueName?: string | undefined;
1399
+ nullsNotDistinct?: boolean | undefined;
1400
+ name: string;
1401
+ type: string;
1402
+ }, {
1403
+ isUnique?: any;
1404
+ default?: any;
1405
+ onUpdate?: boolean | undefined;
1406
+ primaryKey?: boolean | undefined;
1407
+ notNull?: boolean | undefined;
1408
+ autoincrement?: boolean | undefined;
1409
+ uniqueName?: string | undefined;
1410
+ nullsNotDistinct?: boolean | undefined;
1411
+ name: string;
1412
+ type: string;
1413
+ }>>;
1414
+ indexes: z.ZodRecord<z.ZodString, z.ZodString>;
1415
+ foreignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1416
+ compositePrimaryKeys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1417
+ uniqueConstraints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1418
+ }, "strict", ZodTypeAny, {
1419
+ name: string;
1420
+ columns: Record<string, {
1421
+ isUnique?: any;
1422
+ default?: any;
1423
+ onUpdate?: boolean | undefined;
1424
+ primaryKey?: boolean | undefined;
1425
+ notNull?: boolean | undefined;
1426
+ autoincrement?: boolean | undefined;
1427
+ uniqueName?: string | undefined;
1428
+ nullsNotDistinct?: boolean | undefined;
1429
+ name: string;
1430
+ type: string;
1431
+ }>;
1432
+ indexes: Record<string, string>;
1433
+ foreignKeys: Record<string, string>;
1434
+ schema: string;
1435
+ compositePrimaryKeys: Record<string, string>;
1436
+ uniqueConstraints: Record<string, string>;
1437
+ }, {
1438
+ schema?: string | undefined;
1439
+ compositePrimaryKeys?: Record<string, string> | undefined;
1440
+ uniqueConstraints?: Record<string, string> | undefined;
1441
+ name: string;
1442
+ columns: Record<string, {
1443
+ isUnique?: any;
1444
+ default?: any;
1445
+ onUpdate?: boolean | undefined;
1446
+ primaryKey?: boolean | undefined;
1447
+ notNull?: boolean | undefined;
1448
+ autoincrement?: boolean | undefined;
1449
+ uniqueName?: string | undefined;
1450
+ nullsNotDistinct?: boolean | undefined;
1451
+ name: string;
1452
+ type: string;
1453
+ }>;
1454
+ indexes: Record<string, string>;
1455
+ foreignKeys: Record<string, string>;
1456
+ }>, "many">;
1457
+ alteredTablesWithColumns: z.ZodArray<z.ZodObject<{
1458
+ name: z.ZodString;
1459
+ schema: z.ZodUnion<[z.ZodObject<{
1460
+ type: z.ZodLiteral<"none">;
1461
+ value: z.ZodOptional<z.ZodString>;
1462
+ }, "strip", ZodTypeAny, {
1463
+ value?: string | undefined;
1464
+ type: "none";
1465
+ }, {
1466
+ value?: string | undefined;
1467
+ type: "none";
1468
+ }>, z.ZodObject<{
1469
+ type: z.ZodLiteral<"added">;
1470
+ value: z.ZodString;
1471
+ }, "strip", ZodTypeAny, {
1472
+ type: "added";
1473
+ value: string;
1474
+ }, {
1475
+ type: "added";
1476
+ value: string;
1477
+ }>, z.ZodObject<{
1478
+ type: z.ZodLiteral<"deleted">;
1479
+ value: z.ZodString;
1480
+ }, "strip", ZodTypeAny, {
1481
+ type: "deleted";
1482
+ value: string;
1483
+ }, {
1484
+ type: "deleted";
1485
+ value: string;
1486
+ }>, z.ZodObject<{
1487
+ type: z.ZodLiteral<"changed">;
1488
+ old: z.ZodString;
1489
+ new: z.ZodString;
1490
+ }, "strip", ZodTypeAny, {
1491
+ type: "changed";
1492
+ old: string;
1493
+ new: string;
1494
+ }, {
1495
+ type: "changed";
1496
+ old: string;
1497
+ new: string;
1498
+ }>]>;
1499
+ deleted: z.ZodArray<z.ZodObject<{
1500
+ name: z.ZodString;
1501
+ type: z.ZodString;
1502
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
1503
+ default: z.ZodOptional<z.ZodAny>;
1504
+ notNull: z.ZodOptional<z.ZodBoolean>;
1505
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
1506
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
1507
+ isUnique: z.ZodOptional<z.ZodAny>;
1508
+ uniqueName: z.ZodOptional<z.ZodString>;
1509
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1510
+ }, "strict", ZodTypeAny, {
1511
+ isUnique?: any;
1512
+ default?: any;
1513
+ onUpdate?: boolean | undefined;
1514
+ primaryKey?: boolean | undefined;
1515
+ notNull?: boolean | undefined;
1516
+ autoincrement?: boolean | undefined;
1517
+ uniqueName?: string | undefined;
1518
+ nullsNotDistinct?: boolean | undefined;
1519
+ name: string;
1520
+ type: string;
1521
+ }, {
1522
+ isUnique?: any;
1523
+ default?: any;
1524
+ onUpdate?: boolean | undefined;
1525
+ primaryKey?: boolean | undefined;
1526
+ notNull?: boolean | undefined;
1527
+ autoincrement?: boolean | undefined;
1528
+ uniqueName?: string | undefined;
1529
+ nullsNotDistinct?: boolean | undefined;
1530
+ name: string;
1531
+ type: string;
1532
+ }>, "many">;
1533
+ added: z.ZodArray<z.ZodObject<{
1534
+ name: z.ZodString;
1535
+ type: z.ZodString;
1536
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
1537
+ default: z.ZodOptional<z.ZodAny>;
1538
+ notNull: z.ZodOptional<z.ZodBoolean>;
1539
+ autoincrement: z.ZodOptional<z.ZodBoolean>;
1540
+ onUpdate: z.ZodOptional<z.ZodBoolean>;
1541
+ isUnique: z.ZodOptional<z.ZodAny>;
1542
+ uniqueName: z.ZodOptional<z.ZodString>;
1543
+ nullsNotDistinct: z.ZodOptional<z.ZodBoolean>;
1544
+ }, "strict", ZodTypeAny, {
1545
+ isUnique?: any;
1546
+ default?: any;
1547
+ onUpdate?: boolean | undefined;
1548
+ primaryKey?: boolean | undefined;
1549
+ notNull?: boolean | undefined;
1550
+ autoincrement?: boolean | undefined;
1551
+ uniqueName?: string | undefined;
1552
+ nullsNotDistinct?: boolean | undefined;
1553
+ name: string;
1554
+ type: string;
1555
+ }, {
1556
+ isUnique?: any;
1557
+ default?: any;
1558
+ onUpdate?: boolean | undefined;
1559
+ primaryKey?: boolean | undefined;
1560
+ notNull?: boolean | undefined;
1561
+ autoincrement?: boolean | undefined;
1562
+ uniqueName?: string | undefined;
1563
+ nullsNotDistinct?: boolean | undefined;
1564
+ name: string;
1565
+ type: string;
1566
+ }>, "many">;
1567
+ altered: z.ZodArray<z.ZodObject<{
1568
+ name: z.ZodUnion<[z.ZodString, z.ZodObject<{
1569
+ type: z.ZodEnum<["changed"]>;
1570
+ old: z.ZodString;
1571
+ new: z.ZodString;
1572
+ }, "strip", ZodTypeAny, {
1573
+ type: "changed";
1574
+ old: string;
1575
+ new: string;
1576
+ }, {
1577
+ type: "changed";
1578
+ old: string;
1579
+ new: string;
1580
+ }>]>;
1581
+ type: z.ZodOptional<z.ZodObject<{
1582
+ type: z.ZodEnum<["changed"]>;
1583
+ old: z.ZodString;
1584
+ new: z.ZodString;
1585
+ }, "strip", ZodTypeAny, {
1586
+ type: "changed";
1587
+ old: string;
1588
+ new: string;
1589
+ }, {
1590
+ type: "changed";
1591
+ old: string;
1592
+ new: string;
1593
+ }>>;
1594
+ default: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1595
+ type: z.ZodLiteral<"added">;
1596
+ value: z.ZodAny;
1597
+ }, "strip", ZodTypeAny, {
1598
+ value?: any;
1599
+ type: "added";
1600
+ }, {
1601
+ value?: any;
1602
+ type: "added";
1603
+ }>, z.ZodObject<{
1604
+ type: z.ZodLiteral<"deleted">;
1605
+ value: z.ZodAny;
1606
+ }, "strip", ZodTypeAny, {
1607
+ value?: any;
1608
+ type: "deleted";
1609
+ }, {
1610
+ value?: any;
1611
+ type: "deleted";
1612
+ }>, z.ZodObject<{
1613
+ type: z.ZodLiteral<"changed">;
1614
+ old: z.ZodAny;
1615
+ new: z.ZodAny;
1616
+ }, "strip", ZodTypeAny, {
1617
+ old?: any;
1618
+ new?: any;
1619
+ type: "changed";
1620
+ }, {
1621
+ old?: any;
1622
+ new?: any;
1623
+ type: "changed";
1624
+ }>]>>;
1625
+ primaryKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1626
+ type: z.ZodLiteral<"added">;
1627
+ value: z.ZodBoolean;
1628
+ }, "strip", ZodTypeAny, {
1629
+ type: "added";
1630
+ value: boolean;
1631
+ }, {
1632
+ type: "added";
1633
+ value: boolean;
1634
+ }>, z.ZodObject<{
1635
+ type: z.ZodLiteral<"deleted">;
1636
+ value: z.ZodBoolean;
1637
+ }, "strip", ZodTypeAny, {
1638
+ type: "deleted";
1639
+ value: boolean;
1640
+ }, {
1641
+ type: "deleted";
1642
+ value: boolean;
1643
+ }>, z.ZodObject<{
1644
+ type: z.ZodLiteral<"changed">;
1645
+ old: z.ZodBoolean;
1646
+ new: z.ZodBoolean;
1647
+ }, "strip", ZodTypeAny, {
1648
+ type: "changed";
1649
+ old: boolean;
1650
+ new: boolean;
1651
+ }, {
1652
+ type: "changed";
1653
+ old: boolean;
1654
+ new: boolean;
1655
+ }>]>>;
1656
+ notNull: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1657
+ type: z.ZodLiteral<"added">;
1658
+ value: z.ZodBoolean;
1659
+ }, "strip", ZodTypeAny, {
1660
+ type: "added";
1661
+ value: boolean;
1662
+ }, {
1663
+ type: "added";
1664
+ value: boolean;
1665
+ }>, z.ZodObject<{
1666
+ type: z.ZodLiteral<"deleted">;
1667
+ value: z.ZodBoolean;
1668
+ }, "strip", ZodTypeAny, {
1669
+ type: "deleted";
1670
+ value: boolean;
1671
+ }, {
1672
+ type: "deleted";
1673
+ value: boolean;
1674
+ }>, z.ZodObject<{
1675
+ type: z.ZodLiteral<"changed">;
1676
+ old: z.ZodBoolean;
1677
+ new: z.ZodBoolean;
1678
+ }, "strip", ZodTypeAny, {
1679
+ type: "changed";
1680
+ old: boolean;
1681
+ new: boolean;
1682
+ }, {
1683
+ type: "changed";
1684
+ old: boolean;
1685
+ new: boolean;
1686
+ }>]>>;
1687
+ onUpdate: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1688
+ type: z.ZodLiteral<"added">;
1689
+ value: z.ZodBoolean;
1690
+ }, "strip", ZodTypeAny, {
1691
+ type: "added";
1692
+ value: boolean;
1693
+ }, {
1694
+ type: "added";
1695
+ value: boolean;
1696
+ }>, z.ZodObject<{
1697
+ type: z.ZodLiteral<"deleted">;
1698
+ value: z.ZodBoolean;
1699
+ }, "strip", ZodTypeAny, {
1700
+ type: "deleted";
1701
+ value: boolean;
1702
+ }, {
1703
+ type: "deleted";
1704
+ value: boolean;
1705
+ }>, z.ZodObject<{
1706
+ type: z.ZodLiteral<"changed">;
1707
+ old: z.ZodBoolean;
1708
+ new: z.ZodBoolean;
1709
+ }, "strip", ZodTypeAny, {
1710
+ type: "changed";
1711
+ old: boolean;
1712
+ new: boolean;
1713
+ }, {
1714
+ type: "changed";
1715
+ old: boolean;
1716
+ new: boolean;
1717
+ }>]>>;
1718
+ autoincrement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1719
+ type: z.ZodLiteral<"added">;
1720
+ value: z.ZodBoolean;
1721
+ }, "strip", ZodTypeAny, {
1722
+ type: "added";
1723
+ value: boolean;
1724
+ }, {
1725
+ type: "added";
1726
+ value: boolean;
1727
+ }>, z.ZodObject<{
1728
+ type: z.ZodLiteral<"deleted">;
1729
+ value: z.ZodBoolean;
1730
+ }, "strip", ZodTypeAny, {
1731
+ type: "deleted";
1732
+ value: boolean;
1733
+ }, {
1734
+ type: "deleted";
1735
+ value: boolean;
1736
+ }>, z.ZodObject<{
1737
+ type: z.ZodLiteral<"changed">;
1738
+ old: z.ZodBoolean;
1739
+ new: z.ZodBoolean;
1740
+ }, "strip", ZodTypeAny, {
1741
+ type: "changed";
1742
+ old: boolean;
1743
+ new: boolean;
1744
+ }, {
1745
+ type: "changed";
1746
+ old: boolean;
1747
+ new: boolean;
1748
+ }>]>>;
1749
+ }, "strict", ZodTypeAny, {
1750
+ default?: {
1751
+ value?: any;
1752
+ type: "added";
1753
+ } | {
1754
+ value?: any;
1755
+ type: "deleted";
1756
+ } | {
1757
+ old?: any;
1758
+ new?: any;
1759
+ type: "changed";
1760
+ } | undefined;
1761
+ type?: {
1762
+ type: "changed";
1763
+ old: string;
1764
+ new: string;
1765
+ } | undefined;
1766
+ onUpdate?: {
1767
+ type: "added";
1768
+ value: boolean;
1769
+ } | {
1770
+ type: "deleted";
1771
+ value: boolean;
1772
+ } | {
1773
+ type: "changed";
1774
+ old: boolean;
1775
+ new: boolean;
1776
+ } | undefined;
1777
+ primaryKey?: {
1778
+ type: "added";
1779
+ value: boolean;
1780
+ } | {
1781
+ type: "deleted";
1782
+ value: boolean;
1783
+ } | {
1784
+ type: "changed";
1785
+ old: boolean;
1786
+ new: boolean;
1787
+ } | undefined;
1788
+ notNull?: {
1789
+ type: "added";
1790
+ value: boolean;
1791
+ } | {
1792
+ type: "deleted";
1793
+ value: boolean;
1794
+ } | {
1795
+ type: "changed";
1796
+ old: boolean;
1797
+ new: boolean;
1798
+ } | undefined;
1799
+ autoincrement?: {
1800
+ type: "added";
1801
+ value: boolean;
1802
+ } | {
1803
+ type: "deleted";
1804
+ value: boolean;
1805
+ } | {
1806
+ type: "changed";
1807
+ old: boolean;
1808
+ new: boolean;
1809
+ } | undefined;
1810
+ name: string | {
1811
+ type: "changed";
1812
+ old: string;
1813
+ new: string;
1814
+ };
1815
+ }, {
1816
+ default?: {
1817
+ value?: any;
1818
+ type: "added";
1819
+ } | {
1820
+ value?: any;
1821
+ type: "deleted";
1822
+ } | {
1823
+ old?: any;
1824
+ new?: any;
1825
+ type: "changed";
1826
+ } | undefined;
1827
+ type?: {
1828
+ type: "changed";
1829
+ old: string;
1830
+ new: string;
1831
+ } | undefined;
1832
+ onUpdate?: {
1833
+ type: "added";
1834
+ value: boolean;
1835
+ } | {
1836
+ type: "deleted";
1837
+ value: boolean;
1838
+ } | {
1839
+ type: "changed";
1840
+ old: boolean;
1841
+ new: boolean;
1842
+ } | undefined;
1843
+ primaryKey?: {
1844
+ type: "added";
1845
+ value: boolean;
1846
+ } | {
1847
+ type: "deleted";
1848
+ value: boolean;
1849
+ } | {
1850
+ type: "changed";
1851
+ old: boolean;
1852
+ new: boolean;
1853
+ } | undefined;
1854
+ notNull?: {
1855
+ type: "added";
1856
+ value: boolean;
1857
+ } | {
1858
+ type: "deleted";
1859
+ value: boolean;
1860
+ } | {
1861
+ type: "changed";
1862
+ old: boolean;
1863
+ new: boolean;
1864
+ } | undefined;
1865
+ autoincrement?: {
1866
+ type: "added";
1867
+ value: boolean;
1868
+ } | {
1869
+ type: "deleted";
1870
+ value: boolean;
1871
+ } | {
1872
+ type: "changed";
1873
+ old: boolean;
1874
+ new: boolean;
1875
+ } | undefined;
1876
+ name: string | {
1877
+ type: "changed";
1878
+ old: string;
1879
+ new: string;
1880
+ };
1881
+ }>, "many">;
1882
+ addedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
1883
+ deletedIndexes: z.ZodRecord<z.ZodString, z.ZodString>;
1884
+ alteredIndexes: z.ZodRecord<z.ZodString, z.ZodObject<{
1885
+ __new: z.ZodString;
1886
+ __old: z.ZodString;
1887
+ }, "strict", ZodTypeAny, {
1888
+ __old: string;
1889
+ __new: string;
1890
+ }, {
1891
+ __old: string;
1892
+ __new: string;
1893
+ }>>;
1894
+ addedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1895
+ deletedForeignKeys: z.ZodRecord<z.ZodString, z.ZodString>;
1896
+ alteredForeignKeys: z.ZodRecord<z.ZodString, z.ZodObject<{
1897
+ __new: z.ZodString;
1898
+ __old: z.ZodString;
1899
+ }, "strict", ZodTypeAny, {
1900
+ __old: string;
1901
+ __new: string;
1902
+ }, {
1903
+ __old: string;
1904
+ __new: string;
1905
+ }>>;
1906
+ addedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1907
+ deletedCompositePKs: z.ZodRecord<z.ZodString, z.ZodString>;
1908
+ alteredCompositePKs: z.ZodRecord<z.ZodString, z.ZodObject<{
1909
+ __new: z.ZodString;
1910
+ __old: z.ZodString;
1911
+ }, "strip", ZodTypeAny, {
1912
+ __old: string;
1913
+ __new: string;
1914
+ }, {
1915
+ __old: string;
1916
+ __new: string;
1917
+ }>>;
1918
+ addedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1919
+ deletedUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodString>;
1920
+ alteredUniqueConstraints: z.ZodRecord<z.ZodString, z.ZodObject<{
1921
+ __new: z.ZodString;
1922
+ __old: z.ZodString;
1923
+ }, "strip", ZodTypeAny, {
1924
+ __old: string;
1925
+ __new: string;
1926
+ }, {
1927
+ __old: string;
1928
+ __new: string;
1929
+ }>>;
1930
+ }, "strict", ZodTypeAny, {
1931
+ name: string;
1932
+ schema: {
1933
+ value?: string | undefined;
1934
+ type: "none";
1935
+ } | {
1936
+ type: "added";
1937
+ value: string;
1938
+ } | {
1939
+ type: "deleted";
1940
+ value: string;
1941
+ } | {
1942
+ type: "changed";
1943
+ old: string;
1944
+ new: string;
1945
+ };
1946
+ added: {
1947
+ isUnique?: any;
1948
+ default?: any;
1949
+ onUpdate?: boolean | undefined;
1950
+ primaryKey?: boolean | undefined;
1951
+ notNull?: boolean | undefined;
1952
+ autoincrement?: boolean | undefined;
1953
+ uniqueName?: string | undefined;
1954
+ nullsNotDistinct?: boolean | undefined;
1955
+ name: string;
1956
+ type: string;
1957
+ }[];
1958
+ deleted: {
1959
+ isUnique?: any;
1960
+ default?: any;
1961
+ onUpdate?: boolean | undefined;
1962
+ primaryKey?: boolean | undefined;
1963
+ notNull?: boolean | undefined;
1964
+ autoincrement?: boolean | undefined;
1965
+ uniqueName?: string | undefined;
1966
+ nullsNotDistinct?: boolean | undefined;
1967
+ name: string;
1968
+ type: string;
1969
+ }[];
1970
+ altered: {
1971
+ default?: {
1972
+ value?: any;
1973
+ type: "added";
1974
+ } | {
1975
+ value?: any;
1976
+ type: "deleted";
1977
+ } | {
1978
+ old?: any;
1979
+ new?: any;
1980
+ type: "changed";
1981
+ } | undefined;
1982
+ type?: {
1983
+ type: "changed";
1984
+ old: string;
1985
+ new: string;
1986
+ } | undefined;
1987
+ onUpdate?: {
1988
+ type: "added";
1989
+ value: boolean;
1990
+ } | {
1991
+ type: "deleted";
1992
+ value: boolean;
1993
+ } | {
1994
+ type: "changed";
1995
+ old: boolean;
1996
+ new: boolean;
1997
+ } | undefined;
1998
+ primaryKey?: {
1999
+ type: "added";
2000
+ value: boolean;
2001
+ } | {
2002
+ type: "deleted";
2003
+ value: boolean;
2004
+ } | {
2005
+ type: "changed";
2006
+ old: boolean;
2007
+ new: boolean;
2008
+ } | undefined;
2009
+ notNull?: {
2010
+ type: "added";
2011
+ value: boolean;
2012
+ } | {
2013
+ type: "deleted";
2014
+ value: boolean;
2015
+ } | {
2016
+ type: "changed";
2017
+ old: boolean;
2018
+ new: boolean;
2019
+ } | undefined;
2020
+ autoincrement?: {
2021
+ type: "added";
2022
+ value: boolean;
2023
+ } | {
2024
+ type: "deleted";
2025
+ value: boolean;
2026
+ } | {
2027
+ type: "changed";
2028
+ old: boolean;
2029
+ new: boolean;
2030
+ } | undefined;
2031
+ name: string | {
2032
+ type: "changed";
2033
+ old: string;
2034
+ new: string;
2035
+ };
2036
+ }[];
2037
+ addedIndexes: Record<string, string>;
2038
+ deletedIndexes: Record<string, string>;
2039
+ alteredIndexes: Record<string, {
2040
+ __old: string;
2041
+ __new: string;
2042
+ }>;
2043
+ addedForeignKeys: Record<string, string>;
2044
+ deletedForeignKeys: Record<string, string>;
2045
+ alteredForeignKeys: Record<string, {
2046
+ __old: string;
2047
+ __new: string;
2048
+ }>;
2049
+ addedCompositePKs: Record<string, string>;
2050
+ deletedCompositePKs: Record<string, string>;
2051
+ alteredCompositePKs: Record<string, {
2052
+ __old: string;
2053
+ __new: string;
2054
+ }>;
2055
+ addedUniqueConstraints: Record<string, string>;
2056
+ deletedUniqueConstraints: Record<string, string>;
2057
+ alteredUniqueConstraints: Record<string, {
2058
+ __old: string;
2059
+ __new: string;
2060
+ }>;
2061
+ }, {
2062
+ name: string;
2063
+ schema: {
2064
+ value?: string | undefined;
2065
+ type: "none";
2066
+ } | {
2067
+ type: "added";
2068
+ value: string;
2069
+ } | {
2070
+ type: "deleted";
2071
+ value: string;
2072
+ } | {
2073
+ type: "changed";
2074
+ old: string;
2075
+ new: string;
2076
+ };
2077
+ added: {
2078
+ isUnique?: any;
2079
+ default?: any;
2080
+ onUpdate?: boolean | undefined;
2081
+ primaryKey?: boolean | undefined;
2082
+ notNull?: boolean | undefined;
2083
+ autoincrement?: boolean | undefined;
2084
+ uniqueName?: string | undefined;
2085
+ nullsNotDistinct?: boolean | undefined;
2086
+ name: string;
2087
+ type: string;
2088
+ }[];
2089
+ deleted: {
2090
+ isUnique?: any;
2091
+ default?: any;
2092
+ onUpdate?: boolean | undefined;
2093
+ primaryKey?: boolean | undefined;
2094
+ notNull?: boolean | undefined;
2095
+ autoincrement?: boolean | undefined;
2096
+ uniqueName?: string | undefined;
2097
+ nullsNotDistinct?: boolean | undefined;
2098
+ name: string;
2099
+ type: string;
2100
+ }[];
2101
+ altered: {
2102
+ default?: {
2103
+ value?: any;
2104
+ type: "added";
2105
+ } | {
2106
+ value?: any;
2107
+ type: "deleted";
2108
+ } | {
2109
+ old?: any;
2110
+ new?: any;
2111
+ type: "changed";
2112
+ } | undefined;
2113
+ type?: {
2114
+ type: "changed";
2115
+ old: string;
2116
+ new: string;
2117
+ } | undefined;
2118
+ onUpdate?: {
2119
+ type: "added";
2120
+ value: boolean;
2121
+ } | {
2122
+ type: "deleted";
2123
+ value: boolean;
2124
+ } | {
2125
+ type: "changed";
2126
+ old: boolean;
2127
+ new: boolean;
2128
+ } | undefined;
2129
+ primaryKey?: {
2130
+ type: "added";
2131
+ value: boolean;
2132
+ } | {
2133
+ type: "deleted";
2134
+ value: boolean;
2135
+ } | {
2136
+ type: "changed";
2137
+ old: boolean;
2138
+ new: boolean;
2139
+ } | undefined;
2140
+ notNull?: {
2141
+ type: "added";
2142
+ value: boolean;
2143
+ } | {
2144
+ type: "deleted";
2145
+ value: boolean;
2146
+ } | {
2147
+ type: "changed";
2148
+ old: boolean;
2149
+ new: boolean;
2150
+ } | undefined;
2151
+ autoincrement?: {
2152
+ type: "added";
2153
+ value: boolean;
2154
+ } | {
2155
+ type: "deleted";
2156
+ value: boolean;
2157
+ } | {
2158
+ type: "changed";
2159
+ old: boolean;
2160
+ new: boolean;
2161
+ } | undefined;
2162
+ name: string | {
2163
+ type: "changed";
2164
+ old: string;
2165
+ new: string;
2166
+ };
2167
+ }[];
2168
+ addedIndexes: Record<string, string>;
2169
+ deletedIndexes: Record<string, string>;
2170
+ alteredIndexes: Record<string, {
2171
+ __old: string;
2172
+ __new: string;
2173
+ }>;
2174
+ addedForeignKeys: Record<string, string>;
2175
+ deletedForeignKeys: Record<string, string>;
2176
+ alteredForeignKeys: Record<string, {
2177
+ __old: string;
2178
+ __new: string;
2179
+ }>;
2180
+ addedCompositePKs: Record<string, string>;
2181
+ deletedCompositePKs: Record<string, string>;
2182
+ alteredCompositePKs: Record<string, {
2183
+ __old: string;
2184
+ __new: string;
2185
+ }>;
2186
+ addedUniqueConstraints: Record<string, string>;
2187
+ deletedUniqueConstraints: Record<string, string>;
2188
+ alteredUniqueConstraints: Record<string, {
2189
+ __old: string;
2190
+ __new: string;
2191
+ }>;
2192
+ }>, "many">;
2193
+ addedEnums: z.ZodArray<z.ZodObject<{
2194
+ name: z.ZodString;
2195
+ values: z.ZodArray<z.ZodString, "many">;
2196
+ }, "strict", ZodTypeAny, {
2197
+ name: string;
2198
+ values: string[];
2199
+ }, {
2200
+ name: string;
2201
+ values: string[];
2202
+ }>, "many">;
2203
+ deletedEnums: z.ZodArray<z.ZodObject<{
2204
+ name: z.ZodString;
2205
+ values: z.ZodArray<z.ZodString, "many">;
2206
+ }, "strict", ZodTypeAny, {
2207
+ name: string;
2208
+ values: string[];
2209
+ }, {
2210
+ name: string;
2211
+ values: string[];
2212
+ }>, "many">;
2213
+ alteredEnums: z.ZodArray<z.ZodObject<{
2214
+ name: z.ZodString;
2215
+ addedValues: z.ZodArray<z.ZodString, "many">;
2216
+ deletedValues: z.ZodArray<z.ZodString, "many">;
2217
+ }, "strict", ZodTypeAny, {
2218
+ name: string;
2219
+ addedValues: string[];
2220
+ deletedValues: string[];
2221
+ }, {
2222
+ name: string;
2223
+ addedValues: string[];
2224
+ deletedValues: string[];
2225
+ }>, "many">;
2226
+ addedSchemas: z.ZodArray<z.ZodString, "many">;
2227
+ deletedSchemas: z.ZodArray<z.ZodString, "many">;
2228
+ }, "strict", ZodTypeAny, {
2229
+ addedTables: {
2230
+ name: string;
2231
+ columns: Record<string, {
2232
+ isUnique?: any;
2233
+ default?: any;
2234
+ onUpdate?: boolean | undefined;
2235
+ primaryKey?: boolean | undefined;
2236
+ notNull?: boolean | undefined;
2237
+ autoincrement?: boolean | undefined;
2238
+ uniqueName?: string | undefined;
2239
+ nullsNotDistinct?: boolean | undefined;
2240
+ name: string;
2241
+ type: string;
2242
+ }>;
2243
+ indexes: Record<string, string>;
2244
+ foreignKeys: Record<string, string>;
2245
+ schema: string;
2246
+ compositePrimaryKeys: Record<string, string>;
2247
+ uniqueConstraints: Record<string, string>;
2248
+ }[];
2249
+ deletedTables: {
2250
+ name: string;
2251
+ columns: Record<string, {
2252
+ isUnique?: any;
2253
+ default?: any;
2254
+ onUpdate?: boolean | undefined;
2255
+ primaryKey?: boolean | undefined;
2256
+ notNull?: boolean | undefined;
2257
+ autoincrement?: boolean | undefined;
2258
+ uniqueName?: string | undefined;
2259
+ nullsNotDistinct?: boolean | undefined;
2260
+ name: string;
2261
+ type: string;
2262
+ }>;
2263
+ indexes: Record<string, string>;
2264
+ foreignKeys: Record<string, string>;
2265
+ schema: string;
2266
+ compositePrimaryKeys: Record<string, string>;
2267
+ uniqueConstraints: Record<string, string>;
2268
+ }[];
2269
+ alteredTablesWithColumns: {
2270
+ name: string;
2271
+ schema: {
2272
+ value?: string | undefined;
2273
+ type: "none";
2274
+ } | {
2275
+ type: "added";
2276
+ value: string;
2277
+ } | {
2278
+ type: "deleted";
2279
+ value: string;
2280
+ } | {
2281
+ type: "changed";
2282
+ old: string;
2283
+ new: string;
2284
+ };
2285
+ added: {
2286
+ isUnique?: any;
2287
+ default?: any;
2288
+ onUpdate?: boolean | undefined;
2289
+ primaryKey?: boolean | undefined;
2290
+ notNull?: boolean | undefined;
2291
+ autoincrement?: boolean | undefined;
2292
+ uniqueName?: string | undefined;
2293
+ nullsNotDistinct?: boolean | undefined;
2294
+ name: string;
2295
+ type: string;
2296
+ }[];
2297
+ deleted: {
2298
+ isUnique?: any;
2299
+ default?: any;
2300
+ onUpdate?: boolean | undefined;
2301
+ primaryKey?: boolean | undefined;
2302
+ notNull?: boolean | undefined;
2303
+ autoincrement?: boolean | undefined;
2304
+ uniqueName?: string | undefined;
2305
+ nullsNotDistinct?: boolean | undefined;
2306
+ name: string;
2307
+ type: string;
2308
+ }[];
2309
+ altered: {
2310
+ default?: {
2311
+ value?: any;
2312
+ type: "added";
2313
+ } | {
2314
+ value?: any;
2315
+ type: "deleted";
2316
+ } | {
2317
+ old?: any;
2318
+ new?: any;
2319
+ type: "changed";
2320
+ } | undefined;
2321
+ type?: {
2322
+ type: "changed";
2323
+ old: string;
2324
+ new: string;
2325
+ } | undefined;
2326
+ onUpdate?: {
2327
+ type: "added";
2328
+ value: boolean;
2329
+ } | {
2330
+ type: "deleted";
2331
+ value: boolean;
2332
+ } | {
2333
+ type: "changed";
2334
+ old: boolean;
2335
+ new: boolean;
2336
+ } | undefined;
2337
+ primaryKey?: {
2338
+ type: "added";
2339
+ value: boolean;
2340
+ } | {
2341
+ type: "deleted";
2342
+ value: boolean;
2343
+ } | {
2344
+ type: "changed";
2345
+ old: boolean;
2346
+ new: boolean;
2347
+ } | undefined;
2348
+ notNull?: {
2349
+ type: "added";
2350
+ value: boolean;
2351
+ } | {
2352
+ type: "deleted";
2353
+ value: boolean;
2354
+ } | {
2355
+ type: "changed";
2356
+ old: boolean;
2357
+ new: boolean;
2358
+ } | undefined;
2359
+ autoincrement?: {
2360
+ type: "added";
2361
+ value: boolean;
2362
+ } | {
2363
+ type: "deleted";
2364
+ value: boolean;
2365
+ } | {
2366
+ type: "changed";
2367
+ old: boolean;
2368
+ new: boolean;
2369
+ } | undefined;
2370
+ name: string | {
2371
+ type: "changed";
2372
+ old: string;
2373
+ new: string;
2374
+ };
2375
+ }[];
2376
+ addedIndexes: Record<string, string>;
2377
+ deletedIndexes: Record<string, string>;
2378
+ alteredIndexes: Record<string, {
2379
+ __old: string;
2380
+ __new: string;
2381
+ }>;
2382
+ addedForeignKeys: Record<string, string>;
2383
+ deletedForeignKeys: Record<string, string>;
2384
+ alteredForeignKeys: Record<string, {
2385
+ __old: string;
2386
+ __new: string;
2387
+ }>;
2388
+ addedCompositePKs: Record<string, string>;
2389
+ deletedCompositePKs: Record<string, string>;
2390
+ alteredCompositePKs: Record<string, {
2391
+ __old: string;
2392
+ __new: string;
2393
+ }>;
2394
+ addedUniqueConstraints: Record<string, string>;
2395
+ deletedUniqueConstraints: Record<string, string>;
2396
+ alteredUniqueConstraints: Record<string, {
2397
+ __old: string;
2398
+ __new: string;
2399
+ }>;
2400
+ }[];
2401
+ addedEnums: {
2402
+ name: string;
2403
+ values: string[];
2404
+ }[];
2405
+ deletedEnums: {
2406
+ name: string;
2407
+ values: string[];
2408
+ }[];
2409
+ alteredEnums: {
2410
+ name: string;
2411
+ addedValues: string[];
2412
+ deletedValues: string[];
2413
+ }[];
2414
+ addedSchemas: string[];
2415
+ deletedSchemas: string[];
2416
+ }, {
2417
+ addedTables: {
2418
+ schema?: string | undefined;
2419
+ compositePrimaryKeys?: Record<string, string> | undefined;
2420
+ uniqueConstraints?: Record<string, string> | undefined;
2421
+ name: string;
2422
+ columns: Record<string, {
2423
+ isUnique?: any;
2424
+ default?: any;
2425
+ onUpdate?: boolean | undefined;
2426
+ primaryKey?: boolean | undefined;
2427
+ notNull?: boolean | undefined;
2428
+ autoincrement?: boolean | undefined;
2429
+ uniqueName?: string | undefined;
2430
+ nullsNotDistinct?: boolean | undefined;
2431
+ name: string;
2432
+ type: string;
2433
+ }>;
2434
+ indexes: Record<string, string>;
2435
+ foreignKeys: Record<string, string>;
2436
+ }[];
2437
+ deletedTables: {
2438
+ schema?: string | undefined;
2439
+ compositePrimaryKeys?: Record<string, string> | undefined;
2440
+ uniqueConstraints?: Record<string, string> | undefined;
2441
+ name: string;
2442
+ columns: Record<string, {
2443
+ isUnique?: any;
2444
+ default?: any;
2445
+ onUpdate?: boolean | undefined;
2446
+ primaryKey?: boolean | undefined;
2447
+ notNull?: boolean | undefined;
2448
+ autoincrement?: boolean | undefined;
2449
+ uniqueName?: string | undefined;
2450
+ nullsNotDistinct?: boolean | undefined;
2451
+ name: string;
2452
+ type: string;
2453
+ }>;
2454
+ indexes: Record<string, string>;
2455
+ foreignKeys: Record<string, string>;
2456
+ }[];
2457
+ alteredTablesWithColumns: {
2458
+ name: string;
2459
+ schema: {
2460
+ value?: string | undefined;
2461
+ type: "none";
2462
+ } | {
2463
+ type: "added";
2464
+ value: string;
2465
+ } | {
2466
+ type: "deleted";
2467
+ value: string;
2468
+ } | {
2469
+ type: "changed";
2470
+ old: string;
2471
+ new: string;
2472
+ };
2473
+ added: {
2474
+ isUnique?: any;
2475
+ default?: any;
2476
+ onUpdate?: boolean | undefined;
2477
+ primaryKey?: boolean | undefined;
2478
+ notNull?: boolean | undefined;
2479
+ autoincrement?: boolean | undefined;
2480
+ uniqueName?: string | undefined;
2481
+ nullsNotDistinct?: boolean | undefined;
2482
+ name: string;
2483
+ type: string;
2484
+ }[];
2485
+ deleted: {
2486
+ isUnique?: any;
2487
+ default?: any;
2488
+ onUpdate?: boolean | undefined;
2489
+ primaryKey?: boolean | undefined;
2490
+ notNull?: boolean | undefined;
2491
+ autoincrement?: boolean | undefined;
2492
+ uniqueName?: string | undefined;
2493
+ nullsNotDistinct?: boolean | undefined;
2494
+ name: string;
2495
+ type: string;
2496
+ }[];
2497
+ altered: {
2498
+ default?: {
2499
+ value?: any;
2500
+ type: "added";
2501
+ } | {
2502
+ value?: any;
2503
+ type: "deleted";
2504
+ } | {
2505
+ old?: any;
2506
+ new?: any;
2507
+ type: "changed";
2508
+ } | undefined;
2509
+ type?: {
2510
+ type: "changed";
2511
+ old: string;
2512
+ new: string;
2513
+ } | undefined;
2514
+ onUpdate?: {
2515
+ type: "added";
2516
+ value: boolean;
2517
+ } | {
2518
+ type: "deleted";
2519
+ value: boolean;
2520
+ } | {
2521
+ type: "changed";
2522
+ old: boolean;
2523
+ new: boolean;
2524
+ } | undefined;
2525
+ primaryKey?: {
2526
+ type: "added";
2527
+ value: boolean;
2528
+ } | {
2529
+ type: "deleted";
2530
+ value: boolean;
2531
+ } | {
2532
+ type: "changed";
2533
+ old: boolean;
2534
+ new: boolean;
2535
+ } | undefined;
2536
+ notNull?: {
2537
+ type: "added";
2538
+ value: boolean;
2539
+ } | {
2540
+ type: "deleted";
2541
+ value: boolean;
2542
+ } | {
2543
+ type: "changed";
2544
+ old: boolean;
2545
+ new: boolean;
2546
+ } | undefined;
2547
+ autoincrement?: {
2548
+ type: "added";
2549
+ value: boolean;
2550
+ } | {
2551
+ type: "deleted";
2552
+ value: boolean;
2553
+ } | {
2554
+ type: "changed";
2555
+ old: boolean;
2556
+ new: boolean;
2557
+ } | undefined;
2558
+ name: string | {
2559
+ type: "changed";
2560
+ old: string;
2561
+ new: string;
2562
+ };
2563
+ }[];
2564
+ addedIndexes: Record<string, string>;
2565
+ deletedIndexes: Record<string, string>;
2566
+ alteredIndexes: Record<string, {
2567
+ __old: string;
2568
+ __new: string;
2569
+ }>;
2570
+ addedForeignKeys: Record<string, string>;
2571
+ deletedForeignKeys: Record<string, string>;
2572
+ alteredForeignKeys: Record<string, {
2573
+ __old: string;
2574
+ __new: string;
2575
+ }>;
2576
+ addedCompositePKs: Record<string, string>;
2577
+ deletedCompositePKs: Record<string, string>;
2578
+ alteredCompositePKs: Record<string, {
2579
+ __old: string;
2580
+ __new: string;
2581
+ }>;
2582
+ addedUniqueConstraints: Record<string, string>;
2583
+ deletedUniqueConstraints: Record<string, string>;
2584
+ alteredUniqueConstraints: Record<string, {
2585
+ __old: string;
2586
+ __new: string;
2587
+ }>;
2588
+ }[];
2589
+ addedEnums: {
2590
+ name: string;
2591
+ values: string[];
2592
+ }[];
2593
+ deletedEnums: {
2594
+ name: string;
2595
+ values: string[];
2596
+ }[];
2597
+ alteredEnums: {
2598
+ name: string;
2599
+ addedValues: string[];
2600
+ deletedValues: string[];
2601
+ }[];
2602
+ addedSchemas: string[];
2603
+ deletedSchemas: string[];
2604
+ }>;
2605
+ export type Column = TypeOf<typeof columnSchema>;
2606
+ export type AlteredColumn = TypeOf<typeof alteredColumnSchema>;
2607
+ export type Enum = TypeOf<typeof enumSchema>;
2608
+ export type Table = TypeOf<typeof tableScheme>;
2609
+ export type AlteredTable = TypeOf<typeof alteredTableScheme>;
2610
+ export type DiffResult = TypeOf<typeof diffResultScheme>;
2611
+ export interface TablesResolverInput<T extends {
2612
+ name: string;
2613
+ }> {
2614
+ created: T[];
2615
+ deleted: T[];
2616
+ }
2617
+ export interface TablesResolverOutput<T extends {
2618
+ name: string;
2619
+ }> {
2620
+ created: T[];
2621
+ renamed: {
2622
+ from: T;
2623
+ to: T;
2624
+ }[];
2625
+ deleted: T[];
2626
+ }
2627
+ export interface ColumnsResolverInput<T extends {
2628
+ name: string;
2629
+ }> {
2630
+ tableName: string;
2631
+ schema: string;
2632
+ created: T[];
2633
+ deleted: T[];
2634
+ }
2635
+ export interface ColumnsResolverOutput<T extends {
2636
+ name: string;
2637
+ }> {
2638
+ tableName: string;
2639
+ schema: string;
2640
+ created: T[];
2641
+ renamed: {
2642
+ from: T;
2643
+ to: T;
2644
+ }[];
2645
+ deleted: T[];
2646
+ }
2647
+ export declare const applySnapshotsDiff: (json1: CommonSquashedSchema, json2: CommonSquashedSchema, dialect: Dialect, schemasResolver: (input: TablesResolverInput<{
2648
+ name: string;
2649
+ }>) => Promise<TablesResolverOutput<{
2650
+ name: string;
2651
+ }>>, tablesResolver: (input: TablesResolverInput<Table>) => Promise<TablesResolverOutput<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>, prevFull?: any, curFull?: any) => Promise<{
2652
+ statements: JsonStatement[];
2653
+ sqlStatements: string[];
2654
+ _meta: {
2655
+ schemas: {};
2656
+ tables: {};
2657
+ columns: {};
2658
+ } | undefined;
2659
+ }>;
2660
+ export {};