@astrojs/db 0.0.0-10646-20240402132948

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.
Files changed (78) hide show
  1. package/LICENSE +59 -0
  2. package/README.md +38 -0
  3. package/dist/_internal/core/integration/error-map.d.ts +6 -0
  4. package/dist/_internal/core/schemas.d.ts +4034 -0
  5. package/dist/_internal/core/types.d.ts +59 -0
  6. package/dist/_internal/core/utils.d.ts +20 -0
  7. package/dist/_internal/runtime/config.d.ts +154 -0
  8. package/dist/_internal/runtime/types.d.ts +69 -0
  9. package/dist/core/cli/commands/execute/index.d.ts +8 -0
  10. package/dist/core/cli/commands/execute/index.js +66 -0
  11. package/dist/core/cli/commands/link/index.d.ts +20 -0
  12. package/dist/core/cli/commands/link/index.js +252 -0
  13. package/dist/core/cli/commands/login/index.d.ts +8 -0
  14. package/dist/core/cli/commands/login/index.js +55 -0
  15. package/dist/core/cli/commands/logout/index.d.ts +1 -0
  16. package/dist/core/cli/commands/logout/index.js +9 -0
  17. package/dist/core/cli/commands/push/index.d.ts +8 -0
  18. package/dist/core/cli/commands/push/index.js +93 -0
  19. package/dist/core/cli/commands/shell/index.d.ts +8 -0
  20. package/dist/core/cli/commands/shell/index.js +33 -0
  21. package/dist/core/cli/commands/verify/index.d.ts +8 -0
  22. package/dist/core/cli/commands/verify/index.js +46 -0
  23. package/dist/core/cli/index.d.ts +6 -0
  24. package/dist/core/cli/index.js +76 -0
  25. package/dist/core/cli/migration-queries.d.ts +23 -0
  26. package/dist/core/cli/migration-queries.js +386 -0
  27. package/dist/core/cli/print-help.d.ts +11 -0
  28. package/dist/core/cli/print-help.js +55 -0
  29. package/dist/core/consts.d.ts +8 -0
  30. package/dist/core/consts.js +21 -0
  31. package/dist/core/errors.d.ts +10 -0
  32. package/dist/core/errors.js +56 -0
  33. package/dist/core/integration/error-map.d.ts +6 -0
  34. package/dist/core/integration/error-map.js +79 -0
  35. package/dist/core/integration/file-url.d.ts +2 -0
  36. package/dist/core/integration/file-url.js +81 -0
  37. package/dist/core/integration/index.d.ts +2 -0
  38. package/dist/core/integration/index.js +160 -0
  39. package/dist/core/integration/typegen.d.ts +7 -0
  40. package/dist/core/integration/typegen.js +33 -0
  41. package/dist/core/integration/vite-plugin-db.d.ts +39 -0
  42. package/dist/core/integration/vite-plugin-db.js +134 -0
  43. package/dist/core/integration/vite-plugin-inject-env-ts.d.ts +11 -0
  44. package/dist/core/integration/vite-plugin-inject-env-ts.js +53 -0
  45. package/dist/core/load-file.d.ts +253 -0
  46. package/dist/core/load-file.js +170 -0
  47. package/dist/core/schemas.d.ts +4034 -0
  48. package/dist/core/schemas.js +186 -0
  49. package/dist/core/tokens.d.ts +11 -0
  50. package/dist/core/tokens.js +181 -0
  51. package/dist/core/types.d.ts +59 -0
  52. package/dist/core/types.js +0 -0
  53. package/dist/core/utils.d.ts +20 -0
  54. package/dist/core/utils.js +32 -0
  55. package/dist/index.d.ts +4 -0
  56. package/dist/index.js +8 -0
  57. package/dist/runtime/config.js +111 -0
  58. package/dist/runtime/db-client.d.ts +6 -0
  59. package/dist/runtime/db-client.js +148 -0
  60. package/dist/runtime/drizzle.d.ts +1 -0
  61. package/dist/runtime/drizzle.js +48 -0
  62. package/dist/runtime/errors.d.ts +5 -0
  63. package/dist/runtime/errors.js +31 -0
  64. package/dist/runtime/index.d.ts +26 -0
  65. package/dist/runtime/index.js +131 -0
  66. package/dist/runtime/queries.d.ts +71 -0
  67. package/dist/runtime/queries.js +169 -0
  68. package/dist/runtime/seed-local.d.ts +10 -0
  69. package/dist/runtime/seed-local.js +55 -0
  70. package/dist/runtime/types.d.ts +69 -0
  71. package/dist/runtime/types.js +8 -0
  72. package/dist/runtime/utils.d.ts +8 -0
  73. package/dist/runtime/utils.js +17 -0
  74. package/dist/utils.d.ts +2 -0
  75. package/dist/utils.js +6 -0
  76. package/index.d.ts +3 -0
  77. package/package.json +95 -0
  78. package/virtual.d.ts +45 -0
