@astrojs/db 0.7.2 → 0.8.1

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