drizzle-kit 0.26.0 → 0.26.2-05e88e4

Sign up to get free protection for your applications and to get access to all the features.
package/api.d.mts CHANGED
@@ -219,7 +219,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
219
219
  value: string;
220
220
  }> | undefined;
221
221
  }>>;
222
- views: zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
222
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
223
223
  name: zod.ZodString;
224
224
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
225
225
  name: zod.ZodString;
@@ -310,7 +310,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
310
310
  isExisting: boolean;
311
311
  withCheckOption?: "local" | "cascaded" | undefined;
312
312
  definition?: string | undefined;
313
- }>>;
313
+ }>>>;
314
314
  _meta: zod.ZodObject<{
315
315
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
316
316
  columns: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -523,7 +523,19 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
523
523
  columns: Record<string, string>;
524
524
  tables: Record<string, string>;
525
525
  };
526
- views: Record<string, {
526
+ internal?: {
527
+ indexes?: Record<string, {
528
+ columns: Record<string, {
529
+ isExpression?: boolean | undefined;
530
+ } | undefined>;
531
+ } | undefined> | undefined;
532
+ tables?: Record<string, {
533
+ columns: Record<string, {
534
+ isDefaultAnExpression?: boolean | undefined;
535
+ } | undefined>;
536
+ } | undefined> | undefined;
537
+ } | undefined;
538
+ views?: Record<string, {
527
539
  name: string;
528
540
  columns: Record<string, {
529
541
  name: string;
@@ -543,19 +555,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
543
555
  isExisting: boolean;
544
556
  withCheckOption?: "local" | "cascaded" | undefined;
545
557
  definition?: string | undefined;
546
- }>;
547
- internal?: {
548
- indexes?: Record<string, {
549
- columns: Record<string, {
550
- isExpression?: boolean | undefined;
551
- } | undefined>;
552
- } | undefined> | undefined;
553
- tables?: Record<string, {
554
- columns: Record<string, {
555
- isDefaultAnExpression?: boolean | undefined;
556
- } | undefined>;
557
- } | undefined> | undefined;
558
- } | undefined;
558
+ }> | undefined;
559
559
  }>;
560
560
  type MySqlSchema = TypeOf<typeof schema$1>;
561
561
 
@@ -774,6 +774,28 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
774
774
  columns: string[];
775
775
  nullsNotDistinct: boolean;
776
776
  }>>>;
777
+ policies: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
778
+ name: zod.ZodString;
779
+ as: zod.ZodOptional<zod.ZodEnum<["PERMISSIVE", "RESTRICTIVE"]>>;
780
+ for: zod.ZodOptional<zod.ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
781
+ to: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
782
+ using: zod.ZodOptional<zod.ZodString>;
783
+ withCheck: zod.ZodOptional<zod.ZodString>;
784
+ }, "strict", zod.ZodTypeAny, {
785
+ name: string;
786
+ using?: string | undefined;
787
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
788
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
789
+ to?: string[] | undefined;
790
+ withCheck?: string | undefined;
791
+ }, {
792
+ name: string;
793
+ using?: string | undefined;
794
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
795
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
796
+ to?: string[] | undefined;
797
+ withCheck?: string | undefined;
798
+ }>>>;
777
799
  checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
778
800
  name: zod.ZodString;
779
801
  value: zod.ZodString;
@@ -784,6 +806,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
784
806
  name: string;
785
807
  value: string;
786
808
  }>>>;
809
+ isRLSEnabled: zod.ZodDefault<zod.ZodBoolean>;
787
810
  }, "strict", zod.ZodTypeAny, {
788
811
  name: string;
789
812
  columns: Record<string, {
@@ -851,6 +874,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
851
874
  name: string;
852
875
  value: string;
853
876
  }>;
877
+ policies: Record<string, {
878
+ name: string;
879
+ using?: string | undefined;
880
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
881
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
882
+ to?: string[] | undefined;
883
+ withCheck?: string | undefined;
884
+ }>;
885
+ isRLSEnabled: boolean;
854
886
  }, {
855
887
  name: string;
856
888
  columns: Record<string, {
@@ -918,6 +950,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
918
950
  name: string;
919
951
  value: string;
920
952
  }> | undefined;
953
+ policies?: Record<string, {
954
+ name: string;
955
+ using?: string | undefined;
956
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
957
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
958
+ to?: string[] | undefined;
959
+ withCheck?: string | undefined;
960
+ }> | undefined;
961
+ isRLSEnabled?: boolean | undefined;
921
962
  }>>;
