@astrojs/db 0.15.0 → 0.16.0

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 (39) hide show
  1. package/dist/_internal/core/schemas.d.ts +57 -57
  2. package/dist/_internal/core/types.d.ts +1 -1
  3. package/dist/_internal/core/utils.d.ts +1 -10
  4. package/dist/_internal/runtime/utils.d.ts +0 -15
  5. package/dist/_internal/runtime/virtual.d.ts +2 -2
  6. package/dist/core/cli/commands/execute/index.js +5 -5
  7. package/dist/core/cli/commands/push/index.js +6 -40
  8. package/dist/core/cli/commands/shell/index.js +3 -9
  9. package/dist/core/cli/commands/verify/index.js +2 -7
  10. package/dist/core/cli/index.js +4 -16
  11. package/dist/core/cli/migration-queries.d.ts +1 -4
  12. package/dist/core/cli/migration-queries.js +9 -32
  13. package/dist/core/cli/print-help.js +1 -1
  14. package/dist/core/integration/index.js +5 -8
  15. package/dist/core/integration/vite-plugin-db.d.ts +4 -4
  16. package/dist/core/integration/vite-plugin-db.js +13 -22
  17. package/dist/core/load-file.d.ts +5 -5
  18. package/dist/core/load-file.js +0 -2
  19. package/dist/core/queries.d.ts +3 -3
  20. package/dist/core/schemas.d.ts +257 -257
  21. package/dist/core/schemas.js +1 -1
  22. package/dist/core/types.d.ts +1 -1
  23. package/dist/core/utils.d.ts +1 -10
  24. package/dist/core/utils.js +2 -27
  25. package/dist/index.d.ts +1 -1
  26. package/dist/runtime/db-client.d.ts +5 -6
  27. package/dist/runtime/db-client.js +10 -167
  28. package/dist/runtime/index.d.ts +1 -1
  29. package/dist/runtime/index.js +1 -1
  30. package/dist/runtime/utils.d.ts +0 -15
  31. package/dist/runtime/utils.js +1 -26
  32. package/dist/runtime/virtual.js +21 -21
  33. package/package.json +4 -9
  34. package/dist/core/cli/commands/link/index.d.ts +0 -1
  35. package/dist/core/cli/commands/link/index.js +0 -266
  36. package/dist/core/cli/commands/login/index.d.ts +0 -8
  37. package/dist/core/cli/commands/login/index.js +0 -76
  38. package/dist/core/cli/commands/logout/index.d.ts +0 -1
  39. package/dist/core/cli/commands/logout/index.js +0 -9
@@ -5,31 +5,31 @@ import type { NumberColumn, TextColumn } from './types.js';
5
5
  export type MaybeArray<T> = T | T[];
6
6
  export declare const booleanColumnSchema: z.ZodObject<{
7
7
  type: z.ZodLiteral<"boolean">;
8
- schema: z.ZodObject<z.objectUtil.extendShape<{
8
+ schema: z.ZodObject<{
9
9
  label: z.ZodOptional<z.ZodString>;
10
10
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
11
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
12
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
13
  name: z.ZodOptional<z.ZodString>;
14
14
  collection: z.ZodOptional<z.ZodString>;
15
- }, {
15
+ } & {
16
16
  default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
17
- }>, "strip", z.ZodTypeAny, {
17
+ }, "strip", z.ZodTypeAny, {
18
18
  optional: boolean;
19
19
  unique: boolean;
20
20
  deprecated: boolean;
21
+ default?: boolean | SerializedSQL | undefined;
21
22
  name?: string | undefined;
22
23
  label?: string | undefined;
23
24
  collection?: string | undefined;
24
- default?: boolean | SerializedSQL | undefined;
25
25
  }, {
26
+ default?: boolean | SQL<any> | undefined;
26
27
  name?: string | undefined;
27
28
  label?: string | undefined;
28
29
  optional?: boolean | undefined;
29
30
  unique?: boolean | undefined;
30
31
  deprecated?: boolean | undefined;
31
32
  collection?: string | undefined;
32
- default?: boolean | SQL<any> | undefined;
33
33
  }>;
34
34
  }, "strip", z.ZodTypeAny, {
35
35
  type: "boolean";
@@ -37,21 +37,21 @@ export declare const booleanColumnSchema: z.ZodObject<{
37
37
  optional: boolean;
38
38
  unique: boolean;
39
39
  deprecated: boolean;
40
+ default?: boolean | SerializedSQL | undefined;
40
41
  name?: string | undefined;
41
42
  label?: string | undefined;
42
43
  collection?: string | undefined;
43
- default?: boolean | SerializedSQL | undefined;
44
44
  };
45
45
  }, {
46
46
  type: "boolean";
47
47
  schema: {
48
+ default?: boolean | SQL<any> | undefined;
48
49
  name?: string | undefined;
49
50
  label?: string | undefined;
50
51
  optional?: boolean | undefined;
51
52
  unique?: boolean | undefined;
52
53
  deprecated?: boolean | undefined;
53
54
  collection?: string | undefined;
54
- default?: boolean | SQL<any> | undefined;
55
55
  };
56
56
  }>;
57
57
  declare const numberColumnBaseSchema: z.ZodIntersection<z.ZodObject<Omit<{
@@ -82,8 +82,8 @@ declare const numberColumnBaseSchema: z.ZodIntersection<z.ZodObject<Omit<{
82
82
  primaryKey: false;
83
83
  default?: number | SerializedSQL | undefined;
84
84
  }, {
85
- optional?: boolean | undefined;
86
85
  default?: number | SQL<any> | undefined;
86
+ optional?: boolean | undefined;
87
87
  primaryKey?: false | undefined;
88
88
  }>, z.ZodObject<{
89
89
  primaryKey: z.ZodLiteral<true>;
@@ -91,12 +91,12 @@ declare const numberColumnBaseSchema: z.ZodIntersection<z.ZodObject<Omit<{
91
91
  default: z.ZodOptional<z.ZodLiteral<undefined>>;
92
92
  }, "strip", z.ZodTypeAny, {
93
93
  primaryKey: true;
94
- optional?: false | undefined;
95
94
  default?: undefined;
95
+ optional?: false | undefined;
96
96
  }, {
97
97
  primaryKey: true;
98
- optional?: false | undefined;
99
98
  default?: undefined;
99
+ optional?: false | undefined;
100
100
  }>]>>;
101
101
  export declare const numberColumnOptsSchema: z.ZodType<z.infer<typeof numberColumnBaseSchema> & {
102
102
  references?: NumberColumn;
@@ -117,8 +117,8 @@ export declare const numberColumnSchema: z.ZodObject<{
117
117
  default?: number | SerializedSQL | undefined;
118
118
  } | {
119
119
  primaryKey: true;
120
- optional?: false | undefined;
121
120
  default?: undefined;
121
+ optional?: false | undefined;
122
122
  })) & {
123
123
  references?: NumberColumn;
124
124
  }, ZodTypeDef, ({
@@ -128,13 +128,13 @@ export declare const numberColumnSchema: z.ZodObject<{
128
128
  deprecated?: boolean | undefined;
129
129
  collection?: string | undefined;
130
130
  } & ({
131
- optional?: boolean | undefined;
132
131
  default?: number | SQL<any> | undefined;
132
+ optional?: boolean | undefined;
133
133
  primaryKey?: false | undefined;
134
134
  } | {
135
135
  primaryKey: true;
136
- optional?: false | undefined;
137
136
  default?: undefined;
137
+ optional?: false | undefined;
138
138
  })) & {
139
139
  references?: () => z.input<typeof numberColumnSchema>;
140
140
  }>;
@@ -152,8 +152,8 @@ export declare const numberColumnSchema: z.ZodObject<{
152
152
  default?: number | SerializedSQL | undefined;
153
153
  } | {
154
154
  primaryKey: true;
155
- optional?: false | undefined;
156
155
  default?: undefined;
156
+ optional?: false | undefined;
157
157
  })) & {
158
158
  references?: NumberColumn;
159
159
  };
@@ -166,42 +166,42 @@ export declare const numberColumnSchema: z.ZodObject<{
166
166
  deprecated?: boolean | undefined;
167
167
  collection?: string | undefined;
168
168
  } & ({
169
- optional?: boolean | undefined;
170
169
  default?: number | SQL<any> | undefined;
170
+ optional?: boolean | undefined;
171
171
  primaryKey?: false | undefined;
172
172
  } | {
173
173
  primaryKey: true;
174
- optional?: false | undefined;
175
174
  default?: undefined;
175
+ optional?: false | undefined;
176
176
  })) & {
177
177
  references?: () => z.input<typeof numberColumnSchema>;
178
178
  };
179
179
  }>;
