@astrojs/db 0.11.5 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,24 +120,7 @@ export declare const numberColumnSchema: z.ZodObject<{
120
120
  optional?: false | undefined;
121
121
  default?: undefined;
122
122
  })) & {
123
- references?: {
124
- type: "number";
125
- schema: ({
126
- unique: boolean;
127
- deprecated: boolean;
128
- name?: string | undefined;
129
- label?: string | undefined;
130
- collection?: string | undefined;
131
- } & ({
132
- optional: boolean;
133
- primaryKey: false;
134
- default?: number | SerializedSQL | undefined;
135
- } | {
136
- primaryKey: true;
137
- optional?: false | undefined;
138
- default?: undefined;
139
- })) & any;
140
- } | undefined;
123
+ references?: NumberColumn;
141
124
  }, ZodTypeDef, ({
142
125
  name?: string | undefined;
143
126
  label?: string | undefined;
@@ -153,7 +136,7 @@ export declare const numberColumnSchema: z.ZodObject<{
153
136
  optional?: false | undefined;
154
137
  default?: undefined;
155
138
  })) & {
156
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
139
+ references?: () => z.input<typeof numberColumnSchema>;
157
140
  }>;
158
141
  }, "strip", z.ZodTypeAny, {
159
142
  type: "number";
@@ -172,24 +155,7 @@ export declare const numberColumnSchema: z.ZodObject<{
172
155
  optional?: false | undefined;
173
156
  default?: undefined;
174
157
  })) & {
175
- references?: {
176
- type: "number";
177
- schema: ({
178
- unique: boolean;
179
- deprecated: boolean;
180
- name?: string | undefined;
181
- label?: string | undefined;
182
- collection?: string | undefined;
183
- } & ({
184
- optional: boolean;
185
- primaryKey: false;
186
- default?: number | SerializedSQL | undefined;
187
- } | {
188
- primaryKey: true;
189
- optional?: false | undefined;
190
- default?: undefined;
191
- })) & any;
192
- } | undefined;
158
+ references?: NumberColumn;
193
159
  };
194
160
  }, {
195
161
  type: "number";
@@ -208,7 +174,7 @@ export declare const numberColumnSchema: z.ZodObject<{
208
174
  optional?: false | undefined;
209
175
  default?: undefined;
210
176
  })) & {
211
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
177
+ references?: () => z.input<typeof numberColumnSchema>;
212
178
  };
213
179
  }>;
214
180
  declare const textColumnBaseSchema: z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<Omit<{
@@ -278,24 +244,7 @@ export declare const textColumnSchema: z.ZodObject<{
278
244
  primaryKey: true;
279
245
  optional?: false | undefined;
280
246
  })) & {
281
- references?: {
282
- type: "text";
283
- schema: ({
284
- unique: boolean;
285
- deprecated: boolean;
286
- name?: string | undefined;
287
- label?: string | undefined;
288
- collection?: string | undefined;
289
- default?: string | SerializedSQL | undefined;
290
- multiline?: boolean | undefined;
291
- } & ({
292
- optional: boolean;
293
- primaryKey: false;
294
- } | {
295
- primaryKey: true;
296
- optional?: false | undefined;
297
- })) & any;
298
- } | undefined;
247
+ references?: TextColumn;
299
248
  }, ZodTypeDef, ({
300
249
  name?: string | undefined;
301
250
  label?: string | undefined;
@@ -311,7 +260,7 @@ export declare const textColumnSchema: z.ZodObject<{
311
260
  primaryKey: true;
312
261
  optional?: false | undefined;
313
262
  })) & {
314
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
263
+ references?: () => z.input<typeof textColumnSchema>;
315
264
  }>;
316
265
  }, "strip", z.ZodTypeAny, {
317
266
  type: "text";
@@ -330,24 +279,7 @@ export declare const textColumnSchema: z.ZodObject<{
330
279
  primaryKey: true;
331
280
  optional?: false | undefined;
332
281
  })) & {
333
- references?: {
334
- type: "text";
335
- schema: ({
336
- unique: boolean;
337
- deprecated: boolean;
338
- name?: string | undefined;
339
- label?: string | undefined;
340
- collection?: string | undefined;
341
- default?: string | SerializedSQL | undefined;
342
- multiline?: boolean | undefined;
343
- } & ({
344
- optional: boolean;
345
- primaryKey: false;
346
- } | {
347
- primaryKey: true;
348
- optional?: false | undefined;
349
- })) & any;
350
- } | undefined;
282
+ references?: TextColumn;
351
283
  };
352
284
  }, {
353
285
  type: "text";
@@ -366,7 +298,7 @@ export declare const textColumnSchema: z.ZodObject<{
366
298
  primaryKey: true;
367
299
  optional?: false | undefined;
368
300
  })) & {
369
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
301
+ references?: () => z.input<typeof textColumnSchema>;
370
302
  };