922
963
  enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
923
964
  name: zod.ZodString;
@@ -1258,6 +1299,22 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1258
1299
  cache?: string | undefined;
1259
1300
  cycle?: boolean | undefined;
1260
1301
  }>>>;
1302
+ roles: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1303
+ name: zod.ZodString;
1304
+ createDb: zod.ZodOptional<zod.ZodBoolean>;
1305
+ createRole: zod.ZodOptional<zod.ZodBoolean>;
1306
+ inherit: zod.ZodOptional<zod.ZodBoolean>;
1307
+ }, "strict", zod.ZodTypeAny, {
1308
+ name: string;
1309
+ createDb?: boolean | undefined;
1310
+ createRole?: boolean | undefined;
1311
+ inherit?: boolean | undefined;
1312
+ }, {
1313
+ name: string;
1314
+ createDb?: boolean | undefined;
1315
+ createRole?: boolean | undefined;
1316
+ inherit?: boolean | undefined;
1317
+ }>>>;
1261
1318
  _meta: zod.ZodObject<{
1262
1319
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
1263
1320
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -1394,6 +1451,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1394
1451
  name: string;
1395
1452
  value: string;
1396
1453
  }>;
1454
+ policies: Record<string, {
1455
+ name: string;
1456
+ using?: string | undefined;
1457
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1458
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1459
+ to?: string[] | undefined;
1460
+ withCheck?: string | undefined;
1461
+ }>;
1462
+ isRLSEnabled: boolean;
1397
1463
  }>;
1398
1464
  id: string;
1399
1465
  prevId: string;
@@ -1479,6 +1545,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1479
1545
  cache?: string | undefined;
1480
1546
  cycle?: boolean | undefined;
1481
1547
  }>;
1548
+ roles: Record<string, {
1549
+ name: string;
1550
+ createDb?: boolean | undefined;
1551
+ createRole?: boolean | undefined;
1552
+ inherit?: boolean | undefined;
1553
+ }>;
1482
1554
  internal?: {
1483
1555
  tables: Record<string, {
1484
1556
  columns: Record<string, {
@@ -1557,6 +1629,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1557
1629
  name: string;
1558
1630
  value: string;
1559
1631
  }> | undefined;
1632
+ policies?: Record<string, {
1633
+ name: string;
1634
+ using?: string | undefined;
1635
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1636
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1637
+ to?: string[] | undefined;
1638
+ withCheck?: string | undefined;
1639
+ }> | undefined;
1640
+ isRLSEnabled?: boolean | undefined;
1560
1641
  }>;
1561
1642
  id: string;
1562
1643
  prevId: string;
@@ -1652,6 +1733,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1652
1733
  cache?: string | undefined;
1653
1734
  cycle?: boolean | undefined;
1654
1735
  }> | undefined;
1736
+ roles?: Record<string, {
1737
+ name: string;
1738
+ createDb?: boolean | undefined;
1739
+ createRole?: boolean | undefined;
1740
+ inherit?: boolean | undefined;
1741
+ }> | undefined;
1655
1742
  }>;
1656
1743
  type PgSchema = TypeOf<typeof pgSchema>;
1657
1744
 
@@ -1854,7 +1941,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1854
1941
  value: string;
1855
1942
  }> | undefined;
1856
1943
  }>>;
1857
- views: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1944
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1858
1945
  name: zod.ZodString;
1859
1946
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1860
1947
  name: zod.ZodString;
@@ -1930,7 +2017,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1930
2017
  }>;
1931
2018
  isExisting: boolean;
1932
2019
  definition?: string | undefined;
1933
- }>>;
2020
+ }>>>;
1934
2021
  enums: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
1935
2022
  _meta: zod.ZodObject<{
1936
2023
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -2103,7 +2190,15 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2103
2190
  columns: Record<string, string>;
2104
2191
  tables: Record<string, string>;
2105
2192
  };
2106
- views: Record<string, {
2193
+ enums: {};
2194
+ internal?: {
2195
+ indexes?: Record<string, {
2196
+ columns: Record<string, {
2197
+ isExpression?: boolean | undefined;
2198
+ } | undefined>;
2199
+ } | undefined> | undefined;
2200
+ } | undefined;
2201
+ views?: Record<string, {
2107
2202
  name: string;
2108
2203
  columns: Record<string, {
2109
2204
  name: string;
@@ -2119,15 +2214,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2119
2214
  }>;
2120
2215
  isExisting: boolean;
2121
2216
  definition?: string | undefined;
2122
- }>;
2123
- enums: {};
2124
- internal?: {
2125
- indexes?: Record<string, {
2126
- columns: Record<string, {
2127
- isExpression?: boolean | undefined;
2128
- } | undefined>;
2129
- } | undefined> | undefined;
2130
- } | undefined;
2217
+ }> | undefined;
2131
2218
  }>;