180
- declare const textColumnBaseSchema: z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<Omit<{
180
+ declare const textColumnBaseSchema: z.ZodIntersection<z.ZodObject<Omit<{
181
181
  label: z.ZodOptional<z.ZodString>;
182
182
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
183
183
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
184
184
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
185
185
  name: z.ZodOptional<z.ZodString>;
186
186
  collection: z.ZodOptional<z.ZodString>;
187
- }, "optional">, {
187
+ }, "optional"> & {
188
188
  default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
189
189
  multiline: z.ZodOptional<z.ZodBoolean>;
190
- }>, "strip", z.ZodTypeAny, {
190
+ }, "strip", z.ZodTypeAny, {
191
191
  unique: boolean;
192
192
  deprecated: boolean;
193
+ default?: string | SerializedSQL | undefined;
193
194
  name?: string | undefined;
194
195
  label?: string | undefined;
195
196
  collection?: string | undefined;
196
- default?: string | SerializedSQL | undefined;
197
197
  multiline?: boolean | undefined;
198
198
  }, {
199
+ default?: string | SQL<any> | undefined;
199
200
  name?: string | undefined;
200
201
  label?: string | undefined;
201
202
  unique?: boolean | undefined;
202
203
  deprecated?: boolean | undefined;
203
204
  collection?: string | undefined;
204
- default?: string | SQL<any> | undefined;
205
205
  multiline?: boolean | undefined;
206
206
  }>, z.ZodUnion<[z.ZodObject<{
207
207
  primaryKey: z.ZodDefault<z.ZodOptional<z.ZodLiteral<false>>>;
@@ -232,10 +232,10 @@ export declare const textColumnSchema: z.ZodObject<{
232
232
  schema: z.ZodType<({
233
233
  unique: boolean;
234
234
  deprecated: boolean;
235
+ default?: string | SerializedSQL | undefined;
235
236
  name?: string | undefined;
236
237
  label?: string | undefined;
237
238
  collection?: string | undefined;
238
- default?: string | SerializedSQL | undefined;
239
239
  multiline?: boolean | undefined;
240
240
  } & ({
241
241
  optional: boolean;
@@ -246,12 +246,12 @@ export declare const textColumnSchema: z.ZodObject<{
246
246
  })) & {
247
247
  references?: TextColumn;
248
248
  }, ZodTypeDef, ({
249
+ default?: string | SQL<any> | undefined;
249
250
  name?: string | undefined;
250
251
  label?: string | undefined;
251
252
  unique?: boolean | undefined;
252
253
  deprecated?: boolean | undefined;
253
254
  collection?: string | undefined;
254
- default?: string | SQL<any> | undefined;
255
255
  multiline?: boolean | undefined;
256
256
  } & ({
257
257
  optional?: boolean | undefined;
@@ -267,10 +267,10 @@ export declare const textColumnSchema: z.ZodObject<{
267
267
  schema: ({
268
268
  unique: boolean;
269
269
  deprecated: boolean;
270
+ default?: string | SerializedSQL | undefined;
270
271
  name?: string | undefined;
271
272
  label?: string | undefined;
272
273
  collection?: string | undefined;
273
- default?: string | SerializedSQL | undefined;
274
274
  multiline?: boolean | undefined;
275
275
  } & ({
276
276
  optional: boolean;
@@ -284,12 +284,12 @@ export declare const textColumnSchema: z.ZodObject<{
284
284
  }, {
285
285
  type: "text";
286
286
  schema: ({
287
+ default?: string | SQL<any> | undefined;
287
288
  name?: string | undefined;
288
289
  label?: string | undefined;
289
290
  unique?: boolean | undefined;
290
291
  deprecated?: boolean | undefined;
291
292
  collection?: string | undefined;
292
- default?: string | SQL<any> | undefined;
293
293
  multiline?: boolean | undefined;
294
294
  } & ({
295
295
  optional?: boolean | undefined;
@@ -303,31 +303,31 @@ export declare const textColumnSchema: z.ZodObject<{
303
303
  }>;
304
304
  export declare const dateColumnSchema: z.ZodObject<{
305
305
  type: z.ZodLiteral<"date">;
306
- schema: z.ZodObject<z.objectUtil.extendShape<{
306
+ schema: z.ZodObject<{
307
307
  label: z.ZodOptional<z.ZodString>;
308
308
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
309
309
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
310
310
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
311
311
  name: z.ZodOptional<z.ZodString>;
312
312
  collection: z.ZodOptional<z.ZodString>;
313
- }, {
313
+ } & {
314
314
  default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
315
- }>, "strip", z.ZodTypeAny, {
315
+ }, "strip", z.ZodTypeAny, {
316
316
  optional: boolean;
317
317
  unique: boolean;
318
318
  deprecated: boolean;
319
+ default?: string | SerializedSQL | undefined;
319
320
  name?: string | undefined;
320
321
  label?: string | undefined;
321
322
  collection?: string | undefined;
322
- default?: string | SerializedSQL | undefined;
323
323
  }, {
324
+ default?: Date | SQL<any> | undefined;
324
325
  name?: string | undefined;
325
326
  label?: string | undefined;
326
327
  optional?: boolean | undefined;
327
328
  unique?: boolean | undefined;
328
329
  deprecated?: boolean | undefined;
329
330
  collection?: string | undefined;
330
- default?: Date | SQL<any> | undefined;
331
331
  }>;
332
332
  }, "strip", z.ZodTypeAny, {
333
333
  type: "date";
@@ -335,50 +335,50 @@ export declare const dateColumnSchema: z.ZodObject<{
335
335
  optional: boolean;
336
336
  unique: boolean;
337
337
  deprecated: boolean;
338
+ default?: string | SerializedSQL | undefined;
338
339
  name?: string | undefined;
339
340
  label?: string | undefined;
340
341
  collection?: string | undefined;
341
- default?: string | SerializedSQL | undefined;
342
342
  };
343
343
  }, {
344
344
  type: "date";
345
345
  schema: {
346
+ default?: Date | SQL<any> | undefined;
346
347
  name?: string | undefined;
347
348
  label?: string | undefined;
348
349
  optional?: boolean | undefined;
349
350
  unique?: boolean | undefined;
350
351
  deprecated?: boolean | undefined;
351
352
  collection?: string | undefined;
352
- default?: Date | SQL<any> | undefined;
353
353
  };
354
354
  }>;
355
355
  export declare const jsonColumnSchema: z.ZodObject<{
356
356
  type: z.ZodLiteral<"json">;
357
- schema: z.ZodObject<z.objectUtil.extendShape<{
357
+ schema: z.ZodObject<{
358
358
  label: z.ZodOptional<z.ZodString>;
359
359
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
360
360
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
361
361
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
362
362
  name: z.ZodOptional<z.ZodString>;
363
363
  collection: z.ZodOptional<z.ZodString>;
364
- }, {
364
+ } & {
365
365
  default: z.ZodOptional<z.ZodUnknown>;
366
- }>, "strip", z.ZodTypeAny, {
366
+ }, "strip", z.ZodTypeAny, {
367
367
  optional: boolean;
368
368
  unique: boolean;
369
369
  deprecated: boolean;
370
+ default?: unknown;
370
371
  name?: string | undefined;
371
372
  label?: string | undefined;
372
373
  collection?: string | undefined;
373
- default?: unknown;
374
374
  }, {
375
+ default?: unknown;
375
376
  name?: string | undefined;
376
377
  label?: string | undefined;
377
378
  optional?: boolean | undefined;
378
379
  unique?: boolean | undefined;
379
380
  deprecated?: boolean | undefined;
380
381
  collection?: string | undefined;
381
- default?: unknown;
382
382
  }>;
383
383
  }, "strip", z.ZodTypeAny, {
384
384
  type: "json";
@@ -386,50 +386,50 @@ export declare const jsonColumnSchema: z.ZodObject<{
386
386
  optional: boolean;
387
387
  unique: boolean;
388
388
  deprecated: boolean;
389
+ default?: unknown;
389
390
  name?: string | undefined;
390
391
  label?: string | undefined;
391
392
  collection?: string | undefined;
392
- default?: unknown;
393
393
  };
394
394
  }, {
395
395
  type: "json";
396
396
  schema: {
397
+ default?: unknown;
397
398
  name?: string | undefined;
398
399
  label?: string | undefined;
399
400
  optional?: boolean | undefined;
400
401
  unique?: boolean | undefined;
401
402
  deprecated?: boolean | undefined;
402
403
  collection?: string | undefined;
403
- default?: unknown;
404
404
  };
405
405
  }>;
406
406
  export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
407
407
  type: z.ZodLiteral<"boolean">;
408
- schema: z.ZodObject<z.objectUtil.extendShape<{
408
+ schema: z.ZodObject<{
409
409
  label: z.ZodOptional<z.ZodString>;
410
410
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
411
411
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
412
412
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
413
413
  name: z.ZodOptional<z.ZodString>;
414
414
  collection: z.ZodOptional<z.ZodString>;
415
- }, {
415
+ } & {
416
416
  default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
417
- }>, "strip", z.ZodTypeAny, {
417
+ }, "strip", z.ZodTypeAny, {
418
418
  optional: boolean;
419
419
  unique: boolean;
420
420
  deprecated: boolean;
421
+ default?: boolean | SerializedSQL | undefined;
421
422
  name?: string | undefined;
422
423
  label?: string | undefined;
423
424
  collection?: string | undefined;
424
- default?: boolean | SerializedSQL | undefined;
425
425
  }, {
426
+ default?: boolean | SQL<any> | undefined;
426
427
  name?: string | undefined;
427
428
  label?: string | undefined;
428
429
  optional?: boolean | undefined;
429
430
  unique?: boolean | undefined;
430
431
  deprecated?: boolean | undefined;
431
432
  collection?: string | undefined;
432
- default?: boolean | SQL<any> | undefined;
433
433
  }>;
434
434
  }, "strip", z.ZodTypeAny, {
435
435
  type: "boolean";
@@ -437,21 +437,21 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
437
437
  optional: boolean;
438
438
  unique: boolean;
439
439
  deprecated: boolean;
440
+ default?: boolean | SerializedSQL | undefined;
440
441
  name?: string | undefined;
441
442
  label?: string | undefined;
442
443
  collection?: string | undefined;
443
- default?: boolean | SerializedSQL | undefined;
444
444
  };
445
445
  }, {
446
446
  type: "boolean";
447
447
  schema: {
448
+ default?: boolean | SQL<any> | undefined;
448
449
  name?: string | undefined;
449
450
  label?: string | undefined;
450
451
  optional?: boolean | undefined;
451
452
  unique?: boolean | undefined;
452
453
  deprecated?: boolean | undefined;
453
454
  collection?: string | undefined;
454
- default?: boolean | SQL<any> | undefined;
455
455
  };
456
456
  }>, z.ZodObject<{
457
457
  type: z.ZodLiteral<"number">;
@@ -467,8 +467,8 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
467
467
  default?: number | SerializedSQL | undefined;
468
468
  } | {
469
469
  primaryKey: true;
470
- optional?: false | undefined;
471
470
  default?: undefined;
471
+ optional?: false | undefined;
472
472
  })) & {
473
473
  references?: NumberColumn;
474
474
  }, ZodTypeDef, ({
@@ -478,13 +478,13 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
478
478
  deprecated?: boolean | undefined;
479
479
  collection?: string | undefined;
480
480
  } & ({
481
- optional?: boolean | undefined;
482
481
  default?: number | SQL<any> | undefined;
482
+ optional?: boolean | undefined;
483
483
  primaryKey?: false | undefined;
484
484
  } | {
485
485
  primaryKey: true;
486
- optional?: false | undefined;
487
486
  default?: undefined;
487
+ optional?: false | undefined;
488
488
  })) & {
489
489
  references?: () => z.input<typeof numberColumnSchema>;
490
490
  }>;
@@ -502,8 +502,8 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
502
502
  default?: number | SerializedSQL | undefined;
503
503
  } | {
504
504
  primaryKey: true;
505
- optional?: false | undefined;
506
505
  default?: undefined;
506
+ optional?: false | undefined;
507
507
  })) & {
508
508
  references?: NumberColumn;
509
509
  };
@@ -516,13 +516,13 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
516
516
  deprecated?: boolean | undefined;
517
517
  collection?: string | undefined;
518
518
  } & ({
519
- optional?: boolean | undefined;
520
519
  default?: number | SQL<any> | undefined;
520
+ optional?: boolean | undefined;
521
521
  primaryKey?: false | undefined;
522
522
  } | {
523
523
  primaryKey: true;
524
- optional?: false | undefined;
525
524
  default?: undefined;
525
+ optional?: false | undefined;
526
526
  })) & {
527
527
  references?: () => z.input<typeof numberColumnSchema>;
528
528
  };
@@ -531,10 +531,10 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
531
531
  schema: z.ZodType<({
532
532
  unique: boolean;
533
533
  deprecated: boolean;
534
+ default?: string | SerializedSQL | undefined;
534
535
  name?: string | undefined;
535
536
  label?: string | undefined;
536
537
  collection?: string | undefined;
537
- default?: string | SerializedSQL | undefined;
538
538
  multiline?: boolean | undefined;
539
539
  } & ({
540
540
  optional: boolean;
@@ -545,12 +545,12 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
545
545
  })) & {
546
546
  references?: TextColumn;
547
547
  }, ZodTypeDef, ({
548
+ default?: string | SQL<any> | undefined;
548
549
  name?: string | undefined;
549
550
  label?: string | undefined;
550
551
  unique?: boolean | undefined;
551
552
  deprecated?: boolean | undefined;
552
553
  collection?: string | undefined;
553
- default?: string | SQL<any> | undefined;
554
554
  multiline?: boolean | undefined;
555
555
  } & ({
556
556
  optional?: boolean | undefined;
@@ -566,10 +566,10 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
566
566
  schema: ({
567
567
  unique: boolean;
568
568
  deprecated: boolean;
569
+ default?: string | SerializedSQL | undefined;
569
570
  name?: string | undefined;
570
571
  label?: string | undefined;
571
572
  collection?: string | undefined;
572
- default?: string | SerializedSQL | undefined;
573
573
  multiline?: boolean | undefined;
574
574
  } & ({
575
575
  optional: boolean;
@@ -583,12 +583,12 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
583
583
  }, {
584
584
  type: "text";
585
585
  schema: ({
586
+ default?: string | SQL<any> | undefined;
586
587
  name?: string | undefined;
587
588
  label?: string | undefined;
588
589
  unique?: boolean | undefined;
589
590
  deprecated?: boolean | undefined;
590
591
  collection?: string | undefined;
591
- default?: string | SQL<any> | undefined;
592
592
  multiline?: boolean | undefined;
593
593
  } & ({
594
594
  optional?: boolean | undefined;
@@ -601,31 +601,31 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
601
601
  };
602
602
  }>, z.ZodObject<{
603
603
  type: z.ZodLiteral<"date">;
604
- schema: z.ZodObject<z.objectUtil.extendShape<{
604
+ schema: z.ZodObject<{
605
605
  label: z.ZodOptional<z.ZodString>;
606
606
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
607
607
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
608
608
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
609
609
  name: z.ZodOptional<z.ZodString>;
610
610
  collection: z.ZodOptional<z.ZodString>;
611
- }, {
611
+ } & {
612
612
  default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
613
- }>, "strip", z.ZodTypeAny, {
613
+ }, "strip", z.ZodTypeAny, {
614
614
  optional: boolean;
615
615
  unique: boolean;
616
616
  deprecated: boolean;
617
+ default?: string | SerializedSQL | undefined;
617
618
  name?: string | undefined;
618
619
  label?: string | undefined;
619
620
  collection?: string | undefined;
620
- default?: string | SerializedSQL | undefined;
621
621
  }, {
622
+ default?: Date | SQL<any> | undefined;
622
623
  name?: string | undefined;
623
624
  label?: string | undefined;
624
625
  optional?: boolean | undefined;
625
626
  unique?: boolean | undefined;
626
627
  deprecated?: boolean | undefined;
627
628
  collection?: string | undefined;
628
- default?: Date | SQL<any> | undefined;
629
629
  }>;
630
630
  }, "strip", z.ZodTypeAny, {
631
631
  type: "date";
@@ -633,49 +633,49 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
633
633
  optional: boolean;
634
634
  unique: boolean;
635
635
  deprecated: boolean;
636
+ default?: string | SerializedSQL | undefined;
636
637
  name?: string | undefined;
637
638
  label?: string | undefined;
638
639
  collection?: string | undefined;
639
- default?: string | SerializedSQL | undefined;
640
640
  };
641
641
  }, {
642
642
  type: "date";
643
643
  schema: {
644
+ default?: Date | SQL<any> | undefined;
644
645
  name?: string | undefined;
645
646
  label?: string | undefined;
646
647
  optional?: boolean | undefined;
647
648
  unique?: boolean | undefined;
648
649
  deprecated?: boolean | undefined;
649
650
  collection?: string | undefined;
650
- default?: Date | SQL<any> | undefined;
651
651
  };
652
652
  }>, z.ZodObject<{
653
653
  type: z.ZodLiteral<"json">;
654
- schema: z.ZodObject<z.objectUtil.extendShape<{
654
+ schema: z.ZodObject<{
655
655
  label: z.ZodOptional<z.ZodString>;
656
656
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
657
657
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
658
658
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
659
659
  name: z.ZodOptional<z.ZodString>;
660
660
  collection: z.ZodOptional<z.ZodString>;
661
- }, {
661
+ } & {
662
662
  default: z.ZodOptional<z.ZodUnknown>;
663
- }>, "strip", z.ZodTypeAny, {
663
+ }, "strip", z.ZodTypeAny, {
664
664
  optional: boolean;
665
665
  unique: boolean;
666
666
  deprecated: boolean;
667
+ default?: unknown;
667
668
  name?: string | undefined;
668
669
  label?: string | undefined;
669
670
  collection?: string | undefined;
670
- default?: unknown;
671
671
  }, {
672
+ default?: unknown;
672
673
  name?: string | undefined;
673
674
  label?: string | undefined;
674
675
  optional?: boolean | undefined;
675
676
  unique?: boolean | undefined;
676
677
  deprecated?: boolean | undefined;
677
678
  collection?: string | undefined;
678
- default?: unknown;
679
679
  }>;
680
680
  }, "strip", z.ZodTypeAny, {
681
681
  type: "json";
@@ -683,21 +683,21 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
683
683
  optional: boolean;
684
684
  unique: boolean;
685
685
  deprecated: boolean;
686
+ default?: unknown;
686
687
  name?: string | undefined;
687
688
  label?: string | undefined;
688
689
  collection?: string | undefined;
689
- default?: unknown;
690
690
  };
691
691
  }, {
692
692
  type: "json";
693
693
  schema: {
694
+ default?: unknown;
694
695
  name?: string | undefined;
695
696
  label?: string | undefined;
696
697
  optional?: boolean | undefined;
697
698
  unique?: boolean | undefined;
698
699
  deprecated?: boolean | undefined;
699
700
  collection?: string | undefined;
700
- default?: unknown;
701
701
  };
702
702
  }>]>;
703
703
  export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
@@ -705,10 +705,10 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
705
705
  schema: z.ZodType<({
706
706
  unique: boolean;
707
707
  deprecated: boolean;
708
+ default?: string | SerializedSQL | undefined;
708
709
  name?: string | undefined;
709
710
  label?: string | undefined;
710
711
  collection?: string | undefined;
711
- default?: string | SerializedSQL | undefined;
712
712
  multiline?: boolean | undefined;
713
713
  } & ({
714
714
  optional: boolean;
@@ -719,12 +719,12 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
719
719
  })) & {
720
720
  references?: TextColumn;
721
721
  }, ZodTypeDef, ({
722
+ default?: string | SQL<any> | undefined;
722
723
  name?: string | undefined;
723
724
  label?: string | undefined;
724
725
  unique?: boolean | undefined;
725
726
  deprecated?: boolean | undefined;
726
727
  collection?: string | undefined;
727
- default?: string | SQL<any> | undefined;
728
728
  multiline?: boolean | undefined;
729
729
  } & ({
730
730
  optional?: boolean | undefined;
@@ -740,10 +740,10 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
740
740
  schema: ({
741
741
  unique: boolean;
742
742
  deprecated: boolean;
743
+ default?: string | SerializedSQL | undefined;
743
744
  name?: string | undefined;
744
745
  label?: string | undefined;
745
746
  collection?: string | undefined;
746
- default?: string | SerializedSQL | undefined;
747
747
  multiline?: boolean | undefined;
748
748
  } & ({
749
749
  optional: boolean;
@@ -757,12 +757,12 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
757
757
  }, {
758
758
  type: "text";
759
759
  schema: ({
760
+ default?: string | SQL<any> | undefined;
760
761
  name?: string | undefined;
761
762
  label?: string | undefined;
762
763
  unique?: boolean | undefined;
763
764
  deprecated?: boolean | undefined;
764
765
  collection?: string | undefined;
765
- default?: string | SQL<any> | undefined;
766
766
  multiline?: boolean | undefined;
767
767
  } & ({
768
768
  optional?: boolean | undefined;
@@ -787,8 +787,8 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
787
787
  default?: number | SerializedSQL | undefined;
788
788
  } | {
789
789
  primaryKey: true;
790
- optional?: false | undefined;
791
790
  default?: undefined;
791
+ optional?: false | undefined;
792
792
  })) & {
793
793
  references?: NumberColumn;
794
794
  }, ZodTypeDef, ({
@@ -798,13 +798,13 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
798
798
  deprecated?: boolean | undefined;
799
799
  collection?: string | undefined;
800
800
  } & ({
801
- optional?: boolean | undefined;
802
801
  default?: number | SQL<any> | undefined;
802
+ optional?: boolean | undefined;
803
803
  primaryKey?: false | undefined;
804
804
  } | {
805
805
  primaryKey: true;
806
- optional?: false | undefined;
807
806
  default?: undefined;
807
+ optional?: false | undefined;
808
808
  })) & {
809
809
  references?: () => z.input<typeof numberColumnSchema>;
810
810
  }>;
@@ -822,8 +822,8 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
822
822
  default?: number | SerializedSQL | undefined;
823
823
  } | {
824
824
  primaryKey: true;
825
- optional?: false | undefined;
826
825
  default?: undefined;
826
+ optional?: false | undefined;
827
827
  })) & {
828
828
  references?: NumberColumn;
829
829
  };
@@ -836,44 +836,44 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
836
836
  deprecated?: boolean | undefined;
837
837
  collection?: string | undefined;
838
838
  } & ({
839
- optional?: boolean | undefined;
840
839
  default?: number | SQL<any> | undefined;
840
+ optional?: boolean | undefined;
841
841
  primaryKey?: false | undefined;
842
842
  } | {
843
843
  primaryKey: true;
844
- optional?: false | undefined;
845
844
  default?: undefined;
845
+ optional?: false | undefined;
846
846
  })) & {
847
847
  references?: () => z.input<typeof numberColumnSchema>;
848
848
  };
849
849
  }>]>;
850
850
  export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
851
851
  type: z.ZodLiteral<"boolean">;
852
- schema: z.ZodObject<z.objectUtil.extendShape<{
852
+ schema: z.ZodObject<{
853
853
  label: z.ZodOptional<z.ZodString>;
854
854
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
855
855
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
856
856
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
857
857
  name: z.ZodOptional<z.ZodString>;
858
858
  collection: z.ZodOptional<z.ZodString>;
859
- }, {
859
+ } & {
860
860
  default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
861
- }>, "strip", z.ZodTypeAny, {
861
+ }, "strip", z.ZodTypeAny, {
862
862
  optional: boolean;
863
863
  unique: boolean;
864
864
  deprecated: boolean;
865
+ default?: boolean | SerializedSQL | undefined;
865
866
  name?: string | undefined;
866
867
  label?: string | undefined;
867
868
  collection?: string | undefined;
868
- default?: boolean | SerializedSQL | undefined;
869
869
  }, {
870
+ default?: boolean | SQL<any> | undefined;
870
871
  name?: string | undefined;
871
872
  label?: string | undefined;
872
873
  optional?: boolean | undefined;
873
874
  unique?: boolean | undefined;
874
875
  deprecated?: boolean | undefined;
875
876
  collection?: string | undefined;
876
- default?: boolean | SQL<any> | undefined;
877
877
  }>;
878
878
  }, "strip", z.ZodTypeAny, {
879
879
  type: "boolean";
@@ -881,21 +881,21 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
881
881
  optional: boolean;
882
882
  unique: boolean;
883
883
  deprecated: boolean;
884
+ default?: boolean | SerializedSQL | undefined;
884
885
  name?: string | undefined;
885
886
  label?: string | undefined;
886
887
  collection?: string | undefined;
887
- default?: boolean | SerializedSQL | undefined;
888
888
  };
889
889
  }, {
890
890
  type: "boolean";
891
891
  schema: {
892
+ default?: boolean | SQL<any> | undefined;
892
893
  name?: string | undefined;
893
894
  label?: string | undefined;
894
895
  optional?: boolean | undefined;
895
896
  unique?: boolean | undefined;
896
897
  deprecated?: boolean | undefined;
897
898
  collection?: string | undefined;
898
- default?: boolean | SQL<any> | undefined;
899
899
  };
900
900
  }>, z.ZodObject<{
901
901
  type: z.ZodLiteral<"number">;
@@ -911,8 +911,8 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
911
911
  default?: number | SerializedSQL | undefined;
912
912
  } | {
913
913
  primaryKey: true;
914
- optional?: false | undefined;
915
914
  default?: undefined;
915
+ optional?: false | undefined;
916
916
  })) & {
917
917
  references?: NumberColumn;
918
918
  }, ZodTypeDef, ({
@@ -922,13 +922,13 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
922
922
  deprecated?: boolean | undefined;
923
923
  collection?: string | undefined;
924
924
  } & ({
925
- optional?: boolean | undefined;
926
925
  default?: number | SQL<any> | undefined;
926
+ optional?: boolean | undefined;
927
927
  primaryKey?: false | undefined;
928
928
  } | {
929
929
  primaryKey: true;
930
- optional?: false | undefined;
931
930
  default?: undefined;
931
+ optional?: false | undefined;
932
932
  })) & {
933
933
  references?: () => z.input<typeof numberColumnSchema>;
934
934
  }>;
@@ -946,8 +946,8 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
946
946
  default?: number | SerializedSQL | undefined;
947
947
  } | {
948
948
  primaryKey: true;
949
- optional?: false | undefined;
950
949
  default?: undefined;
950
+ optional?: false | undefined;
951
951
  })) & {
952
952
  references?: NumberColumn;
953
953
  };
@@ -960,13 +960,13 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
960
960
  deprecated?: boolean | undefined;
961
961
  collection?: string | undefined;
962
962
  } & ({
963
- optional?: boolean | undefined;
964
963
  default?: number | SQL<any> | undefined;
964
+ optional?: boolean | undefined;
965
965
  primaryKey?: false | undefined;
966
966
  } | {
967
967
  primaryKey: true;
968
- optional?: false | undefined;
969
968
  default?: undefined;
969
+ optional?: false | undefined;
970
970
  })) & {
971
971
  references?: () => z.input<typeof numberColumnSchema>;
972
972
  };
@@ -975,10 +975,10 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
975
975
  schema: z.ZodType<({
976
976
  unique: boolean;
977
977
  deprecated: boolean;
978
+ default?: string | SerializedSQL | undefined;
978
979
  name?: string | undefined;
979
980
  label?: string | undefined;
980
981
  collection?: string | undefined;
981
- default?: string | SerializedSQL | undefined;
982
982
  multiline?: boolean | undefined;
983
983
  } & ({
984
984
  optional: boolean;
@@ -989,12 +989,12 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
989
989
  })) & {
990
990
  references?: TextColumn;
991
991
  }, ZodTypeDef, ({
992
+ default?: string | SQL<any> | undefined;
992
993
  name?: string | undefined;
993
994
  label?: string | undefined;
994
995
  unique?: boolean | undefined;
995
996
  deprecated?: boolean | undefined;
996
997
  collection?: string | undefined;
997
- default?: string | SQL<any> | undefined;
998
998
  multiline?: boolean | undefined;
999
999
  } & ({
1000
1000
  optional?: boolean | undefined;
@@ -1010,10 +1010,10 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1010
1010
  schema: ({
1011
1011
  unique: boolean;
1012
1012
  deprecated: boolean;
1013
+ default?: string | SerializedSQL | undefined;
1013
1014
  name?: string | undefined;
1014
1015
  label?: string | undefined;
1015
1016
  collection?: string | undefined;
1016
- default?: string | SerializedSQL | undefined;
1017
1017
  multiline?: boolean | undefined;
1018
1018
  } & ({
1019
1019
  optional: boolean;
@@ -1027,12 +1027,12 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1027
1027
  }, {
1028
1028
  type: "text";
1029
1029
  schema: ({
1030
+ default?: string | SQL<any> | undefined;
1030
1031
  name?: string | undefined;
1031
1032
  label?: string | undefined;
1032
1033
  unique?: boolean | undefined;
1033
1034
  deprecated?: boolean | undefined;
1034
1035
  collection?: string | undefined;
1035
- default?: string | SQL<any> | undefined;
1036
1036
  multiline?: boolean | undefined;
1037
1037
  } & ({
1038
1038
  optional?: boolean | undefined;
@@ -1045,31 +1045,31 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1045
1045
  };
1046
1046
  }>, z.ZodObject<{
1047
1047
  type: z.ZodLiteral<"date">;
1048
- schema: z.ZodObject<z.objectUtil.extendShape<{
1048
+ schema: z.ZodObject<{
1049
1049
  label: z.ZodOptional<z.ZodString>;
1050
1050
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1051
1051
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1052
1052
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1053
1053
  name: z.ZodOptional<z.ZodString>;
1054
1054
  collection: z.ZodOptional<z.ZodString>;
1055
- }, {
1055
+ } & {
1056
1056
  default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
1057
- }>, "strip", z.ZodTypeAny, {
1057
+ }, "strip", z.ZodTypeAny, {
1058
1058
  optional: boolean;
1059
1059
  unique: boolean;
1060
1060
  deprecated: boolean;
1061
+ default?: string | SerializedSQL | undefined;
1061
1062
  name?: string | undefined;
1062
1063
  label?: string | undefined;
1063
1064
  collection?: string | undefined;
1064
- default?: string | SerializedSQL | undefined;
1065
1065
  }, {
1066
+ default?: Date | SQL<any> | undefined;
1066
1067
  name?: string | undefined;
1067
1068
  label?: string | undefined;
1068
1069
  optional?: boolean | undefined;
1069
1070
  unique?: boolean | undefined;
1070
1071
  deprecated?: boolean | undefined;
1071
1072
  collection?: string | undefined;
1072
- default?: Date | SQL<any> | undefined;
1073
1073
  }>;
1074
1074
  }, "strip", z.ZodTypeAny, {
1075
1075
  type: "date";
@@ -1077,49 +1077,49 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1077
1077
  optional: boolean;
1078
1078
  unique: boolean;
1079
1079
  deprecated: boolean;
1080
+ default?: string | SerializedSQL | undefined;
1080
1081
  name?: string | undefined;
1081
1082
  label?: string | undefined;
1082
1083
  collection?: string | undefined;
1083
- default?: string | SerializedSQL | undefined;
1084
1084
  };
1085
1085
  }, {
1086
1086
  type: "date";
1087
1087
  schema: {
1088
+ default?: Date | SQL<any> | undefined;
1088
1089
  name?: string | undefined;
1089
1090
  label?: string | undefined;
1090
1091
  optional?: boolean | undefined;
1091
1092
  unique?: boolean | undefined;
1092
1093
  deprecated?: boolean | undefined;
1093
1094
  collection?: string | undefined;
1094
- default?: Date | SQL<any> | undefined;
1095
1095
  };
1096
1096
  }>, z.ZodObject<{
1097
1097
  type: z.ZodLiteral<"json">;
1098
- schema: z.ZodObject<z.objectUtil.extendShape<{
1098
+ schema: z.ZodObject<{
1099
1099
  label: z.ZodOptional<z.ZodString>;
1100
1100
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1101
1101
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1102
1102
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1103
1103
  name: z.ZodOptional<z.ZodString>;
1104
1104
  collection: z.ZodOptional<z.ZodString>;
1105
- }, {
1105
+ } & {
1106
1106
  default: z.ZodOptional<z.ZodUnknown>;
1107
- }>, "strip", z.ZodTypeAny, {
1107
+ }, "strip", z.ZodTypeAny, {
1108
1108
  optional: boolean;
1109
1109
  unique: boolean;
1110
1110
  deprecated: boolean;
1111
+ default?: unknown;
1111
1112
  name?: string | undefined;
1112
1113
  label?: string | undefined;
1113
1114
  collection?: string | undefined;
1114
- default?: unknown;
1115
1115
  }, {
1116
+ default?: unknown;
1116
1117
  name?: string | undefined;
1117
1118
  label?: string | undefined;
1118
1119
  optional?: boolean | undefined;
1119
1120
  unique?: boolean | undefined;
1120
1121
  deprecated?: boolean | undefined;
1121
1122
  collection?: string | undefined;
1122
- default?: unknown;
1123
1123
  }>;
1124
1124
  }, "strip", z.ZodTypeAny, {
1125
1125
  type: "json";
@@ -1127,21 +1127,21 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
1127
1127
  optional: boolean;
1128
1128
  unique: boolean;
1129
1129
  deprecated: boolean;
1130
+ default?: unknown;
1130
1131
  name?: string | undefined;
1131
1132
  label?: string | undefined;
1132
1133
  collection?: string | undefined;
1133
- default?: unknown;
1134
1134
  };
1135
1135
  }, {
1136
1136
  type: "json";
1137
1137
  schema: {
1138
+ default?: unknown;
1138
1139
  name?: string | undefined;
1139
1140
  label?: string | undefined;
1140
1141
  optional?: boolean | undefined;
1141
1142
  unique?: boolean | undefined;
1142
1143
  deprecated?: boolean | undefined;
1143
1144
  collection?: string | undefined;
1144
- default?: unknown;
1145
1145
  };
1146
1146
  }>]>>;
1147
1147
  type ForeignKeysInput = {
@@ -1177,31 +1177,31 @@ export declare const indexSchema: z.ZodObject<{
1177
1177
  export declare const tableSchema: z.ZodObject<{
1178
1178
  columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1179
1179
  type: z.ZodLiteral<"boolean">;
1180
- schema: z.ZodObject<z.objectUtil.extendShape<{
1180
+ schema: z.ZodObject<{
1181
1181
  label: z.ZodOptional<z.ZodString>;
1182
1182
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1183
1183
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1184
1184
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1185
1185
  name: z.ZodOptional<z.ZodString>;
1186
1186
  collection: z.ZodOptional<z.ZodString>;
1187
- }, {
1187
+ } & {
1188
1188
  default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
1189
- }>, "strip", z.ZodTypeAny, {
1189
+ }, "strip", z.ZodTypeAny, {
1190
1190
  optional: boolean;
1191
1191
  unique: boolean;
1192
1192
  deprecated: boolean;
1193
+ default?: boolean | SerializedSQL | undefined;
1193
1194
  name?: string | undefined;
1194
1195
  label?: string | undefined;
1195
1196
  collection?: string | undefined;
1196
- default?: boolean | SerializedSQL | undefined;
1197
1197
  }, {
1198
+ default?: boolean | SQL<any> | undefined;
1198
1199
  name?: string | undefined;
1199
1200
  label?: string | undefined;
1200
1201
  optional?: boolean | undefined;
1201
1202
  unique?: boolean | undefined;
1202
1203
  deprecated?: boolean | undefined;
1203
1204
  collection?: string | undefined;
1204
- default?: boolean | SQL<any> | undefined;
1205
1205
  }>;
1206
1206
  }, "strip", z.ZodTypeAny, {
1207
1207
  type: "boolean";
@@ -1209,21 +1209,21 @@ export declare const tableSchema: z.ZodObject<{
1209
1209
  optional: boolean;
1210
1210
  unique: boolean;
1211
1211
  deprecated: boolean;
1212
+ default?: boolean | SerializedSQL | undefined;
1212
1213
  name?: string | undefined;
1213
1214
  label?: string | undefined;
1214
1215
  collection?: string | undefined;
1215
- default?: boolean | SerializedSQL | undefined;
1216
1216
  };
1217
1217
  }, {
1218
1218
  type: "boolean";
1219
1219
  schema: {
1220
+ default?: boolean | SQL<any> | undefined;
1220
1221
  name?: string | undefined;
1221
1222
  label?: string | undefined;
1222
1223
  optional?: boolean | undefined;
1223
1224
  unique?: boolean | undefined;
1224
1225
  deprecated?: boolean | undefined;
1225
1226
  collection?: string | undefined;
1226
- default?: boolean | SQL<any> | undefined;
1227
1227
  };
1228
1228
  }>, z.ZodObject<{
1229
1229
  type: z.ZodLiteral<"number">;
@@ -1239,8 +1239,8 @@ export declare const tableSchema: z.ZodObject<{
1239
1239
  default?: number | SerializedSQL | undefined;
1240
1240
  } | {
1241
1241
  primaryKey: true;
1242
- optional?: false | undefined;
1243
1242
  default?: undefined;
1243
+ optional?: false | undefined;
1244
1244
  })) & {
1245
1245
  references?: NumberColumn;
1246
1246
  }, ZodTypeDef, ({
@@ -1250,13 +1250,13 @@ export declare const tableSchema: z.ZodObject<{
1250
1250
  deprecated?: boolean | undefined;
1251
1251
  collection?: string | undefined;
1252
1252
  } & ({
1253
- optional?: boolean | undefined;
1254
1253
  default?: number | SQL<any> | undefined;
1254
+ optional?: boolean | undefined;
1255
1255
  primaryKey?: false | undefined;
1256
1256
  } | {
1257
1257
  primaryKey: true;
1258
- optional?: false | undefined;
1259
1258
  default?: undefined;
1259
+ optional?: false | undefined;
1260
1260
  })) & {
1261
1261
  references?: () => z.input<typeof numberColumnSchema>;
1262
1262
  }>;
@@ -1274,8 +1274,8 @@ export declare const tableSchema: z.ZodObject<{
1274
1274
  default?: number | SerializedSQL | undefined;
1275
1275
  } | {
1276
1276
  primaryKey: true;
1277
- optional?: false | undefined;
1278
1277
  default?: undefined;
1278
+ optional?: false | undefined;
1279
1279
  })) & {
1280
1280
  references?: NumberColumn;
1281
1281
  };
@@ -1288,13 +1288,13 @@ export declare const tableSchema: z.ZodObject<{
1288
1288
  deprecated?: boolean | undefined;
1289
1289
  collection?: string | undefined;
1290
1290
  } & ({
1291
- optional?: boolean | undefined;
1292
1291
  default?: number | SQL<any> | undefined;
1292
+ optional?: boolean | undefined;
1293
1293
  primaryKey?: false | undefined;
1294
1294
  } | {
1295
1295
  primaryKey: true;
1296
- optional?: false | undefined;
1297
1296
  default?: undefined;
1297
+ optional?: false | undefined;
1298
1298
  })) & {
1299
1299
  references?: () => z.input<typeof numberColumnSchema>;
1300
1300
  };
@@ -1303,10 +1303,10 @@ export declare const tableSchema: z.ZodObject<{
1303
1303
  schema: z.ZodType<({
1304
1304
  unique: boolean;
1305
1305
  deprecated: boolean;
1306
+ default?: string | SerializedSQL | undefined;
1306
1307
  name?: string | undefined;
1307
1308
  label?: string | undefined;
1308
1309
  collection?: string | undefined;
1309
- default?: string | SerializedSQL | undefined;
1310
1310
  multiline?: boolean | undefined;
1311
1311
  } & ({
1312
1312
  optional: boolean;
@@ -1317,12 +1317,12 @@ export declare const tableSchema: z.ZodObject<{
1317
1317
  })) & {
1318
1318
  references?: TextColumn;
1319
1319
  }, ZodTypeDef, ({
1320
+ default?: string | SQL<any> | undefined;
1320
1321
  name?: string | undefined;
1321
1322
  label?: string | undefined;
1322
1323
  unique?: boolean | undefined;
1323
1324
  deprecated?: boolean | undefined;
1324
1325
  collection?: string | undefined;
1325
- default?: string | SQL<any> | undefined;
1326
1326
  multiline?: boolean | undefined;
1327
1327
  } & ({
1328
1328
  optional?: boolean | undefined;
@@ -1338,10 +1338,10 @@ export declare const tableSchema: z.ZodObject<{
1338
1338
  schema: ({
1339
1339
  unique: boolean;
1340
1340
  deprecated: boolean;
1341
+ default?: string | SerializedSQL | undefined;
1341
1342
  name?: string | undefined;
1342
1343
  label?: string | undefined;
1343
1344
  collection?: string | undefined;
1344
- default?: string | SerializedSQL | undefined;
1345
1345
  multiline?: boolean | undefined;
1346
1346
  } & ({
1347
1347
  optional: boolean;
@@ -1355,12 +1355,12 @@ export declare const tableSchema: z.ZodObject<{
1355
1355
  }, {
1356
1356
  type: "text";
1357
1357
  schema: ({
1358
+ default?: string | SQL<any> | undefined;
1358
1359
  name?: string | undefined;
1359
1360
  label?: string | undefined;
1360
1361
  unique?: boolean | undefined;
1361
1362
  deprecated?: boolean | undefined;
1362
1363
  collection?: string | undefined;
1363
- default?: string | SQL<any> | undefined;
1364
1364
  multiline?: boolean | undefined;
1365
1365
  } & ({
1366
1366
  optional?: boolean | undefined;
@@ -1373,31 +1373,31 @@ export declare const tableSchema: z.ZodObject<{
1373
1373
  };
1374
1374
  }>, z.ZodObject<{
1375
1375
  type: z.ZodLiteral<"date">;
1376
- schema: z.ZodObject<z.objectUtil.extendShape<{
1376
+ schema: z.ZodObject<{
1377
1377
  label: z.ZodOptional<z.ZodString>;
1378
1378
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1379
1379
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1380
1380
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1381
1381
  name: z.ZodOptional<z.ZodString>;
1382
1382
  collection: z.ZodOptional<z.ZodString>;
1383
- }, {
1383
+ } & {
1384
1384
  default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
1385
- }>, "strip", z.ZodTypeAny, {
1385
+ }, "strip", z.ZodTypeAny, {
1386
1386
  optional: boolean;
1387
1387
  unique: boolean;
1388
1388
  deprecated: boolean;
1389
+ default?: string | SerializedSQL | undefined;
1389
1390
  name?: string | undefined;
1390
1391
  label?: string | undefined;
1391
1392
  collection?: string | undefined;
1392
- default?: string | SerializedSQL | undefined;
1393
1393
  }, {
1394
+ default?: Date | SQL<any> | undefined;
1394
1395
  name?: string | undefined;
1395
1396
  label?: string | undefined;
1396
1397
  optional?: boolean | undefined;
1397
1398
  unique?: boolean | undefined;
1398
1399
  deprecated?: boolean | undefined;
1399
1400
  collection?: string | undefined;
1400
- default?: Date | SQL<any> | undefined;
1401
1401
  }>;
1402
1402
  }, "strip", z.ZodTypeAny, {
1403
1403
  type: "date";
@@ -1405,49 +1405,49 @@ export declare const tableSchema: z.ZodObject<{
1405
1405
  optional: boolean;
1406
1406
  unique: boolean;
1407
1407
  deprecated: boolean;
1408
+ default?: string | SerializedSQL | undefined;
1408
1409
  name?: string | undefined;
1409
1410
  label?: string | undefined;
1410
1411
  collection?: string | undefined;
1411
- default?: string | SerializedSQL | undefined;
1412
1412
  };
1413
1413
  }, {
1414
1414
  type: "date";
1415
1415
  schema: {
1416
+ default?: Date | SQL<any> | undefined;
1416
1417
  name?: string | undefined;
1417
1418
  label?: string | undefined;
1418
1419
  optional?: boolean | undefined;
1419
1420
  unique?: boolean | undefined;
1420
1421
  deprecated?: boolean | undefined;
1421
1422
  collection?: string | undefined;
1422
- default?: Date | SQL<any> | undefined;
1423
1423
  };
1424
1424
  }>, z.ZodObject<{
1425
1425
  type: z.ZodLiteral<"json">;
1426
- schema: z.ZodObject<z.objectUtil.extendShape<{
1426
+ schema: z.ZodObject<{
1427
1427
  label: z.ZodOptional<z.ZodString>;
1428
1428
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1429
1429
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1430
1430
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1431
1431
  name: z.ZodOptional<z.ZodString>;
1432
1432
  collection: z.ZodOptional<z.ZodString>;
1433
- }, {
1433
+ } & {
1434
1434
  default: z.ZodOptional<z.ZodUnknown>;
1435
- }>, "strip", z.ZodTypeAny, {
1435
+ }, "strip", z.ZodTypeAny, {
1436
1436
  optional: boolean;
1437
1437
  unique: boolean;
1438
1438
  deprecated: boolean;
1439
+ default?: unknown;
1439
1440
  name?: string | undefined;
1440
1441
  label?: string | undefined;
1441
1442
  collection?: string | undefined;
1442
- default?: unknown;
1443
1443
  }, {
1444
+ default?: unknown;
1444
1445
  name?: string | undefined;
1445
1446
  label?: string | undefined;
1446
1447
  optional?: boolean | undefined;
1447
1448
  unique?: boolean | undefined;
1448
1449
  deprecated?: boolean | undefined;
1449
1450
  collection?: string | undefined;
1450
- default?: unknown;
1451
1451
  }>;
1452
1452
  }, "strip", z.ZodTypeAny, {
1453
1453
  type: "json";
@@ -1455,21 +1455,21 @@ export declare const tableSchema: z.ZodObject<{
1455
1455
  optional: boolean;
1456
1456
  unique: boolean;
1457
1457
  deprecated: boolean;
1458
+ default?: unknown;
1458
1459
  name?: string | undefined;
1459
1460
  label?: string | undefined;
1460
1461
  collection?: string | undefined;
1461
- default?: unknown;
1462
1462
  };
1463
1463
  }, {
1464
1464
  type: "json";
1465
1465
  schema: {
1466
+ default?: unknown;
1466
1467
  name?: string | undefined;
1467
1468
  label?: string | undefined;
1468
1469
  optional?: boolean | undefined;
1469
1470
  unique?: boolean | undefined;
1470
1471
  deprecated?: boolean | undefined;
1471
1472
  collection?: string | undefined;
1472
- default?: unknown;
1473
1473
  };
1474
1474
  }>]>>;
1475
1475
  indexes: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
@@ -1504,10 +1504,10 @@ export declare const tableSchema: z.ZodObject<{
1504
1504
  optional: boolean;
1505
1505
  unique: boolean;
1506
1506
  deprecated: boolean;
1507
+ default?: boolean | SerializedSQL | undefined;
1507
1508
  name?: string | undefined;
1508
1509
  label?: string | undefined;
1509
1510
  collection?: string | undefined;
1510
- default?: boolean | SerializedSQL | undefined;
1511
1511
  };
1512
1512
  } | {
1513
1513
  type: "number";
@@ -1523,8 +1523,8 @@ export declare const tableSchema: z.ZodObject<{
1523
1523
  default?: number | SerializedSQL | undefined;
1524
1524
  } | {
1525
1525
  primaryKey: true;
1526
- optional?: false | undefined;
1527
1526
  default?: undefined;
1527
+ optional?: false | undefined;
1528
1528
  })) & {
1529
1529
  references?: NumberColumn;
1530
1530
  };
@@ -1533,10 +1533,10 @@ export declare const tableSchema: z.ZodObject<{
1533
1533
  schema: ({
1534
1534
  unique: boolean;
1535
1535
  deprecated: boolean;
1536
+ default?: string | SerializedSQL | undefined;
1536
1537
  name?: string | undefined;
1537
1538
  label?: string | undefined;
1538
1539
  collection?: string | undefined;
1539
- default?: string | SerializedSQL | undefined;
1540
1540
  multiline?: boolean | undefined;
1541
1541
  } & ({
1542
1542
  optional: boolean;
@@ -1553,10 +1553,10 @@ export declare const tableSchema: z.ZodObject<{
1553
1553
  optional: boolean;
1554
1554
  unique: boolean;
1555
1555
  deprecated: boolean;
1556
+ default?: string | SerializedSQL | undefined;
1556
1557
  name?: string | undefined;
1557
1558
  label?: string | undefined;
1558
1559
  collection?: string | undefined;
1559
- default?: string | SerializedSQL | undefined;
1560
1560
  };
1561
1561
  } | {
1562
1562
  type: "json";
@@ -1564,10 +1564,10 @@ export declare const tableSchema: z.ZodObject<{
1564
1564
  optional: boolean;
1565
1565
  unique: boolean;
1566
1566
  deprecated: boolean;
1567
+ default?: unknown;
1567
1568
  name?: string | undefined;
1568
1569
  label?: string | undefined;
1569
1570
  collection?: string | undefined;
1570
- default?: unknown;
1571
1571
  };
1572
1572
  }>;
1573
1573
  indexes?: {
@@ -1583,13 +1583,13 @@ export declare const tableSchema: z.ZodObject<{
1583
1583
  columns: Record<string, {
1584
1584
  type: "boolean";
1585
1585
  schema: {
1586
+ default?: boolean | SQL<any> | undefined;
1586
1587
  name?: string | undefined;
1587
1588
  label?: string | undefined;
1588
1589
  optional?: boolean | undefined;
1589
1590
  unique?: boolean | undefined;
1590
1591
  deprecated?: boolean | undefined;
1591
1592
  collection?: string | undefined;
1592
- default?: boolean | SQL<any> | undefined;
1593
1593
  };
1594
1594
  } | {
1595
1595
  type: "number";
@@ -1600,25 +1600,25 @@ export declare const tableSchema: z.ZodObject<{
1600
1600
  deprecated?: boolean | undefined;
1601
1601
  collection?: string | undefined;
1602
1602
  } & ({
1603
- optional?: boolean | undefined;
1604
1603
  default?: number | SQL<any> | undefined;
1604
+ optional?: boolean | undefined;
1605
1605
  primaryKey?: false | undefined;
1606
1606
  } | {
1607
1607
  primaryKey: true;
1608
- optional?: false | undefined;
1609
1608
  default?: undefined;
1609
+ optional?: false | undefined;
1610
1610
  })) & {
1611
1611
  references?: () => z.input<typeof numberColumnSchema>;
1612
1612
  };
1613
1613
  } | {
1614
1614
  type: "text";
1615
1615
  schema: ({
1616
+ default?: string | SQL<any> | undefined;
1616
1617
  name?: string | undefined;
1617
1618
  label?: string | undefined;
1618
1619
  unique?: boolean | undefined;
1619
1620
  deprecated?: boolean | undefined;
1620
1621
  collection?: string | undefined;
1621
- default?: string | SQL<any> | undefined;
1622
1622
  multiline?: boolean | undefined;
1623
1623
  } & ({
1624
1624
  optional?: boolean | undefined;
@@ -1632,24 +1632,24 @@ export declare const tableSchema: z.ZodObject<{
1632
1632
  } | {
1633
1633
  type: "date";
1634
1634
  schema: {
1635
+ default?: Date | SQL<any> | undefined;
1635
1636
  name?: string | undefined;
1636
1637
  label?: string | undefined;
1637
1638
  optional?: boolean | undefined;
1638
1639
  unique?: boolean | undefined;
1639
1640
  deprecated?: boolean | undefined;
1640
1641
  collection?: string | undefined;
1641
- default?: Date | SQL<any> | undefined;
1642
1642
  };
1643
1643
  } | {
1644
1644
  type: "json";
1645
1645
  schema: {
1646
+ default?: unknown;
1646
1647
  name?: string | undefined;
1647
1648
  label?: string | undefined;
1648
1649
  optional?: boolean | undefined;
1649
1650
  unique?: boolean | undefined;
1650
1651
  deprecated?: boolean | undefined;
1651
1652
  collection?: string | undefined;
1652
- default?: unknown;
1653
1653
  };
1654
1654
  }>;
1655
1655
  deprecated?: boolean | undefined;
@@ -1666,31 +1666,31 @@ export declare const tableSchema: z.ZodObject<{
1666
1666
  export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1667
1667
  columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1668
1668
  type: z.ZodLiteral<"boolean">;
1669
- schema: z.ZodObject<z.objectUtil.extendShape<{
1669
+ schema: z.ZodObject<{
1670
1670
  label: z.ZodOptional<z.ZodString>;
1671
1671
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1672
1672
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1673
1673
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1674
1674
  name: z.ZodOptional<z.ZodString>;
1675
1675
  collection: z.ZodOptional<z.ZodString>;
1676
- }, {
1676
+ } & {
1677
1677
  default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
1678
- }>, "strip", z.ZodTypeAny, {
1678
+ }, "strip", z.ZodTypeAny, {
1679
1679
  optional: boolean;
1680
1680
  unique: boolean;
1681
1681
  deprecated: boolean;
1682
+ default?: boolean | SerializedSQL | undefined;
1682
1683
  name?: string | undefined;
1683
1684
  label?: string | undefined;
1684
1685
  collection?: string | undefined;
1685
- default?: boolean | SerializedSQL | undefined;
1686
1686
  }, {
1687
+ default?: boolean | SQL<any> | undefined;
1687
1688
  name?: string | undefined;
1688
1689
  label?: string | undefined;
1689
1690
  optional?: boolean | undefined;
1690
1691
  unique?: boolean | undefined;
1691
1692
  deprecated?: boolean | undefined;
1692
1693
  collection?: string | undefined;
1693
- default?: boolean | SQL<any> | undefined;
1694
1694
  }>;
1695
1695
  }, "strip", z.ZodTypeAny, {
1696
1696
  type: "boolean";
@@ -1698,21 +1698,21 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1698
1698
  optional: boolean;
1699
1699
  unique: boolean;
1700
1700
  deprecated: boolean;
1701
+ default?: boolean | SerializedSQL | undefined;
1701
1702
  name?: string | undefined;
1702
1703
  label?: string | undefined;
1703
1704
  collection?: string | undefined;
1704
- default?: boolean | SerializedSQL | undefined;
1705
1705
  };
1706
1706
  }, {
1707
1707
  type: "boolean";
1708
1708
  schema: {
1709
+ default?: boolean | SQL<any> | undefined;
1709
1710
  name?: string | undefined;
1710
1711
  label?: string | undefined;
1711
1712
  optional?: boolean | undefined;
1712
1713
  unique?: boolean | undefined;
1713
1714
  deprecated?: boolean | undefined;
1714
1715
  collection?: string | undefined;
1715
- default?: boolean | SQL<any> | undefined;
1716
1716
  };
1717
1717
  }>, z.ZodObject<{
1718
1718
  type: z.ZodLiteral<"number">;
@@ -1728,8 +1728,8 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1728
1728
  default?: number | SerializedSQL | undefined;
1729
1729
  } | {
1730
1730
  primaryKey: true;
1731
- optional?: false | undefined;
1732
1731
  default?: undefined;
1732
+ optional?: false | undefined;
1733
1733
  })) & {
1734
1734
  references?: NumberColumn;
1735
1735
  }, ZodTypeDef, ({
@@ -1739,13 +1739,13 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1739
1739
  deprecated?: boolean | undefined;
1740
1740
  collection?: string | undefined;
1741
1741
  } & ({
1742
- optional?: boolean | undefined;
1743
1742
  default?: number | SQL<any> | undefined;
1743
+ optional?: boolean | undefined;
1744
1744
  primaryKey?: false | undefined;
1745
1745
  } | {
1746
1746
  primaryKey: true;
1747
- optional?: false | undefined;
1748
1747
  default?: undefined;
1748
+ optional?: false | undefined;
1749
1749
  })) & {
1750
1750
  references?: () => z.input<typeof numberColumnSchema>;
1751
1751
  }>;
@@ -1763,8 +1763,8 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1763
1763
  default?: number | SerializedSQL | undefined;
1764
1764
  } | {
1765
1765
  primaryKey: true;
1766
- optional?: false | undefined;
1767
1766
  default?: undefined;
1767
+ optional?: false | undefined;
1768
1768
  })) & {
1769
1769
  references?: NumberColumn;
1770
1770
  };
@@ -1777,13 +1777,13 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1777
1777
  deprecated?: boolean | undefined;
1778
1778
  collection?: string | undefined;
1779
1779
  } & ({
1780
- optional?: boolean | undefined;
1781
1780
  default?: number | SQL<any> | undefined;
1781
+ optional?: boolean | undefined;
1782
1782
  primaryKey?: false | undefined;
1783
1783
  } | {
1784
1784
  primaryKey: true;
1785
- optional?: false | undefined;
1786
1785
  default?: undefined;
1786
+ optional?: false | undefined;
1787
1787
  })) & {
1788
1788
  references?: () => z.input<typeof numberColumnSchema>;
1789
1789
  };
@@ -1792,10 +1792,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1792
1792
  schema: z.ZodType<({
1793
1793
  unique: boolean;
1794
1794
  deprecated: boolean;
1795
+ default?: string | SerializedSQL | undefined;
1795
1796
  name?: string | undefined;
1796
1797
  label?: string | undefined;
1797
1798
  collection?: string | undefined;
1798
- default?: string | SerializedSQL | undefined;
1799
1799
  multiline?: boolean | undefined;
1800
1800
  } & ({
1801
1801
  optional: boolean;
@@ -1806,12 +1806,12 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1806
1806
  })) & {
1807
1807
  references?: TextColumn;
1808
1808
  }, ZodTypeDef, ({
1809
+ default?: string | SQL<any> | undefined;
1809
1810
  name?: string | undefined;
1810
1811
  label?: string | undefined;
1811
1812
  unique?: boolean | undefined;
1812
1813
  deprecated?: boolean | undefined;
1813
1814
  collection?: string | undefined;
1814
- default?: string | SQL<any> | undefined;
1815
1815
  multiline?: boolean | undefined;
1816
1816
  } & ({
1817
1817
  optional?: boolean | undefined;
@@ -1827,10 +1827,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1827
1827
  schema: ({
1828
1828
  unique: boolean;
1829
1829
  deprecated: boolean;
1830
+ default?: string | SerializedSQL | undefined;
1830
1831
  name?: string | undefined;
1831
1832
  label?: string | undefined;
1832
1833
  collection?: string | undefined;
1833
- default?: string | SerializedSQL | undefined;
1834
1834
  multiline?: boolean | undefined;
1835
1835
  } & ({
1836
1836
  optional: boolean;
@@ -1844,12 +1844,12 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1844
1844
  }, {
1845
1845
  type: "text";
1846
1846
  schema: ({
1847
+ default?: string | SQL<any> | undefined;
1847
1848
  name?: string | undefined;
1848
1849
  label?: string | undefined;
1849
1850
  unique?: boolean | undefined;
1850
1851
  deprecated?: boolean | undefined;
1851
1852
  collection?: string | undefined;
1852
- default?: string | SQL<any> | undefined;
1853
1853
  multiline?: boolean | undefined;
1854
1854
  } & ({
1855
1855
  optional?: boolean | undefined;
@@ -1862,31 +1862,31 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1862
1862
  };
1863
1863
  }>, z.ZodObject<{
1864
1864
  type: z.ZodLiteral<"date">;
1865
- schema: z.ZodObject<z.objectUtil.extendShape<{
1865
+ schema: z.ZodObject<{
1866
1866
  label: z.ZodOptional<z.ZodString>;
1867
1867
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1868
1868
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1869
1869
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1870
1870
  name: z.ZodOptional<z.ZodString>;
1871
1871
  collection: z.ZodOptional<z.ZodString>;
1872
- }, {
1872
+ } & {
1873
1873
  default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
1874
- }>, "strip", z.ZodTypeAny, {
1874
+ }, "strip", z.ZodTypeAny, {
1875
1875
  optional: boolean;
1876
1876
  unique: boolean;
1877
1877
  deprecated: boolean;
1878
+ default?: string | SerializedSQL | undefined;
1878
1879
  name?: string | undefined;
1879
1880
  label?: string | undefined;
1880
1881
  collection?: string | undefined;
1881
- default?: string | SerializedSQL | undefined;
1882
1882
  }, {
1883
+ default?: Date | SQL<any> | undefined;
1883
1884
  name?: string | undefined;
1884
1885
  label?: string | undefined;
1885
1886
  optional?: boolean | undefined;
1886
1887
  unique?: boolean | undefined;
1887
1888
  deprecated?: boolean | undefined;
1888
1889
  collection?: string | undefined;
1889
- default?: Date | SQL<any> | undefined;
1890
1890
  }>;
1891
1891
  }, "strip", z.ZodTypeAny, {
1892
1892
  type: "date";
@@ -1894,49 +1894,49 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1894
1894
  optional: boolean;
1895
1895
  unique: boolean;
1896
1896
  deprecated: boolean;
1897
+ default?: string | SerializedSQL | undefined;
1897
1898
  name?: string | undefined;
1898
1899
  label?: string | undefined;
1899
1900
  collection?: string | undefined;
1900
- default?: string | SerializedSQL | undefined;
1901
1901
  };
1902
1902
  }, {
1903
1903
  type: "date";
1904
1904
  schema: {
1905
+ default?: Date | SQL<any> | undefined;
1905
1906
  name?: string | undefined;
1906
1907
  label?: string | undefined;
1907
1908
  optional?: boolean | undefined;
1908
1909
  unique?: boolean | undefined;
1909
1910
  deprecated?: boolean | undefined;
1910
1911
  collection?: string | undefined;
1911
- default?: Date | SQL<any> | undefined;
1912
1912
  };
1913
1913
  }>, z.ZodObject<{
1914
1914
  type: z.ZodLiteral<"json">;
1915
- schema: z.ZodObject<z.objectUtil.extendShape<{
1915
+ schema: z.ZodObject<{
1916
1916
  label: z.ZodOptional<z.ZodString>;
1917
1917
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1918
1918
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1919
1919
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1920
1920
  name: z.ZodOptional<z.ZodString>;
1921
1921
  collection: z.ZodOptional<z.ZodString>;
1922
- }, {
1922
+ } & {
1923
1923
  default: z.ZodOptional<z.ZodUnknown>;
1924
- }>, "strip", z.ZodTypeAny, {
1924
+ }, "strip", z.ZodTypeAny, {
1925
1925
  optional: boolean;
1926
1926
  unique: boolean;
1927
1927
  deprecated: boolean;
1928
+ default?: unknown;
1928
1929
  name?: string | undefined;
1929
1930
  label?: string | undefined;
1930
1931
  collection?: string | undefined;
1931
- default?: unknown;
1932
1932
  }, {
1933
+ default?: unknown;
1933
1934
  name?: string | undefined;
1934
1935
  label?: string | undefined;
1935
1936
  optional?: boolean | undefined;
1936
1937
  unique?: boolean | undefined;
1937
1938
  deprecated?: boolean | undefined;
1938
1939
  collection?: string | undefined;
1939
- default?: unknown;
1940
1940
  }>;
1941
1941
  }, "strip", z.ZodTypeAny, {
1942
1942
  type: "json";
@@ -1944,21 +1944,21 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1944
1944
  optional: boolean;
1945
1945
  unique: boolean;
1946
1946
  deprecated: boolean;
1947
+ default?: unknown;
1947
1948
  name?: string | undefined;
1948
1949
  label?: string | undefined;
1949
1950
  collection?: string | undefined;
1950
- default?: unknown;
1951
1951
  };
1952
1952
  }, {
1953
1953
  type: "json";
1954
1954
  schema: {
1955
+ default?: unknown;
1955
1956
  name?: string | undefined;
1956
1957
  label?: string | undefined;
1957
1958
  optional?: boolean | undefined;
1958
1959
  unique?: boolean | undefined;
1959
1960
  deprecated?: boolean | undefined;
1960
1961
  collection?: string | undefined;
1961
- default?: unknown;
1962
1962
  };
1963
1963
  }>]>>;
1964
1964
  indexes: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
@@ -1993,10 +1993,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
1993
1993
  optional: boolean;
1994
1994
  unique: boolean;
1995
1995
  deprecated: boolean;
1996
+ default?: boolean | SerializedSQL | undefined;
1996
1997
  name?: string | undefined;
1997
1998
  label?: string | undefined;
1998
1999
  collection?: string | undefined;
1999
- default?: boolean | SerializedSQL | undefined;
2000
2000
  };
2001
2001
  } | {
2002
2002
  type: "number";
@@ -2012,8 +2012,8 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2012
2012
  default?: number | SerializedSQL | undefined;
2013
2013
  } | {
2014
2014
  primaryKey: true;
2015
- optional?: false | undefined;
2016
2015
  default?: undefined;
2016
+ optional?: false | undefined;
2017
2017
  })) & {
2018
2018
  references?: NumberColumn;
2019
2019
  };
@@ -2022,10 +2022,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2022
2022
  schema: ({
2023
2023
  unique: boolean;
2024
2024
  deprecated: boolean;
2025
+ default?: string | SerializedSQL | undefined;
2025
2026
  name?: string | undefined;
2026
2027
  label?: string | undefined;
2027
2028
  collection?: string | undefined;
2028
- default?: string | SerializedSQL | undefined;
2029
2029
  multiline?: boolean | undefined;
2030
2030
  } & ({
2031
2031
  optional: boolean;
@@ -2042,10 +2042,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2042
2042
  optional: boolean;
2043
2043
  unique: boolean;
2044
2044
  deprecated: boolean;
2045
+ default?: string | SerializedSQL | undefined;
2045
2046
  name?: string | undefined;
2046
2047
  label?: string | undefined;
2047
2048
  collection?: string | undefined;
2048
- default?: string | SerializedSQL | undefined;
2049
2049
  };
2050
2050
  } | {
2051
2051
  type: "json";
@@ -2053,10 +2053,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2053
2053
  optional: boolean;
2054
2054
  unique: boolean;
2055
2055
  deprecated: boolean;
2056
+ default?: unknown;
2056
2057
  name?: string | undefined;
2057
2058
  label?: string | undefined;
2058
2059
  collection?: string | undefined;
2059
- default?: unknown;
2060
2060
  };
2061
2061
  }>;
2062
2062
  indexes?: {
@@ -2072,13 +2072,13 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2072
2072
  columns: Record<string, {
2073
2073
  type: "boolean";
2074
2074
  schema: {
2075
+ default?: boolean | SQL<any> | undefined;
2075
2076
  name?: string | undefined;
2076
2077
  label?: string | undefined;
2077
2078
  optional?: boolean | undefined;
2078
2079
  unique?: boolean | undefined;
2079
2080
  deprecated?: boolean | undefined;
2080
2081
  collection?: string | undefined;
2081
- default?: boolean | SQL<any> | undefined;
2082
2082
  };
2083
2083
  } | {
2084
2084
  type: "number";
@@ -2089,25 +2089,25 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2089
2089
  deprecated?: boolean | undefined;
2090
2090
  collection?: string | undefined;
2091
2091
  } & ({
2092
- optional?: boolean | undefined;
2093
2092
  default?: number | SQL<any> | undefined;
2093
+ optional?: boolean | undefined;
2094
2094
  primaryKey?: false | undefined;
2095
2095
  } | {
2096
2096
  primaryKey: true;
2097
- optional?: false | undefined;
2098
2097
  default?: undefined;
2098
+ optional?: false | undefined;
2099
2099
  })) & {
2100
2100
  references?: () => z.input<typeof numberColumnSchema>;
2101
2101
  };
2102
2102
  } | {
2103
2103
  type: "text";
2104
2104
  schema: ({
2105
+ default?: string | SQL<any> | undefined;
2105
2106
  name?: string | undefined;
2106
2107
  label?: string | undefined;
2107
2108
  unique?: boolean | undefined;
2108
2109
  deprecated?: boolean | undefined;
2109
2110
  collection?: string | undefined;
2110
- default?: string | SQL<any> | undefined;
2111
2111
  multiline?: boolean | undefined;
2112
2112
  } & ({
2113
2113
  optional?: boolean | undefined;
@@ -2121,24 +2121,24 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2121
2121
  } | {
2122
2122
  type: "date";
2123
2123
  schema: {
2124
+ default?: Date | SQL<any> | undefined;
2124
2125
  name?: string | undefined;
2125
2126
  label?: string | undefined;
2126
2127
  optional?: boolean | undefined;
2127
2128
  unique?: boolean | undefined;
2128
2129
  deprecated?: boolean | undefined;
2129
2130
  collection?: string | undefined;
2130
- default?: Date | SQL<any> | undefined;
2131
2131
  };
2132
2132
  } | {
2133
2133
  type: "json";
2134
2134
  schema: {
2135
+ default?: unknown;
2135
2136
  name?: string | undefined;
2136
2137
  label?: string | undefined;
2137
2138
  optional?: boolean | undefined;
2138
2139
  unique?: boolean | undefined;
2139
2140
  deprecated?: boolean | undefined;
2140
2141
  collection?: string | undefined;
2141
- default?: unknown;
2142
2142
  };
2143
2143
  }>;
2144
2144
  deprecated?: boolean | undefined;
@@ -2159,10 +2159,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2159
2159
  optional: boolean;
2160
2160
  unique: boolean;
2161
2161
  deprecated: boolean;
2162
+ default?: boolean | SerializedSQL | undefined;
2162
2163
  name?: string | undefined;
2163
2164
  label?: string | undefined;
2164
2165
  collection?: string | undefined;
2165
- default?: boolean | SerializedSQL | undefined;
2166
2166
  };
2167
2167
  } | {
2168
2168
  type: "number";
@@ -2178,8 +2178,8 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2178
2178
  default?: number | SerializedSQL | undefined;
2179
2179
  } | {
2180
2180
  primaryKey: true;
2181
- optional?: false | undefined;
2182
2181
  default?: undefined;
2182
+ optional?: false | undefined;
2183
2183
  })) & {
2184
2184
  references?: NumberColumn;
2185
2185
  };
@@ -2188,10 +2188,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2188
2188
  schema: ({
2189
2189
  unique: boolean;
2190
2190
  deprecated: boolean;
2191
+ default?: string | SerializedSQL | undefined;
2191
2192
  name?: string | undefined;
2192
2193
  label?: string | undefined;
2193
2194
  collection?: string | undefined;
2194
- default?: string | SerializedSQL | undefined;
2195
2195
  multiline?: boolean | undefined;
2196
2196
  } & ({
2197
2197
  optional: boolean;
@@ -2208,10 +2208,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2208
2208
  optional: boolean;
2209
2209
  unique: boolean;
2210
2210
  deprecated: boolean;
2211
+ default?: string | SerializedSQL | undefined;
2211
2212
  name?: string | undefined;
2212
2213
  label?: string | undefined;
2213
2214
  collection?: string | undefined;
2214
- default?: string | SerializedSQL | undefined;
2215
2215
  };
2216
2216
  } | {
2217
2217
  type: "json";
@@ -2219,10 +2219,10 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
2219
2219
  optional: boolean;
2220
2220
  unique: boolean;
2221
2221
  deprecated: boolean;
2222
+ default?: unknown;
2222
2223
  name?: string | undefined;
2223
2224
  label?: string | undefined;
2224
2225
  collection?: string | undefined;
2225
- default?: unknown;
2226
2226
  };
2227
2227
  }>;
2228
2228
  indexes?: {
@@ -2239,31 +2239,31 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2239
2239
  tables: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2240
2240
  columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2241
2241
  type: z.ZodLiteral<"boolean">;
2242
- schema: z.ZodObject<z.objectUtil.extendShape<{
2242
+ schema: z.ZodObject<{
2243
2243
  label: z.ZodOptional<z.ZodString>;
2244
2244
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2245
2245
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2246
2246
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2247
2247
  name: z.ZodOptional<z.ZodString>;
2248
2248
  collection: z.ZodOptional<z.ZodString>;
2249
- }, {
2249
+ } & {
2250
2250
  default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
2251
- }>, "strip", z.ZodTypeAny, {
2251
+ }, "strip", z.ZodTypeAny, {
2252
2252
  optional: boolean;
2253
2253
  unique: boolean;
2254
2254
  deprecated: boolean;
2255
+ default?: boolean | SerializedSQL | undefined;
2255
2256
  name?: string | undefined;
2256
2257
  label?: string | undefined;
2257
2258
  collection?: string | undefined;
2258
- default?: boolean | SerializedSQL | undefined;
2259
2259
  }, {
2260
+ default?: boolean | SQL<any> | undefined;
2260
2261
  name?: string | undefined;
2261
2262
  label?: string | undefined;
2262
2263
  optional?: boolean | undefined;
2263
2264
  unique?: boolean | undefined;
2264
2265
  deprecated?: boolean | undefined;
2265
2266
  collection?: string | undefined;
2266
- default?: boolean | SQL<any> | undefined;
2267
2267
  }>;
2268
2268
  }, "strip", z.ZodTypeAny, {
2269
2269
  type: "boolean";
@@ -2271,21 +2271,21 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2271
2271
  optional: boolean;
2272
2272
  unique: boolean;
2273
2273
  deprecated: boolean;
2274
+ default?: boolean | SerializedSQL | undefined;
2274
2275
  name?: string | undefined;
2275
2276
  label?: string | undefined;
2276
2277
  collection?: string | undefined;
2277
- default?: boolean | SerializedSQL | undefined;
2278
2278
  };
2279
2279
  }, {
2280
2280
  type: "boolean";
2281
2281
  schema: {
2282
+ default?: boolean | SQL<any> | undefined;
2282
2283
  name?: string | undefined;
2283
2284
  label?: string | undefined;
2284
2285
  optional?: boolean | undefined;
2285
2286
  unique?: boolean | undefined;
2286
2287
  deprecated?: boolean | undefined;
2287
2288
  collection?: string | undefined;
2288
- default?: boolean | SQL<any> | undefined;
2289
2289
  };
2290
2290
  }>, z.ZodObject<{
2291
2291
  type: z.ZodLiteral<"number">;
@@ -2301,8 +2301,8 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2301
2301
  default?: number | SerializedSQL | undefined;
2302
2302
  } | {
2303
2303
  primaryKey: true;
2304
- optional?: false | undefined;
2305
2304
  default?: undefined;
2305
+ optional?: false | undefined;
2306
2306
  })) & {
2307
2307
  references?: NumberColumn;
2308
2308
  }, ZodTypeDef, ({
@@ -2312,13 +2312,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2312
2312
  deprecated?: boolean | undefined;
2313
2313
  collection?: string | undefined;
2314
2314
  } & ({
2315
- optional?: boolean | undefined;
2316
2315
  default?: number | SQL<any> | undefined;
2316
+ optional?: boolean | undefined;
2317
2317
  primaryKey?: false | undefined;
2318
2318
  } | {
2319
2319
  primaryKey: true;
2320
- optional?: false | undefined;
2321
2320
  default?: undefined;
2321
+ optional?: false | undefined;
2322
2322
  })) & {
2323
2323
  references?: () => z.input<typeof numberColumnSchema>;
2324
2324
  }>;
@@ -2336,8 +2336,8 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2336
2336
  default?: number | SerializedSQL | undefined;
2337
2337
  } | {
2338
2338
  primaryKey: true;
2339
- optional?: false | undefined;
2340
2339
  default?: undefined;
2340
+ optional?: false | undefined;
2341
2341
  })) & {
2342
2342
  references?: NumberColumn;
2343
2343
  };
@@ -2350,13 +2350,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2350
2350
  deprecated?: boolean | undefined;
2351
2351
  collection?: string | undefined;
2352
2352
  } & ({
2353
- optional?: boolean | undefined;
2354
2353
  default?: number | SQL<any> | undefined;
2354
+ optional?: boolean | undefined;
2355
2355
  primaryKey?: false | undefined;
2356
2356
  } | {
2357
2357
  primaryKey: true;
2358
- optional?: false | undefined;
2359
2358
  default?: undefined;
2359
+ optional?: false | undefined;
2360
2360
  })) & {
2361
2361
  references?: () => z.input<typeof numberColumnSchema>;
2362
2362
  };
@@ -2365,10 +2365,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2365
2365
  schema: z.ZodType<({
2366
2366
  unique: boolean;
2367
2367
  deprecated: boolean;
2368
+ default?: string | SerializedSQL | undefined;
2368
2369
  name?: string | undefined;
2369
2370
  label?: string | undefined;
2370
2371
  collection?: string | undefined;
2371
- default?: string | SerializedSQL | undefined;
2372
2372
  multiline?: boolean | undefined;
2373
2373
  } & ({
2374
2374
  optional: boolean;
@@ -2379,12 +2379,12 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2379
2379
  })) & {
2380
2380
  references?: TextColumn;
2381
2381
  }, ZodTypeDef, ({
2382
+ default?: string | SQL<any> | undefined;
2382
2383
  name?: string | undefined;
2383
2384
  label?: string | undefined;
2384
2385
  unique?: boolean | undefined;
2385
2386
  deprecated?: boolean | undefined;
2386
2387
  collection?: string | undefined;
2387
- default?: string | SQL<any> | undefined;
2388
2388
  multiline?: boolean | undefined;
2389
2389
  } & ({
2390
2390
  optional?: boolean | undefined;
@@ -2400,10 +2400,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2400
2400
  schema: ({
2401
2401
  unique: boolean;
2402
2402
  deprecated: boolean;
2403
+ default?: string | SerializedSQL | undefined;
2403
2404
  name?: string | undefined;
2404
2405
  label?: string | undefined;
2405
2406
  collection?: string | undefined;
2406
- default?: string | SerializedSQL | undefined;
2407
2407
  multiline?: boolean | undefined;
2408
2408
  } & ({
2409
2409
  optional: boolean;
@@ -2417,12 +2417,12 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2417
2417
  }, {
2418
2418
  type: "text";
2419
2419
  schema: ({
2420
+ default?: string | SQL<any> | undefined;
2420
2421
  name?: string | undefined;
2421
2422
  label?: string | undefined;
2422
2423
  unique?: boolean | undefined;
2423
2424
  deprecated?: boolean | undefined;
2424
2425
  collection?: string | undefined;
2425
- default?: string | SQL<any> | undefined;
2426
2426
  multiline?: boolean | undefined;
2427
2427
  } & ({
2428
2428
  optional?: boolean | undefined;
@@ -2435,31 +2435,31 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2435
2435
  };
2436
2436
  }>, z.ZodObject<{
2437
2437
  type: z.ZodLiteral<"date">;
2438
- schema: z.ZodObject<z.objectUtil.extendShape<{
2438
+ schema: z.ZodObject<{
2439
2439
  label: z.ZodOptional<z.ZodString>;
2440
2440
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2441
2441
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2442
2442
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2443
2443
  name: z.ZodOptional<z.ZodString>;
2444
2444
  collection: z.ZodOptional<z.ZodString>;
2445
- }, {
2445
+ } & {
2446
2446
  default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
2447
- }>, "strip", z.ZodTypeAny, {
2447
+ }, "strip", z.ZodTypeAny, {
2448
2448
  optional: boolean;
2449
2449
  unique: boolean;
2450
2450
  deprecated: boolean;
2451
+ default?: string | SerializedSQL | undefined;
2451
2452
  name?: string | undefined;
2452
2453
  label?: string | undefined;
2453
2454
  collection?: string | undefined;
2454
- default?: string | SerializedSQL | undefined;
2455
2455
  }, {
2456
+ default?: Date | SQL<any> | undefined;
2456
2457
  name?: string | undefined;
2457
2458
  label?: string | undefined;
2458
2459
  optional?: boolean | undefined;
2459
2460
  unique?: boolean | undefined;
2460
2461
  deprecated?: boolean | undefined;
2461
2462
  collection?: string | undefined;
2462
- default?: Date | SQL<any> | undefined;
2463
2463
  }>;
2464
2464
  }, "strip", z.ZodTypeAny, {
2465
2465
  type: "date";
@@ -2467,49 +2467,49 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2467
2467
  optional: boolean;
2468
2468
  unique: boolean;
2469
2469
  deprecated: boolean;
2470
+ default?: string | SerializedSQL | undefined;
2470
2471
  name?: string | undefined;
2471
2472
  label?: string | undefined;
2472
2473
  collection?: string | undefined;
2473
- default?: string | SerializedSQL | undefined;
2474
2474
  };
2475
2475
  }, {
2476
2476
  type: "date";
2477
2477
  schema: {
2478
+ default?: Date | SQL<any> | undefined;
2478
2479
  name?: string | undefined;
2479
2480
  label?: string | undefined;
2480
2481
  optional?: boolean | undefined;
2481
2482
  unique?: boolean | undefined;
2482
2483
  deprecated?: boolean | undefined;
2483
2484
  collection?: string | undefined;
2484
- default?: Date | SQL<any> | undefined;
2485
2485
  };
2486
2486
  }>, z.ZodObject<{
2487
2487
  type: z.ZodLiteral<"json">;
2488
- schema: z.ZodObject<z.objectUtil.extendShape<{
2488
+ schema: z.ZodObject<{
2489
2489
  label: z.ZodOptional<z.ZodString>;
2490
2490
  optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2491
2491
  unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2492
2492
  deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2493
2493
  name: z.ZodOptional<z.ZodString>;
2494
2494
  collection: z.ZodOptional<z.ZodString>;
2495
- }, {
2495
+ } & {
2496
2496
  default: z.ZodOptional<z.ZodUnknown>;
2497
- }>, "strip", z.ZodTypeAny, {
2497
+ }, "strip", z.ZodTypeAny, {
2498
2498
  optional: boolean;
2499
2499
  unique: boolean;
2500
2500
  deprecated: boolean;
2501
+ default?: unknown;
2501
2502
  name?: string | undefined;
2502
2503
  label?: string | undefined;
2503
2504
  collection?: string | undefined;
2504
- default?: unknown;
2505
2505
  }, {
2506
+ default?: unknown;
2506
2507
  name?: string | undefined;
2507
2508
  label?: string | undefined;
2508
2509
  optional?: boolean | undefined;
2509
2510
  unique?: boolean | undefined;
2510
2511
  deprecated?: boolean | undefined;
2511
2512
  collection?: string | undefined;
2512
- default?: unknown;
2513
2513
  }>;
2514
2514
  }, "strip", z.ZodTypeAny, {
2515
2515
  type: "json";
@@ -2517,21 +2517,21 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2517
2517
  optional: boolean;
2518
2518
  unique: boolean;
2519
2519
  deprecated: boolean;
2520
+ default?: unknown;
2520
2521
  name?: string | undefined;
2521
2522
  label?: string | undefined;
2522
2523
  collection?: string | undefined;
2523
- default?: unknown;
2524
2524
  };
2525
2525
  }, {
2526
2526
  type: "json";
2527
2527
  schema: {
2528
+ default?: unknown;
2528
2529
  name?: string | undefined;
2529
2530
  label?: string | undefined;
2530
2531
  optional?: boolean | undefined;
2531
2532
  unique?: boolean | undefined;
2532
2533
  deprecated?: boolean | undefined;
2533
2534
  collection?: string | undefined;
2534
- default?: unknown;
2535
2535
  };
2536
2536
  }>]>>;
2537
2537
  indexes: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
@@ -2566,10 +2566,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2566
2566
  optional: boolean;
2567
2567
  unique: boolean;
2568
2568
  deprecated: boolean;
2569
+ default?: boolean | SerializedSQL | undefined;
2569
2570
  name?: string | undefined;
2570
2571
  label?: string | undefined;
2571
2572
  collection?: string | undefined;
2572
- default?: boolean | SerializedSQL | undefined;
2573
2573
  };
2574
2574
  } | {
2575
2575
  type: "number";
@@ -2585,8 +2585,8 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2585
2585
  default?: number | SerializedSQL | undefined;
2586
2586
  } | {
2587
2587
  primaryKey: true;
2588
- optional?: false | undefined;
2589
2588
  default?: undefined;
2589
+ optional?: false | undefined;
2590
2590
  })) & {
2591
2591
  references?: NumberColumn;
2592
2592
  };
@@ -2595,10 +2595,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2595
2595
  schema: ({
2596
2596
  unique: boolean;
2597
2597
  deprecated: boolean;
2598
+ default?: string | SerializedSQL | undefined;
2598
2599
  name?: string | undefined;
2599
2600
  label?: string | undefined;
2600
2601
  collection?: string | undefined;
2601
- default?: string | SerializedSQL | undefined;
2602
2602
  multiline?: boolean | undefined;
2603
2603
  } & ({
2604
2604
  optional: boolean;
@@ -2615,10 +2615,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2615
2615
  optional: boolean;
2616
2616
  unique: boolean;
2617
2617
  deprecated: boolean;
2618
+ default?: string | SerializedSQL | undefined;
2618
2619
  name?: string | undefined;
2619
2620
  label?: string | undefined;
2620
2621
  collection?: string | undefined;
2621
- default?: string | SerializedSQL | undefined;
2622
2622
  };
2623
2623
  } | {
2624
2624
  type: "json";
@@ -2626,10 +2626,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2626
2626
  optional: boolean;
2627
2627
  unique: boolean;
2628
2628
  deprecated: boolean;
2629
+ default?: unknown;
2629
2630
  name?: string | undefined;
2630
2631
  label?: string | undefined;
2631
2632
  collection?: string | undefined;
2632
- default?: unknown;
2633
2633
  };
2634
2634
  }>;
2635
2635
  indexes?: {
@@ -2645,13 +2645,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2645
2645
  columns: Record<string, {
2646
2646
  type: "boolean";
2647
2647
  schema: {
2648
+ default?: boolean | SQL<any> | undefined;
2648
2649
  name?: string | undefined;
2649
2650
  label?: string | undefined;
2650
2651
  optional?: boolean | undefined;
2651
2652
  unique?: boolean | undefined;
2652
2653
  deprecated?: boolean | undefined;
2653
2654
  collection?: string | undefined;
2654
- default?: boolean | SQL<any> | undefined;
2655
2655
  };
2656
2656
  } | {
2657
2657
  type: "number";
@@ -2662,25 +2662,25 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2662
2662
  deprecated?: boolean | undefined;
2663
2663
  collection?: string | undefined;
2664
2664
  } & ({
2665
- optional?: boolean | undefined;
2666
2665
  default?: number | SQL<any> | undefined;
2666
+ optional?: boolean | undefined;
2667
2667
  primaryKey?: false | undefined;
2668
2668
  } | {
2669
2669
  primaryKey: true;
2670
- optional?: false | undefined;
2671
2670
  default?: undefined;
2671
+ optional?: false | undefined;
2672
2672
  })) & {
2673
2673
  references?: () => z.input<typeof numberColumnSchema>;
2674
2674
  };
2675
2675
  } | {
2676
2676
  type: "text";
2677
2677
  schema: ({
2678
+ default?: string | SQL<any> | undefined;
2678
2679
  name?: string | undefined;
2679
2680
  label?: string | undefined;
2680
2681
  unique?: boolean | undefined;
2681
2682
  deprecated?: boolean | undefined;
2682
2683
  collection?: string | undefined;
2683
- default?: string | SQL<any> | undefined;
2684
2684
  multiline?: boolean | undefined;
2685
2685
  } & ({
2686
2686
  optional?: boolean | undefined;
@@ -2694,24 +2694,24 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2694
2694
  } | {
2695
2695
  type: "date";
2696
2696
  schema: {
2697
+ default?: Date | SQL<any> | undefined;
2697
2698
  name?: string | undefined;
2698
2699
  label?: string | undefined;
2699
2700
  optional?: boolean | undefined;
2700
2701
  unique?: boolean | undefined;
2701
2702
  deprecated?: boolean | undefined;
2702
2703
  collection?: string | undefined;
2703
- default?: Date | SQL<any> | undefined;
2704
2704
  };
2705
2705
  } | {
2706
2706
  type: "json";
2707
2707
  schema: {
2708
+ default?: unknown;
2708
2709
  name?: string | undefined;
2709
2710
  label?: string | undefined;
2710
2711
  optional?: boolean | undefined;
2711
2712
  unique?: boolean | undefined;
2712
2713
  deprecated?: boolean | undefined;
2713
2714
  collection?: string | undefined;
2714
- default?: unknown;
2715
2715
  };
2716
2716
  }>;
2717
2717
  deprecated?: boolean | undefined;
@@ -2732,10 +2732,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2732
2732
  optional: boolean;
2733
2733
  unique: boolean;
2734
2734
  deprecated: boolean;
2735
+ default?: boolean | SerializedSQL | undefined;
2735
2736
  name?: string | undefined;
2736
2737
  label?: string | undefined;
2737
2738
  collection?: string | undefined;
2738
- default?: boolean | SerializedSQL | undefined;
2739
2739
  };
2740
2740
  } | {
2741
2741
  type: "number";
@@ -2751,8 +2751,8 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2751
2751
  default?: number | SerializedSQL | undefined;
2752
2752
  } | {
2753
2753
  primaryKey: true;
2754
- optional?: false | undefined;
2755
2754
  default?: undefined;
2755
+ optional?: false | undefined;
2756
2756
  })) & {
2757
2757
  references?: NumberColumn;
2758
2758
  };
@@ -2761,10 +2761,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2761
2761
  schema: ({
2762
2762
  unique: boolean;
2763
2763
  deprecated: boolean;
2764
+ default?: string | SerializedSQL | undefined;
2764
2765
  name?: string | undefined;
2765
2766
  label?: string | undefined;
2766
2767
  collection?: string | undefined;
2767
- default?: string | SerializedSQL | undefined;
2768
2768
  multiline?: boolean | undefined;
2769
2769
  } & ({
2770
2770
  optional: boolean;
@@ -2781,10 +2781,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2781
2781
  optional: boolean;
2782
2782
  unique: boolean;
2783
2783
  deprecated: boolean;
2784
+ default?: string | SerializedSQL | undefined;
2784
2785
  name?: string | undefined;
2785
2786
  label?: string | undefined;
2786
2787
  collection?: string | undefined;
2787
- default?: string | SerializedSQL | undefined;
2788
2788
  };
2789
2789
  } | {
2790
2790
  type: "json";
@@ -2792,10 +2792,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2792
2792
  optional: boolean;
2793
2793
  unique: boolean;
2794
2794
  deprecated: boolean;
2795
+ default?: unknown;
2795
2796
  name?: string | undefined;
2796
2797
  label?: string | undefined;
2797
2798
  collection?: string | undefined;
2798
- default?: unknown;
2799
2799
  };
2800
2800
  }>;
2801
2801
  indexes?: {
@@ -2817,10 +2817,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2817
2817
  optional: boolean;
2818
2818
  unique: boolean;
2819
2819
  deprecated: boolean;
2820
+ default?: boolean | SerializedSQL | undefined;
2820
2821
  name?: string | undefined;
2821
2822
  label?: string | undefined;
2822
2823
  collection?: string | undefined;
2823
- default?: boolean | SerializedSQL | undefined;
2824
2824
  };
2825
2825
  } | {
2826
2826
  type: "number";
@@ -2836,8 +2836,8 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2836
2836
  default?: number | SerializedSQL | undefined;
2837
2837
  } | {
2838
2838
  primaryKey: true;
2839
- optional?: false | undefined;
2840
2839
  default?: undefined;
2840
+ optional?: false | undefined;
2841
2841
  })) & {
2842
2842
  references?: NumberColumn;
2843
2843
  };
@@ -2846,10 +2846,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2846
2846
  schema: ({
2847
2847
  unique: boolean;
2848
2848
  deprecated: boolean;
2849
+ default?: string | SerializedSQL | undefined;
2849
2850
  name?: string | undefined;
2850
2851
  label?: string | undefined;
2851
2852
  collection?: string | undefined;
2852
- default?: string | SerializedSQL | undefined;
2853
2853
  multiline?: boolean | undefined;
2854
2854
  } & ({
2855
2855
  optional: boolean;
@@ -2866,10 +2866,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2866
2866
  optional: boolean;
2867
2867
  unique: boolean;
2868
2868
  deprecated: boolean;
2869
+ default?: string | SerializedSQL | undefined;
2869
2870
  name?: string | undefined;
2870
2871
  label?: string | undefined;
2871
2872
  collection?: string | undefined;
2872
- default?: string | SerializedSQL | undefined;
2873
2873
  };
2874
2874
  } | {
2875
2875
  type: "json";
@@ -2877,10 +2877,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2877
2877
  optional: boolean;
2878
2878
  unique: boolean;
2879
2879
  deprecated: boolean;
2880
+ default?: unknown;
2880
2881
  name?: string | undefined;
2881
2882
  label?: string | undefined;
2882
2883
  collection?: string | undefined;
2883
- default?: unknown;
2884
2884
  };
2885
2885
  }>;
2886
2886
  indexes?: {
@@ -2908,10 +2908,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2908
2908
  optional: boolean;
2909
2909
  unique: boolean;
2910
2910
  deprecated: boolean;
2911
+ default?: boolean | SerializedSQL | undefined;
2911
2912
  name?: string | undefined;
2912
2913
  label?: string | undefined;
2913
2914
  collection?: string | undefined;
2914
- default?: boolean | SerializedSQL | undefined;
2915
2915
  };
2916
2916
  } | {
2917
2917
  type: "number";
@@ -2927,8 +2927,8 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2927
2927
  default?: number | SerializedSQL | undefined;
2928
2928
  } | {
2929
2929
  primaryKey: true;
2930
- optional?: false | undefined;
2931
2930
  default?: undefined;
2931
+ optional?: false | undefined;
2932
2932
  })) & {
2933
2933
  references?: NumberColumn;
2934
2934
  };
@@ -2937,10 +2937,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2937
2937
  schema: ({
2938
2938
  unique: boolean;
2939
2939
  deprecated: boolean;
2940
+ default?: string | SerializedSQL | undefined;
2940
2941
  name?: string | undefined;
2941
2942
  label?: string | undefined;
2942
2943
  collection?: string | undefined;
2943
- default?: string | SerializedSQL | undefined;
2944
2944
  multiline?: boolean | undefined;
2945
2945
  } & ({
2946
2946
  optional: boolean;
@@ -2957,10 +2957,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2957
2957
  optional: boolean;
2958
2958
  unique: boolean;
2959
2959
  deprecated: boolean;
2960
+ default?: string | SerializedSQL | undefined;
2960
2961
  name?: string | undefined;
2961
2962
  label?: string | undefined;
2962
2963
  collection?: string | undefined;
2963
- default?: string | SerializedSQL | undefined;
2964
2964
  };
2965
2965
  } | {
2966
2966
  type: "json";
@@ -2968,10 +2968,10 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
2968
2968
  optional: boolean;
2969
2969
  unique: boolean;
2970
2970
  deprecated: boolean;
2971
+ default?: unknown;
2971
2972
  name?: string | undefined;
2972
2973
  label?: string | undefined;
2973
2974
  collection?: string | undefined;
2974
- default?: unknown;
2975
2975
  };
2976
2976
  }>;
2977
2977
  foreignKeys?: ForeignKeysOutput[] | undefined;