371
303
  }>;
372
304
  export declare const dateColumnSchema: z.ZodObject<{
@@ -538,24 +470,7 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
538
470
  optional?: false | undefined;
539
471
  default?: undefined;
540
472
  })) & {
541
- references?: {
542
- type: "number";
543
- schema: ({
544
- unique: boolean;
545
- deprecated: boolean;
546
- name?: string | undefined;
547
- label?: string | undefined;
548
- collection?: string | undefined;
549
- } & ({
550
- optional: boolean;
551
- primaryKey: false;
552
- default?: number | SerializedSQL | undefined;
553
- } | {
554
- primaryKey: true;
555
- optional?: false | undefined;
556
- default?: undefined;
557
- })) & any;
558
- } | undefined;
473
+ references?: NumberColumn;
559
474
  }, ZodTypeDef, ({
560
475
  name?: string | undefined;
561
476
  label?: string | undefined;
@@ -571,7 +486,7 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
571
486
  optional?: false | undefined;
572
487
  default?: undefined;
573
488
  })) & {
574
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
489
+ references?: () => z.input<typeof numberColumnSchema>;
575
490
  }>;
576
491
  }, "strip", z.ZodTypeAny, {
577
492
  type: "number";
@@ -590,24 +505,7 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
590
505
  optional?: false | undefined;
591
506
  default?: undefined;
592
507
  })) & {
593
- references?: {
594
- type: "number";
595
- schema: ({
596
- unique: boolean;
597
- deprecated: boolean;
598
- name?: string | undefined;
599
- label?: string | undefined;
600
- collection?: string | undefined;
601
- } & ({
602
- optional: boolean;
603
- primaryKey: false;
604
- default?: number | SerializedSQL | undefined;
605
- } | {
606
- primaryKey: true;
607
- optional?: false | undefined;
608
- default?: undefined;
609
- })) & any;
610
- } | undefined;
508
+ references?: NumberColumn;
611
509
  };
612
510
  }, {
613
511
  type: "number";
@@ -626,7 +524,7 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
626
524
  optional?: false | undefined;
627
525
  default?: undefined;
628
526
  })) & {
629
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
527
+ references?: () => z.input<typeof numberColumnSchema>;
630
528
  };
631
529
  }>, z.ZodObject<{
632
530
  type: z.ZodLiteral<"text">;
@@ -645,24 +543,7 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
645
543
  primaryKey: true;
646
544
  optional?: false | undefined;
647
545
  })) & {
648
- references?: {
649
- type: "text";
650
- schema: ({
651
- unique: boolean;
652
- deprecated: boolean;
653
- name?: string | undefined;
654
- label?: string | undefined;
655
- collection?: string | undefined;
656
- default?: string | SerializedSQL | undefined;
657
- multiline?: boolean | undefined;
658
- } & ({
659
- optional: boolean;
660
- primaryKey: false;
661
- } | {
662
- primaryKey: true;
663
- optional?: false | undefined;
664
- })) & any;
665
- } | undefined;
546
+ references?: TextColumn;
666
547
  }, ZodTypeDef, ({
667
548
  name?: string | undefined;
668
549
  label?: string | undefined;
@@ -678,7 +559,7 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
678
559
  primaryKey: true;
679
560
  optional?: false | undefined;
680
561
  })) & {
681
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
562
+ references?: () => z.input<typeof textColumnSchema>;
682
563
  }>;
683
564
  }, "strip", z.ZodTypeAny, {
684
565
  type: "text";
@@ -697,24 +578,7 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
697
578
  primaryKey: true;
698
579
  optional?: false | undefined;
699
580
  })) & {
700
- references?: {
701
- type: "text";
702
- schema: ({
703
- unique: boolean;
704
- deprecated: boolean;
705
- name?: string | undefined;
706
- label?: string | undefined;
707
- collection?: string | undefined;
708
- default?: string | SerializedSQL | undefined;
709
- multiline?: boolean | undefined;
710
- } & ({
711
- optional: boolean;
712
- primaryKey: false;
713
- } | {
714
- primaryKey: true;
715
- optional?: false | undefined;
716
- })) & any;
717
- } | undefined;
581
+ references?: TextColumn;
718
582
  };
719
583
  }, {
720
584
  type: "text";
@@ -733,7 +597,7 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
733
597
  primaryKey: true;
734
598
  optional?: false | undefined;
735
599
  })) & {
736
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
600
+ references?: () => z.input<typeof textColumnSchema>;
737
601
  };
