drizzle-kit 0.20.14-c82ab68 → 0.20.14-d8f1e46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/bin.cjs +7142 -7442
  2. package/cli/commands/migrate.d.ts +24 -24
  3. package/cli/commands/mysqlIntrospect.d.ts +8 -8
  4. package/cli/commands/mysqlPushUtils.d.ts +2 -2
  5. package/cli/commands/mysqlUp.d.ts +2 -2
  6. package/cli/commands/pgConnect.d.ts +1 -1
  7. package/cli/commands/pgIntrospect.d.ts +9 -12
  8. package/cli/commands/pgPushUtils.d.ts +2 -2
  9. package/cli/commands/pgUp.d.ts +2 -2
  10. package/cli/commands/sqliteIntrospect.d.ts +9 -9
  11. package/cli/commands/sqlitePushUtils.d.ts +3 -3
  12. package/cli/commands/sqliteUtils.d.ts +162 -0
  13. package/cli/commands/upFolders.d.ts +1 -1
  14. package/cli/commands/utils.d.ts +259 -14
  15. package/cli/validations/common.d.ts +7 -205
  16. package/cli/validations/mysql.d.ts +1 -6
  17. package/cli/validations/pg.d.ts +1 -6
  18. package/cli/views.d.ts +1 -1
  19. package/global.d.ts +1 -1
  20. package/index.d.mts +6 -8
  21. package/index.d.ts +6 -8
  22. package/index.js +0 -1
  23. package/introspect-mysql.d.ts +1 -1
  24. package/introspect-pg.d.ts +2 -5
  25. package/introspect-sqlite.d.ts +1 -1
  26. package/jsonStatements.d.ts +1 -1
  27. package/package.json +2 -3
  28. package/payload.d.mts +988 -18
  29. package/payload.d.ts +988 -18
  30. package/payload.js +1616 -13426
  31. package/payload.mjs +1538 -2213
  32. package/schemaValidator.d.ts +40 -40
  33. package/serializer/mysqlSchema.d.ts +616 -1854
  34. package/serializer/mysqlSerializer.d.ts +2 -2
  35. package/serializer/pgSchema.d.ts +684 -1009
  36. package/serializer/sqliteSchema.d.ts +570 -144
  37. package/serializer/sqliteSerializer.d.ts +2 -2
  38. package/snapshotsDiffer.d.ts +20 -24
  39. package/utils-studio.js +15 -390
  40. package/utils-studio.mjs +15 -389
  41. package/utils.d.ts +12 -12
  42. package/utils.js +735 -849
  43. package/utils.mjs +736 -849
  44. package/cli/validations/cli.d.ts +0 -104
  45. package/cli/validations/sqlite.d.ts +0 -382
@@ -356,6 +356,8 @@ export declare const schemaInternalV3: import("zod").ZodObject<{
356
356
  }>>;
357
357
  enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