@@ -0,0 +1,4034 @@
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.ZodDiscriminatedUnion<"type", [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.ZodDiscriminatedUnion<"type", [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
+ type ForeignKeysInput = {
1857
+ columns: MaybeArray<string>;
1858
+ references: () => MaybeArray<Omit<z.input<typeof referenceableColumnSchema>, 'references'>>;
1859
+ };
1860
+ type ForeignKeysOutput = Omit<ForeignKeysInput, 'references'> & {
1861
+ references: MaybeArray<Omit<z.output<typeof referenceableColumnSchema>, 'references'>>;
1862
+ };
1863
+ export declare const resolvedIndexSchema: z.ZodObject<{
1864
+ on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1865
+ unique: z.ZodOptional<z.ZodBoolean>;
1866
+ }, "strip", z.ZodTypeAny, {
1867
+ on: (string | string[]) & (string | string[] | undefined);
1868
+ unique?: boolean | undefined;
1869
+ }, {
1870
+ on: (string | string[]) & (string | string[] | undefined);
1871
+ unique?: boolean | undefined;
1872
+ }>;
1873
+ export declare const indexSchema: z.ZodObject<{
1874
+ on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1875
+ unique: z.ZodOptional<z.ZodBoolean>;
1876
+ name: z.ZodOptional<z.ZodString>;
1877
+ }, "strip", z.ZodTypeAny, {
1878
+ on: (string | string[]) & (string | string[] | undefined);
1879
+ unique?: boolean | undefined;
1880
+ name?: string | undefined;
1881
+ }, {
1882
+ on: (string | string[]) & (string | string[] | undefined);
1883
+ unique?: boolean | undefined;
1884
+ name?: string | undefined;
1885
+ }>;
1886
+ export declare const tableSchema: z.ZodObject<{
1887
+ columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1888
+ type: z.ZodLiteral<"boolean">;
1889
+ schema: z.ZodObject<{
1890
+ name: z.ZodOptional<z.ZodString>;
1891
+ label: z.ZodOptional<z.ZodString>;
1892
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1893
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1894
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1895
+ collection: z.ZodOptional<z.ZodString>;
1896
+ default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ optional: boolean;
1899
+ unique: boolean;
1900
+ deprecated: boolean;
1901
+ name?: string | undefined;
1902
+ label?: string | undefined;
1903
+ collection?: string | undefined;
1904
+ default?: boolean | SerializedSQL | undefined;
1905
+ }, {
1906
+ name?: string | undefined;
1907
+ label?: string | undefined;
1908
+ optional?: boolean | undefined;
1909
+ unique?: boolean | undefined;
1910
+ deprecated?: boolean | undefined;
1911
+ collection?: string | undefined;
1912
+ default?: boolean | SQL<any> | undefined;
1913
+ }>;
1914
+ }, "strip", z.ZodTypeAny, {
1915
+ type: "boolean";
1916
+ schema: {
1917
+ optional: boolean;
1918
+ unique: boolean;
1919
+ deprecated: boolean;
1920
+ name?: string | undefined;
1921
+ label?: string | undefined;
1922
+ collection?: string | undefined;
1923
+ default?: boolean | SerializedSQL | undefined;
1924
+ };
1925
+ }, {
1926
+ type: "boolean";
1927
+ schema: {
1928
+ name?: string | undefined;
1929
+ label?: string | undefined;
1930
+ optional?: boolean | undefined;
1931
+ unique?: boolean | undefined;
1932
+ deprecated?: boolean | undefined;
1933
+ collection?: string | undefined;
1934
+ default?: boolean | SQL<any> | undefined;
1935
+ };
1936
+ }>, z.ZodObject<{
1937
+ type: z.ZodLiteral<"number">;
1938
+ schema: z.ZodType<({
1939
+ unique: boolean;
1940
+ deprecated: boolean;
1941
+ name?: string | undefined;
1942
+ label?: string | undefined;
1943
+ collection?: string | undefined;
1944
+ } & ({
1945
+ optional: boolean;
1946
+ primaryKey: false;
1947
+ default?: number | SerializedSQL | undefined;
1948
+ } | {
1949
+ primaryKey: true;
1950
+ optional?: false | undefined;
1951
+ default?: undefined;
1952
+ })) & {
1953
+ references?: {
1954
+ type: "number";
1955
+ schema: ({
1956
+ unique: boolean;
1957
+ deprecated: boolean;
1958
+ name?: string | undefined;
1959
+ label?: string | undefined;
1960
+ collection?: string | undefined;
1961
+ } & {
1962
+ optional: boolean;
1963
+ primaryKey: false;
1964
+ default?: number | SerializedSQL | undefined;
1965
+ } & any) | ({
1966
+ unique: boolean;
1967
+ deprecated: boolean;
1968
+ name?: string | undefined;
1969
+ label?: string | undefined;
1970
+ collection?: string | undefined;
1971
+ } & {
1972
+ primaryKey: true;
1973
+ optional?: false | undefined;
1974
+ default?: undefined;
1975
+ } & any);
1976
+ } | undefined;
1977
+ }, ZodTypeDef, ({
1978
+ name?: string | undefined;
1979
+ label?: string | undefined;
1980
+ unique?: boolean | undefined;
1981
+ deprecated?: boolean | undefined;
1982
+ collection?: string | undefined;
1983
+ } & ({
1984
+ primaryKey?: false | undefined;
1985
+ optional?: boolean | undefined;
1986
+ default?: number | SQL<any> | undefined;
1987
+ } | {
1988
+ primaryKey: true;
1989
+ optional?: false | undefined;
1990
+ default?: undefined;
1991
+ })) & {
1992
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
1993
+ }>;
1994
+ }, "strip", z.ZodTypeAny, {
1995
+ type: "number";
1996
+ schema: ({
1997
+ unique: boolean;
1998
+ deprecated: boolean;
1999
+ name?: string | undefined;
2000
+ label?: string | undefined;
2001
+ collection?: string | undefined;
2002
+ } & {
2003
+ optional: boolean;
2004
+ primaryKey: false;
2005
+ default?: number | SerializedSQL | undefined;
2006
+ } & any) | ({
2007
+ unique: boolean;
2008
+ deprecated: boolean;
2009
+ name?: string | undefined;
2010
+ label?: string | undefined;
2011
+ collection?: string | undefined;
2012
+ } & {
2013
+ primaryKey: true;
2014
+ optional?: false | undefined;
2015
+ default?: undefined;
2016
+ } & any);
2017
+ }, {
2018
+ type: "number";
2019
+ schema: ({
2020
+ name?: string | undefined;
2021
+ label?: string | undefined;
2022
+ unique?: boolean | undefined;
2023
+ deprecated?: boolean | undefined;
2024
+ collection?: string | undefined;
2025
+ } & {
2026
+ primaryKey?: false | undefined;
2027
+ optional?: boolean | undefined;
2028
+ default?: number | SQL<any> | undefined;
2029
+ } & {
2030
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2031
+ }) | ({
2032
+ name?: string | undefined;
2033
+ label?: string | undefined;
2034
+ unique?: boolean | undefined;
2035
+ deprecated?: boolean | undefined;
2036
+ collection?: string | undefined;
2037
+ } & {
2038
+ primaryKey: true;
2039
+ optional?: false | undefined;
2040
+ default?: undefined;
2041
+ } & {
2042
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2043
+ });
2044
+ }>, z.ZodObject<{
2045
+ type: z.ZodLiteral<"text">;
2046
+ schema: z.ZodType<({
2047
+ unique: boolean;
2048
+ deprecated: boolean;
2049
+ name?: string | undefined;
2050
+ label?: string | undefined;
2051
+ collection?: string | undefined;
2052
+ default?: string | SerializedSQL | undefined;
2053
+ multiline?: boolean | undefined;
2054
+ } & ({
2055
+ optional: boolean;
2056
+ primaryKey: false;
2057
+ } | {
2058
+ primaryKey: true;
2059
+ optional?: false | undefined;
2060
+ })) & {
2061
+ references?: {
2062
+ type: "text";
2063
+ schema: ({
2064
+ unique: boolean;
2065
+ deprecated: boolean;
2066
+ name?: string | undefined;
2067
+ label?: string | undefined;
2068
+ collection?: string | undefined;
2069
+ default?: string | SerializedSQL | undefined;
2070
+ multiline?: boolean | undefined;
2071
+ } & {
2072
+ optional: boolean;
2073
+ primaryKey: false;
2074
+ } & any) | ({
2075
+ unique: boolean;
2076
+ deprecated: boolean;
2077
+ name?: string | undefined;
2078
+ label?: string | undefined;
2079
+ collection?: string | undefined;
2080
+ default?: string | SerializedSQL | undefined;
2081
+ multiline?: boolean | undefined;
2082
+ } & {
2083
+ primaryKey: true;
2084
+ optional?: false | undefined;
2085
+ } & any);
2086
+ } | undefined;
2087
+ }, ZodTypeDef, ({
2088
+ name?: string | undefined;
2089
+ label?: string | undefined;
2090
+ unique?: boolean | undefined;
2091
+ deprecated?: boolean | undefined;
2092
+ collection?: string | undefined;
2093
+ default?: string | SQL<any> | undefined;
2094
+ multiline?: boolean | undefined;
2095
+ } & ({
2096
+ primaryKey?: false | undefined;
2097
+ optional?: boolean | undefined;
2098
+ } | {
2099
+ primaryKey: true;
2100
+ optional?: false | undefined;
2101
+ })) & {
2102
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
2103
+ }>;
2104
+ }, "strip", z.ZodTypeAny, {
2105
+ type: "text";
2106
+ schema: ({
2107
+ unique: boolean;
2108
+ deprecated: boolean;
2109
+ name?: string | undefined;
2110
+ label?: string | undefined;
2111
+ collection?: string | undefined;
2112
+ default?: string | SerializedSQL | undefined;
2113
+ multiline?: boolean | undefined;
2114
+ } & {
2115
+ optional: boolean;
2116
+ primaryKey: false;
2117
+ } & any) | ({
2118
+ unique: boolean;
2119
+ deprecated: boolean;
2120
+ name?: string | undefined;
2121
+ label?: string | undefined;
2122
+ collection?: string | undefined;
2123
+ default?: string | SerializedSQL | undefined;
2124
+ multiline?: boolean | undefined;
2125
+ } & {
2126
+ primaryKey: true;
2127
+ optional?: false | undefined;
2128
+ } & any);
2129
+ }, {
2130
+ type: "text";
2131
+ schema: ({
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?: false | undefined;
2141
+ optional?: boolean | undefined;
2142
+ } & {
2143
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
2144
+ }) | ({
2145
+ name?: string | undefined;
2146
+ label?: string | undefined;
2147
+ unique?: boolean | undefined;
2148
+ deprecated?: boolean | undefined;
2149
+ collection?: string | undefined;
2150
+ default?: string | SQL<any> | undefined;
2151
+ multiline?: boolean | undefined;
2152
+ } & {
2153
+ primaryKey: true;
2154
+ optional?: false | undefined;
2155
+ } & {
2156
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
2157
+ });
2158
+ }>, z.ZodObject<{
2159
+ type: z.ZodLiteral<"date">;
2160
+ schema: z.ZodObject<{
2161
+ name: z.ZodOptional<z.ZodString>;
2162
+ label: z.ZodOptional<z.ZodString>;
2163
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2164
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2165
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2166
+ collection: z.ZodOptional<z.ZodString>;
2167
+ default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
2168
+ }, "strip", z.ZodTypeAny, {
2169
+ optional: boolean;
2170
+ unique: boolean;
2171
+ deprecated: boolean;
2172
+ name?: string | undefined;
2173
+ label?: string | undefined;
2174
+ collection?: string | undefined;
2175
+ default?: string | SerializedSQL | undefined;
2176
+ }, {
2177
+ name?: string | undefined;
2178
+ label?: string | undefined;
2179
+ optional?: boolean | undefined;
2180
+ unique?: boolean | undefined;
2181
+ deprecated?: boolean | undefined;
2182
+ collection?: string | undefined;
2183
+ default?: Date | SQL<any> | undefined;
2184
+ }>;
2185
+ }, "strip", z.ZodTypeAny, {
2186
+ type: "date";
2187
+ schema: {
2188
+ optional: boolean;
2189
+ unique: boolean;
2190
+ deprecated: boolean;
2191
+ name?: string | undefined;
2192
+ label?: string | undefined;
2193
+ collection?: string | undefined;
2194
+ default?: string | SerializedSQL | undefined;
2195
+ };
2196
+ }, {
2197
+ type: "date";
2198
+ schema: {
2199
+ name?: string | undefined;
2200
+ label?: string | undefined;
2201
+ optional?: boolean | undefined;
2202
+ unique?: boolean | undefined;
2203
+ deprecated?: boolean | undefined;
2204
+ collection?: string | undefined;
2205
+ default?: Date | SQL<any> | undefined;
2206
+ };
2207
+ }>, z.ZodObject<{
2208
+ type: z.ZodLiteral<"json">;
2209
+ schema: z.ZodObject<{
2210
+ name: z.ZodOptional<z.ZodString>;
2211
+ label: z.ZodOptional<z.ZodString>;
2212
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2213
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2214
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2215
+ collection: z.ZodOptional<z.ZodString>;
2216
+ default: z.ZodOptional<z.ZodUnknown>;
2217
+ }, "strip", z.ZodTypeAny, {
2218
+ optional: boolean;
2219
+ unique: boolean;
2220
+ deprecated: boolean;
2221
+ name?: string | undefined;
2222
+ label?: string | undefined;
2223
+ collection?: string | undefined;
2224
+ default?: unknown;
2225
+ }, {
2226
+ name?: string | undefined;
2227
+ label?: string | undefined;
2228
+ optional?: boolean | undefined;
2229
+ unique?: boolean | undefined;
2230
+ deprecated?: boolean | undefined;
2231
+ collection?: string | undefined;
2232
+ default?: unknown;
2233
+ }>;
2234
+ }, "strip", z.ZodTypeAny, {
2235
+ type: "json";
2236
+ schema: {
2237
+ optional: boolean;
2238
+ unique: boolean;
2239
+ deprecated: boolean;
2240
+ name?: string | undefined;
2241
+ label?: string | undefined;
2242
+ collection?: string | undefined;
2243
+ default?: unknown;
2244
+ };
2245
+ }, {
2246
+ type: "json";
2247
+ schema: {
2248
+ name?: string | undefined;
2249
+ label?: string | undefined;
2250
+ optional?: boolean | undefined;
2251
+ unique?: boolean | undefined;
2252
+ deprecated?: boolean | undefined;
2253
+ collection?: string | undefined;
2254
+ default?: unknown;
2255
+ };
2256
+ }>]>>;
2257
+ indexes: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2258
+ on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2259
+ unique: z.ZodOptional<z.ZodBoolean>;
2260
+ name: z.ZodOptional<z.ZodString>;
2261
+ }, "strip", z.ZodTypeAny, {
2262
+ on: (string | string[]) & (string | string[] | undefined);
2263
+ unique?: boolean | undefined;
2264
+ name?: string | undefined;
2265
+ }, {
2266
+ on: (string | string[]) & (string | string[] | undefined);
2267
+ unique?: boolean | undefined;
2268
+ name?: string | undefined;
2269
+ }>, "many">, z.ZodRecord<z.ZodString, z.ZodObject<{
2270
+ on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2271
+ unique: z.ZodOptional<z.ZodBoolean>;
2272
+ }, "strip", z.ZodTypeAny, {
2273
+ on: (string | string[]) & (string | string[] | undefined);
2274
+ unique?: boolean | undefined;
2275
+ }, {
2276
+ on: (string | string[]) & (string | string[] | undefined);
2277
+ unique?: boolean | undefined;
2278
+ }>>]>>;
2279
+ foreignKeys: z.ZodOptional<z.ZodArray<z.ZodType<ForeignKeysOutput, ZodTypeDef, ForeignKeysInput>, "many">>;
2280
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2281
+ }, "strip", z.ZodTypeAny, {
2282
+ deprecated: boolean;
2283
+ columns: Record<string, {
2284
+ type: "boolean";
2285
+ schema: {
2286
+ optional: boolean;
2287
+ unique: boolean;
2288
+ deprecated: boolean;
2289
+ name?: string | undefined;
2290
+ label?: string | undefined;
2291
+ collection?: string | undefined;
2292
+ default?: boolean | SerializedSQL | undefined;
2293
+ };
2294
+ } | {
2295
+ type: "number";
2296
+ schema: ({
2297
+ unique: boolean;
2298
+ deprecated: boolean;
2299
+ name?: string | undefined;
2300
+ label?: string | undefined;
2301
+ collection?: string | undefined;
2302
+ } & {
2303
+ optional: boolean;
2304
+ primaryKey: false;
2305
+ default?: number | SerializedSQL | undefined;
2306
+ } & any) | ({
2307
+ unique: boolean;
2308
+ deprecated: boolean;
2309
+ name?: string | undefined;
2310
+ label?: string | undefined;
2311
+ collection?: string | undefined;
2312
+ } & {
2313
+ primaryKey: true;
2314
+ optional?: false | undefined;
2315
+ default?: undefined;
2316
+ } & any);
2317
+ } | {
2318
+ type: "text";
2319
+ schema: ({
2320
+ unique: boolean;
2321
+ deprecated: boolean;
2322
+ name?: string | undefined;
2323
+ label?: string | undefined;
2324
+ collection?: string | undefined;
2325
+ default?: string | SerializedSQL | undefined;
2326
+ multiline?: boolean | undefined;
2327
+ } & {
2328
+ optional: boolean;
2329
+ primaryKey: false;
2330
+ } & any) | ({
2331
+ unique: boolean;
2332
+ deprecated: boolean;
2333
+ name?: string | undefined;
2334
+ label?: string | undefined;
2335
+ collection?: string | undefined;
2336
+ default?: string | SerializedSQL | undefined;
2337
+ multiline?: boolean | undefined;
2338
+ } & {
2339
+ primaryKey: true;
2340
+ optional?: false | undefined;
2341
+ } & any);
2342
+ } | {
2343
+ type: "date";
2344
+ schema: {
2345
+ optional: boolean;
2346
+ unique: boolean;
2347
+ deprecated: boolean;
2348
+ name?: string | undefined;
2349
+ label?: string | undefined;
2350
+ collection?: string | undefined;
2351
+ default?: string | SerializedSQL | undefined;
2352
+ };
2353
+ } | {
2354
+ type: "json";
2355
+ schema: {
2356
+ optional: boolean;
2357
+ unique: boolean;
2358
+ deprecated: boolean;
2359
+ name?: string | undefined;
2360
+ label?: string | undefined;
2361
+ collection?: string | undefined;
2362
+ default?: unknown;
2363
+ };
2364
+ }>;
2365
+ indexes?: {
2366
+ on: (string | string[]) & (string | string[] | undefined);
2367
+ unique?: boolean | undefined;
2368
+ name?: string | undefined;
2369
+ }[] | Record<string, {
2370
+ on: (string | string[]) & (string | string[] | undefined);
2371
+ unique?: boolean | undefined;
2372
+ }> | undefined;
2373
+ foreignKeys?: ForeignKeysOutput[] | undefined;
2374
+ }, {
2375
+ columns: Record<string, {
2376
+ type: "boolean";
2377
+ schema: {
2378
+ name?: string | undefined;
2379
+ label?: string | undefined;
2380
+ optional?: boolean | undefined;
2381
+ unique?: boolean | undefined;
2382
+ deprecated?: boolean | undefined;
2383
+ collection?: string | undefined;
2384
+ default?: boolean | SQL<any> | undefined;
2385
+ };
2386
+ } | {
2387
+ type: "number";
2388
+ schema: ({
2389
+ name?: string | undefined;
2390
+ label?: string | undefined;
2391
+ unique?: boolean | undefined;
2392
+ deprecated?: boolean | undefined;
2393
+ collection?: string | undefined;
2394
+ } & {
2395
+ primaryKey?: false | undefined;
2396
+ optional?: boolean | undefined;
2397
+ default?: number | SQL<any> | undefined;
2398
+ } & {
2399
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2400
+ }) | ({
2401
+ name?: string | undefined;
2402
+ label?: string | undefined;
2403
+ unique?: boolean | undefined;
2404
+ deprecated?: boolean | undefined;
2405
+ collection?: string | undefined;
2406
+ } & {
2407
+ primaryKey: true;
2408
+ optional?: false | undefined;
2409
+ default?: undefined;
2410
+ } & {
2411
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2412
+ });
2413
+ } | {
2414
+ type: "text";
2415
+ schema: ({
2416
+ name?: string | undefined;
2417
+ label?: string | undefined;
2418
+ unique?: boolean | undefined;
2419
+ deprecated?: boolean | undefined;
2420
+ collection?: string | undefined;
2421
+ default?: string | SQL<any> | undefined;
2422
+ multiline?: boolean | undefined;
2423
+ } & {
2424
+ primaryKey?: false | undefined;
2425
+ optional?: boolean | undefined;
2426
+ } & {
2427
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
2428
+ }) | ({
2429
+ name?: string | undefined;
2430
+ label?: string | undefined;
2431
+ unique?: boolean | undefined;
2432
+ deprecated?: boolean | undefined;
2433
+ collection?: string | undefined;
2434
+ default?: string | SQL<any> | undefined;
2435
+ multiline?: boolean | undefined;
2436
+ } & {
2437
+ primaryKey: true;
2438
+ optional?: false | undefined;
2439
+ } & {
2440
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
2441
+ });
2442
+ } | {
2443
+ type: "date";
2444
+ schema: {
2445
+ name?: string | undefined;
2446
+ label?: string | undefined;
2447
+ optional?: boolean | undefined;
2448
+ unique?: boolean | undefined;
2449
+ deprecated?: boolean | undefined;
2450
+ collection?: string | undefined;
2451
+ default?: Date | SQL<any> | undefined;
2452
+ };
2453
+ } | {
2454
+ type: "json";
2455
+ schema: {
2456
+ name?: string | undefined;
2457
+ label?: string | undefined;
2458
+ optional?: boolean | undefined;
2459
+ unique?: boolean | undefined;
2460
+ deprecated?: boolean | undefined;
2461
+ collection?: string | undefined;
2462
+ default?: unknown;
2463
+ };
2464
+ }>;
2465
+ indexes?: {
2466
+ on: (string | string[]) & (string | string[] | undefined);
2467
+ unique?: boolean | undefined;
2468
+ name?: string | undefined;
2469
+ }[] | Record<string, {
2470
+ on: (string | string[]) & (string | string[] | undefined);
2471
+ unique?: boolean | undefined;
2472
+ }> | undefined;
2473
+ foreignKeys?: ForeignKeysInput[] | undefined;
2474
+ deprecated?: boolean | undefined;
2475
+ }>;
2476
+ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2477
+ columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2478
+ type: z.ZodLiteral<"boolean">;
2479
+ schema: z.ZodObject<{
2480
+ name: z.ZodOptional<z.ZodString>;
2481
+ label: z.ZodOptional<z.ZodString>;
2482
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2483
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2484
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2485
+ collection: z.ZodOptional<z.ZodString>;
2486
+ default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
2487
+ }, "strip", z.ZodTypeAny, {
2488
+ optional: boolean;
2489
+ unique: boolean;
2490
+ deprecated: boolean;
2491
+ name?: string | undefined;
2492
+ label?: string | undefined;
2493
+ collection?: string | undefined;
2494
+ default?: boolean | SerializedSQL | undefined;
2495
+ }, {
2496
+ name?: string | undefined;
2497
+ label?: string | undefined;
2498
+ optional?: boolean | undefined;
2499
+ unique?: boolean | undefined;
2500
+ deprecated?: boolean | undefined;
2501
+ collection?: string | undefined;
2502
+ default?: boolean | SQL<any> | undefined;
2503
+ }>;
2504
+ }, "strip", z.ZodTypeAny, {
2505
+ type: "boolean";
2506
+ schema: {
2507
+ optional: boolean;
2508
+ unique: boolean;
2509
+ deprecated: boolean;
2510
+ name?: string | undefined;
2511
+ label?: string | undefined;
2512
+ collection?: string | undefined;
2513
+ default?: boolean | SerializedSQL | undefined;
2514
+ };
2515
+ }, {
2516
+ type: "boolean";
2517
+ schema: {
2518
+ name?: string | undefined;
2519
+ label?: string | undefined;
2520
+ optional?: boolean | undefined;
2521
+ unique?: boolean | undefined;
2522
+ deprecated?: boolean | undefined;
2523
+ collection?: string | undefined;
2524
+ default?: boolean | SQL<any> | undefined;
2525
+ };
2526
+ }>, z.ZodObject<{
2527
+ type: z.ZodLiteral<"number">;
2528
+ schema: z.ZodType<({
2529
+ unique: boolean;
2530
+ deprecated: boolean;
2531
+ name?: string | undefined;
2532
+ label?: string | undefined;
2533
+ collection?: string | undefined;
2534
+ } & ({
2535
+ optional: boolean;
2536
+ primaryKey: false;
2537
+ default?: number | SerializedSQL | undefined;
2538
+ } | {
2539
+ primaryKey: true;
2540
+ optional?: false | undefined;
2541
+ default?: undefined;
2542
+ })) & {
2543
+ references?: {
2544
+ type: "number";
2545
+ schema: ({
2546
+ unique: boolean;
2547
+ deprecated: boolean;
2548
+ name?: string | undefined;
2549
+ label?: string | undefined;
2550
+ collection?: string | undefined;
2551
+ } & {
2552
+ optional: boolean;
2553
+ primaryKey: false;
2554
+ default?: number | SerializedSQL | undefined;
2555
+ } & any) | ({
2556
+ unique: boolean;
2557
+ deprecated: boolean;
2558
+ name?: string | undefined;
2559
+ label?: string | undefined;
2560
+ collection?: string | undefined;
2561
+ } & {
2562
+ primaryKey: true;
2563
+ optional?: false | undefined;
2564
+ default?: undefined;
2565
+ } & any);
2566
+ } | undefined;
2567
+ }, ZodTypeDef, ({
2568
+ name?: string | undefined;
2569
+ label?: string | undefined;
2570
+ unique?: boolean | undefined;
2571
+ deprecated?: boolean | undefined;
2572
+ collection?: string | undefined;
2573
+ } & ({
2574
+ primaryKey?: false | undefined;
2575
+ optional?: boolean | undefined;
2576
+ default?: number | SQL<any> | undefined;
2577
+ } | {
2578
+ primaryKey: true;
2579
+ optional?: false | undefined;
2580
+ default?: undefined;
2581
+ })) & {
2582
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2583
+ }>;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ type: "number";
2586
+ schema: ({
2587
+ unique: boolean;
2588
+ deprecated: boolean;
2589
+ name?: string | undefined;
2590
+ label?: string | undefined;
2591
+ collection?: string | undefined;
2592
+ } & {
2593
+ optional: boolean;
2594
+ primaryKey: false;
2595
+ default?: number | SerializedSQL | undefined;
2596
+ } & any) | ({
2597
+ unique: boolean;
2598
+ deprecated: boolean;
2599
+ name?: string | undefined;
2600
+ label?: string | undefined;
2601
+ collection?: string | undefined;
2602
+ } & {
2603
+ primaryKey: true;
2604
+ optional?: false | undefined;
2605
+ default?: undefined;
2606
+ } & any);
2607
+ }, {
2608
+ type: "number";
2609
+ schema: ({
2610
+ name?: string | undefined;
2611
+ label?: string | undefined;
2612
+ unique?: boolean | undefined;
2613
+ deprecated?: boolean | undefined;
2614
+ collection?: string | undefined;
2615
+ } & {
2616
+ primaryKey?: false | undefined;
2617
+ optional?: boolean | undefined;
2618
+ default?: number | SQL<any> | undefined;
2619
+ } & {
2620
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2621
+ }) | ({
2622
+ name?: string | undefined;
2623
+ label?: string | undefined;
2624
+ unique?: boolean | undefined;
2625
+ deprecated?: boolean | undefined;
2626
+ collection?: string | undefined;
2627
+ } & {
2628
+ primaryKey: true;
2629
+ optional?: false | undefined;
2630
+ default?: undefined;
2631
+ } & {
2632
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2633
+ });
2634
+ }>, z.ZodObject<{
2635
+ type: z.ZodLiteral<"text">;
2636
+ schema: z.ZodType<({
2637
+ unique: boolean;
2638
+ deprecated: boolean;
2639
+ name?: string | undefined;
2640
+ label?: string | undefined;
2641
+ collection?: string | undefined;
2642
+ default?: string | SerializedSQL | undefined;
2643
+ multiline?: boolean | undefined;
2644
+ } & ({
2645
+ optional: boolean;
2646
+ primaryKey: false;
2647
+ } | {
2648
+ primaryKey: true;
2649
+ optional?: false | undefined;
2650
+ })) & {
2651
+ references?: {
2652
+ type: "text";
2653
+ schema: ({
2654
+ unique: boolean;
2655
+ deprecated: boolean;
2656
+ name?: string | undefined;
2657
+ label?: string | undefined;
2658
+ collection?: string | undefined;
2659
+ default?: string | SerializedSQL | undefined;
2660
+ multiline?: boolean | undefined;
2661
+ } & {
2662
+ optional: boolean;
2663
+ primaryKey: false;
2664
+ } & any) | ({
2665
+ unique: boolean;
2666
+ deprecated: boolean;
2667
+ name?: string | undefined;
2668
+ label?: string | undefined;
2669
+ collection?: string | undefined;
2670
+ default?: string | SerializedSQL | undefined;
2671
+ multiline?: boolean | undefined;
2672
+ } & {
2673
+ primaryKey: true;
2674
+ optional?: false | undefined;
2675
+ } & any);
2676
+ } | undefined;
2677
+ }, ZodTypeDef, ({
2678
+ name?: string | undefined;
2679
+ label?: string | undefined;
2680
+ unique?: boolean | undefined;
2681
+ deprecated?: boolean | undefined;
2682
+ collection?: string | undefined;
2683
+ default?: string | SQL<any> | undefined;
2684
+ multiline?: boolean | undefined;
2685
+ } & ({
2686
+ primaryKey?: false | undefined;
2687
+ optional?: boolean | undefined;
2688
+ } | {
2689
+ primaryKey: true;
2690
+ optional?: false | undefined;
2691
+ })) & {
2692
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
2693
+ }>;
2694
+ }, "strip", z.ZodTypeAny, {
2695
+ type: "text";
2696
+ schema: ({
2697
+ unique: boolean;
2698
+ deprecated: boolean;
2699
+ name?: string | undefined;
2700
+ label?: string | undefined;
2701
+ collection?: string | undefined;
2702
+ default?: string | SerializedSQL | undefined;
2703
+ multiline?: boolean | undefined;
2704
+ } & {
2705
+ optional: boolean;
2706
+ primaryKey: false;
2707
+ } & any) | ({
2708
+ unique: boolean;
2709
+ deprecated: boolean;
2710
+ name?: string | undefined;
2711
+ label?: string | undefined;
2712
+ collection?: string | undefined;
2713
+ default?: string | SerializedSQL | undefined;
2714
+ multiline?: boolean | undefined;
2715
+ } & {
2716
+ primaryKey: true;
2717
+ optional?: false | undefined;
2718
+ } & any);
2719
+ }, {
2720
+ type: "text";
2721
+ schema: ({
2722
+ name?: string | undefined;
2723
+ label?: string | undefined;
2724
+ unique?: boolean | undefined;
2725
+ deprecated?: boolean | undefined;
2726
+ collection?: string | undefined;
2727
+ default?: string | SQL<any> | undefined;
2728
+ multiline?: boolean | undefined;
2729
+ } & {
2730
+ primaryKey?: false | undefined;
2731
+ optional?: boolean | undefined;
2732
+ } & {
2733
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
2734
+ }) | ({
2735
+ name?: string | undefined;
2736
+ label?: string | undefined;
2737
+ unique?: boolean | undefined;
2738
+ deprecated?: boolean | undefined;
2739
+ collection?: string | undefined;
2740
+ default?: string | SQL<any> | undefined;
2741
+ multiline?: boolean | undefined;
2742
+ } & {
2743
+ primaryKey: true;
2744
+ optional?: false | undefined;
2745
+ } & {
2746
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
2747
+ });
2748
+ }>, z.ZodObject<{
2749
+ type: z.ZodLiteral<"date">;
2750
+ schema: z.ZodObject<{
2751
+ name: z.ZodOptional<z.ZodString>;
2752
+ label: z.ZodOptional<z.ZodString>;
2753
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2754
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2755
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2756
+ collection: z.ZodOptional<z.ZodString>;
2757
+ default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
2758
+ }, "strip", z.ZodTypeAny, {
2759
+ optional: boolean;
2760
+ unique: boolean;
2761
+ deprecated: boolean;
2762
+ name?: string | undefined;
2763
+ label?: string | undefined;
2764
+ collection?: string | undefined;
2765
+ default?: string | SerializedSQL | undefined;
2766
+ }, {
2767
+ name?: string | undefined;
2768
+ label?: string | undefined;
2769
+ optional?: boolean | undefined;
2770
+ unique?: boolean | undefined;
2771
+ deprecated?: boolean | undefined;
2772
+ collection?: string | undefined;
2773
+ default?: Date | SQL<any> | undefined;
2774
+ }>;
2775
+ }, "strip", z.ZodTypeAny, {
2776
+ type: "date";
2777
+ schema: {
2778
+ optional: boolean;
2779
+ unique: boolean;
2780
+ deprecated: boolean;
2781
+ name?: string | undefined;
2782
+ label?: string | undefined;
2783
+ collection?: string | undefined;
2784
+ default?: string | SerializedSQL | undefined;
2785
+ };
2786
+ }, {
2787
+ type: "date";
2788
+ schema: {
2789
+ name?: string | undefined;
2790
+ label?: string | undefined;
2791
+ optional?: boolean | undefined;
2792
+ unique?: boolean | undefined;
2793
+ deprecated?: boolean | undefined;
2794
+ collection?: string | undefined;
2795
+ default?: Date | SQL<any> | undefined;
2796
+ };
2797
+ }>, z.ZodObject<{
2798
+ type: z.ZodLiteral<"json">;
2799
+ schema: z.ZodObject<{
2800
+ name: z.ZodOptional<z.ZodString>;
2801
+ label: z.ZodOptional<z.ZodString>;
2802
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2803
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2804
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2805
+ collection: z.ZodOptional<z.ZodString>;
2806
+ default: z.ZodOptional<z.ZodUnknown>;
2807
+ }, "strip", z.ZodTypeAny, {
2808
+ optional: boolean;
2809
+ unique: boolean;
2810
+ deprecated: boolean;
2811
+ name?: string | undefined;
2812
+ label?: string | undefined;
2813
+ collection?: string | undefined;
2814
+ default?: unknown;
2815
+ }, {
2816
+ name?: string | undefined;
2817
+ label?: string | undefined;
2818
+ optional?: boolean | undefined;
2819
+ unique?: boolean | undefined;
2820
+ deprecated?: boolean | undefined;
2821
+ collection?: string | undefined;
2822
+ default?: unknown;
2823
+ }>;
2824
+ }, "strip", z.ZodTypeAny, {
2825
+ type: "json";
2826
+ schema: {
2827
+ optional: boolean;
2828
+ unique: boolean;
2829
+ deprecated: boolean;
2830
+ name?: string | undefined;
2831
+ label?: string | undefined;
2832
+ collection?: string | undefined;
2833
+ default?: unknown;
2834
+ };
2835
+ }, {
2836
+ type: "json";
2837
+ schema: {
2838
+ name?: string | undefined;
2839
+ label?: string | undefined;
2840
+ optional?: boolean | undefined;
2841
+ unique?: boolean | undefined;
2842
+ deprecated?: boolean | undefined;
2843
+ collection?: string | undefined;
2844
+ default?: unknown;
2845
+ };
2846
+ }>]>>;
2847
+ indexes: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2848
+ on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2849
+ unique: z.ZodOptional<z.ZodBoolean>;
2850
+ name: z.ZodOptional<z.ZodString>;
2851
+ }, "strip", z.ZodTypeAny, {
2852
+ on: (string | string[]) & (string | string[] | undefined);
2853
+ unique?: boolean | undefined;
2854
+ name?: string | undefined;
2855
+ }, {
2856
+ on: (string | string[]) & (string | string[] | undefined);
2857
+ unique?: boolean | undefined;
2858
+ name?: string | undefined;
2859
+ }>, "many">, z.ZodRecord<z.ZodString, z.ZodObject<{
2860
+ on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2861
+ unique: z.ZodOptional<z.ZodBoolean>;
2862
+ }, "strip", z.ZodTypeAny, {
2863
+ on: (string | string[]) & (string | string[] | undefined);
2864
+ unique?: boolean | undefined;
2865
+ }, {
2866
+ on: (string | string[]) & (string | string[] | undefined);
2867
+ unique?: boolean | undefined;
2868
+ }>>]>>;
2869
+ foreignKeys: z.ZodOptional<z.ZodArray<z.ZodType<ForeignKeysOutput, ZodTypeDef, ForeignKeysInput>, "many">>;
2870
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2871
+ }, "strip", z.ZodTypeAny, {
2872
+ deprecated: boolean;
2873
+ columns: Record<string, {
2874
+ type: "boolean";
2875
+ schema: {
2876
+ optional: boolean;
2877
+ unique: boolean;
2878
+ deprecated: boolean;
2879
+ name?: string | undefined;
2880
+ label?: string | undefined;
2881
+ collection?: string | undefined;
2882
+ default?: boolean | SerializedSQL | undefined;
2883
+ };
2884
+ } | {
2885
+ type: "number";
2886
+ schema: ({
2887
+ unique: boolean;
2888
+ deprecated: boolean;
2889
+ name?: string | undefined;
2890
+ label?: string | undefined;
2891
+ collection?: string | undefined;
2892
+ } & {
2893
+ optional: boolean;
2894
+ primaryKey: false;
2895
+ default?: number | SerializedSQL | undefined;
2896
+ } & any) | ({
2897
+ unique: boolean;
2898
+ deprecated: boolean;
2899
+ name?: string | undefined;
2900
+ label?: string | undefined;
2901
+ collection?: string | undefined;
2902
+ } & {
2903
+ primaryKey: true;
2904
+ optional?: false | undefined;
2905
+ default?: undefined;
2906
+ } & any);
2907
+ } | {
2908
+ type: "text";
2909
+ schema: ({
2910
+ unique: boolean;
2911
+ deprecated: boolean;
2912
+ name?: string | undefined;
2913
+ label?: string | undefined;
2914
+ collection?: string | undefined;
2915
+ default?: string | SerializedSQL | undefined;
2916
+ multiline?: boolean | undefined;
2917
+ } & {
2918
+ optional: boolean;
2919
+ primaryKey: false;
2920
+ } & any) | ({
2921
+ unique: boolean;
2922
+ deprecated: boolean;
2923
+ name?: string | undefined;
2924
+ label?: string | undefined;
2925
+ collection?: string | undefined;
2926
+ default?: string | SerializedSQL | undefined;
2927
+ multiline?: boolean | undefined;
2928
+ } & {
2929
+ primaryKey: true;
2930
+ optional?: false | undefined;
2931
+ } & any);
2932
+ } | {
2933
+ type: "date";
2934
+ schema: {
2935
+ optional: boolean;
2936
+ unique: boolean;
2937
+ deprecated: boolean;
2938
+ name?: string | undefined;
2939
+ label?: string | undefined;
2940
+ collection?: string | undefined;
2941
+ default?: string | SerializedSQL | undefined;
2942
+ };
2943
+ } | {
2944
+ type: "json";
2945
+ schema: {
2946
+ optional: boolean;
2947
+ unique: boolean;
2948
+ deprecated: boolean;
2949
+ name?: string | undefined;
2950
+ label?: string | undefined;
2951
+ collection?: string | undefined;
2952
+ default?: unknown;
2953
+ };
2954
+ }>;
2955
+ indexes?: {
2956
+ on: (string | string[]) & (string | string[] | undefined);
2957
+ unique?: boolean | undefined;
2958
+ name?: string | undefined;
2959
+ }[] | Record<string, {
2960
+ on: (string | string[]) & (string | string[] | undefined);
2961
+ unique?: boolean | undefined;
2962
+ }> | undefined;
2963
+ foreignKeys?: ForeignKeysOutput[] | undefined;
2964
+ }, {
2965
+ columns: Record<string, {
2966
+ type: "boolean";
2967
+ schema: {
2968
+ name?: string | undefined;
2969
+ label?: string | undefined;
2970
+ optional?: boolean | undefined;
2971
+ unique?: boolean | undefined;
2972
+ deprecated?: boolean | undefined;
2973
+ collection?: string | undefined;
2974
+ default?: boolean | SQL<any> | undefined;
2975
+ };
2976
+ } | {
2977
+ type: "number";
2978
+ schema: ({
2979
+ name?: string | undefined;
2980
+ label?: string | undefined;
2981
+ unique?: boolean | undefined;
2982
+ deprecated?: boolean | undefined;
2983
+ collection?: string | undefined;
2984
+ } & {
2985
+ primaryKey?: false | undefined;
2986
+ optional?: boolean | undefined;
2987
+ default?: number | SQL<any> | undefined;
2988
+ } & {
2989
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
2990
+ }) | ({
2991
+ name?: string | undefined;
2992
+ label?: string | undefined;
2993
+ unique?: boolean | undefined;
2994
+ deprecated?: boolean | undefined;
2995
+ collection?: string | undefined;
2996
+ } & {
2997
+ primaryKey: true;
2998
+ optional?: false | undefined;
2999
+ default?: undefined;
3000
+ } & {
3001
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
3002
+ });
3003
+ } | {
3004
+ type: "text";
3005
+ schema: ({
3006
+ name?: string | undefined;
3007
+ label?: string | undefined;
3008
+ unique?: boolean | undefined;
3009
+ deprecated?: boolean | undefined;
3010
+ collection?: string | undefined;
3011
+ default?: string | SQL<any> | undefined;
3012
+ multiline?: boolean | undefined;
3013
+ } & {
3014
+ primaryKey?: false | undefined;
3015
+ optional?: boolean | undefined;
3016
+ } & {
3017
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
3018
+ }) | ({
3019
+ name?: string | undefined;
3020
+ label?: string | undefined;
3021
+ unique?: boolean | undefined;
3022
+ deprecated?: boolean | undefined;
3023
+ collection?: string | undefined;
3024
+ default?: string | SQL<any> | undefined;
3025
+ multiline?: boolean | undefined;
3026
+ } & {
3027
+ primaryKey: true;
3028
+ optional?: false | undefined;
3029
+ } & {
3030
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
3031
+ });
3032
+ } | {
3033
+ type: "date";
3034
+ schema: {
3035
+ name?: string | undefined;
3036
+ label?: string | undefined;
3037
+ optional?: boolean | undefined;
3038
+ unique?: boolean | undefined;
3039
+ deprecated?: boolean | undefined;
3040
+ collection?: string | undefined;
3041
+ default?: Date | SQL<any> | undefined;
3042
+ };
3043
+ } | {
3044
+ type: "json";
3045
+ schema: {
3046
+ name?: string | undefined;
3047
+ label?: string | undefined;
3048
+ optional?: boolean | undefined;
3049
+ unique?: boolean | undefined;
3050
+ deprecated?: boolean | undefined;
3051
+ collection?: string | undefined;
3052
+ default?: unknown;
3053
+ };
3054
+ }>;
3055
+ indexes?: {
3056
+ on: (string | string[]) & (string | string[] | undefined);
3057
+ unique?: boolean | undefined;
3058
+ name?: string | undefined;
3059
+ }[] | Record<string, {
3060
+ on: (string | string[]) & (string | string[] | undefined);
3061
+ unique?: boolean | undefined;
3062
+ }> | undefined;
3063
+ foreignKeys?: ForeignKeysInput[] | undefined;
3064
+ deprecated?: boolean | undefined;
3065
+ }>>, Record<string, {
3066
+ deprecated: boolean;
3067
+ columns: Record<string, {
3068
+ type: "boolean";
3069
+ schema: {
3070
+ optional: boolean;
3071
+ unique: boolean;
3072
+ deprecated: boolean;
3073
+ name?: string | undefined;
3074
+ label?: string | undefined;
3075
+ collection?: string | undefined;
3076
+ default?: boolean | SerializedSQL | undefined;
3077
+ };
3078
+ } | {
3079
+ type: "number";
3080
+ schema: ({
3081
+ unique: boolean;
3082
+ deprecated: boolean;
3083
+ name?: string | undefined;
3084
+ label?: string | undefined;
3085
+ collection?: string | undefined;
3086
+ } & {
3087
+ optional: boolean;
3088
+ primaryKey: false;
3089
+ default?: number | SerializedSQL | undefined;
3090
+ } & any) | ({
3091
+ unique: boolean;
3092
+ deprecated: boolean;
3093
+ name?: string | undefined;
3094
+ label?: string | undefined;
3095
+ collection?: string | undefined;
3096
+ } & {
3097
+ primaryKey: true;
3098
+ optional?: false | undefined;
3099
+ default?: undefined;
3100
+ } & any);
3101
+ } | {
3102
+ type: "text";
3103
+ schema: ({
3104
+ unique: boolean;
3105
+ deprecated: boolean;
3106
+ name?: string | undefined;
3107
+ label?: string | undefined;
3108
+ collection?: string | undefined;
3109
+ default?: string | SerializedSQL | undefined;
3110
+ multiline?: boolean | undefined;
3111
+ } & {
3112
+ optional: boolean;
3113
+ primaryKey: false;
3114
+ } & any) | ({
3115
+ unique: boolean;
3116
+ deprecated: boolean;
3117
+ name?: string | undefined;
3118
+ label?: string | undefined;
3119
+ collection?: string | undefined;
3120
+ default?: string | SerializedSQL | undefined;
3121
+ multiline?: boolean | undefined;
3122
+ } & {
3123
+ primaryKey: true;
3124
+ optional?: false | undefined;
3125
+ } & any);
3126
+ } | {
3127
+ type: "date";
3128
+ schema: {
3129
+ optional: boolean;
3130
+ unique: boolean;
3131
+ deprecated: boolean;
3132
+ name?: string | undefined;
3133
+ label?: string | undefined;
3134
+ collection?: string | undefined;
3135
+ default?: string | SerializedSQL | undefined;
3136
+ };
3137
+ } | {
3138
+ type: "json";
3139
+ schema: {
3140
+ optional: boolean;
3141
+ unique: boolean;
3142
+ deprecated: boolean;
3143
+ name?: string | undefined;
3144
+ label?: string | undefined;
3145
+ collection?: string | undefined;
3146
+ default?: unknown;
3147
+ };
3148
+ }>;
3149
+ indexes?: {
3150
+ on: (string | string[]) & (string | string[] | undefined);
3151
+ unique?: boolean | undefined;
3152
+ name?: string | undefined;
3153
+ }[] | Record<string, {
3154
+ on: (string | string[]) & (string | string[] | undefined);
3155
+ unique?: boolean | undefined;
3156
+ }> | undefined;
3157
+ foreignKeys?: ForeignKeysOutput[] | undefined;
3158
+ }>, unknown>;
3159
+ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
3160
+ tables: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
3161
+ columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3162
+ type: z.ZodLiteral<"boolean">;
3163
+ schema: z.ZodObject<{
3164
+ name: z.ZodOptional<z.ZodString>;
3165
+ label: z.ZodOptional<z.ZodString>;
3166
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3167
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3168
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3169
+ collection: z.ZodOptional<z.ZodString>;
3170
+ default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
3171
+ }, "strip", z.ZodTypeAny, {
3172
+ optional: boolean;
3173
+ unique: boolean;
3174
+ deprecated: boolean;
3175
+ name?: string | undefined;
3176
+ label?: string | undefined;
3177
+ collection?: string | undefined;
3178
+ default?: boolean | SerializedSQL | undefined;
3179
+ }, {
3180
+ name?: string | undefined;
3181
+ label?: string | undefined;
3182
+ optional?: boolean | undefined;
3183
+ unique?: boolean | undefined;
3184
+ deprecated?: boolean | undefined;
3185
+ collection?: string | undefined;
3186
+ default?: boolean | SQL<any> | undefined;
3187
+ }>;
3188
+ }, "strip", z.ZodTypeAny, {
3189
+ type: "boolean";
3190
+ schema: {
3191
+ optional: boolean;
3192
+ unique: boolean;
3193
+ deprecated: boolean;
3194
+ name?: string | undefined;
3195
+ label?: string | undefined;
3196
+ collection?: string | undefined;
3197
+ default?: boolean | SerializedSQL | undefined;
3198
+ };
3199
+ }, {
3200
+ type: "boolean";
3201
+ schema: {
3202
+ name?: string | undefined;
3203
+ label?: string | undefined;
3204
+ optional?: boolean | undefined;
3205
+ unique?: boolean | undefined;
3206
+ deprecated?: boolean | undefined;
3207
+ collection?: string | undefined;
3208
+ default?: boolean | SQL<any> | undefined;
3209
+ };
3210
+ }>, z.ZodObject<{
3211
+ type: z.ZodLiteral<"number">;
3212
+ schema: z.ZodType<({
3213
+ unique: boolean;
3214
+ deprecated: boolean;
3215
+ name?: string | undefined;
3216
+ label?: string | undefined;
3217
+ collection?: string | undefined;
3218
+ } & ({
3219
+ optional: boolean;
3220
+ primaryKey: false;
3221
+ default?: number | SerializedSQL | undefined;
3222
+ } | {
3223
+ primaryKey: true;
3224
+ optional?: false | undefined;
3225
+ default?: undefined;
3226
+ })) & {
3227
+ references?: {
3228
+ type: "number";
3229
+ schema: ({
3230
+ unique: boolean;
3231
+ deprecated: boolean;
3232
+ name?: string | undefined;
3233
+ label?: string | undefined;
3234
+ collection?: string | undefined;
3235
+ } & {
3236
+ optional: boolean;
3237
+ primaryKey: false;
3238
+ default?: number | SerializedSQL | undefined;
3239
+ } & any) | ({
3240
+ unique: boolean;
3241
+ deprecated: boolean;
3242
+ name?: string | undefined;
3243
+ label?: string | undefined;
3244
+ collection?: string | undefined;
3245
+ } & {
3246
+ primaryKey: true;
3247
+ optional?: false | undefined;
3248
+ default?: undefined;
3249
+ } & any);
3250
+ } | undefined;
3251
+ }, ZodTypeDef, ({
3252
+ name?: string | undefined;
3253
+ label?: string | undefined;
3254
+ unique?: boolean | undefined;
3255
+ deprecated?: boolean | undefined;
3256
+ collection?: string | undefined;
3257
+ } & ({
3258
+ primaryKey?: false | undefined;
3259
+ optional?: boolean | undefined;
3260
+ default?: number | SQL<any> | undefined;
3261
+ } | {
3262
+ primaryKey: true;
3263
+ optional?: false | undefined;
3264
+ default?: undefined;
3265
+ })) & {
3266
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
3267
+ }>;
3268
+ }, "strip", z.ZodTypeAny, {
3269
+ type: "number";
3270
+ schema: ({
3271
+ unique: boolean;
3272
+ deprecated: boolean;
3273
+ name?: string | undefined;
3274
+ label?: string | undefined;
3275
+ collection?: string | undefined;
3276
+ } & {
3277
+ optional: boolean;
3278
+ primaryKey: false;
3279
+ default?: number | SerializedSQL | undefined;
3280
+ } & any) | ({
3281
+ unique: boolean;
3282
+ deprecated: boolean;
3283
+ name?: string | undefined;
3284
+ label?: string | undefined;
3285
+ collection?: string | undefined;
3286
+ } & {
3287
+ primaryKey: true;
3288
+ optional?: false | undefined;
3289
+ default?: undefined;
3290
+ } & any);
3291
+ }, {
3292
+ type: "number";
3293
+ schema: ({
3294
+ name?: string | undefined;
3295
+ label?: string | undefined;
3296
+ unique?: boolean | undefined;
3297
+ deprecated?: boolean | undefined;
3298
+ collection?: string | undefined;
3299
+ } & {
3300
+ primaryKey?: false | undefined;
3301
+ optional?: boolean | undefined;
3302
+ default?: number | SQL<any> | undefined;
3303
+ } & {
3304
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
3305
+ }) | ({
3306
+ name?: string | undefined;
3307
+ label?: string | undefined;
3308
+ unique?: boolean | undefined;
3309
+ deprecated?: boolean | undefined;
3310
+ collection?: string | undefined;
3311
+ } & {
3312
+ primaryKey: true;
3313
+ optional?: false | undefined;
3314
+ default?: undefined;
3315
+ } & {
3316
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
3317
+ });
3318
+ }>, z.ZodObject<{
3319
+ type: z.ZodLiteral<"text">;
3320
+ schema: z.ZodType<({
3321
+ unique: boolean;
3322
+ deprecated: boolean;
3323
+ name?: string | undefined;
3324
+ label?: string | undefined;
3325
+ collection?: string | undefined;
3326
+ default?: string | SerializedSQL | undefined;
3327
+ multiline?: boolean | undefined;
3328
+ } & ({
3329
+ optional: boolean;
3330
+ primaryKey: false;
3331
+ } | {
3332
+ primaryKey: true;
3333
+ optional?: false | undefined;
3334
+ })) & {
3335
+ references?: {
3336
+ type: "text";
3337
+ schema: ({
3338
+ unique: boolean;
3339
+ deprecated: boolean;
3340
+ name?: string | undefined;
3341
+ label?: string | undefined;
3342
+ collection?: string | undefined;
3343
+ default?: string | SerializedSQL | undefined;
3344
+ multiline?: boolean | undefined;
3345
+ } & {
3346
+ optional: boolean;
3347
+ primaryKey: false;
3348
+ } & any) | ({
3349
+ unique: boolean;
3350
+ deprecated: boolean;
3351
+ name?: string | undefined;
3352
+ label?: string | undefined;
3353
+ collection?: string | undefined;
3354
+ default?: string | SerializedSQL | undefined;
3355
+ multiline?: boolean | undefined;
3356
+ } & {
3357
+ primaryKey: true;
3358
+ optional?: false | undefined;
3359
+ } & any);
3360
+ } | undefined;
3361
+ }, ZodTypeDef, ({
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?: false | undefined;
3371
+ optional?: boolean | undefined;
3372
+ } | {
3373
+ primaryKey: true;
3374
+ optional?: false | undefined;
3375
+ })) & {
3376
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
3377
+ }>;
3378
+ }, "strip", z.ZodTypeAny, {
3379
+ type: "text";
3380
+ schema: ({
3381
+ unique: boolean;
3382
+ deprecated: boolean;
3383
+ name?: string | undefined;
3384
+ label?: string | undefined;
3385
+ collection?: string | undefined;
3386
+ default?: string | SerializedSQL | undefined;
3387
+ multiline?: boolean | undefined;
3388
+ } & {
3389
+ optional: boolean;
3390
+ primaryKey: false;
3391
+ } & any) | ({
3392
+ unique: boolean;
3393
+ deprecated: boolean;
3394
+ name?: string | undefined;
3395
+ label?: string | undefined;
3396
+ collection?: string | undefined;
3397
+ default?: string | SerializedSQL | undefined;
3398
+ multiline?: boolean | undefined;
3399
+ } & {
3400
+ primaryKey: true;
3401
+ optional?: false | undefined;
3402
+ } & any);
3403
+ }, {
3404
+ type: "text";
3405
+ schema: ({
3406
+ name?: string | undefined;
3407
+ label?: string | undefined;
3408
+ unique?: boolean | undefined;
3409
+ deprecated?: boolean | undefined;
3410
+ collection?: string | undefined;
3411
+ default?: string | SQL<any> | undefined;
3412
+ multiline?: boolean | undefined;
3413
+ } & {
3414
+ primaryKey?: false | undefined;
3415
+ optional?: boolean | undefined;
3416
+ } & {
3417
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
3418
+ }) | ({
3419
+ name?: string | undefined;
3420
+ label?: string | undefined;
3421
+ unique?: boolean | undefined;
3422
+ deprecated?: boolean | undefined;
3423
+ collection?: string | undefined;
3424
+ default?: string | SQL<any> | undefined;
3425
+ multiline?: boolean | undefined;
3426
+ } & {
3427
+ primaryKey: true;
3428
+ optional?: false | undefined;
3429
+ } & {
3430
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
3431
+ });
3432
+ }>, z.ZodObject<{
3433
+ type: z.ZodLiteral<"date">;
3434
+ schema: z.ZodObject<{
3435
+ name: z.ZodOptional<z.ZodString>;
3436
+ label: z.ZodOptional<z.ZodString>;
3437
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3438
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3439
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3440
+ collection: z.ZodOptional<z.ZodString>;
3441
+ default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
3442
+ }, "strip", z.ZodTypeAny, {
3443
+ optional: boolean;
3444
+ unique: boolean;
3445
+ deprecated: boolean;
3446
+ name?: string | undefined;
3447
+ label?: string | undefined;
3448
+ collection?: string | undefined;
3449
+ default?: string | SerializedSQL | undefined;
3450
+ }, {
3451
+ name?: string | undefined;
3452
+ label?: string | undefined;
3453
+ optional?: boolean | undefined;
3454
+ unique?: boolean | undefined;
3455
+ deprecated?: boolean | undefined;
3456
+ collection?: string | undefined;
3457
+ default?: Date | SQL<any> | undefined;
3458
+ }>;
3459
+ }, "strip", z.ZodTypeAny, {
3460
+ type: "date";
3461
+ schema: {
3462
+ optional: boolean;
3463
+ unique: boolean;
3464
+ deprecated: boolean;
3465
+ name?: string | undefined;
3466
+ label?: string | undefined;
3467
+ collection?: string | undefined;
3468
+ default?: string | SerializedSQL | undefined;
3469
+ };
3470
+ }, {
3471
+ type: "date";
3472
+ schema: {
3473
+ name?: string | undefined;
3474
+ label?: string | undefined;
3475
+ optional?: boolean | undefined;
3476
+ unique?: boolean | undefined;
3477
+ deprecated?: boolean | undefined;
3478
+ collection?: string | undefined;
3479
+ default?: Date | SQL<any> | undefined;
3480
+ };
3481
+ }>, z.ZodObject<{
3482
+ type: z.ZodLiteral<"json">;
3483
+ schema: z.ZodObject<{
3484
+ name: z.ZodOptional<z.ZodString>;
3485
+ label: z.ZodOptional<z.ZodString>;
3486
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3487
+ unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3488
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3489
+ collection: z.ZodOptional<z.ZodString>;
3490
+ default: z.ZodOptional<z.ZodUnknown>;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ optional: boolean;
3493
+ unique: boolean;
3494
+ deprecated: boolean;
3495
+ name?: string | undefined;
3496
+ label?: string | undefined;
3497
+ collection?: string | undefined;
3498
+ default?: unknown;
3499
+ }, {
3500
+ name?: string | undefined;
3501
+ label?: string | undefined;
3502
+ optional?: boolean | undefined;
3503
+ unique?: boolean | undefined;
3504
+ deprecated?: boolean | undefined;
3505
+ collection?: string | undefined;
3506
+ default?: unknown;
3507
+ }>;
3508
+ }, "strip", z.ZodTypeAny, {
3509
+ type: "json";
3510
+ schema: {
3511
+ optional: boolean;
3512
+ unique: boolean;
3513
+ deprecated: boolean;
3514
+ name?: string | undefined;
3515
+ label?: string | undefined;
3516
+ collection?: string | undefined;
3517
+ default?: unknown;
3518
+ };
3519
+ }, {
3520
+ type: "json";
3521
+ schema: {
3522
+ name?: string | undefined;
3523
+ label?: string | undefined;
3524
+ optional?: boolean | undefined;
3525
+ unique?: boolean | undefined;
3526
+ deprecated?: boolean | undefined;
3527
+ collection?: string | undefined;
3528
+ default?: unknown;
3529
+ };
3530
+ }>]>>;
3531
+ indexes: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
3532
+ on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
3533
+ unique: z.ZodOptional<z.ZodBoolean>;
3534
+ name: z.ZodOptional<z.ZodString>;
3535
+ }, "strip", z.ZodTypeAny, {
3536
+ on: (string | string[]) & (string | string[] | undefined);
3537
+ unique?: boolean | undefined;
3538
+ name?: string | undefined;
3539
+ }, {
3540
+ on: (string | string[]) & (string | string[] | undefined);
3541
+ unique?: boolean | undefined;
3542
+ name?: string | undefined;
3543
+ }>, "many">, z.ZodRecord<z.ZodString, z.ZodObject<{
3544
+ on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
3545
+ unique: z.ZodOptional<z.ZodBoolean>;
3546
+ }, "strip", z.ZodTypeAny, {
3547
+ on: (string | string[]) & (string | string[] | undefined);
3548
+ unique?: boolean | undefined;
3549
+ }, {
3550
+ on: (string | string[]) & (string | string[] | undefined);
3551
+ unique?: boolean | undefined;
3552
+ }>>]>>;
3553
+ foreignKeys: z.ZodOptional<z.ZodArray<z.ZodType<ForeignKeysOutput, ZodTypeDef, ForeignKeysInput>, "many">>;
3554
+ deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3555
+ }, "strip", z.ZodTypeAny, {
3556
+ deprecated: boolean;
3557
+ columns: Record<string, {
3558
+ type: "boolean";
3559
+ schema: {
3560
+ optional: boolean;
3561
+ unique: boolean;
3562
+ deprecated: boolean;
3563
+ name?: string | undefined;
3564
+ label?: string | undefined;
3565
+ collection?: string | undefined;
3566
+ default?: boolean | SerializedSQL | undefined;
3567
+ };
3568
+ } | {
3569
+ type: "number";
3570
+ schema: ({
3571
+ unique: boolean;
3572
+ deprecated: boolean;
3573
+ name?: string | undefined;
3574
+ label?: string | undefined;
3575
+ collection?: string | undefined;
3576
+ } & {
3577
+ optional: boolean;
3578
+ primaryKey: false;
3579
+ default?: number | SerializedSQL | undefined;
3580
+ } & any) | ({
3581
+ unique: boolean;
3582
+ deprecated: boolean;
3583
+ name?: string | undefined;
3584
+ label?: string | undefined;
3585
+ collection?: string | undefined;
3586
+ } & {
3587
+ primaryKey: true;
3588
+ optional?: false | undefined;
3589
+ default?: undefined;
3590
+ } & any);
3591
+ } | {
3592
+ type: "text";
3593
+ schema: ({
3594
+ unique: boolean;
3595
+ deprecated: boolean;
3596
+ name?: string | undefined;
3597
+ label?: string | undefined;
3598
+ collection?: string | undefined;
3599
+ default?: string | SerializedSQL | undefined;
3600
+ multiline?: boolean | undefined;
3601
+ } & {
3602
+ optional: boolean;
3603
+ primaryKey: false;
3604
+ } & any) | ({
3605
+ unique: boolean;
3606
+ deprecated: boolean;
3607
+ name?: string | undefined;
3608
+ label?: string | undefined;
3609
+ collection?: string | undefined;
3610
+ default?: string | SerializedSQL | undefined;
3611
+ multiline?: boolean | undefined;
3612
+ } & {
3613
+ primaryKey: true;
3614
+ optional?: false | undefined;
3615
+ } & any);
3616
+ } | {
3617
+ type: "date";
3618
+ schema: {
3619
+ optional: boolean;
3620
+ unique: boolean;
3621
+ deprecated: boolean;
3622
+ name?: string | undefined;
3623
+ label?: string | undefined;
3624
+ collection?: string | undefined;
3625
+ default?: string | SerializedSQL | undefined;
3626
+ };
3627
+ } | {
3628
+ type: "json";
3629
+ schema: {
3630
+ optional: boolean;
3631
+ unique: boolean;
3632
+ deprecated: boolean;
3633
+ name?: string | undefined;
3634
+ label?: string | undefined;
3635
+ collection?: string | undefined;
3636
+ default?: unknown;
3637
+ };
3638
+ }>;
3639
+ indexes?: {
3640
+ on: (string | string[]) & (string | string[] | undefined);
3641
+ unique?: boolean | undefined;
3642
+ name?: string | undefined;
3643
+ }[] | Record<string, {
3644
+ on: (string | string[]) & (string | string[] | undefined);
3645
+ unique?: boolean | undefined;
3646
+ }> | undefined;
3647
+ foreignKeys?: ForeignKeysOutput[] | undefined;
3648
+ }, {
3649
+ columns: Record<string, {
3650
+ type: "boolean";
3651
+ schema: {
3652
+ name?: string | undefined;
3653
+ label?: string | undefined;
3654
+ optional?: boolean | undefined;
3655
+ unique?: boolean | undefined;
3656
+ deprecated?: boolean | undefined;
3657
+ collection?: string | undefined;
3658
+ default?: boolean | SQL<any> | undefined;
3659
+ };
3660
+ } | {
3661
+ type: "number";
3662
+ schema: ({
3663
+ name?: string | undefined;
3664
+ label?: string | undefined;
3665
+ unique?: boolean | undefined;
3666
+ deprecated?: boolean | undefined;
3667
+ collection?: string | undefined;
3668
+ } & {
3669
+ primaryKey?: false | undefined;
3670
+ optional?: boolean | undefined;
3671
+ default?: number | SQL<any> | undefined;
3672
+ } & {
3673
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
3674
+ }) | ({
3675
+ name?: string | undefined;
3676
+ label?: string | undefined;
3677
+ unique?: boolean | undefined;
3678
+ deprecated?: boolean | undefined;
3679
+ collection?: string | undefined;
3680
+ } & {
3681
+ primaryKey: true;
3682
+ optional?: false | undefined;
3683
+ default?: undefined;
3684
+ } & {
3685
+ references?: (() => z.input<typeof numberColumnSchema>) | undefined;
3686
+ });
3687
+ } | {
3688
+ type: "text";
3689
+ schema: ({
3690
+ name?: string | undefined;
3691
+ label?: string | undefined;
3692
+ unique?: boolean | undefined;
3693
+ deprecated?: boolean | undefined;
3694
+ collection?: string | undefined;
3695
+ default?: string | SQL<any> | undefined;
3696
+ multiline?: boolean | undefined;
3697
+ } & {
3698
+ primaryKey?: false | undefined;
3699
+ optional?: boolean | undefined;
3700
+ } & {
3701
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
3702
+ }) | ({
3703
+ name?: string | undefined;
3704
+ label?: string | undefined;
3705
+ unique?: boolean | undefined;
3706
+ deprecated?: boolean | undefined;
3707
+ collection?: string | undefined;
3708
+ default?: string | SQL<any> | undefined;
3709
+ multiline?: boolean | undefined;
3710
+ } & {
3711
+ primaryKey: true;
3712
+ optional?: false | undefined;
3713
+ } & {
3714
+ references?: (() => z.input<typeof textColumnSchema>) | undefined;
3715
+ });
3716
+ } | {
3717
+ type: "date";
3718
+ schema: {
3719
+ name?: string | undefined;
3720
+ label?: string | undefined;
3721
+ optional?: boolean | undefined;
3722
+ unique?: boolean | undefined;
3723
+ deprecated?: boolean | undefined;
3724
+ collection?: string | undefined;
3725
+ default?: Date | SQL<any> | undefined;
3726
+ };
3727
+ } | {
3728
+ type: "json";
3729
+ schema: {
3730
+ name?: string | undefined;
3731
+ label?: string | undefined;
3732
+ optional?: boolean | undefined;
3733
+ unique?: boolean | undefined;
3734
+ deprecated?: boolean | undefined;
3735
+ collection?: string | undefined;
3736
+ default?: unknown;
3737
+ };
3738
+ }>;
3739
+ indexes?: {
3740
+ on: (string | string[]) & (string | string[] | undefined);
3741
+ unique?: boolean | undefined;
3742
+ name?: string | undefined;
3743
+ }[] | Record<string, {
3744
+ on: (string | string[]) & (string | string[] | undefined);
3745
+ unique?: boolean | undefined;
3746
+ }> | undefined;
3747
+ foreignKeys?: ForeignKeysInput[] | undefined;
3748
+ deprecated?: boolean | undefined;
3749
+ }>>, Record<string, {
3750
+ deprecated: boolean;
3751
+ columns: Record<string, {
3752
+ type: "boolean";
3753
+ schema: {
3754
+ optional: boolean;
3755
+ unique: boolean;
3756
+ deprecated: boolean;
3757
+ name?: string | undefined;
3758
+ label?: string | undefined;
3759
+ collection?: string | undefined;
3760
+ default?: boolean | SerializedSQL | undefined;
3761
+ };
3762
+ } | {
3763
+ type: "number";
3764
+ schema: ({
3765
+ unique: boolean;
3766
+ deprecated: boolean;
3767
+ name?: string | undefined;
3768
+ label?: string | undefined;
3769
+ collection?: string | undefined;
3770
+ } & {
3771
+ optional: boolean;
3772
+ primaryKey: false;
3773
+ default?: number | SerializedSQL | undefined;
3774
+ } & any) | ({
3775
+ unique: boolean;
3776
+ deprecated: boolean;
3777
+ name?: string | undefined;
3778
+ label?: string | undefined;
3779
+ collection?: string | undefined;
3780
+ } & {
3781
+ primaryKey: true;
3782
+ optional?: false | undefined;
3783
+ default?: undefined;
3784
+ } & any);
3785
+ } | {
3786
+ type: "text";
3787
+ schema: ({
3788
+ unique: boolean;
3789
+ deprecated: boolean;
3790
+ name?: string | undefined;
3791
+ label?: string | undefined;
3792
+ collection?: string | undefined;
3793
+ default?: string | SerializedSQL | undefined;
3794
+ multiline?: boolean | undefined;
3795
+ } & {
3796
+ optional: boolean;
3797
+ primaryKey: false;
3798
+ } & any) | ({
3799
+ unique: boolean;
3800
+ deprecated: boolean;
3801
+ name?: string | undefined;
3802
+ label?: string | undefined;
3803
+ collection?: string | undefined;
3804
+ default?: string | SerializedSQL | undefined;
3805
+ multiline?: boolean | undefined;
3806
+ } & {
3807
+ primaryKey: true;
3808
+ optional?: false | undefined;
3809
+ } & any);
3810
+ } | {
3811
+ type: "date";
3812
+ schema: {
3813
+ optional: boolean;
3814
+ unique: boolean;
3815
+ deprecated: boolean;
3816
+ name?: string | undefined;
3817
+ label?: string | undefined;
3818
+ collection?: string | undefined;
3819
+ default?: string | SerializedSQL | undefined;
3820
+ };
3821
+ } | {
3822
+ type: "json";
3823
+ schema: {
3824
+ optional: boolean;
3825
+ unique: boolean;
3826
+ deprecated: boolean;
3827
+ name?: string | undefined;
3828
+ label?: string | undefined;
3829
+ collection?: string | undefined;
3830
+ default?: unknown;
3831
+ };
3832
+ }>;
3833
+ indexes?: {
3834
+ on: (string | string[]) & (string | string[] | undefined);
3835
+ unique?: boolean | undefined;
3836
+ name?: string | undefined;
3837
+ }[] | Record<string, {
3838
+ on: (string | string[]) & (string | string[] | undefined);
3839
+ unique?: boolean | undefined;
3840
+ }> | undefined;
3841
+ foreignKeys?: ForeignKeysOutput[] | undefined;
3842
+ }>, unknown>>;
3843
+ }, "strip", z.ZodTypeAny, {
3844
+ tables?: Record<string, {
3845
+ deprecated: boolean;
3846
+ columns: Record<string, {
3847
+ type: "boolean";
3848
+ schema: {
3849
+ optional: boolean;
3850
+ unique: boolean;
3851
+ deprecated: boolean;
3852
+ name?: string | undefined;
3853
+ label?: string | undefined;
3854
+ collection?: string | undefined;
3855
+ default?: boolean | SerializedSQL | undefined;
3856
+ };
3857
+ } | {
3858
+ type: "number";
3859
+ schema: ({
3860
+ unique: boolean;
3861
+ deprecated: boolean;
3862
+ name?: string | undefined;
3863
+ label?: string | undefined;
3864
+ collection?: string | undefined;
3865
+ } & {
3866
+ optional: boolean;
3867
+ primaryKey: false;
3868
+ default?: number | SerializedSQL | undefined;
3869
+ } & any) | ({
3870
+ unique: boolean;
3871
+ deprecated: boolean;
3872
+ name?: string | undefined;
3873
+ label?: string | undefined;
3874
+ collection?: string | undefined;
3875
+ } & {
3876
+ primaryKey: true;
3877
+ optional?: false | undefined;
3878
+ default?: undefined;
3879
+ } & any);
3880
+ } | {
3881
+ type: "text";
3882
+ schema: ({
3883
+ unique: boolean;
3884
+ deprecated: boolean;
3885
+ name?: string | undefined;
3886
+ label?: string | undefined;
3887
+ collection?: string | undefined;
3888
+ default?: string | SerializedSQL | undefined;
3889
+ multiline?: boolean | undefined;
3890
+ } & {
3891
+ optional: boolean;
3892
+ primaryKey: false;
3893
+ } & any) | ({
3894
+ unique: boolean;
3895
+ deprecated: boolean;
3896
+ name?: string | undefined;
3897
+ label?: string | undefined;
3898
+ collection?: string | undefined;
3899
+ default?: string | SerializedSQL | undefined;
3900
+ multiline?: boolean | undefined;
3901
+ } & {
3902
+ primaryKey: true;
3903
+ optional?: false | undefined;
3904
+ } & any);
3905
+ } | {
3906
+ type: "date";
3907
+ schema: {
3908
+ optional: boolean;
3909
+ unique: boolean;
3910
+ deprecated: boolean;
3911
+ name?: string | undefined;
3912
+ label?: string | undefined;
3913
+ collection?: string | undefined;
3914
+ default?: string | SerializedSQL | undefined;
3915
+ };
3916
+ } | {
3917
+ type: "json";
3918
+ schema: {
3919
+ optional: boolean;
3920
+ unique: boolean;
3921
+ deprecated: boolean;
3922
+ name?: string | undefined;
3923
+ label?: string | undefined;
3924
+ collection?: string | undefined;
3925
+ default?: unknown;
3926
+ };
3927
+ }>;
3928
+ indexes?: {
3929
+ on: (string | string[]) & (string | string[] | undefined);
3930
+ unique?: boolean | undefined;
3931
+ name?: string | undefined;
3932
+ }[] | Record<string, {
3933
+ on: (string | string[]) & (string | string[] | undefined);
3934
+ unique?: boolean | undefined;
3935
+ }> | undefined;
3936
+ foreignKeys?: ForeignKeysOutput[] | undefined;
3937
+ }> | undefined;
3938
+ }, {
3939
+ tables?: unknown;
3940
+ }>, {
3941
+ tables: Record<string, {
3942
+ indexes: Record<string, {
3943
+ on: (string | string[]) & (string | string[] | undefined);
3944
+ unique?: boolean | undefined;
3945
+ }>;
3946
+ deprecated: boolean;
3947
+ columns: Record<string, {
3948
+ type: "boolean";
3949
+ schema: {
3950
+ optional: boolean;
3951
+ unique: boolean;
3952
+ deprecated: boolean;
3953
+ name?: string | undefined;
3954
+ label?: string | undefined;
3955
+ collection?: string | undefined;
3956
+ default?: boolean | SerializedSQL | undefined;
3957
+ };
3958
+ } | {
3959
+ type: "number";
3960
+ schema: ({
3961
+ unique: boolean;
3962
+ deprecated: boolean;
3963
+ name?: string | undefined;
3964
+ label?: string | undefined;
3965
+ collection?: string | undefined;
3966
+ } & {
3967
+ optional: boolean;
3968
+ primaryKey: false;
3969
+ default?: number | SerializedSQL | undefined;
3970
+ } & any) | ({
3971
+ unique: boolean;
3972
+ deprecated: boolean;
3973
+ name?: string | undefined;
3974
+ label?: string | undefined;
3975
+ collection?: string | undefined;
3976
+ } & {
3977
+ primaryKey: true;
3978
+ optional?: false | undefined;
3979
+ default?: undefined;
3980
+ } & any);
3981
+ } | {
3982
+ type: "text";
3983
+ schema: ({
3984
+ unique: boolean;
3985
+ deprecated: boolean;
3986
+ name?: string | undefined;
3987
+ label?: string | undefined;
3988
+ collection?: string | undefined;
3989
+ default?: string | SerializedSQL | undefined;
3990
+ multiline?: boolean | undefined;
3991
+ } & {
3992
+ optional: boolean;
3993
+ primaryKey: false;
3994
+ } & any) | ({
3995
+ unique: boolean;
3996
+ deprecated: boolean;
3997
+ name?: string | undefined;
3998
+ label?: string | undefined;
3999
+ collection?: string | undefined;
4000
+ default?: string | SerializedSQL | undefined;
4001
+ multiline?: boolean | undefined;
4002
+ } & {
4003
+ primaryKey: true;
4004
+ optional?: false | undefined;
4005
+ } & any);
4006
+ } | {
4007
+ type: "date";
4008
+ schema: {
4009
+ optional: boolean;
4010
+ unique: boolean;
4011
+ deprecated: boolean;
4012
+ name?: string | undefined;
4013
+ label?: string | undefined;
4014
+ collection?: string | undefined;
4015
+ default?: string | SerializedSQL | undefined;
4016
+ };
4017
+ } | {
4018
+ type: "json";
4019
+ schema: {
4020
+ optional: boolean;
4021
+ unique: boolean;
4022
+ deprecated: boolean;
4023
+ name?: string | undefined;
4024
+ label?: string | undefined;
4025
+ collection?: string | undefined;
4026
+ default?: unknown;
4027
+ };
4028
+ }>;
4029
+ foreignKeys?: ForeignKeysOutput[] | undefined;
4030
+ }>;
4031
+ }, {
4032
+ tables?: unknown;
4033
+ }>;
4034
+ export {};