738
602
  }>, z.ZodObject<{
739
603
  type: z.ZodLiteral<"date">;
@@ -853,24 +717,7 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
853
717
  primaryKey: true;
854
718
  optional?: false | undefined;
855
719
  })) & {
856
- references?: {
857
- type: "text";
858
- schema: ({
859
- unique: boolean;
860
- deprecated: boolean;
861
- name?: string | undefined;
862
- label?: string | undefined;
863
- collection?: string | undefined;
864
- default?: string | SerializedSQL | undefined;
865
- multiline?: boolean | undefined;
866
- } & ({
867
- optional: boolean;
868
- primaryKey: false;
869
- } | {
870
- primaryKey: true;
871
- optional?: false | undefined;
872
- })) & any;
873
- } | undefined;
720
+ references?: TextColumn;
874
721
  }, ZodTypeDef, ({
875
722
  name?: string | undefined;
876
723
  label?: string | undefined;
@@ -886,7 +733,7 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
886
733
  primaryKey: true;
887
734
  optional?: false | undefined;
888
735
  })) & {
889
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
736
+ references?: () => z.input<typeof textColumnSchema>;
890
737
  }>;
891
738
  }, "strip", z.ZodTypeAny, {
892
739
  type: "text";
@@ -905,24 +752,7 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
905
752
  primaryKey: true;
906
753
  optional?: false | undefined;
907
754
  })) & {
908
- references?: {
909
- type: "text";
910
- schema: ({
911
- unique: boolean;
912
- deprecated: boolean;
913
- name?: string | undefined;
914
- label?: string | undefined;
915
- collection?: string | undefined;
916
- default?: string | SerializedSQL | undefined;
917
- multiline?: boolean | undefined;
918
- } & ({
919
- optional: boolean;
920
- primaryKey: false;
921
- } | {
922
- primaryKey: true;
923
- optional?: false | undefined;
924
- })) & any;
925
- } | undefined;
755
+ references?: TextColumn;
926
756
  };
927
757
  }, {
928
758
  type: "text";
@@ -941,7 +771,7 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
941
771
  primaryKey: true;
942
772
  optional?: false | undefined;
943
773
  })) & {
944
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
774
+ references?: () => z.input<typeof textColumnSchema>;
945
775
  };
946
776
  }>, z.ZodObject<{
947
777
  type: z.ZodLiteral<"number">;
@@ -960,24 +790,7 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
960
790
  optional?: false | undefined;
961
791
  default?: undefined;
962
792
  })) & {
963
- references?: {
964
- type: "number";
965
- schema: ({
966
- unique: boolean;
967
- deprecated: boolean;
968
- name?: string | undefined;
969
- label?: string | undefined;
970
- collection?: string | undefined;
971
- } & ({
972
- optional: boolean;
973
- primaryKey: false;
974
- default?: number | SerializedSQL | undefined;
975
- } | {
976
- primaryKey: true;
977
- optional?: false | undefined;
978
- default?: undefined;
979
- })) & any;
980
- } | undefined;
793
+ references?: NumberColumn;
981
794
  }, ZodTypeDef, ({
982
795
  name?: string | undefined;
983
796
  label?: string | undefined;
@@ -993,7 +806,7 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
993
806
  optional?: false | undefined;
994
807
  default?: undefined;
995
808
  })) & {
996
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
809
+ references?: () => z.input<typeof numberColumnSchema>;
997
810
  }>;
998
811
  }, "strip", z.ZodTypeAny, {
999
812
  type: "number";
@@ -1012,24 +825,7 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
1012
825
  optional?: false | undefined;
1013
826
  default?: undefined;
1014
827
  })) & {
1015
- references?: {
1016
- type: "number";
1017
- schema: ({
1018
- unique: boolean;
1019
- deprecated: boolean;
1020
- name?: string | undefined;
1021
- label?: string | undefined;
1022
- collection?: string | undefined;
1023
- } & ({
1024
- optional: boolean;
1025
- primaryKey: false;
1026
- default?: number | SerializedSQL | undefined;
1027
- } | {
1028
- primaryKey: true;
1029
- optional?: false | undefined;
1030
- default?: undefined;
1031
- })) & any;
1032
- } | undefined;
828
+ references?: NumberColumn;
1033
829
  };
1034
830
  }, {
1035
831
  type: "number";
@@ -1048,7 +844,7 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
1048
844
  optional?: false | undefined;
1049
845
  default?: undefined;
1050
846
  })) & {
1051
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
847
+ references?: () => z.input<typeof numberColumnSchema>;
1052
848
  };
1053
849
  }>]>;
1054
850
  export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -1118,24 +914,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1118
914
  optional?: false | undefined;
1119
915
  default?: undefined;