2132
2219
  type SQLiteSchema = TypeOf<typeof schema>;
2133
2220
 
@@ -2224,10 +2311,19 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2224
2311
  columns: string[];
2225
2312
  nullsNotDistinct: boolean;
2226
2313
  }>;
2314
+ policies: Record<string, {
2315
+ name: string;
2316
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2317
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2318
+ to?: string[] | undefined;
2319
+ using?: string | undefined;
2320
+ withCheck?: string | undefined;
2321
+ }>;
2227
2322
  checkConstraints: Record<string, {
2228
2323
  value: string;
2229
2324
  name: string;
2230
2325
  }>;
2326
+ isRLSEnabled: boolean;
2231
2327
  }>;
2232
2328
  enums: Record<string, {
2233
2329
  values: string[];
@@ -2289,9 +2385,9 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2289
2385
  logAutovacuumMinDuration?: number | undefined;
2290
2386
  userCatalogTable?: boolean | undefined;
2291
2387
  } | undefined;
2388
+ using?: string | undefined;
2292
2389
  definition?: string | undefined;
2293
2390
  withNoData?: boolean | undefined;
2294
- using?: string | undefined;
2295
2391
  tablespace?: string | undefined;
2296
2392
  }>;
2297
2393
  sequences: Record<string, {
@@ -2304,6 +2400,12 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2304
2400
  cache?: string | undefined;
2305
2401
  cycle?: boolean | undefined;
2306
2402
  }>;
2403
+ roles: Record<string, {
2404
+ name: string;
2405
+ createDb?: boolean | undefined;
2406
+ createRole?: boolean | undefined;
2407
+ inherit?: boolean | undefined;
2408
+ }>;
2307
2409
  _meta: {
2308
2410
  tables: Record<string, string>;
2309
2411
  columns: Record<string, string>;
package/api.d.ts CHANGED
@@ -219,7 +219,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
219
219
  value: string;
220
220
  }> | undefined;
221
221
  }>>;
222
- views: zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
222
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
223
223
  name: zod.ZodString;
224
224
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
225
225
  name: zod.ZodString;
@@ -310,7 +310,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
310
310
  isExisting: boolean;
311
311
  withCheckOption?: "local" | "cascaded" | undefined;
312
312
  definition?: string | undefined;
313
- }>>;
313
+ }>>>;
314
314
  _meta: zod.ZodObject<{
315
315
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
316
316
  columns: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -523,7 +523,19 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
523
523
  columns: Record<string, string>;
524
524
  tables: Record<string, string>;
525
525
  };
526
- views: Record<string, {
526
+ internal?: {
527
+ indexes?: Record<string, {
528
+ columns: Record<string, {
529
+ isExpression?: boolean | undefined;
530
+ } | undefined>;
531
+ } | undefined> | undefined;
532
+ tables?: Record<string, {
533
+ columns: Record<string, {
534
+ isDefaultAnExpression?: boolean | undefined;
535
+ } | undefined>;
536
+ } | undefined> | undefined;
537
+ } | undefined;
538
+ views?: Record<string, {
527
539
  name: string;
528
540
  columns: Record<string, {
529
541
  name: string;
@@ -543,19 +555,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
543
555
  isExisting: boolean;
544
556
  withCheckOption?: "local" | "cascaded" | undefined;
545
557
  definition?: string | undefined;
546
- }>;
547
- internal?: {
548
- indexes?: Record<string, {
549
- columns: Record<string, {
550
- isExpression?: boolean | undefined;
551
- } | undefined>;
552
- } | undefined> | undefined;
553
- tables?: Record<string, {
554
- columns: Record<string, {
555
- isDefaultAnExpression?: boolean | undefined;
556
- } | undefined>;
557
- } | undefined> | undefined;
558
- } | undefined;
558
+ }> | undefined;
559
559
  }>;
560
560
  type MySqlSchema = TypeOf<typeof schema$1>;
561
561
 
@@ -774,6 +774,28 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
774
774
  columns: string[];