358
358
  }, "strict", import("zod").ZodTypeAny, {
359
+ version: "3";
360
+ dialect: "sqlite";
359
361
  tables: Record<string, {
360
362
  name: string;
361
363
  columns: Record<string, {
@@ -382,10 +384,10 @@ export declare const schemaInternalV3: import("zod").ZodObject<{
382
384
  columnsTo: string[];
383
385
  }>;
384
386
  }>;
385
- version: "3";
386
- dialect: "sqlite";
387
387
  enums: {};
388
388
  }, {
389
+ version: "3";
390
+ dialect: "sqlite";
389
391
  tables: Record<string, {
390
392
  name: string;
391
393
  columns: Record<string, {
@@ -412,8 +414,6 @@ export declare const schemaInternalV3: import("zod").ZodObject<{
412
414
  columnsTo: string[];
413
415
  }>;
414
416
  }>;
415
- version: "3";
416
- dialect: "sqlite";
417
417
  enums: {};
418
418
  }>;
419
419
  export declare const schemaInternalV4: import("zod").ZodObject<{
@@ -573,6 +573,8 @@ export declare const schemaInternalV4: import("zod").ZodObject<{
573
573
  }>>;
574
574
  enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
575
575
  }, "strict", import("zod").ZodTypeAny, {
576
+ version: "4";
577
+ dialect: "sqlite";
576
578
  tables: Record<string, {
577
579
  name: string;
578
580
  columns: Record<string, {
@@ -607,10 +609,10 @@ export declare const schemaInternalV4: import("zod").ZodObject<{
607
609
  columns: string[];
608
610
  }>;
609
611
  }>;
610
- version: "4";
611
- dialect: "sqlite";
612
612
  enums: {};
613
613
  }, {
614
+ version: "4";
615
+ dialect: "sqlite";
614
616
  tables: Record<string, {
615
617
  uniqueConstraints?: Record<string, {
616
618
  name: string;
@@ -645,8 +647,6 @@ export declare const schemaInternalV4: import("zod").ZodObject<{
645
647
  columns: string[];
646
648
  }>;
647
649
  }>;
648
- version: "4";
649
- dialect: "sqlite";
650
650
  enums: {};
651
651
  }>;
652
652
  export declare const schemaInternal: import("zod").ZodObject<{
@@ -816,6 +816,8 @@ export declare const schemaInternal: import("zod").ZodObject<{
816
816
  tables: Record<string, string>;
817
817
  }>;
818
818
  }, "strict", import("zod").ZodTypeAny, {
819
+ version: "5";
820
+ dialect: "sqlite";
819
821
  tables: Record<string, {
820
822
  name: string;
821
823
  columns: Record<string, {
@@ -850,14 +852,14 @@ export declare const schemaInternal: import("zod").ZodObject<{
850
852
  columns: string[];
851
853
  }>;
852
854
  }>;
853
- version: "5";
854
- dialect: "sqlite";
855
855
  _meta: {
856
856
  columns: Record<string, string>;
857
857
  tables: Record<string, string>;
858
858
  };
859
859
  enums: {};
860
860
  }, {
861
+ version: "5";
862
+ dialect: "sqlite";
861
863
  tables: Record<string, {
862
864
  uniqueConstraints?: Record<string, {
863
865
  name: string;
@@ -892,8 +894,6 @@ export declare const schemaInternal: import("zod").ZodObject<{
892
894
  columns: string[];
893
895
  }>;
894
896
  }>;
895
- version: "5";
896
- dialect: "sqlite";
897
897
  _meta: {
898
898
  columns: Record<string, string>;
899
899
  tables: Record<string, string>;
@@ -1024,6 +1024,10 @@ export declare const schemaV3: import("zod").ZodObject<import("zod").extendShape
1024
1024
  id: import("zod").ZodString;
1025
1025
  prevId: import("zod").ZodString;
1026
1026
  }>, "strict", import("zod").ZodTypeAny, {
1027
+ id: string;
1028
+ prevId: string;
1029
+ version: "3";
1030
+ dialect: "sqlite";
1027
1031
  tables: Record<string, {
1028
1032
  name: string;
1029
1033
  columns: Record<string, {
@@ -1050,12 +1054,12 @@ export declare const schemaV3: import("zod").ZodObject<import("zod").extendShape
1050
1054
  columnsTo: string[];
1051
1055
  }>;
1052
1056
  }>;
1057
+ enums: {};
1058
+ }, {
1053
1059
  id: string;
1054
1060
  prevId: string;
1055
1061
  version: "3";
1056
1062
  dialect: "sqlite";
1057
- enums: {};
1058
- }, {
1059
1063
  tables: Record<string, {
1060
1064
  name: string;
1061
1065
  columns: Record<string, {
@@ -1082,10 +1086,6 @@ export declare const schemaV3: import("zod").ZodObject<import("zod").extendShape
1082
1086
  columnsTo: string[];
1083
1087
  }>;
1084
1088
  }>;
1085
- id: string;
1086
- prevId: string;
1087
- version: "3";
1088
- dialect: "sqlite";
1089
1089
  enums: {};
1090
1090
  }>;
1091
1091
  export declare const schemaV4: import("zod").ZodObject<import("zod").extendShape<{
@@ -1248,6 +1248,10 @@ export declare const schemaV4: import("zod").ZodObject<import("zod").extendShape
1248
1248
  id: import("zod").ZodString;
1249
1249
  prevId: import("zod").ZodString;
1250
1250
  }>, "strict", import("zod").ZodTypeAny, {
1251
+ id: string;
1252
+ prevId: string;
1253
+ version: "4";
1254
+ dialect: "sqlite";
1251
1255
  tables: Record<string, {
1252
1256
  name: string;
1253
1257
  columns: Record<string, {
@@ -1282,12 +1286,12 @@ export declare const schemaV4: import("zod").ZodObject<import("zod").extendShape
1282
1286
  columns: string[];
1283
1287
  }>;
1284
1288
  }>;
1289
+ enums: {};
1290
+ }, {
1285
1291
  id: string;
1286
1292
  prevId: string;
1287
1293
  version: "4";
1288
1294
  dialect: "sqlite";
1289
- enums: {};
1290
- }, {
1291
1295
  tables: Record<string, {
1292
1296
  uniqueConstraints?: Record<string, {
1293
1297
  name: string;
@@ -1322,10 +1326,6 @@ export declare const schemaV4: import("zod").ZodObject<import("zod").extendShape
1322
1326
  columns: string[];
1323
1327
  }>;
1324
1328
  }>;
1325
- id: string;
1326
- prevId: string;
1327
- version: "4";
1328
- dialect: "sqlite";
1329
1329
  enums: {};
1330
1330
  }>;
1331
1331
  export declare const schema: import("zod").ZodObject<import("zod").extendShape<{
@@ -1498,6 +1498,10 @@ export declare const schema: import("zod").ZodObject<import("zod").extendShape<{
1498
1498
  id: import("zod").ZodString;
1499
1499
  prevId: import("zod").ZodString;
1500
1500
  }>, "strict", import("zod").ZodTypeAny, {
1501
+ id: string;
1502
+ prevId: string;
1503
+ version: "5";
1504
+ dialect: "sqlite";
1501
1505
  tables: Record<string, {
1502
1506
  name: string;
1503
1507
  columns: Record<string, {
@@ -1532,16 +1536,16 @@ export declare const schema: import("zod").ZodObject<import("zod").extendShape<{
1532
1536
  columns: string[];
1533
1537
  }>;
1534
1538
  }>;
1535
- id: string;
1536
- prevId: string;
1537
- version: "5";
1538
- dialect: "sqlite";
1539
1539
  _meta: {
1540
1540
  columns: Record<string, string>;
1541
1541
  tables: Record<string, string>;
1542
1542
  };
1543
1543
  enums: {};
1544
1544
  }, {
1545
+ id: string;
1546
+ prevId: string;
1547
+ version: "5";
1548
+ dialect: "sqlite";
1545
1549
  tables: Record<string, {
1546
1550
  uniqueConstraints?: Record<string, {
1547
1551
  name: string;
@@ -1576,10 +1580,6 @@ export declare const schema: import("zod").ZodObject<import("zod").extendShape<{
1576
1580
  columns: string[];
1577
1581
  }>;
1578
1582
  }>;
1579
- id: string;
1580
- prevId: string;
1581
- version: "5";
1582
- dialect: "sqlite";
1583
1583
  _meta: {
1584
1584
  columns: Record<string, string>;
1585
1585
  tables: Record<string, string>;
@@ -1649,6 +1649,8 @@ export declare const schemaSquashed: import("zod").ZodObject<{
1649
1649
  enums: import("zod").ZodAny;
1650
1650
  }, "strict", import("zod").ZodTypeAny, {
1651
1651
  enums?: any;
1652
+ version: "5";
1653
+ dialect: "sqlite";
1652
1654
  tables: Record<string, {
1653
1655
  name: string;
1654
1656
  columns: Record<string, {
@@ -1664,10 +1666,10 @@ export declare const schemaSquashed: import("zod").ZodObject<{
1664
1666
  compositePrimaryKeys: Record<string, string>;
1665
1667
  uniqueConstraints: Record<string, string>;
1666
1668
  }>;
1667
- version: "5";
1668
- dialect: "sqlite";
1669
1669
  }, {
1670
1670
  enums?: any;
1671
+ version: "5";
1672
+ dialect: "sqlite";
1671
1673
  tables: Record<string, {
1672
1674
  uniqueConstraints?: Record<string, string> | undefined;
1673
1675
  name: string;
@@ -1683,8 +1685,6 @@ export declare const schemaSquashed: import("zod").ZodObject<{
1683
1685
  foreignKeys: Record<string, string>;
1684
1686
  compositePrimaryKeys: Record<string, string>;
1685
1687
  }>;
1686
- version: "5";
1687
- dialect: "sqlite";
1688
1688
  }>;
1689
1689
  export type Dialect = TypeOf<typeof dialect>;
1690
1690
  export type Column = TypeOf<typeof column>;
@@ -1710,6 +1710,10 @@ export declare const SQLiteSquasher: {
1710
1710
  };
1711
1711
  export declare const squashSqliteScheme: (json: SQLiteSchema | SQLiteSchemaV4) => SQLiteSchemaSquashed;
1712
1712
  export declare const drySQLite: {
1713
+ id: string;
1714
+ prevId: string;
1715
+ version: "5";
1716
+ dialect: "sqlite";
1713
1717
  tables: Record<string, {
1714
1718
  name: string;
1715
1719
  columns: Record<string, {
@@ -1744,10 +1748,6 @@ export declare const drySQLite: {
1744
1748
  columns: string[];
1745
1749
  }>;
1746
1750
  }>;
1747
- id: string;
1748
- prevId: string;
1749
- version: "5";
1750
- dialect: "sqlite";
1751
1751
  _meta: {
1752
1752
  columns: Record<string, string>;
1753
1753
  tables: Record<string, string>;
@@ -1878,6 +1878,10 @@ export declare const sqliteSchemaV3: import("zod").ZodObject<import("zod").exten
1878
1878
  id: import("zod").ZodString;
1879
1879
  prevId: import("zod").ZodString;
1880
1880
  }>, "strict", import("zod").ZodTypeAny, {
1881
+ id: string;
1882
+ prevId: string;
1883
+ version: "3";
1884
+ dialect: "sqlite";
1881
1885
  tables: Record<string, {
1882
1886
  name: string;
1883
1887
  columns: Record<string, {
@@ -1904,12 +1908,12 @@ export declare const sqliteSchemaV3: import("zod").ZodObject<import("zod").exten
1904
1908
  columnsTo: string[];
1905
1909
  }>;
1906
1910
  }>;
1911
+ enums: {};
1912
+ }, {
1907
1913
  id: string;
1908
1914
  prevId: string;
1909
1915
  version: "3";
1910
1916
  dialect: "sqlite";
1911
- enums: {};
1912
- }, {
1913
1917
  tables: Record<string, {
1914
1918
  name: string;
1915
1919
  columns: Record<string, {
@@ -1936,10 +1940,6 @@ export declare const sqliteSchemaV3: import("zod").ZodObject<import("zod").exten
1936
1940
  columnsTo: string[];
1937
1941
  }>;
1938
1942
  }>;
1939
- id: string;
1940
- prevId: string;
1941
- version: "3";
1942
- dialect: "sqlite";
1943
1943
  enums: {};
1944
1944
  }>;
1945
1945
  export declare const sqliteSchemaV4: import("zod").ZodObject<import("zod").extendShape<{
@@ -2102,6 +2102,10 @@ export declare const sqliteSchemaV4: import("zod").ZodObject<import("zod").exten
2102
2102
  id: import("zod").ZodString;
2103
2103
  prevId: import("zod").ZodString;
2104
2104
  }>, "strict", import("zod").ZodTypeAny, {
2105
+ id: string;
2106
+ prevId: string;
2107
+ version: "4";
2108
+ dialect: "sqlite";
2105
2109
  tables: Record<string, {
2106
2110
  name: string;
2107
2111
  columns: Record<string, {
@@ -2136,12 +2140,12 @@ export declare const sqliteSchemaV4: import("zod").ZodObject<import("zod").exten
2136
2140
  columns: string[];
2137
2141
  }>;
2138
2142
  }>;
2143
+ enums: {};
2144
+ }, {
2139
2145
  id: string;
2140
2146
  prevId: string;
2141
2147
  version: "4";
2142
2148
  dialect: "sqlite";
2143
- enums: {};
2144
- }, {
2145
2149
  tables: Record<string, {
2146
2150
  uniqueConstraints?: Record<string, {
2147
2151
  name: string;
@@ -2176,10 +2180,6 @@ export declare const sqliteSchemaV4: import("zod").ZodObject<import("zod").exten
2176
2180
  columns: string[];
2177
2181
  }>;
2178
2182
  }>;
2179
- id: string;
2180
- prevId: string;
2181
- version: "4";
2182
- dialect: "sqlite";
2183
2183
  enums: {};
2184
2184
  }>;
2185
2185
  export declare const sqliteSchema: import("zod").ZodObject<import("zod").extendShape<{
@@ -2352,6 +2352,10 @@ export declare const sqliteSchema: import("zod").ZodObject<import("zod").extendS
2352
2352
  id: import("zod").ZodString;
2353
2353
  prevId: import("zod").ZodString;
2354
2354
  }>, "strict", import("zod").ZodTypeAny, {
2355
+ id: string;
2356
+ prevId: string;
2357
+ version: "5";
2358
+ dialect: "sqlite";
2355
2359
  tables: Record<string, {
2356
2360
  name: string;
2357
2361
  columns: Record<string, {
@@ -2386,16 +2390,16 @@ export declare const sqliteSchema: import("zod").ZodObject<import("zod").extendS
2386
2390
  columns: string[];
2387
2391
  }>;
2388
2392
  }>;
2389
- id: string;
2390
- prevId: string;
2391
- version: "5";
2392
- dialect: "sqlite";
2393
2393
  _meta: {
2394
2394
  columns: Record<string, string>;
2395
2395
  tables: Record<string, string>;
2396
2396
  };
2397
2397
  enums: {};
2398
2398
  }, {
2399
+ id: string;
2400
+ prevId: string;
2401
+ version: "5";
2402
+ dialect: "sqlite";
2399
2403
  tables: Record<string, {
2400
2404
  uniqueConstraints?: Record<string, {
2401
2405
  name: string;
@@ -2430,10 +2434,6 @@ export declare const sqliteSchema: import("zod").ZodObject<import("zod").extendS
2430
2434
  columns: string[];
2431
2435
  }>;
2432
2436
  }>;
2433
- id: string;
2434
- prevId: string;
2435
- version: "5";
2436
- dialect: "sqlite";
2437
2437
  _meta: {
2438
2438
  columns: Record<string, string>;
2439
2439
  tables: Record<string, string>;
@@ -2503,6 +2503,8 @@ export declare const SQLiteSchemaSquashed: import("zod").ZodObject<{
2503
2503
  enums: import("zod").ZodAny;
2504
2504
  }, "strict", import("zod").ZodTypeAny, {
2505
2505
  enums?: any;
2506
+ version: "5";
2507
+ dialect: "sqlite";
2506
2508
  tables: Record<string, {
2507
2509
  name: string;
2508
2510
  columns: Record<string, {
@@ -2518,10 +2520,10 @@ export declare const SQLiteSchemaSquashed: import("zod").ZodObject<{
2518
2520
  compositePrimaryKeys: Record<string, string>;
2519
2521
  uniqueConstraints: Record<string, string>;
2520
2522
  }>;
2521
- version: "5";
2522
- dialect: "sqlite";
2523
2523
  }, {
2524
2524
  enums?: any;
2525
+ version: "5";
2526
+ dialect: "sqlite";
2525
2527
  tables: Record<string, {
2526
2528
  uniqueConstraints?: Record<string, string> | undefined;
2527
2529
  name: string;
@@ -2537,11 +2539,9 @@ export declare const SQLiteSchemaSquashed: import("zod").ZodObject<{
2537
2539
  foreignKeys: Record<string, string>;
2538
2540
  compositePrimaryKeys: Record<string, string>;
2539
2541
  }>;
2540
- version: "5";
2541
- dialect: "sqlite";
2542
2542
  }>;
2543
- export declare const backwardCompatibleSqliteSchema: import("zod").ZodObject<import("zod").extendShape<{
2544
- version: import("zod").ZodLiteral<"5">;
2543
+ export declare const backwardCompatibleSqliteSchema: import("zod").ZodUnion<[import("zod").ZodObject<import("zod").extendShape<{
2544
+ version: import("zod").ZodLiteral<"3">;
2545
2545
  dialect: import("zod").ZodEnum<["sqlite"]>;
2546
2546
  tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2547
2547
  name: import("zod").ZodString;
@@ -2608,26 +2608,6 @@ export declare const backwardCompatibleSqliteSchema: import("zod").ZodObject<imp
2608
2608
  tableTo: string;
2609
2609
  columnsTo: string[];
2610
2610
  }>>;
2611
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2612
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2613
- name: import("zod").ZodOptional<import("zod").ZodString>;
2614
- }, "strict", import("zod").ZodTypeAny, {
2615
- name?: string | undefined;
2616
- columns: string[];
2617
- }, {
2618
- name?: string | undefined;
2619
- columns: string[];
2620
- }>>;
2621
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2622
- name: import("zod").ZodString;
2623
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2624
- }, "strict", import("zod").ZodTypeAny, {
2625
- name: string;
2626
- columns: string[];
2627
- }, {
2628
- name: string;
2629
- columns: string[];
2630
- }>>>;
2631
2611
  }, "strict", import("zod").ZodTypeAny, {
2632
2612
  name: string;
2633
2613
  columns: Record<string, {
@@ -2653,19 +2633,7 @@ export declare const backwardCompatibleSqliteSchema: import("zod").ZodObject<imp
2653
2633
  tableTo: string;
2654
2634
  columnsTo: string[];
2655
2635
  }>;
2656
- compositePrimaryKeys: Record<string, {
2657
- name?: string | undefined;
2658
- columns: string[];
2659
- }>;
2660
- uniqueConstraints: Record<string, {
2661
- name: string;
2662
- columns: string[];
2663
- }>;
2664
2636
  }, {
2665
- uniqueConstraints?: Record<string, {
2666
- name: string;
2667
- columns: string[];
2668
- }> | undefined;
2669
2637
  name: string;
2670
2638
  columns: Record<string, {
2671
2639
  default?: any;
@@ -2690,26 +2658,16 @@ export declare const backwardCompatibleSqliteSchema: import("zod").ZodObject<imp
2690
2658
  tableTo: string;
2691
2659
  columnsTo: string[];
2692
2660
  }>;
2693
- compositePrimaryKeys: Record<string, {
2694
- name?: string | undefined;
2695
- columns: string[];
2696
- }>;
2697
2661
  }>>;
2698
2662
  enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
2699
- _meta: import("zod").ZodObject<{
2700
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2701
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2702
- }, "strip", import("zod").ZodTypeAny, {
2703
- columns: Record<string, string>;
2704
- tables: Record<string, string>;
2705
- }, {
2706
- columns: Record<string, string>;
2707
- tables: Record<string, string>;
2708
- }>;
2709
2663
  }, {
2710
2664
  id: import("zod").ZodString;
2711
2665
  prevId: import("zod").ZodString;
2712
2666
  }>, "strict", import("zod").ZodTypeAny, {
2667
+ id: string;
2668
+ prevId: string;
2669
+ version: "3";
2670
+ dialect: "sqlite";
2713
2671
  tables: Record<string, {
2714
2672
  name: string;
2715
2673
  columns: Record<string, {
@@ -2735,30 +2693,14 @@ export declare const backwardCompatibleSqliteSchema: import("zod").ZodObject<imp
2735
2693
  tableTo: string;
2736
2694
  columnsTo: string[];
2737
2695
  }>;
2738
- compositePrimaryKeys: Record<string, {
2739
- name?: string | undefined;
2740
- columns: string[];
2741
- }>;
2742
- uniqueConstraints: Record<string, {
2743
- name: string;
2744
- columns: string[];
2745
- }>;
2746
2696
  }>;
2697
+ enums: {};
2698
+ }, {
2747
2699
  id: string;
2748
2700
  prevId: string;
2749
- version: "5";
2701
+ version: "3";
2750
2702
  dialect: "sqlite";
2751
- _meta: {
2752
- columns: Record<string, string>;
2753
- tables: Record<string, string>;
2754
- };
2755
- enums: {};
2756
- }, {
2757
2703
  tables: Record<string, {
2758
- uniqueConstraints?: Record<string, {
2759
- name: string;
2760
- columns: string[];
2761
- }> | undefined;
2762
2704
  name: string;
2763
2705
  columns: Record<string, {
2764
2706
  default?: any;
@@ -2783,19 +2725,503 @@ export declare const backwardCompatibleSqliteSchema: import("zod").ZodObject<imp
2783
2725
  tableTo: string;
2784
2726
  columnsTo: string[];
2785
2727
  }>;
2786
- compositePrimaryKeys: Record<string, {
2787
- name?: string | undefined;
2788
- columns: string[];
2789
- }>;
2790
2728
  }>;
2791
- id: string;
2792
- prevId: string;
2793
- version: "5";
2794
- dialect: "sqlite";
2795
- _meta: {
2796
- columns: Record<string, string>;
2797
- tables: Record<string, string>;
2798
- };
2799
2729
  enums: {};
2800
- }>;
2730
+ }>, import("zod").ZodObject<import("zod").extendShape<{
2731
+ version: import("zod").ZodLiteral<"4">;
2732
+ dialect: import("zod").ZodEnum<["sqlite"]>;
2733
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2734
+ name: import("zod").ZodString;
2735
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2736
+ name: import("zod").ZodString;
2737
+ type: import("zod").ZodString;
2738
+ primaryKey: import("zod").ZodBoolean;
2739
+ notNull: import("zod").ZodBoolean;
2740
+ autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
2741
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
2742
+ }, "strict", import("zod").ZodTypeAny, {
2743
+ default?: any;
2744
+ autoincrement?: boolean | undefined;
2745
+ name: string;
2746
+ type: string;
2747
+ primaryKey: boolean;
2748
+ notNull: boolean;
2749
+ }, {
2750
+ default?: any;
2751
+ autoincrement?: boolean | undefined;
2752
+ name: string;
2753
+ type: string;
2754
+ primaryKey: boolean;
2755
+ notNull: boolean;
2756
+ }>>;
2757
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2758
+ name: import("zod").ZodString;
2759
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2760
+ where: import("zod").ZodOptional<import("zod").ZodString>;
2761
+ isUnique: import("zod").ZodBoolean;
2762
+ }, "strict", import("zod").ZodTypeAny, {
2763
+ where?: string | undefined;
2764
+ name: string;
2765
+ columns: string[];
2766
+ isUnique: boolean;
2767
+ }, {
2768
+ where?: string | undefined;
2769
+ name: string;
2770
+ columns: string[];
2771
+ isUnique: boolean;
2772
+ }>>;
2773
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2774
+ name: import("zod").ZodString;
2775
+ tableFrom: import("zod").ZodString;
2776
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
2777
+ tableTo: import("zod").ZodString;
2778
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
2779
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
2780
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
2781
+ }, "strict", import("zod").ZodTypeAny, {
2782
+ onUpdate?: string | undefined;
2783
+ onDelete?: string | undefined;
2784
+ name: string;
2785
+ tableFrom: string;
2786
+ columnsFrom: string[];
2787
+ tableTo: string;
2788
+ columnsTo: string[];
2789
+ }, {
2790
+ onUpdate?: string | undefined;
2791
+ onDelete?: string | undefined;
2792
+ name: string;
2793
+ tableFrom: string;
2794
+ columnsFrom: string[];
2795
+ tableTo: string;
2796
+ columnsTo: string[];
2797
+ }>>;
2798
+ compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2799
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2800
+ name: import("zod").ZodOptional<import("zod").ZodString>;
2801
+ }, "strict", import("zod").ZodTypeAny, {
2802
+ name?: string | undefined;
2803
+ columns: string[];
2804
+ }, {
2805
+ name?: string | undefined;
2806
+ columns: string[];
2807
+ }>>;
2808
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2809
+ name: import("zod").ZodString;
2810
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2811
+ }, "strict", import("zod").ZodTypeAny, {
2812
+ name: string;
2813
+ columns: string[];
2814
+ }, {
2815
+ name: string;
2816
+ columns: string[];
2817
+ }>>>;
2818
+ }, "strict", import("zod").ZodTypeAny, {
2819
+ name: string;
2820
+ columns: Record<string, {
2821
+ default?: any;
2822
+ autoincrement?: boolean | undefined;
2823
+ name: string;
2824
+ type: string;
2825
+ primaryKey: boolean;
2826
+ notNull: boolean;
2827
+ }>;
2828
+ indexes: Record<string, {
2829
+ where?: string | undefined;
2830
+ name: string;
2831
+ columns: string[];
2832
+ isUnique: boolean;
2833
+ }>;
2834
+ foreignKeys: Record<string, {
2835
+ onUpdate?: string | undefined;
2836
+ onDelete?: string | undefined;
2837
+ name: string;
2838
+ tableFrom: string;
2839
+ columnsFrom: string[];
2840
+ tableTo: string;
2841
+ columnsTo: string[];
2842
+ }>;
2843
+ compositePrimaryKeys: Record<string, {
2844
+ name?: string | undefined;
2845
+ columns: string[];
2846
+ }>;
2847
+ uniqueConstraints: Record<string, {
2848
+ name: string;
2849
+ columns: string[];
2850
+ }>;
2851
+ }, {
2852
+ uniqueConstraints?: Record<string, {
2853
+ name: string;
2854
+ columns: string[];
2855
+ }> | undefined;
2856
+ name: string;
2857
+ columns: Record<string, {
2858
+ default?: any;
2859
+ autoincrement?: boolean | undefined;
2860
+ name: string;
2861
+ type: string;
2862
+ primaryKey: boolean;
2863
+ notNull: boolean;
2864
+ }>;
2865
+ indexes: Record<string, {
2866
+ where?: string | undefined;
2867
+ name: string;
2868
+ columns: string[];
2869
+ isUnique: boolean;
2870
+ }>;
2871
+ foreignKeys: Record<string, {
2872
+ onUpdate?: string | undefined;
2873
+ onDelete?: string | undefined;
2874
+ name: string;
2875
+ tableFrom: string;
2876
+ columnsFrom: string[];
2877
+ tableTo: string;
2878
+ columnsTo: string[];
2879
+ }>;
2880
+ compositePrimaryKeys: Record<string, {
2881
+ name?: string | undefined;
2882
+ columns: string[];
2883
+ }>;
2884
+ }>>;
2885
+ enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
2886
+ }, {
2887
+ id: import("zod").ZodString;
2888
+ prevId: import("zod").ZodString;
2889
+ }>, "strict", import("zod").ZodTypeAny, {
2890
+ id: string;
2891
+ prevId: string;
2892
+ version: "4";
2893
+ dialect: "sqlite";
2894
+ tables: Record<string, {
2895
+ name: string;
2896
+ columns: Record<string, {
2897
+ default?: any;
2898
+ autoincrement?: boolean | undefined;
2899
+ name: string;
2900
+ type: string;
2901
+ primaryKey: boolean;
2902
+ notNull: boolean;
2903
+ }>;
2904
+ indexes: Record<string, {
2905
+ where?: string | undefined;
2906
+ name: string;
2907
+ columns: string[];
2908
+ isUnique: boolean;
2909
+ }>;
2910
+ foreignKeys: Record<string, {
2911
+ onUpdate?: string | undefined;
2912
+ onDelete?: string | undefined;
2913
+ name: string;
2914
+ tableFrom: string;
2915
+ columnsFrom: string[];
2916
+ tableTo: string;
2917
+ columnsTo: string[];
2918
+ }>;
2919
+ compositePrimaryKeys: Record<string, {
2920
+ name?: string | undefined;
2921
+ columns: string[];
2922
+ }>;
2923
+ uniqueConstraints: Record<string, {
2924
+ name: string;
2925
+ columns: string[];
2926
+ }>;
2927
+ }>;
2928
+ enums: {};
2929
+ }, {
2930
+ id: string;
2931
+ prevId: string;
2932
+ version: "4";
2933
+ dialect: "sqlite";
2934
+ tables: Record<string, {
2935
+ uniqueConstraints?: Record<string, {
2936
+ name: string;
2937
+ columns: string[];
2938
+ }> | undefined;
2939
+ name: string;
2940
+ columns: Record<string, {
2941
+ default?: any;
2942
+ autoincrement?: boolean | undefined;
2943
+ name: string;
2944
+ type: string;
2945
+ primaryKey: boolean;
2946
+ notNull: boolean;
2947
+ }>;
2948
+ indexes: Record<string, {
2949
+ where?: string | undefined;
2950
+ name: string;
2951
+ columns: string[];
2952
+ isUnique: boolean;
2953
+ }>;
2954
+ foreignKeys: Record<string, {
2955
+ onUpdate?: string | undefined;
2956
+ onDelete?: string | undefined;
2957
+ name: string;
2958
+ tableFrom: string;
2959
+ columnsFrom: string[];
2960
+ tableTo: string;
2961
+ columnsTo: string[];
2962
+ }>;
2963
+ compositePrimaryKeys: Record<string, {
2964
+ name?: string | undefined;
2965
+ columns: string[];
2966
+ }>;
2967
+ }>;
2968
+ enums: {};
2969
+ }>, import("zod").ZodObject<import("zod").extendShape<{
2970
+ version: import("zod").ZodLiteral<"5">;
2971
+ dialect: import("zod").ZodEnum<["sqlite"]>;
2972
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2973
+ name: import("zod").ZodString;
2974
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2975
+ name: import("zod").ZodString;
2976
+ type: import("zod").ZodString;
2977
+ primaryKey: import("zod").ZodBoolean;
2978
+ notNull: import("zod").ZodBoolean;
2979
+ autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
2980
+ default: import("zod").ZodOptional<import("zod").ZodAny>;
2981
+ }, "strict", import("zod").ZodTypeAny, {
2982
+ default?: any;
2983
+ autoincrement?: boolean | undefined;
2984
+ name: string;
2985
+ type: string;
2986
+ primaryKey: boolean;
2987
+ notNull: boolean;
2988
+ }, {
2989
+ default?: any;
2990
+ autoincrement?: boolean | undefined;
2991
+ name: string;
2992
+ type: string;
2993
+ primaryKey: boolean;
2994
+ notNull: boolean;
2995
+ }>>;
2996
+ indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2997
+ name: import("zod").ZodString;
2998
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2999
+ where: import("zod").ZodOptional<import("zod").ZodString>;
3000
+ isUnique: import("zod").ZodBoolean;
3001
+ }, "strict", import("zod").ZodTypeAny, {
3002
+ where?: string | undefined;
3003
+ name: string;
3004
+ columns: string[];
3005
+ isUnique: boolean;
3006
+ }, {
3007
+ where?: string | undefined;
3008
+ name: string;
3009
+ columns: string[];
3010
+ isUnique: boolean;
3011
+ }>>;
3012
+ foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3013
+ name: import("zod").ZodString;
3014
+ tableFrom: import("zod").ZodString;
3015
+ columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
3016
+ tableTo: import("zod").ZodString;
3017
+ columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
3018
+ onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
3019
+ onDelete: import("zod").ZodOptional<import("zod").ZodString>;
3020
+ }, "strict", import("zod").ZodTypeAny, {
3021
+ onUpdate?: string | undefined;
3022
+ onDelete?: string | undefined;
3023
+ name: string;
3024
+ tableFrom: string;
3025
+ columnsFrom: string[];
3026
+ tableTo: string;
3027
+ columnsTo: string[];
3028
+ }, {
3029
+ onUpdate?: string | undefined;
3030
+ onDelete?: string | undefined;
3031
+ name: string;
3032
+ tableFrom: string;
3033
+ columnsFrom: string[];
3034
+ tableTo: string;
3035
+ columnsTo: string[];
3036
+ }>>;
3037
+ compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3038
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3039
+ name: import("zod").ZodOptional<import("zod").ZodString>;
3040
+ }, "strict", import("zod").ZodTypeAny, {
3041
+ name?: string | undefined;
3042
+ columns: string[];
3043
+ }, {
3044
+ name?: string | undefined;
3045
+ columns: string[];
3046
+ }>>;
3047
+ uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3048
+ name: import("zod").ZodString;
3049
+ columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3050
+ }, "strict", import("zod").ZodTypeAny, {
3051
+ name: string;
3052
+ columns: string[];
3053
+ }, {
3054
+ name: string;
3055
+ columns: string[];
3056
+ }>>>;
3057
+ }, "strict", import("zod").ZodTypeAny, {
3058
+ name: string;
3059
+ columns: Record<string, {
3060
+ default?: any;
3061
+ autoincrement?: boolean | undefined;
3062
+ name: string;
3063
+ type: string;
3064
+ primaryKey: boolean;
3065
+ notNull: boolean;
3066
+ }>;
3067
+ indexes: Record<string, {
3068
+ where?: string | undefined;
3069
+ name: string;
3070
+ columns: string[];
3071
+ isUnique: boolean;
3072
+ }>;
3073
+ foreignKeys: Record<string, {
3074
+ onUpdate?: string | undefined;
3075
+ onDelete?: string | undefined;
3076
+ name: string;
3077
+ tableFrom: string;
3078
+ columnsFrom: string[];
3079
+ tableTo: string;
3080
+ columnsTo: string[];
3081
+ }>;
3082
+ compositePrimaryKeys: Record<string, {
3083
+ name?: string | undefined;
3084
+ columns: string[];
3085
+ }>;
3086
+ uniqueConstraints: Record<string, {
3087
+ name: string;
3088
+ columns: string[];
3089
+ }>;
3090
+ }, {
3091
+ uniqueConstraints?: Record<string, {
3092
+ name: string;
3093
+ columns: string[];
3094
+ }> | undefined;
3095
+ name: string;
3096
+ columns: Record<string, {
3097
+ default?: any;
3098
+ autoincrement?: boolean | undefined;
3099
+ name: string;
3100
+ type: string;
3101
+ primaryKey: boolean;
3102
+ notNull: boolean;
3103
+ }>;
3104
+ indexes: Record<string, {
3105
+ where?: string | undefined;
3106
+ name: string;
3107
+ columns: string[];
3108
+ isUnique: boolean;
3109
+ }>;
3110
+ foreignKeys: Record<string, {
3111
+ onUpdate?: string | undefined;
3112
+ onDelete?: string | undefined;
3113
+ name: string;
3114
+ tableFrom: string;
3115
+ columnsFrom: string[];
3116
+ tableTo: string;
3117
+ columnsTo: string[];
3118
+ }>;
3119
+ compositePrimaryKeys: Record<string, {
3120
+ name?: string | undefined;
3121
+ columns: string[];
3122
+ }>;
3123
+ }>>;
3124
+ enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
3125
+ _meta: import("zod").ZodObject<{
3126
+ tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3127
+ columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3128
+ }, "strip", import("zod").ZodTypeAny, {
3129
+ columns: Record<string, string>;
3130
+ tables: Record<string, string>;
3131
+ }, {
3132
+ columns: Record<string, string>;
3133
+ tables: Record<string, string>;
3134
+ }>;
3135
+ }, {
3136
+ id: import("zod").ZodString;
3137
+ prevId: import("zod").ZodString;
3138
+ }>, "strict", import("zod").ZodTypeAny, {
3139
+ id: string;
3140
+ prevId: string;
3141
+ version: "5";
3142
+ dialect: "sqlite";
3143
+ tables: Record<string, {
3144
+ name: string;
3145
+ columns: Record<string, {
3146
+ default?: any;
3147
+ autoincrement?: boolean | undefined;
3148
+ name: string;
3149
+ type: string;
3150
+ primaryKey: boolean;
3151
+ notNull: boolean;
3152
+ }>;
3153
+ indexes: Record<string, {
3154
+ where?: string | undefined;
3155
+ name: string;
3156
+ columns: string[];
3157
+ isUnique: boolean;
3158
+ }>;
3159
+ foreignKeys: Record<string, {
3160
+ onUpdate?: string | undefined;
3161
+ onDelete?: string | undefined;
3162
+ name: string;
3163
+ tableFrom: string;
3164
+ columnsFrom: string[];
3165
+ tableTo: string;
3166
+ columnsTo: string[];
3167
+ }>;
3168
+ compositePrimaryKeys: Record<string, {
3169
+ name?: string | undefined;
3170
+ columns: string[];
3171
+ }>;
3172
+ uniqueConstraints: Record<string, {
3173
+ name: string;
3174
+ columns: string[];
3175
+ }>;
3176
+ }>;
3177
+ _meta: {
3178
+ columns: Record<string, string>;
3179
+ tables: Record<string, string>;
3180
+ };
3181
+ enums: {};
3182
+ }, {
3183
+ id: string;
3184
+ prevId: string;
3185
+ version: "5";
3186
+ dialect: "sqlite";
3187
+ tables: Record<string, {
3188
+ uniqueConstraints?: Record<string, {
3189
+ name: string;
3190
+ columns: string[];
3191
+ }> | undefined;
3192
+ name: string;
3193
+ columns: Record<string, {
3194
+ default?: any;
3195
+ autoincrement?: boolean | undefined;
3196
+ name: string;
3197
+ type: string;
3198
+ primaryKey: boolean;
3199
+ notNull: boolean;
3200
+ }>;
3201
+ indexes: Record<string, {
3202
+ where?: string | undefined;
3203
+ name: string;
3204
+ columns: string[];
3205
+ isUnique: boolean;
3206
+ }>;
3207
+ foreignKeys: Record<string, {
3208
+ onUpdate?: string | undefined;
3209
+ onDelete?: string | undefined;
3210
+ name: string;
3211
+ tableFrom: string;
3212
+ columnsFrom: string[];
3213
+ tableTo: string;
3214
+ columnsTo: string[];
3215
+ }>;
3216
+ compositePrimaryKeys: Record<string, {
3217
+ name?: string | undefined;
3218
+ columns: string[];
3219
+ }>;
3220
+ }>;
3221
+ _meta: {
3222
+ columns: Record<string, string>;
3223
+ tables: Record<string, string>;
3224
+ };
3225
+ enums: {};
3226
+ }>]>;
2801
3227
  export {};