1120
916
  })) & {
1121
- references?: {
1122
- type: "number";
1123
- schema: ({
1124
- unique: boolean;
1125
- deprecated: boolean;
1126
- name?: string | undefined;
1127
- label?: string | undefined;
1128
- collection?: string | undefined;
1129
- } & ({
1130
- optional: boolean;
1131
- primaryKey: false;
1132
- default?: number | SerializedSQL | undefined;
1133
- } | {
1134
- primaryKey: true;
1135
- optional?: false | undefined;
1136
- default?: undefined;
1137
- })) & any;
1138
- } | undefined;
917
+ references?: NumberColumn;
1139
918
  }, ZodTypeDef, ({
1140
919
  name?: string | undefined;
1141
920
  label?: string | undefined;
@@ -1151,7 +930,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1151
930
  optional?: false | undefined;
1152
931
  default?: undefined;
1153
932
  })) & {
1154
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
933
+ references?: () => z.input<typeof numberColumnSchema>;
1155
934
  }>;
1156
935
  }, "strip", z.ZodTypeAny, {
1157
936
  type: "number";
@@ -1170,24 +949,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1170
949
  optional?: false | undefined;
1171
950
  default?: undefined;
1172
951
  })) & {
1173
- references?: {
1174
- type: "number";
1175
- schema: ({
1176
- unique: boolean;
1177
- deprecated: boolean;
1178
- name?: string | undefined;
1179
- label?: string | undefined;
1180
- collection?: string | undefined;
1181
- } & ({
1182
- optional: boolean;
1183
- primaryKey: false;
1184
- default?: number | SerializedSQL | undefined;
1185
- } | {
1186
- primaryKey: true;
1187
- optional?: false | undefined;
1188
- default?: undefined;
1189
- })) & any;
1190
- } | undefined;
952
+ references?: NumberColumn;
1191
953
  };
1192
954
  }, {
1193
955
  type: "number";
@@ -1206,7 +968,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1206
968
  optional?: false | undefined;
1207
969
  default?: undefined;
1208
970
  })) & {
1209
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
971
+ references?: () => z.input<typeof numberColumnSchema>;
1210
972
  };
1211
973
  }>, z.ZodObject<{
1212
974
  type: z.ZodLiteral<"text">;
@@ -1225,24 +987,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1225
987
  primaryKey: true;
1226
988
  optional?: false | undefined;
1227
989
  })) & {
1228
- references?: {
1229
- type: "text";
1230
- schema: ({
1231
- unique: boolean;
1232
- deprecated: boolean;
1233
- name?: string | undefined;
1234
- label?: string | undefined;
1235
- collection?: string | undefined;
1236
- default?: string | SerializedSQL | undefined;
1237
- multiline?: boolean | undefined;
1238
- } & ({
1239
- optional: boolean;
1240
- primaryKey: false;
1241
- } | {
1242
- primaryKey: true;
1243
- optional?: false | undefined;
1244
- })) & any;
1245
- } | undefined;
990
+ references?: TextColumn;
1246
991
  }, ZodTypeDef, ({
1247
992
  name?: string | undefined;
1248
993
  label?: string | undefined;
@@ -1258,7 +1003,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1258
1003
  primaryKey: true;
1259
1004
  optional?: false | undefined;
1260
1005
  })) & {
1261
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
1006
+ references?: () => z.input<typeof textColumnSchema>;
1262
1007
  }>;
1263
1008
  }, "strip", z.ZodTypeAny, {
1264
1009
  type: "text";
@@ -1277,24 +1022,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1277
1022
  primaryKey: true;
1278
1023
  optional?: false | undefined;
1279
1024
  })) & {
1280
- references?: {
1281
- type: "text";
1282
- schema: ({
1283
- unique: boolean;
1284
- deprecated: boolean;
1285
- name?: string | undefined;
1286
- label?: string | undefined;
1287
- collection?: string | undefined;
1288
- default?: string | SerializedSQL | undefined;
1289
- multiline?: boolean | undefined;
1290
- } & ({
1291
- optional: boolean;
1292
- primaryKey: false;
1293
- } | {
1294
- primaryKey: true;
1295
- optional?: false | undefined;
1296
- })) & any;
1297
- } | undefined;
1025
+ references?: TextColumn;
1298
1026
  };
1299
1027
  }, {
1300
1028
  type: "text";
@@ -1313,7 +1041,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1313
1041
  primaryKey: true;
1314
1042
  optional?: false | undefined;
1315
1043
  })) & {
1316
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
1044
+ references?: () => z.input<typeof textColumnSchema>;
1317
1045
  };