775
775
  nullsNotDistinct: boolean;
776
776
  }>>>;
777
+ policies: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
778
+ name: zod.ZodString;
779
+ as: zod.ZodOptional<zod.ZodEnum<["PERMISSIVE", "RESTRICTIVE"]>>;
780
+ for: zod.ZodOptional<zod.ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
781
+ to: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
782
+ using: zod.ZodOptional<zod.ZodString>;
783
+ withCheck: zod.ZodOptional<zod.ZodString>;
784
+ }, "strict", zod.ZodTypeAny, {
785
+ name: string;
786
+ using?: string | undefined;
787
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
788
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
789
+ to?: string[] | undefined;
790
+ withCheck?: string | undefined;
791
+ }, {
792
+ name: string;
793
+ using?: string | undefined;
794
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
795
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
796
+ to?: string[] | undefined;
797
+ withCheck?: string | undefined;
798
+ }>>>;
777
799
  checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
778
800
  name: zod.ZodString;
779
801
  value: zod.ZodString;
@@ -784,6 +806,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
784
806
  name: string;
785
807
  value: string;
786
808
  }>>>;
809
+ isRLSEnabled: zod.ZodDefault<zod.ZodBoolean>;
787
810
  }, "strict", zod.ZodTypeAny, {
788
811
  name: string;
789
812
  columns: Record<string, {
@@ -851,6 +874,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
851
874
  name: string;
852
875
  value: string;
853
876
  }>;
877
+ policies: Record<string, {
878
+ name: string;
879
+ using?: string | undefined;
880
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
881
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
882
+ to?: string[] | undefined;
883
+ withCheck?: string | undefined;
884
+ }>;
885
+ isRLSEnabled: boolean;
854
886
  }, {
855
887
  name: string;
856
888
  columns: Record<string, {
@@ -918,6 +950,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
918
950
  name: string;
919
951
  value: string;
920
952
  }> | undefined;
953
+ policies?: Record<string, {
954
+ name: string;
955
+ using?: string | undefined;
956
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
957
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
958
+ to?: string[] | undefined;
959
+ withCheck?: string | undefined;
960
+ }> | undefined;
961
+ isRLSEnabled?: boolean | undefined;
921
962
  }>>;
922
963
  enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
923
964
  name: zod.ZodString;
@@ -1258,6 +1299,22 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1258
1299
  cache?: string | undefined;
1259
1300
  cycle?: boolean | undefined;
1260
1301
  }>>>;
1302
+ roles: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1303
+ name: zod.ZodString;
1304
+ createDb: zod.ZodOptional<zod.ZodBoolean>;
1305
+ createRole: zod.ZodOptional<zod.ZodBoolean>;
1306
+ inherit: zod.ZodOptional<zod.ZodBoolean>;
1307
+ }, "strict", zod.ZodTypeAny, {
1308
+ name: string;
1309
+ createDb?: boolean | undefined;
1310
+ createRole?: boolean | undefined;
1311
+ inherit?: boolean | undefined;
1312
+ }, {
1313
+ name: string;
1314
+ createDb?: boolean | undefined;
1315
+ createRole?: boolean | undefined;
1316
+ inherit?: boolean | undefined;
1317
+ }>>>;
1261
1318
  _meta: zod.ZodObject<{
1262
1319
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
1263
1320
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -1394,6 +1451,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1394
1451
  name: string;
1395
1452
  value: string;
1396
1453
  }>;
1454
+ policies: Record<string, {
1455
+ name: string;
1456
+ using?: string | undefined;
1457
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1458
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1459
+ to?: string[] | undefined;
1460
+ withCheck?: string | undefined;
1461
+ }>;
1462
+ isRLSEnabled: boolean;
1397
1463
  }>;
1398
1464
  id: string;
1399
1465
  prevId: string;
@@ -1479,6 +1545,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1479
1545
  cache?: string | undefined;
1480
1546
  cycle?: boolean | undefined;
1481
1547
  }>;