1318
1046
  }>, z.ZodObject<{
1319
1047
  type: z.ZodLiteral<"date">;
@@ -1514,24 +1242,7 @@ export declare const tableSchema: z.ZodObject<{
1514
1242
  optional?: false | undefined;
1515
1243
  default?: undefined;
1516
1244
  })) & {
1517
- references?: {
1518
- type: "number";
1519
- schema: ({
1520
- unique: boolean;
1521
- deprecated: boolean;
1522
- name?: string | undefined;
1523
- label?: string | undefined;
1524
- collection?: string | undefined;
1525
- } & ({
1526
- optional: boolean;
1527
- primaryKey: false;
1528
- default?: number | SerializedSQL | undefined;
1529
- } | {
1530
- primaryKey: true;
1531
- optional?: false | undefined;
1532
- default?: undefined;
1533
- })) & any;
1534
- } | undefined;
1245
+ references?: NumberColumn;
1535
1246
  }, ZodTypeDef, ({
1536
1247
  name?: string | undefined;
1537
1248
  label?: string | undefined;
@@ -1547,7 +1258,7 @@ export declare const tableSchema: z.ZodObject<{
1547
1258
  optional?: false | undefined;
1548
1259
  default?: undefined;
1549
1260
  })) & {
1550
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
1261
+ references?: () => z.input<typeof numberColumnSchema>;
1551
1262
  }>;
1552
1263
  }, "strip", z.ZodTypeAny, {
1553
1264
  type: "number";
@@ -1565,7 +1276,9 @@ export declare const tableSchema: z.ZodObject<{
1565
1276
  primaryKey: true;
1566
1277
  optional?: false | undefined;
1567
1278
  default?: undefined;
1568
- })) & any;
1279
+ })) & {
1280
+ references?: NumberColumn;
1281
+ };
1569
1282
  }, {
1570
1283
  type: "number";
1571
1284
  schema: ({
@@ -1583,7 +1296,7 @@ export declare const tableSchema: z.ZodObject<{
1583
1296
  optional?: false | undefined;
1584
1297
  default?: undefined;
1585
1298
  })) & {
1586
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
1299
+ references?: () => z.input<typeof numberColumnSchema>;
1587
1300
  };
1588
1301
  }>, z.ZodObject<{
1589
1302
  type: z.ZodLiteral<"text">;
@@ -1602,24 +1315,7 @@ export declare const tableSchema: z.ZodObject<{
1602
1315
  primaryKey: true;
1603
1316
  optional?: false | undefined;
1604
1317
  })) & {
1605
- references?: {
1606
- type: "text";
1607
- schema: ({
1608
- unique: boolean;
1609
- deprecated: boolean;
1610
- name?: string | undefined;
1611
- label?: string | undefined;
1612
- collection?: string | undefined;
1613
- default?: string | SerializedSQL | undefined;
1614
- multiline?: boolean | undefined;
1615
- } & ({
1616
- optional: boolean;
1617
- primaryKey: false;
1618
- } | {
1619
- primaryKey: true;
1620
- optional?: false | undefined;
1621
- })) & any;
1622
- } | undefined;
1318
+ references?: TextColumn;
1623
1319
  }, ZodTypeDef, ({
1624
1320
  name?: string | undefined;
1625
1321
  label?: string | undefined;
@@ -1635,7 +1331,7 @@ export declare const tableSchema: z.ZodObject<{
1635
1331
  primaryKey: true;
1636
1332
  optional?: false | undefined;
1637
1333
  })) & {
1638
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
1334
+ references?: () => z.input<typeof textColumnSchema>;
1639
1335
  }>;
1640
1336
  }, "strip", z.ZodTypeAny, {
1641
1337
  type: "text";
@@ -1653,7 +1349,9 @@ export declare const tableSchema: z.ZodObject<{
1653
1349
  } | {
1654
1350
  primaryKey: true;
1655
1351
  optional?: false | undefined;
1656
- })) & any;
1352
+ })) & {
1353
+ references?: TextColumn;
1354
+ };
1657
1355
  }, {
1658
1356
  type: "text";
1659
1357
  schema: ({
@@ -1671,7 +1369,7 @@ export declare const tableSchema: z.ZodObject<{
1671
1369
  primaryKey: true;
1672
1370
  optional?: false | undefined;
1673
1371
  })) & {
1674
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
1372
+ references?: () => z.input<typeof textColumnSchema>;
1675
1373
  };
1676
1374
  }>, z.ZodObject<{
1677
1375
  type: z.ZodLiteral<"date">;
@@ -1827,7 +1525,9 @@ export declare const tableSchema: z.ZodObject<{
1827
1525
  primaryKey: true;
1828
1526
  optional?: false | undefined;
1829
1527
  default?: undefined;
1830
- })) & any;
1528
+ })) & {
1529
+ references?: NumberColumn;
1530
+ };
1831
1531
  } | {
1832
1532
  type: "text";
1833
1533
  schema: ({
@@ -1844,7 +1544,9 @@ export declare const tableSchema: z.ZodObject<{
1844
1544
  } | {
1845
1545
  primaryKey: true;
1846
1546
  optional?: false | undefined;
1847
- })) & any;
1547
+ })) & {
1548
+ references?: TextColumn;
1549
+ };
1848
1550
  } | {
1849
1551
  type: "date";
1850
1552
  schema: {
@@ -1906,7 +1608,7 @@ export declare const tableSchema: z.ZodObject<{
1906
1608
  optional?: false | undefined;
1907
1609
  default?: undefined;
1908
1610
  })) & {
1909
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
1611
+ references?: () => z.input<typeof numberColumnSchema>;
1910
1612
  };
1911
1613
  } | {
1912
1614
  type: "text";
@@ -1925,7 +1627,7 @@ export declare const tableSchema: z.ZodObject<{
1925
1627
  primaryKey: true;
1926
1628
  optional?: false | undefined;
1927
1629
  })) & {
1928
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
1630
+ references?: () => z.input<typeof textColumnSchema>;
1929
1631
  };
1930
1632
  } | {
1931
1633
  type: "date";
@@ -2029,24 +1731,7 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2029
1731
  optional?: false | undefined;
2030
1732
  default?: undefined;
2031
1733
  })) & {
2032
- references?: {
2033
- type: "number";
2034
- schema: ({
2035
- unique: boolean;
2036
- deprecated: boolean;
2037
- name?: string | undefined;
2038
- label?: string | undefined;
2039
- collection?: string | undefined;
2040
- } & ({
2041
- optional: boolean;
2042
- primaryKey: false;
2043
- default?: number | SerializedSQL | undefined;
2044
- } | {
2045
- primaryKey: true;
2046
- optional?: false | undefined;
2047
- default?: undefined;
2048
- })) & any;
2049
- } | undefined;
1734
+ references?: NumberColumn;
2050
1735
  }, ZodTypeDef, ({
2051
1736
  name?: string | undefined;
2052
1737
  label?: string | undefined;
@@ -2062,7 +1747,7 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2062
1747
  optional?: false | undefined;
2063
1748
  default?: undefined;
2064
1749
  })) & {
2065
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
1750
+ references?: () => z.input<typeof numberColumnSchema>;
2066
1751
  }>;
2067
1752
  }, "strip", z.ZodTypeAny, {
2068
1753
  type: "number";
@@ -2080,7 +1765,9 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2080
1765
  primaryKey: true;
2081
1766
  optional?: false | undefined;
2082
1767
  default?: undefined;
2083
- })) & any;
1768
+ })) & {
1769
+ references?: NumberColumn;
1770
+ };
2084
1771
  }, {
2085
1772
  type: "number";
2086
1773
  schema: ({
@@ -2098,7 +1785,7 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2098
1785
  optional?: false | undefined;
2099
1786
  default?: undefined;
2100
1787
  })) & {
2101
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
1788
+ references?: () => z.input<typeof numberColumnSchema>;
2102
1789
  };
2103
1790
  }>, z.ZodObject<{
2104
1791
  type: z.ZodLiteral<"text">;
@@ -2117,24 +1804,7 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2117
1804
  primaryKey: true;
2118
1805
  optional?: false | undefined;
2119
1806
  })) & {
2120
- references?: {
2121
- type: "text";
2122
- schema: ({
2123
- unique: boolean;
2124
- deprecated: boolean;
2125
- name?: string | undefined;
2126
- label?: string | undefined;
2127
- collection?: string | undefined;
2128
- default?: string | SerializedSQL | undefined;
2129
- multiline?: boolean | undefined;
2130
- } & ({
2131
- optional: boolean;
2132
- primaryKey: false;
2133
- } | {
2134
- primaryKey: true;
2135
- optional?: false | undefined;
2136
- })) & any;
2137
- } | undefined;
1807
+ references?: TextColumn;
2138
1808
  }, ZodTypeDef, ({
2139
1809
  name?: string | undefined;
2140
1810
  label?: string | undefined;
@@ -2150,7 +1820,7 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2150
1820
  primaryKey: true;
2151
1821
  optional?: false | undefined;
2152
1822
  })) & {
2153
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
1823
+ references?: () => z.input<typeof textColumnSchema>;
2154
1824
  }>;
2155
1825
  }, "strip", z.ZodTypeAny, {
2156
1826
  type: "text";
@@ -2168,7 +1838,9 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2168
1838
  } | {
2169
1839
  primaryKey: true;
2170
1840
  optional?: false | undefined;
2171
- })) & any;
1841
+ })) & {
1842
+ references?: TextColumn;
1843
+ };
2172
1844
  }, {
2173
1845
  type: "text";
2174
1846
  schema: ({
@@ -2186,7 +1858,7 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2186
1858
  primaryKey: true;
2187
1859
  optional?: false | undefined;
2188
1860
  })) & {
2189
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
1861
+ references?: () => z.input<typeof textColumnSchema>;
2190
1862
  };