1548
+ roles: Record<string, {
1549
+ name: string;
1550
+ createDb?: boolean | undefined;
1551
+ createRole?: boolean | undefined;
1552
+ inherit?: boolean | undefined;
1553
+ }>;
1482
1554
  internal?: {
1483
1555
  tables: Record<string, {
1484
1556
  columns: Record<string, {
@@ -1557,6 +1629,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1557
1629
  name: string;
1558
1630
  value: string;
1559
1631
  }> | undefined;
1632
+ policies?: Record<string, {
1633
+ name: string;
1634
+ using?: string | undefined;
1635
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1636
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1637
+ to?: string[] | undefined;
1638
+ withCheck?: string | undefined;
1639
+ }> | undefined;
1640
+ isRLSEnabled?: boolean | undefined;
1560
1641
  }>;
1561
1642
  id: string;
1562
1643
  prevId: string;
@@ -1652,6 +1733,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1652
1733
  cache?: string | undefined;
1653
1734
  cycle?: boolean | undefined;
1654
1735
  }> | undefined;
1736
+ roles?: Record<string, {
1737
+ name: string;
1738
+ createDb?: boolean | undefined;
1739
+ createRole?: boolean | undefined;
1740
+ inherit?: boolean | undefined;
1741
+ }> | undefined;
1655
1742
  }>;
1656
1743
  type PgSchema = TypeOf<typeof pgSchema>;
1657
1744
 
@@ -1854,7 +1941,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1854
1941
  value: string;
1855
1942
  }> | undefined;
1856
1943
  }>>;
1857
- views: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1944
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1858
1945
  name: zod.ZodString;
1859
1946
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1860
1947
  name: zod.ZodString;
@@ -1930,7 +2017,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1930
2017
  }>;
1931
2018
  isExisting: boolean;
1932
2019
  definition?: string | undefined;
1933
- }>>;
2020
+ }>>>;
1934
2021
  enums: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
1935
2022
  _meta: zod.ZodObject<{
1936
2023
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -2103,7 +2190,15 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2103
2190
  columns: Record<string, string>;
2104
2191
  tables: Record<string, string>;
2105
2192
  };
2106
- views: Record<string, {
2193
+ enums: {};
2194
+ internal?: {
2195
+ indexes?: Record<string, {
2196
+ columns: Record<string, {
2197
+ isExpression?: boolean | undefined;
2198
+ } | undefined>;
2199
+ } | undefined> | undefined;
2200
+ } | undefined;
2201
+ views?: Record<string, {
2107
2202
  name: string;
2108
2203
  columns: Record<string, {
2109
2204
  name: string;
@@ -2119,15 +2214,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2119
2214
  }>;
2120
2215
  isExisting: boolean;
2121
2216
  definition?: string | undefined;
2122
- }>;
2123
- enums: {};
2124
- internal?: {
2125
- indexes?: Record<string, {
2126
- columns: Record<string, {
2127
- isExpression?: boolean | undefined;
2128
- } | undefined>;
2129
- } | undefined> | undefined;
2130
- } | undefined;
2217
+ }> | undefined;
2131
2218
  }>;
2132
2219
  type SQLiteSchema = TypeOf<typeof schema>;
2133
2220
 
@@ -2224,10 +2311,19 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2224
2311
  columns: string[];
2225
2312
  nullsNotDistinct: boolean;
2226
2313
  }>;
2314
+ policies: Record<string, {
2315
+ name: string;
2316
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2317
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2318
+ to?: string[] | undefined;
2319
+ using?: string | undefined;
2320
+ withCheck?: string | undefined;
2321
+ }>;
2227
2322
  checkConstraints: Record<string, {
2228
2323
  value: string;
2229
2324
  name: string;
2230
2325
  }>;
2326
+ isRLSEnabled: boolean;
2231
2327
  }>;
2232
2328
  enums: Record<string, {
2233
2329
  values: string[];
@@ -2289,9 +2385,9 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2289
2385
  logAutovacuumMinDuration?: number | undefined;
2290
2386
  userCatalogTable?: boolean | undefined;
2291
2387
  } | undefined;
2388
+ using?: string | undefined;
2292
2389
  definition?: string | undefined;
2293
2390
  withNoData?: boolean | undefined;
2294
- using?: string | undefined;
2295
2391
  tablespace?: string | undefined;
2296
2392
  }>;
2297
2393
  sequences: Record<string, {
@@ -2304,6 +2400,12 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2304
2400
  cache?: string | undefined;
2305
2401
  cycle?: boolean | undefined;
2306
2402
  }>;
2403
+ roles: Record<string, {
2404
+ name: string;
2405
+ createDb?: boolean | undefined;
2406
+ createRole?: boolean | undefined;
2407
+ inherit?: boolean | undefined;
2408
+ }>;
2307
2409
  _meta: {
2308
2410
  tables: Record<string, string>;
2309
2411
  columns: Record<string, string>;