2191
1863
  }>, z.ZodObject<{
2192
1864
  type: z.ZodLiteral<"date">;
@@ -2342,7 +2014,9 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2342
2014
  primaryKey: true;
2343
2015
  optional?: false | undefined;
2344
2016
  default?: undefined;
2345
- })) & any;
2017
+ })) & {
2018
+ references?: NumberColumn;
2019
+ };
2346
2020
  } | {
2347
2021
  type: "text";
2348
2022
  schema: ({
@@ -2359,7 +2033,9 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2359
2033
  } | {
2360
2034
  primaryKey: true;
2361
2035
  optional?: false | undefined;
2362
- })) & any;
2036
+ })) & {
2037
+ references?: TextColumn;
2038
+ };
2363
2039
  } | {
2364
2040
  type: "date";
2365
2041
  schema: {
@@ -2421,7 +2097,7 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2421
2097
  optional?: false | undefined;
2422
2098
  default?: undefined;
2423
2099
  })) & {
2424
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2100
+ references?: () => z.input<typeof numberColumnSchema>;
2425
2101
  };
2426
2102
  } | {
2427
2103
  type: "text";
@@ -2440,7 +2116,7 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2440
2116
  primaryKey: true;
2441
2117
  optional?: false | undefined;
2442
2118
  })) & {
2443
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
2119
+ references?: () => z.input<typeof textColumnSchema>;
2444
2120
  };
2445
2121
  } | {
2446
2122
  type: "date";
@@ -2504,7 +2180,9 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2504
2180
  primaryKey: true;
2505
2181
  optional?: false | undefined;
2506
2182
  default?: undefined;
2507
- })) & any;
2183
+ })) & {
2184
+ references?: NumberColumn;
2185
+ };
2508
2186
  } | {
2509
2187
  type: "text";
2510
2188
  schema: ({
@@ -2521,7 +2199,9 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2521
2199
  } | {
2522
2200
  primaryKey: true;
2523
2201
  optional?: false | undefined;
2524
- })) & any;
2202
+ })) & {
2203
+ references?: TextColumn;
2204
+ };
2525
2205
  } | {
2526
2206
  type: "date";
2527
2207
  schema: {
@@ -2624,24 +2304,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2624
2304
  optional?: false | undefined;
2625
2305
  default?: undefined;
2626
2306
  })) & {
2627
- references?: {
2628
- type: "number";
2629
- schema: ({
2630
- unique: boolean;
2631
- deprecated: boolean;
2632
- name?: string | undefined;
2633
- label?: string | undefined;
2634
- collection?: string | undefined;
2635
- } & ({
2636
- optional: boolean;
2637
- primaryKey: false;
2638
- default?: number | SerializedSQL | undefined;
2639
- } | {
2640
- primaryKey: true;
2641
- optional?: false | undefined;
2642
- default?: undefined;
2643
- })) & any;
2644
- } | undefined;
2307
+ references?: NumberColumn;
2645
2308
  }, ZodTypeDef, ({
2646
2309
  name?: string | undefined;
2647
2310
  label?: string | undefined;
@@ -2657,7 +2320,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2657
2320
  optional?: false | undefined;
2658
2321
  default?: undefined;
2659
2322
  })) & {
2660
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2323
+ references?: () => z.input<typeof numberColumnSchema>;
2661
2324
  }>;
2662
2325
  }, "strip", z.ZodTypeAny, {
2663
2326
  type: "number";
@@ -2675,7 +2338,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2675
2338
  primaryKey: true;
2676
2339
  optional?: false | undefined;
2677
2340
  default?: undefined;
2678
- })) & any;
2341
+ })) & {
2342
+ references?: NumberColumn;
2343
+ };
2679
2344
  }, {
2680
2345
  type: "number";
2681
2346
  schema: ({
@@ -2693,7 +2358,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2693
2358
  optional?: false | undefined;
2694
2359
  default?: undefined;
2695
2360
  })) & {
2696
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2361
+ references?: () => z.input<typeof numberColumnSchema>;
2697
2362
  };
2698
2363
  }>, z.ZodObject<{
2699
2364
  type: z.ZodLiteral<"text">;
@@ -2712,24 +2377,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2712
2377
  primaryKey: true;
2713
2378
  optional?: false | undefined;
2714
2379
  })) & {
2715
- references?: {
2716
- type: "text";
2717
- schema: ({
2718
- unique: boolean;
2719
- deprecated: boolean;
2720
- name?: string | undefined;
2721
- label?: string | undefined;
2722
- collection?: string | undefined;
2723
- default?: string | SerializedSQL | undefined;
2724
- multiline?: boolean | undefined;
2725
- } & ({
2726
- optional: boolean;
2727
- primaryKey: false;
2728
- } | {
2729
- primaryKey: true;
2730
- optional?: false | undefined;
2731
- })) & any;
2732
- } | undefined;
2380
+ references?: TextColumn;
2733
2381
  }, ZodTypeDef, ({
2734
2382
  name?: string | undefined;
2735
2383
  label?: string | undefined;
@@ -2745,7 +2393,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2745
2393
  primaryKey: true;
2746
2394
  optional?: false | undefined;
2747
2395
  })) & {
2748
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
2396
+ references?: () => z.input<typeof textColumnSchema>;
2749
2397
  }>;
2750
2398
  }, "strip", z.ZodTypeAny, {
2751
2399
  type: "text";
@@ -2763,7 +2411,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2763
2411
  } | {
2764
2412
  primaryKey: true;
2765
2413
  optional?: false | undefined;
2766
- })) & any;
2414
+ })) & {
2415
+ references?: TextColumn;
2416
+ };
2767
2417
  }, {
2768
2418
  type: "text";
2769
2419
  schema: ({
@@ -2781,7 +2431,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2781
2431
  primaryKey: true;
2782
2432
  optional?: false | undefined;
2783
2433
  })) & {
2784
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
2434
+ references?: () => z.input<typeof textColumnSchema>;
2785
2435
  };
2786
2436
  }>, z.ZodObject<{
2787
2437
  type: z.ZodLiteral<"date">;
@@ -2937,7 +2587,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2937
2587
  primaryKey: true;
2938
2588
  optional?: false | undefined;
2939
2589
  default?: undefined;
2940
- })) & any;
2590
+ })) & {
2591
+ references?: NumberColumn;
2592
+ };
2941
2593
  } | {
2942
2594
  type: "text";
2943
2595
  schema: ({
@@ -2954,7 +2606,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2954
2606
  } | {
2955
2607
  primaryKey: true;
2956
2608
  optional?: false | undefined;
2957
- })) & any;
2609
+ })) & {
2610
+ references?: TextColumn;
2611
+ };
2958
2612
  } | {
2959
2613
  type: "date";
2960
2614
  schema: {
@@ -3016,7 +2670,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3016
2670
  optional?: false | undefined;
3017
2671
  default?: undefined;
3018
2672
  })) & {
3019
- references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2673
+ references?: () => z.input<typeof numberColumnSchema>;
3020
2674
  };
3021
2675
  } | {
3022
2676
  type: "text";
@@ -3035,7 +2689,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3035
2689
  primaryKey: true;
3036
2690
  optional?: false | undefined;
3037
2691
  })) & {
3038
- references?: (() => z.input<typeof textColumnSchema>) | undefined;
2692
+ references?: () => z.input<typeof textColumnSchema>;
3039
2693
  };
3040
2694
  } | {
3041
2695
  type: "date";
@@ -3099,7 +2753,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3099
2753
  primaryKey: true;
3100
2754
  optional?: false | undefined;
3101
2755
  default?: undefined;
3102
- })) & any;
2756
+ })) & {
2757
+ references?: NumberColumn;
2758
+ };
3103
2759
  } | {
3104
2760
  type: "text";
3105
2761
  schema: ({
@@ -3116,7 +2772,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3116
2772
  } | {
3117
2773
  primaryKey: true;
3118
2774
  optional?: false | undefined;
3119
- })) & any;
2775
+ })) & {
2776
+ references?: TextColumn;
2777
+ };
3120
2778
  } | {
3121
2779
  type: "date";
3122
2780
  schema: {
@@ -3180,7 +2838,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3180
2838
  primaryKey: true;
3181
2839
  optional?: false | undefined;
3182
2840
  default?: undefined;
3183
- })) & any;
2841
+ })) & {
2842
+ references?: NumberColumn;
2843
+ };
3184
2844
  } | {
3185
2845
  type: "text";
3186
2846
  schema: ({
@@ -3197,7 +2857,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3197
2857
  } | {
3198
2858
  primaryKey: true;
3199
2859
  optional?: false | undefined;
3200
- })) & any;
2860
+ })) & {
2861
+ references?: TextColumn;
2862
+ };
3201
2863
  } | {
3202
2864
  type: "date";
3203
2865
  schema: {
@@ -3267,7 +2929,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3267
2929
  primaryKey: true;
3268
2930
  optional?: false | undefined;
3269
2931
  default?: undefined;
3270
- })) & any;
2932
+ })) & {
2933
+ references?: NumberColumn;
2934
+ };
3271
2935
  } | {
3272
2936
  type: "text";
3273
2937
  schema: ({
@@ -3284,7 +2948,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3284
2948
  } | {
3285
2949
  primaryKey: true;
3286
2950
  optional?: false | undefined;
3287
- })) & any;
2951
+ })) & {
2952
+ references?: TextColumn;
2953
+ };
3288
2954
  } | {
3289
2955
  type: "date";
3290
2956
  schema: {