@astrojs/db 0.10.5 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/core/schemas.d.ts +411 -1129
- package/dist/_internal/runtime/virtual.d.ts +10 -24
- package/dist/core/cli/commands/login/index.js +40 -18
- package/dist/core/cli/print-help.js +1 -1
- package/dist/core/errors.d.ts +1 -0
- package/dist/core/errors.js +5 -0
- package/dist/core/load-file.d.ts +27 -81
- package/dist/core/schemas.d.ts +411 -1129
- package/dist/core/tokens.js +12 -3
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +1 -2
- package/dist/runtime/queries.d.ts +8 -26
- package/dist/utils.d.ts +3 -1
- package/dist/utils.js +5 -1
- package/package.json +17 -16
|
@@ -5,15 +5,16 @@ 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<{
|
|
9
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
10
9
|
label: z.ZodOptional<z.ZodString>;
|
|
11
10
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
11
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
12
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14
14
|
collection: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, {
|
|
15
16
|
default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
|
|
16
|
-
}
|
|
17
|
+
}>, "strip", z.ZodTypeAny, {
|
|
17
18
|
optional: boolean;
|
|
18
19
|
unique: boolean;
|
|
19
20
|
deprecated: boolean;
|
|
@@ -81,9 +82,9 @@ declare const numberColumnBaseSchema: z.ZodIntersection<z.ZodObject<Omit<{
|
|
|
81
82
|
primaryKey: false;
|
|
82
83
|
default?: number | SerializedSQL | undefined;
|
|
83
84
|
}, {
|
|
84
|
-
primaryKey?: false | undefined;
|
|
85
85
|
optional?: boolean | undefined;
|
|
86
86
|
default?: number | SQL<any> | undefined;
|
|
87
|
+
primaryKey?: false | undefined;
|
|
87
88
|
}>, z.ZodObject<{
|
|
88
89
|
primaryKey: z.ZodLiteral<true>;
|
|
89
90
|
optional: z.ZodOptional<z.ZodLiteral<false>>;
|
|
@@ -127,21 +128,15 @@ export declare const numberColumnSchema: z.ZodObject<{
|
|
|
127
128
|
name?: string | undefined;
|
|
128
129
|
label?: string | undefined;
|
|
129
130
|
collection?: string | undefined;
|
|
130
|
-
} & {
|
|
131
|
+
} & ({
|
|
131
132
|
optional: boolean;
|
|
132
133
|
primaryKey: false;
|
|
133
134
|
default?: number | SerializedSQL | undefined;
|
|
134
|
-
}
|
|
135
|
-
unique: boolean;
|
|
136
|
-
deprecated: boolean;
|
|
137
|
-
name?: string | undefined;
|
|
138
|
-
label?: string | undefined;
|
|
139
|
-
collection?: string | undefined;
|
|
140
|
-
} & {
|
|
135
|
+
} | {
|
|
141
136
|
primaryKey: true;
|
|
142
137
|
optional?: false | undefined;
|
|
143
138
|
default?: undefined;
|
|
144
|
-
} & any
|
|
139
|
+
})) & any;
|
|
145
140
|
} | undefined;
|
|
146
141
|
}, ZodTypeDef, ({
|
|
147
142
|
name?: string | undefined;
|
|
@@ -150,9 +145,9 @@ export declare const numberColumnSchema: z.ZodObject<{
|
|
|
150
145
|
deprecated?: boolean | undefined;
|
|
151
146
|
collection?: string | undefined;
|
|
152
147
|
} & ({
|
|
153
|
-
primaryKey?: false | undefined;
|
|
154
148
|
optional?: boolean | undefined;
|
|
155
149
|
default?: number | SQL<any> | undefined;
|
|
150
|
+
primaryKey?: false | undefined;
|
|
156
151
|
} | {
|
|
157
152
|
primaryKey: true;
|
|
158
153
|
optional?: false | undefined;
|
|
@@ -168,46 +163,15 @@ export declare const numberColumnSchema: z.ZodObject<{
|
|
|
168
163
|
name?: string | undefined;
|
|
169
164
|
label?: string | undefined;
|
|
170
165
|
collection?: string | undefined;
|
|
171
|
-
} & {
|
|
166
|
+
} & ({
|
|
172
167
|
optional: boolean;
|
|
173
168
|
primaryKey: false;
|
|
174
169
|
default?: number | SerializedSQL | undefined;
|
|
175
|
-
}
|
|
176
|
-
references?: {
|
|
177
|
-
type: "number";
|
|
178
|
-
schema: ({
|
|
179
|
-
unique: boolean;
|
|
180
|
-
deprecated: boolean;
|
|
181
|
-
name?: string | undefined;
|
|
182
|
-
label?: string | undefined;
|
|
183
|
-
collection?: string | undefined;
|
|
184
|
-
} & {
|
|
185
|
-
optional: boolean;
|
|
186
|
-
primaryKey: false;
|
|
187
|
-
default?: number | SerializedSQL | undefined;
|
|
188
|
-
} & any) | ({
|
|
189
|
-
unique: boolean;
|
|
190
|
-
deprecated: boolean;
|
|
191
|
-
name?: string | undefined;
|
|
192
|
-
label?: string | undefined;
|
|
193
|
-
collection?: string | undefined;
|
|
194
|
-
} & {
|
|
195
|
-
primaryKey: true;
|
|
196
|
-
optional?: false | undefined;
|
|
197
|
-
default?: undefined;
|
|
198
|
-
} & any);
|
|
199
|
-
} | undefined;
|
|
200
|
-
}) | ({
|
|
201
|
-
unique: boolean;
|
|
202
|
-
deprecated: boolean;
|
|
203
|
-
name?: string | undefined;
|
|
204
|
-
label?: string | undefined;
|
|
205
|
-
collection?: string | undefined;
|
|
206
|
-
} & {
|
|
170
|
+
} | {
|
|
207
171
|
primaryKey: true;
|
|
208
172
|
optional?: false | undefined;
|
|
209
173
|
default?: undefined;
|
|
210
|
-
} & {
|
|
174
|
+
})) & {
|
|
211
175
|
references?: {
|
|
212
176
|
type: "number";
|
|
213
177
|
schema: ({
|
|
@@ -216,23 +180,17 @@ export declare const numberColumnSchema: z.ZodObject<{
|
|
|
216
180
|
name?: string | undefined;
|
|
217
181
|
label?: string | undefined;
|
|
218
182
|
collection?: string | undefined;
|
|
219
|
-
} & {
|
|
183
|
+
} & ({
|
|
220
184
|
optional: boolean;
|
|
221
185
|
primaryKey: false;
|
|
222
186
|
default?: number | SerializedSQL | undefined;
|
|
223
|
-
}
|
|
224
|
-
unique: boolean;
|
|
225
|
-
deprecated: boolean;
|
|
226
|
-
name?: string | undefined;
|
|
227
|
-
label?: string | undefined;
|
|
228
|
-
collection?: string | undefined;
|
|
229
|
-
} & {
|
|
187
|
+
} | {
|
|
230
188
|
primaryKey: true;
|
|
231
189
|
optional?: false | undefined;
|
|
232
190
|
default?: undefined;
|
|
233
|
-
} & any
|
|
191
|
+
})) & any;
|
|
234
192
|
} | undefined;
|
|
235
|
-
}
|
|
193
|
+
};
|
|
236
194
|
}, {
|
|
237
195
|
type: "number";
|
|
238
196
|
schema: ({
|
|
@@ -241,35 +199,29 @@ export declare const numberColumnSchema: z.ZodObject<{
|
|
|
241
199
|
unique?: boolean | undefined;
|
|
242
200
|
deprecated?: boolean | undefined;
|
|
243
201
|
collection?: string | undefined;
|
|
244
|
-
} & {
|
|
245
|
-
primaryKey?: false | undefined;
|
|
202
|
+
} & ({
|
|
246
203
|
optional?: boolean | undefined;
|
|
247
204
|
default?: number | SQL<any> | undefined;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}) | ({
|
|
251
|
-
name?: string | undefined;
|
|
252
|
-
label?: string | undefined;
|
|
253
|
-
unique?: boolean | undefined;
|
|
254
|
-
deprecated?: boolean | undefined;
|
|
255
|
-
collection?: string | undefined;
|
|
256
|
-
} & {
|
|
205
|
+
primaryKey?: false | undefined;
|
|
206
|
+
} | {
|
|
257
207
|
primaryKey: true;
|
|
258
208
|
optional?: false | undefined;
|
|
259
209
|
default?: undefined;
|
|
260
|
-
} & {
|
|
210
|
+
})) & {
|
|
261
211
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
262
|
-
}
|
|
212
|
+
};
|
|
263
213
|
}>;
|
|
264
|
-
declare const textColumnBaseSchema: z.ZodIntersection<z.ZodObject<{
|
|
265
|
-
name: z.ZodOptional<z.ZodString>;
|
|
214
|
+
declare const textColumnBaseSchema: z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
266
215
|
label: z.ZodOptional<z.ZodString>;
|
|
216
|
+
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
267
217
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
268
218
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
219
|
+
name: z.ZodOptional<z.ZodString>;
|
|
269
220
|
collection: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, "optional">, {
|
|
270
222
|
default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
|
|
271
223
|
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
-
}
|
|
224
|
+
}>, "strip", z.ZodTypeAny, {
|
|
273
225
|
unique: boolean;
|
|
274
226
|
deprecated: boolean;
|
|
275
227
|
name?: string | undefined;
|
|
@@ -292,8 +244,8 @@ declare const textColumnBaseSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
292
244
|
optional: boolean;
|
|
293
245
|
primaryKey: false;
|
|
294
246
|
}, {
|
|
295
|
-
primaryKey?: false | undefined;
|
|
296
247
|
optional?: boolean | undefined;
|
|
248
|
+
primaryKey?: false | undefined;
|
|
297
249
|
}>, z.ZodObject<{
|
|
298
250
|
primaryKey: z.ZodLiteral<true>;
|
|
299
251
|
optional: z.ZodOptional<z.ZodLiteral<false>>;
|
|
@@ -336,21 +288,13 @@ export declare const textColumnSchema: z.ZodObject<{
|
|
|
336
288
|
collection?: string | undefined;
|
|
337
289
|
default?: string | SerializedSQL | undefined;
|
|
338
290
|
multiline?: boolean | undefined;
|
|
339
|
-
} & {
|
|
291
|
+
} & ({
|
|
340
292
|
optional: boolean;
|
|
341
293
|
primaryKey: false;
|
|
342
|
-
}
|
|
343
|
-
unique: boolean;
|
|
344
|
-
deprecated: boolean;
|
|
345
|
-
name?: string | undefined;
|
|
346
|
-
label?: string | undefined;
|
|
347
|
-
collection?: string | undefined;
|
|
348
|
-
default?: string | SerializedSQL | undefined;
|
|
349
|
-
multiline?: boolean | undefined;
|
|
350
|
-
} & {
|
|
294
|
+
} | {
|
|
351
295
|
primaryKey: true;
|
|
352
296
|
optional?: false | undefined;
|
|
353
|
-
} & any
|
|
297
|
+
})) & any;
|
|
354
298
|
} | undefined;
|
|
355
299
|
}, ZodTypeDef, ({
|
|
356
300
|
name?: string | undefined;
|
|
@@ -361,8 +305,8 @@ export declare const textColumnSchema: z.ZodObject<{
|
|
|
361
305
|
default?: string | SQL<any> | undefined;
|
|
362
306
|
multiline?: boolean | undefined;
|
|
363
307
|
} & ({
|
|
364
|
-
primaryKey?: false | undefined;
|
|
365
308
|
optional?: boolean | undefined;
|
|
309
|
+
primaryKey?: false | undefined;
|
|
366
310
|
} | {
|
|
367
311
|
primaryKey: true;
|
|
368
312
|
optional?: false | undefined;
|
|
@@ -379,48 +323,13 @@ export declare const textColumnSchema: z.ZodObject<{
|
|
|
379
323
|
collection?: string | undefined;
|
|
380
324
|
default?: string | SerializedSQL | undefined;
|
|
381
325
|
multiline?: boolean | undefined;
|
|
382
|
-
} & {
|
|
326
|
+
} & ({
|
|
383
327
|
optional: boolean;
|
|
384
328
|
primaryKey: false;
|
|
385
|
-
}
|
|
386
|
-
references?: {
|
|
387
|
-
type: "text";
|
|
388
|
-
schema: ({
|
|
389
|
-
unique: boolean;
|
|
390
|
-
deprecated: boolean;
|
|
391
|
-
name?: string | undefined;
|
|
392
|
-
label?: string | undefined;
|
|
393
|
-
collection?: string | undefined;
|
|
394
|
-
default?: string | SerializedSQL | undefined;
|
|
395
|
-
multiline?: boolean | undefined;
|
|
396
|
-
} & {
|
|
397
|
-
optional: boolean;
|
|
398
|
-
primaryKey: false;
|
|
399
|
-
} & any) | ({
|
|
400
|
-
unique: boolean;
|
|
401
|
-
deprecated: boolean;
|
|
402
|
-
name?: string | undefined;
|
|
403
|
-
label?: string | undefined;
|
|
404
|
-
collection?: string | undefined;
|
|
405
|
-
default?: string | SerializedSQL | undefined;
|
|
406
|
-
multiline?: boolean | undefined;
|
|
407
|
-
} & {
|
|
408
|
-
primaryKey: true;
|
|
409
|
-
optional?: false | undefined;
|
|
410
|
-
} & any);
|
|
411
|
-
} | undefined;
|
|
412
|
-
}) | ({
|
|
413
|
-
unique: boolean;
|
|
414
|
-
deprecated: boolean;
|
|
415
|
-
name?: string | undefined;
|
|
416
|
-
label?: string | undefined;
|
|
417
|
-
collection?: string | undefined;
|
|
418
|
-
default?: string | SerializedSQL | undefined;
|
|
419
|
-
multiline?: boolean | undefined;
|
|
420
|
-
} & {
|
|
329
|
+
} | {
|
|
421
330
|
primaryKey: true;
|
|
422
331
|
optional?: false | undefined;
|
|
423
|
-
} & {
|
|
332
|
+
})) & {
|
|
424
333
|
references?: {
|
|
425
334
|
type: "text";
|
|
426
335
|
schema: ({
|
|
@@ -431,23 +340,15 @@ export declare const textColumnSchema: z.ZodObject<{
|
|
|
431
340
|
collection?: string | undefined;
|
|
432
341
|
default?: string | SerializedSQL | undefined;
|
|
433
342
|
multiline?: boolean | undefined;
|
|
434
|
-
} & {
|
|
343
|
+
} & ({
|
|
435
344
|
optional: boolean;
|
|
436
345
|
primaryKey: false;
|
|
437
|
-
}
|
|
438
|
-
unique: boolean;
|
|
439
|
-
deprecated: boolean;
|
|
440
|
-
name?: string | undefined;
|
|
441
|
-
label?: string | undefined;
|
|
442
|
-
collection?: string | undefined;
|
|
443
|
-
default?: string | SerializedSQL | undefined;
|
|
444
|
-
multiline?: boolean | undefined;
|
|
445
|
-
} & {
|
|
346
|
+
} | {
|
|
446
347
|
primaryKey: true;
|
|
447
348
|
optional?: false | undefined;
|
|
448
|
-
} & any
|
|
349
|
+
})) & any;
|
|
449
350
|
} | undefined;
|
|
450
|
-
}
|
|
351
|
+
};
|
|
451
352
|
}, {
|
|
452
353
|
type: "text";
|
|
453
354
|
schema: ({
|
|
@@ -458,37 +359,28 @@ export declare const textColumnSchema: z.ZodObject<{
|
|
|
458
359
|
collection?: string | undefined;
|
|
459
360
|
default?: string | SQL<any> | undefined;
|
|
460
361
|
multiline?: boolean | undefined;
|
|
461
|
-
} & {
|
|
462
|
-
primaryKey?: false | undefined;
|
|
362
|
+
} & ({
|
|
463
363
|
optional?: boolean | undefined;
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}) | ({
|
|
467
|
-
name?: string | undefined;
|
|
468
|
-
label?: string | undefined;
|
|
469
|
-
unique?: boolean | undefined;
|
|
470
|
-
deprecated?: boolean | undefined;
|
|
471
|
-
collection?: string | undefined;
|
|
472
|
-
default?: string | SQL<any> | undefined;
|
|
473
|
-
multiline?: boolean | undefined;
|
|
474
|
-
} & {
|
|
364
|
+
primaryKey?: false | undefined;
|
|
365
|
+
} | {
|
|
475
366
|
primaryKey: true;
|
|
476
367
|
optional?: false | undefined;
|
|
477
|
-
} & {
|
|
368
|
+
})) & {
|
|
478
369
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
479
|
-
}
|
|
370
|
+
};
|
|
480
371
|
}>;
|
|
481
372
|
export declare const dateColumnSchema: z.ZodObject<{
|
|
482
373
|
type: z.ZodLiteral<"date">;
|
|
483
|
-
schema: z.ZodObject<{
|
|
484
|
-
name: z.ZodOptional<z.ZodString>;
|
|
374
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
485
375
|
label: z.ZodOptional<z.ZodString>;
|
|
486
376
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
487
377
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
488
378
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
379
|
+
name: z.ZodOptional<z.ZodString>;
|
|
489
380
|
collection: z.ZodOptional<z.ZodString>;
|
|
381
|
+
}, {
|
|
490
382
|
default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
|
|
491
|
-
}
|
|
383
|
+
}>, "strip", z.ZodTypeAny, {
|
|
492
384
|
optional: boolean;
|
|
493
385
|
unique: boolean;
|
|
494
386
|
deprecated: boolean;
|
|
@@ -530,15 +422,16 @@ export declare const dateColumnSchema: z.ZodObject<{
|
|
|
530
422
|
}>;
|
|
531
423
|
export declare const jsonColumnSchema: z.ZodObject<{
|
|
532
424
|
type: z.ZodLiteral<"json">;
|
|
533
|
-
schema: z.ZodObject<{
|
|
534
|
-
name: z.ZodOptional<z.ZodString>;
|
|
425
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
535
426
|
label: z.ZodOptional<z.ZodString>;
|
|
536
427
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
537
428
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
538
429
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
430
|
+
name: z.ZodOptional<z.ZodString>;
|
|
539
431
|
collection: z.ZodOptional<z.ZodString>;
|
|
432
|
+
}, {
|
|
540
433
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
541
|
-
}
|
|
434
|
+
}>, "strip", z.ZodTypeAny, {
|
|
542
435
|
optional: boolean;
|
|
543
436
|
unique: boolean;
|
|
544
437
|
deprecated: boolean;
|
|
@@ -580,15 +473,16 @@ export declare const jsonColumnSchema: z.ZodObject<{
|
|
|
580
473
|
}>;
|
|
581
474
|
export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
582
475
|
type: z.ZodLiteral<"boolean">;
|
|
583
|
-
schema: z.ZodObject<{
|
|
584
|
-
name: z.ZodOptional<z.ZodString>;
|
|
476
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
585
477
|
label: z.ZodOptional<z.ZodString>;
|
|
586
478
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
587
479
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
588
480
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
481
|
+
name: z.ZodOptional<z.ZodString>;
|
|
589
482
|
collection: z.ZodOptional<z.ZodString>;
|
|
483
|
+
}, {
|
|
590
484
|
default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
|
|
591
|
-
}
|
|
485
|
+
}>, "strip", z.ZodTypeAny, {
|
|
592
486
|
optional: boolean;
|
|
593
487
|
unique: boolean;
|
|
594
488
|
deprecated: boolean;
|
|
@@ -652,21 +546,15 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
652
546
|
name?: string | undefined;
|
|
653
547
|
label?: string | undefined;
|
|
654
548
|
collection?: string | undefined;
|
|
655
|
-
} & {
|
|
549
|
+
} & ({
|
|
656
550
|
optional: boolean;
|
|
657
551
|
primaryKey: false;
|
|
658
552
|
default?: number | SerializedSQL | undefined;
|
|
659
|
-
}
|
|
660
|
-
unique: boolean;
|
|
661
|
-
deprecated: boolean;
|
|
662
|
-
name?: string | undefined;
|
|
663
|
-
label?: string | undefined;
|
|
664
|
-
collection?: string | undefined;
|
|
665
|
-
} & {
|
|
553
|
+
} | {
|
|
666
554
|
primaryKey: true;
|
|
667
555
|
optional?: false | undefined;
|
|
668
556
|
default?: undefined;
|
|
669
|
-
} & any
|
|
557
|
+
})) & any;
|
|
670
558
|
} | undefined;
|
|
671
559
|
}, ZodTypeDef, ({
|
|
672
560
|
name?: string | undefined;
|
|
@@ -675,9 +563,9 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
675
563
|
deprecated?: boolean | undefined;
|
|
676
564
|
collection?: string | undefined;
|
|
677
565
|
} & ({
|
|
678
|
-
primaryKey?: false | undefined;
|
|
679
566
|
optional?: boolean | undefined;
|
|
680
567
|
default?: number | SQL<any> | undefined;
|
|
568
|
+
primaryKey?: false | undefined;
|
|
681
569
|
} | {
|
|
682
570
|
primaryKey: true;
|
|
683
571
|
optional?: false | undefined;
|
|
@@ -693,46 +581,15 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
693
581
|
name?: string | undefined;
|
|
694
582
|
label?: string | undefined;
|
|
695
583
|
collection?: string | undefined;
|
|
696
|
-
} & {
|
|
584
|
+
} & ({
|
|
697
585
|
optional: boolean;
|
|
698
586
|
primaryKey: false;
|
|
699
587
|
default?: number | SerializedSQL | undefined;
|
|
700
|
-
}
|
|
701
|
-
references?: {
|
|
702
|
-
type: "number";
|
|
703
|
-
schema: ({
|
|
704
|
-
unique: boolean;
|
|
705
|
-
deprecated: boolean;
|
|
706
|
-
name?: string | undefined;
|
|
707
|
-
label?: string | undefined;
|
|
708
|
-
collection?: string | undefined;
|
|
709
|
-
} & {
|
|
710
|
-
optional: boolean;
|
|
711
|
-
primaryKey: false;
|
|
712
|
-
default?: number | SerializedSQL | undefined;
|
|
713
|
-
} & any) | ({
|
|
714
|
-
unique: boolean;
|
|
715
|
-
deprecated: boolean;
|
|
716
|
-
name?: string | undefined;
|
|
717
|
-
label?: string | undefined;
|
|
718
|
-
collection?: string | undefined;
|
|
719
|
-
} & {
|
|
720
|
-
primaryKey: true;
|
|
721
|
-
optional?: false | undefined;
|
|
722
|
-
default?: undefined;
|
|
723
|
-
} & any);
|
|
724
|
-
} | undefined;
|
|
725
|
-
}) | ({
|
|
726
|
-
unique: boolean;
|
|
727
|
-
deprecated: boolean;
|
|
728
|
-
name?: string | undefined;
|
|
729
|
-
label?: string | undefined;
|
|
730
|
-
collection?: string | undefined;
|
|
731
|
-
} & {
|
|
588
|
+
} | {
|
|
732
589
|
primaryKey: true;
|
|
733
590
|
optional?: false | undefined;
|
|
734
591
|
default?: undefined;
|
|
735
|
-
} & {
|
|
592
|
+
})) & {
|
|
736
593
|
references?: {
|
|
737
594
|
type: "number";
|
|
738
595
|
schema: ({
|
|
@@ -741,23 +598,17 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
741
598
|
name?: string | undefined;
|
|
742
599
|
label?: string | undefined;
|
|
743
600
|
collection?: string | undefined;
|
|
744
|
-
} & {
|
|
601
|
+
} & ({
|
|
745
602
|
optional: boolean;
|
|
746
603
|
primaryKey: false;
|
|
747
604
|
default?: number | SerializedSQL | undefined;
|
|
748
|
-
}
|
|
749
|
-
unique: boolean;
|
|
750
|
-
deprecated: boolean;
|
|
751
|
-
name?: string | undefined;
|
|
752
|
-
label?: string | undefined;
|
|
753
|
-
collection?: string | undefined;
|
|
754
|
-
} & {
|
|
605
|
+
} | {
|
|
755
606
|
primaryKey: true;
|
|
756
607
|
optional?: false | undefined;
|
|
757
608
|
default?: undefined;
|
|
758
|
-
} & any
|
|
609
|
+
})) & any;
|
|
759
610
|
} | undefined;
|
|
760
|
-
}
|
|
611
|
+
};
|
|
761
612
|
}, {
|
|
762
613
|
type: "number";
|
|
763
614
|
schema: ({
|
|
@@ -766,25 +617,17 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
766
617
|
unique?: boolean | undefined;
|
|
767
618
|
deprecated?: boolean | undefined;
|
|
768
619
|
collection?: string | undefined;
|
|
769
|
-
} & {
|
|
770
|
-
primaryKey?: false | undefined;
|
|
620
|
+
} & ({
|
|
771
621
|
optional?: boolean | undefined;
|
|
772
622
|
default?: number | SQL<any> | undefined;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}) | ({
|
|
776
|
-
name?: string | undefined;
|
|
777
|
-
label?: string | undefined;
|
|
778
|
-
unique?: boolean | undefined;
|
|
779
|
-
deprecated?: boolean | undefined;
|
|
780
|
-
collection?: string | undefined;
|
|
781
|
-
} & {
|
|
623
|
+
primaryKey?: false | undefined;
|
|
624
|
+
} | {
|
|
782
625
|
primaryKey: true;
|
|
783
626
|
optional?: false | undefined;
|
|
784
627
|
default?: undefined;
|
|
785
|
-
} & {
|
|
628
|
+
})) & {
|
|
786
629
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
787
|
-
}
|
|
630
|
+
};
|
|
788
631
|
}>, z.ZodObject<{
|
|
789
632
|
type: z.ZodLiteral<"text">;
|
|
790
633
|
schema: z.ZodType<({
|
|
@@ -812,21 +655,13 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
812
655
|
collection?: string | undefined;
|
|
813
656
|
default?: string | SerializedSQL | undefined;
|
|
814
657
|
multiline?: boolean | undefined;
|
|
815
|
-
} & {
|
|
658
|
+
} & ({
|
|
816
659
|
optional: boolean;
|
|
817
660
|
primaryKey: false;
|
|
818
|
-
}
|
|
819
|
-
unique: boolean;
|
|
820
|
-
deprecated: boolean;
|
|
821
|
-
name?: string | undefined;
|
|
822
|
-
label?: string | undefined;
|
|
823
|
-
collection?: string | undefined;
|
|
824
|
-
default?: string | SerializedSQL | undefined;
|
|
825
|
-
multiline?: boolean | undefined;
|
|
826
|
-
} & {
|
|
661
|
+
} | {
|
|
827
662
|
primaryKey: true;
|
|
828
663
|
optional?: false | undefined;
|
|
829
|
-
} & any
|
|
664
|
+
})) & any;
|
|
830
665
|
} | undefined;
|
|
831
666
|
}, ZodTypeDef, ({
|
|
832
667
|
name?: string | undefined;
|
|
@@ -837,8 +672,8 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
837
672
|
default?: string | SQL<any> | undefined;
|
|
838
673
|
multiline?: boolean | undefined;
|
|
839
674
|
} & ({
|
|
840
|
-
primaryKey?: false | undefined;
|
|
841
675
|
optional?: boolean | undefined;
|
|
676
|
+
primaryKey?: false | undefined;
|
|
842
677
|
} | {
|
|
843
678
|
primaryKey: true;
|
|
844
679
|
optional?: false | undefined;
|
|
@@ -855,48 +690,13 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
855
690
|
collection?: string | undefined;
|
|
856
691
|
default?: string | SerializedSQL | undefined;
|
|
857
692
|
multiline?: boolean | undefined;
|
|
858
|
-
} & {
|
|
693
|
+
} & ({
|
|
859
694
|
optional: boolean;
|
|
860
695
|
primaryKey: false;
|
|
861
|
-
}
|
|
862
|
-
references?: {
|
|
863
|
-
type: "text";
|
|
864
|
-
schema: ({
|
|
865
|
-
unique: boolean;
|
|
866
|
-
deprecated: boolean;
|
|
867
|
-
name?: string | undefined;
|
|
868
|
-
label?: string | undefined;
|
|
869
|
-
collection?: string | undefined;
|
|
870
|
-
default?: string | SerializedSQL | undefined;
|
|
871
|
-
multiline?: boolean | undefined;
|
|
872
|
-
} & {
|
|
873
|
-
optional: boolean;
|
|
874
|
-
primaryKey: false;
|
|
875
|
-
} & any) | ({
|
|
876
|
-
unique: boolean;
|
|
877
|
-
deprecated: boolean;
|
|
878
|
-
name?: string | undefined;
|
|
879
|
-
label?: string | undefined;
|
|
880
|
-
collection?: string | undefined;
|
|
881
|
-
default?: string | SerializedSQL | undefined;
|
|
882
|
-
multiline?: boolean | undefined;
|
|
883
|
-
} & {
|
|
884
|
-
primaryKey: true;
|
|
885
|
-
optional?: false | undefined;
|
|
886
|
-
} & any);
|
|
887
|
-
} | undefined;
|
|
888
|
-
}) | ({
|
|
889
|
-
unique: boolean;
|
|
890
|
-
deprecated: boolean;
|
|
891
|
-
name?: string | undefined;
|
|
892
|
-
label?: string | undefined;
|
|
893
|
-
collection?: string | undefined;
|
|
894
|
-
default?: string | SerializedSQL | undefined;
|
|
895
|
-
multiline?: boolean | undefined;
|
|
896
|
-
} & {
|
|
696
|
+
} | {
|
|
897
697
|
primaryKey: true;
|
|
898
698
|
optional?: false | undefined;
|
|
899
|
-
} & {
|
|
699
|
+
})) & {
|
|
900
700
|
references?: {
|
|
901
701
|
type: "text";
|
|
902
702
|
schema: ({
|
|
@@ -907,23 +707,15 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
907
707
|
collection?: string | undefined;
|
|
908
708
|
default?: string | SerializedSQL | undefined;
|
|
909
709
|
multiline?: boolean | undefined;
|
|
910
|
-
} & {
|
|
710
|
+
} & ({
|
|
911
711
|
optional: boolean;
|
|
912
712
|
primaryKey: false;
|
|
913
|
-
}
|
|
914
|
-
unique: boolean;
|
|
915
|
-
deprecated: boolean;
|
|
916
|
-
name?: string | undefined;
|
|
917
|
-
label?: string | undefined;
|
|
918
|
-
collection?: string | undefined;
|
|
919
|
-
default?: string | SerializedSQL | undefined;
|
|
920
|
-
multiline?: boolean | undefined;
|
|
921
|
-
} & {
|
|
713
|
+
} | {
|
|
922
714
|
primaryKey: true;
|
|
923
715
|
optional?: false | undefined;
|
|
924
|
-
} & any
|
|
716
|
+
})) & any;
|
|
925
717
|
} | undefined;
|
|
926
|
-
}
|
|
718
|
+
};
|
|
927
719
|
}, {
|
|
928
720
|
type: "text";
|
|
929
721
|
schema: ({
|
|
@@ -934,36 +726,27 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
934
726
|
collection?: string | undefined;
|
|
935
727
|
default?: string | SQL<any> | undefined;
|
|
936
728
|
multiline?: boolean | undefined;
|
|
937
|
-
} & {
|
|
938
|
-
primaryKey?: false | undefined;
|
|
729
|
+
} & ({
|
|
939
730
|
optional?: boolean | undefined;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}) | ({
|
|
943
|
-
name?: string | undefined;
|
|
944
|
-
label?: string | undefined;
|
|
945
|
-
unique?: boolean | undefined;
|
|
946
|
-
deprecated?: boolean | undefined;
|
|
947
|
-
collection?: string | undefined;
|
|
948
|
-
default?: string | SQL<any> | undefined;
|
|
949
|
-
multiline?: boolean | undefined;
|
|
950
|
-
} & {
|
|
731
|
+
primaryKey?: false | undefined;
|
|
732
|
+
} | {
|
|
951
733
|
primaryKey: true;
|
|
952
734
|
optional?: false | undefined;
|
|
953
|
-
} & {
|
|
735
|
+
})) & {
|
|
954
736
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
955
|
-
}
|
|
737
|
+
};
|
|
956
738
|
}>, z.ZodObject<{
|
|
957
739
|
type: z.ZodLiteral<"date">;
|
|
958
|
-
schema: z.ZodObject<{
|
|
959
|
-
name: z.ZodOptional<z.ZodString>;
|
|
740
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
960
741
|
label: z.ZodOptional<z.ZodString>;
|
|
961
742
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
962
743
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
963
744
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
745
|
+
name: z.ZodOptional<z.ZodString>;
|
|
964
746
|
collection: z.ZodOptional<z.ZodString>;
|
|
747
|
+
}, {
|
|
965
748
|
default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
|
|
966
|
-
}
|
|
749
|
+
}>, "strip", z.ZodTypeAny, {
|
|
967
750
|
optional: boolean;
|
|
968
751
|
unique: boolean;
|
|
969
752
|
deprecated: boolean;
|
|
@@ -1004,15 +787,16 @@ export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
1004
787
|
};
|
|
1005
788
|
}>, z.ZodObject<{
|
|
1006
789
|
type: z.ZodLiteral<"json">;
|
|
1007
|
-
schema: z.ZodObject<{
|
|
1008
|
-
name: z.ZodOptional<z.ZodString>;
|
|
790
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1009
791
|
label: z.ZodOptional<z.ZodString>;
|
|
1010
792
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1011
793
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1012
794
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
795
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1013
796
|
collection: z.ZodOptional<z.ZodString>;
|
|
797
|
+
}, {
|
|
1014
798
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
1015
|
-
}
|
|
799
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1016
800
|
optional: boolean;
|
|
1017
801
|
unique: boolean;
|
|
1018
802
|
deprecated: boolean;
|
|
@@ -1079,21 +863,13 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1079
863
|
collection?: string | undefined;
|
|
1080
864
|
default?: string | SerializedSQL | undefined;
|
|
1081
865
|
multiline?: boolean | undefined;
|
|
1082
|
-
} & {
|
|
866
|
+
} & ({
|
|
1083
867
|
optional: boolean;
|
|
1084
868
|
primaryKey: false;
|
|
1085
|
-
}
|
|
1086
|
-
unique: boolean;
|
|
1087
|
-
deprecated: boolean;
|
|
1088
|
-
name?: string | undefined;
|
|
1089
|
-
label?: string | undefined;
|
|
1090
|
-
collection?: string | undefined;
|
|
1091
|
-
default?: string | SerializedSQL | undefined;
|
|
1092
|
-
multiline?: boolean | undefined;
|
|
1093
|
-
} & {
|
|
869
|
+
} | {
|
|
1094
870
|
primaryKey: true;
|
|
1095
871
|
optional?: false | undefined;
|
|
1096
|
-
} & any
|
|
872
|
+
})) & any;
|
|
1097
873
|
} | undefined;
|
|
1098
874
|
}, ZodTypeDef, ({
|
|
1099
875
|
name?: string | undefined;
|
|
@@ -1104,8 +880,8 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1104
880
|
default?: string | SQL<any> | undefined;
|
|
1105
881
|
multiline?: boolean | undefined;
|
|
1106
882
|
} & ({
|
|
1107
|
-
primaryKey?: false | undefined;
|
|
1108
883
|
optional?: boolean | undefined;
|
|
884
|
+
primaryKey?: false | undefined;
|
|
1109
885
|
} | {
|
|
1110
886
|
primaryKey: true;
|
|
1111
887
|
optional?: false | undefined;
|
|
@@ -1122,48 +898,13 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1122
898
|
collection?: string | undefined;
|
|
1123
899
|
default?: string | SerializedSQL | undefined;
|
|
1124
900
|
multiline?: boolean | undefined;
|
|
1125
|
-
} & {
|
|
901
|
+
} & ({
|
|
1126
902
|
optional: boolean;
|
|
1127
903
|
primaryKey: false;
|
|
1128
|
-
}
|
|
1129
|
-
references?: {
|
|
1130
|
-
type: "text";
|
|
1131
|
-
schema: ({
|
|
1132
|
-
unique: boolean;
|
|
1133
|
-
deprecated: boolean;
|
|
1134
|
-
name?: string | undefined;
|
|
1135
|
-
label?: string | undefined;
|
|
1136
|
-
collection?: string | undefined;
|
|
1137
|
-
default?: string | SerializedSQL | undefined;
|
|
1138
|
-
multiline?: boolean | undefined;
|
|
1139
|
-
} & {
|
|
1140
|
-
optional: boolean;
|
|
1141
|
-
primaryKey: false;
|
|
1142
|
-
} & any) | ({
|
|
1143
|
-
unique: boolean;
|
|
1144
|
-
deprecated: boolean;
|
|
1145
|
-
name?: string | undefined;
|
|
1146
|
-
label?: string | undefined;
|
|
1147
|
-
collection?: string | undefined;
|
|
1148
|
-
default?: string | SerializedSQL | undefined;
|
|
1149
|
-
multiline?: boolean | undefined;
|
|
1150
|
-
} & {
|
|
1151
|
-
primaryKey: true;
|
|
1152
|
-
optional?: false | undefined;
|
|
1153
|
-
} & any);
|
|
1154
|
-
} | undefined;
|
|
1155
|
-
}) | ({
|
|
1156
|
-
unique: boolean;
|
|
1157
|
-
deprecated: boolean;
|
|
1158
|
-
name?: string | undefined;
|
|
1159
|
-
label?: string | undefined;
|
|
1160
|
-
collection?: string | undefined;
|
|
1161
|
-
default?: string | SerializedSQL | undefined;
|
|
1162
|
-
multiline?: boolean | undefined;
|
|
1163
|
-
} & {
|
|
904
|
+
} | {
|
|
1164
905
|
primaryKey: true;
|
|
1165
906
|
optional?: false | undefined;
|
|
1166
|
-
} & {
|
|
907
|
+
})) & {
|
|
1167
908
|
references?: {
|
|
1168
909
|
type: "text";
|
|
1169
910
|
schema: ({
|
|
@@ -1174,23 +915,15 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1174
915
|
collection?: string | undefined;
|
|
1175
916
|
default?: string | SerializedSQL | undefined;
|
|
1176
917
|
multiline?: boolean | undefined;
|
|
1177
|
-
} & {
|
|
918
|
+
} & ({
|
|
1178
919
|
optional: boolean;
|
|
1179
920
|
primaryKey: false;
|
|
1180
|
-
}
|
|
1181
|
-
unique: boolean;
|
|
1182
|
-
deprecated: boolean;
|
|
1183
|
-
name?: string | undefined;
|
|
1184
|
-
label?: string | undefined;
|
|
1185
|
-
collection?: string | undefined;
|
|
1186
|
-
default?: string | SerializedSQL | undefined;
|
|
1187
|
-
multiline?: boolean | undefined;
|
|
1188
|
-
} & {
|
|
921
|
+
} | {
|
|
1189
922
|
primaryKey: true;
|
|
1190
923
|
optional?: false | undefined;
|
|
1191
|
-
} & any
|
|
924
|
+
})) & any;
|
|
1192
925
|
} | undefined;
|
|
1193
|
-
}
|
|
926
|
+
};
|
|
1194
927
|
}, {
|
|
1195
928
|
type: "text";
|
|
1196
929
|
schema: ({
|
|
@@ -1201,25 +934,15 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1201
934
|
collection?: string | undefined;
|
|
1202
935
|
default?: string | SQL<any> | undefined;
|
|
1203
936
|
multiline?: boolean | undefined;
|
|
1204
|
-
} & {
|
|
1205
|
-
primaryKey?: false | undefined;
|
|
937
|
+
} & ({
|
|
1206
938
|
optional?: boolean | undefined;
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
}) | ({
|
|
1210
|
-
name?: string | undefined;
|
|
1211
|
-
label?: string | undefined;
|
|
1212
|
-
unique?: boolean | undefined;
|
|
1213
|
-
deprecated?: boolean | undefined;
|
|
1214
|
-
collection?: string | undefined;
|
|
1215
|
-
default?: string | SQL<any> | undefined;
|
|
1216
|
-
multiline?: boolean | undefined;
|
|
1217
|
-
} & {
|
|
939
|
+
primaryKey?: false | undefined;
|
|
940
|
+
} | {
|
|
1218
941
|
primaryKey: true;
|
|
1219
942
|
optional?: false | undefined;
|
|
1220
|
-
} & {
|
|
943
|
+
})) & {
|
|
1221
944
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
1222
|
-
}
|
|
945
|
+
};
|
|
1223
946
|
}>, z.ZodObject<{
|
|
1224
947
|
type: z.ZodLiteral<"number">;
|
|
1225
948
|
schema: z.ZodType<({
|
|
@@ -1245,21 +968,15 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1245
968
|
name?: string | undefined;
|
|
1246
969
|
label?: string | undefined;
|
|
1247
970
|
collection?: string | undefined;
|
|
1248
|
-
} & {
|
|
971
|
+
} & ({
|
|
1249
972
|
optional: boolean;
|
|
1250
973
|
primaryKey: false;
|
|
1251
974
|
default?: number | SerializedSQL | undefined;
|
|
1252
|
-
}
|
|
1253
|
-
unique: boolean;
|
|
1254
|
-
deprecated: boolean;
|
|
1255
|
-
name?: string | undefined;
|
|
1256
|
-
label?: string | undefined;
|
|
1257
|
-
collection?: string | undefined;
|
|
1258
|
-
} & {
|
|
975
|
+
} | {
|
|
1259
976
|
primaryKey: true;
|
|
1260
977
|
optional?: false | undefined;
|
|
1261
978
|
default?: undefined;
|
|
1262
|
-
} & any
|
|
979
|
+
})) & any;
|
|
1263
980
|
} | undefined;
|
|
1264
981
|
}, ZodTypeDef, ({
|
|
1265
982
|
name?: string | undefined;
|
|
@@ -1268,9 +985,9 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1268
985
|
deprecated?: boolean | undefined;
|
|
1269
986
|
collection?: string | undefined;
|
|
1270
987
|
} & ({
|
|
1271
|
-
primaryKey?: false | undefined;
|
|
1272
988
|
optional?: boolean | undefined;
|
|
1273
989
|
default?: number | SQL<any> | undefined;
|
|
990
|
+
primaryKey?: false | undefined;
|
|
1274
991
|
} | {
|
|
1275
992
|
primaryKey: true;
|
|
1276
993
|
optional?: false | undefined;
|
|
@@ -1286,46 +1003,15 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1286
1003
|
name?: string | undefined;
|
|
1287
1004
|
label?: string | undefined;
|
|
1288
1005
|
collection?: string | undefined;
|
|
1289
|
-
} & {
|
|
1006
|
+
} & ({
|
|
1290
1007
|
optional: boolean;
|
|
1291
1008
|
primaryKey: false;
|
|
1292
1009
|
default?: number | SerializedSQL | undefined;
|
|
1293
|
-
}
|
|
1294
|
-
references?: {
|
|
1295
|
-
type: "number";
|
|
1296
|
-
schema: ({
|
|
1297
|
-
unique: boolean;
|
|
1298
|
-
deprecated: boolean;
|
|
1299
|
-
name?: string | undefined;
|
|
1300
|
-
label?: string | undefined;
|
|
1301
|
-
collection?: string | undefined;
|
|
1302
|
-
} & {
|
|
1303
|
-
optional: boolean;
|
|
1304
|
-
primaryKey: false;
|
|
1305
|
-
default?: number | SerializedSQL | undefined;
|
|
1306
|
-
} & any) | ({
|
|
1307
|
-
unique: boolean;
|
|
1308
|
-
deprecated: boolean;
|
|
1309
|
-
name?: string | undefined;
|
|
1310
|
-
label?: string | undefined;
|
|
1311
|
-
collection?: string | undefined;
|
|
1312
|
-
} & {
|
|
1313
|
-
primaryKey: true;
|
|
1314
|
-
optional?: false | undefined;
|
|
1315
|
-
default?: undefined;
|
|
1316
|
-
} & any);
|
|
1317
|
-
} | undefined;
|
|
1318
|
-
}) | ({
|
|
1319
|
-
unique: boolean;
|
|
1320
|
-
deprecated: boolean;
|
|
1321
|
-
name?: string | undefined;
|
|
1322
|
-
label?: string | undefined;
|
|
1323
|
-
collection?: string | undefined;
|
|
1324
|
-
} & {
|
|
1010
|
+
} | {
|
|
1325
1011
|
primaryKey: true;
|
|
1326
1012
|
optional?: false | undefined;
|
|
1327
1013
|
default?: undefined;
|
|
1328
|
-
} & {
|
|
1014
|
+
})) & {
|
|
1329
1015
|
references?: {
|
|
1330
1016
|
type: "number";
|
|
1331
1017
|
schema: ({
|
|
@@ -1334,23 +1020,17 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1334
1020
|
name?: string | undefined;
|
|
1335
1021
|
label?: string | undefined;
|
|
1336
1022
|
collection?: string | undefined;
|
|
1337
|
-
} & {
|
|
1023
|
+
} & ({
|
|
1338
1024
|
optional: boolean;
|
|
1339
1025
|
primaryKey: false;
|
|
1340
1026
|
default?: number | SerializedSQL | undefined;
|
|
1341
|
-
}
|
|
1342
|
-
unique: boolean;
|
|
1343
|
-
deprecated: boolean;
|
|
1344
|
-
name?: string | undefined;
|
|
1345
|
-
label?: string | undefined;
|
|
1346
|
-
collection?: string | undefined;
|
|
1347
|
-
} & {
|
|
1027
|
+
} | {
|
|
1348
1028
|
primaryKey: true;
|
|
1349
1029
|
optional?: false | undefined;
|
|
1350
1030
|
default?: undefined;
|
|
1351
|
-
} & any
|
|
1031
|
+
})) & any;
|
|
1352
1032
|
} | undefined;
|
|
1353
|
-
}
|
|
1033
|
+
};
|
|
1354
1034
|
}, {
|
|
1355
1035
|
type: "number";
|
|
1356
1036
|
schema: ({
|
|
@@ -1359,37 +1039,30 @@ export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1359
1039
|
unique?: boolean | undefined;
|
|
1360
1040
|
deprecated?: boolean | undefined;
|
|
1361
1041
|
collection?: string | undefined;
|
|
1362
|
-
} & {
|
|
1363
|
-
primaryKey?: false | undefined;
|
|
1042
|
+
} & ({
|
|
1364
1043
|
optional?: boolean | undefined;
|
|
1365
1044
|
default?: number | SQL<any> | undefined;
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
}) | ({
|
|
1369
|
-
name?: string | undefined;
|
|
1370
|
-
label?: string | undefined;
|
|
1371
|
-
unique?: boolean | undefined;
|
|
1372
|
-
deprecated?: boolean | undefined;
|
|
1373
|
-
collection?: string | undefined;
|
|
1374
|
-
} & {
|
|
1045
|
+
primaryKey?: false | undefined;
|
|
1046
|
+
} | {
|
|
1375
1047
|
primaryKey: true;
|
|
1376
1048
|
optional?: false | undefined;
|
|
1377
1049
|
default?: undefined;
|
|
1378
|
-
} & {
|
|
1050
|
+
})) & {
|
|
1379
1051
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
1380
|
-
}
|
|
1052
|
+
};
|
|
1381
1053
|
}>]>;
|
|
1382
1054
|
export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1383
1055
|
type: z.ZodLiteral<"boolean">;
|
|
1384
|
-
schema: z.ZodObject<{
|
|
1385
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1386
1057
|
label: z.ZodOptional<z.ZodString>;
|
|
1387
1058
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1388
1059
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1389
1060
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1061
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1390
1062
|
collection: z.ZodOptional<z.ZodString>;
|
|
1063
|
+
}, {
|
|
1391
1064
|
default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
|
|
1392
|
-
}
|
|
1065
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1393
1066
|
optional: boolean;
|
|
1394
1067
|
unique: boolean;
|
|
1395
1068
|
deprecated: boolean;
|
|
@@ -1453,21 +1126,15 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1453
1126
|
name?: string | undefined;
|
|
1454
1127
|
label?: string | undefined;
|
|
1455
1128
|
collection?: string | undefined;
|
|
1456
|
-
} & {
|
|
1129
|
+
} & ({
|
|
1457
1130
|
optional: boolean;
|
|
1458
1131
|
primaryKey: false;
|
|
1459
1132
|
default?: number | SerializedSQL | undefined;
|
|
1460
|
-
}
|
|
1461
|
-
unique: boolean;
|
|
1462
|
-
deprecated: boolean;
|
|
1463
|
-
name?: string | undefined;
|
|
1464
|
-
label?: string | undefined;
|
|
1465
|
-
collection?: string | undefined;
|
|
1466
|
-
} & {
|
|
1133
|
+
} | {
|
|
1467
1134
|
primaryKey: true;
|
|
1468
1135
|
optional?: false | undefined;
|
|
1469
1136
|
default?: undefined;
|
|
1470
|
-
} & any
|
|
1137
|
+
})) & any;
|
|
1471
1138
|
} | undefined;
|
|
1472
1139
|
}, ZodTypeDef, ({
|
|
1473
1140
|
name?: string | undefined;
|
|
@@ -1476,9 +1143,9 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1476
1143
|
deprecated?: boolean | undefined;
|
|
1477
1144
|
collection?: string | undefined;
|
|
1478
1145
|
} & ({
|
|
1479
|
-
primaryKey?: false | undefined;
|
|
1480
1146
|
optional?: boolean | undefined;
|
|
1481
1147
|
default?: number | SQL<any> | undefined;
|
|
1148
|
+
primaryKey?: false | undefined;
|
|
1482
1149
|
} | {
|
|
1483
1150
|
primaryKey: true;
|
|
1484
1151
|
optional?: false | undefined;
|
|
@@ -1494,46 +1161,15 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1494
1161
|
name?: string | undefined;
|
|
1495
1162
|
label?: string | undefined;
|
|
1496
1163
|
collection?: string | undefined;
|
|
1497
|
-
} & {
|
|
1164
|
+
} & ({
|
|
1498
1165
|
optional: boolean;
|
|
1499
1166
|
primaryKey: false;
|
|
1500
1167
|
default?: number | SerializedSQL | undefined;
|
|
1501
|
-
}
|
|
1502
|
-
references?: {
|
|
1503
|
-
type: "number";
|
|
1504
|
-
schema: ({
|
|
1505
|
-
unique: boolean;
|
|
1506
|
-
deprecated: boolean;
|
|
1507
|
-
name?: string | undefined;
|
|
1508
|
-
label?: string | undefined;
|
|
1509
|
-
collection?: string | undefined;
|
|
1510
|
-
} & {
|
|
1511
|
-
optional: boolean;
|
|
1512
|
-
primaryKey: false;
|
|
1513
|
-
default?: number | SerializedSQL | undefined;
|
|
1514
|
-
} & any) | ({
|
|
1515
|
-
unique: boolean;
|
|
1516
|
-
deprecated: boolean;
|
|
1517
|
-
name?: string | undefined;
|
|
1518
|
-
label?: string | undefined;
|
|
1519
|
-
collection?: string | undefined;
|
|
1520
|
-
} & {
|
|
1521
|
-
primaryKey: true;
|
|
1522
|
-
optional?: false | undefined;
|
|
1523
|
-
default?: undefined;
|
|
1524
|
-
} & any);
|
|
1525
|
-
} | undefined;
|
|
1526
|
-
}) | ({
|
|
1527
|
-
unique: boolean;
|
|
1528
|
-
deprecated: boolean;
|
|
1529
|
-
name?: string | undefined;
|
|
1530
|
-
label?: string | undefined;
|
|
1531
|
-
collection?: string | undefined;
|
|
1532
|
-
} & {
|
|
1168
|
+
} | {
|
|
1533
1169
|
primaryKey: true;
|
|
1534
1170
|
optional?: false | undefined;
|
|
1535
1171
|
default?: undefined;
|
|
1536
|
-
} & {
|
|
1172
|
+
})) & {
|
|
1537
1173
|
references?: {
|
|
1538
1174
|
type: "number";
|
|
1539
1175
|
schema: ({
|
|
@@ -1542,23 +1178,17 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1542
1178
|
name?: string | undefined;
|
|
1543
1179
|
label?: string | undefined;
|
|
1544
1180
|
collection?: string | undefined;
|
|
1545
|
-
} & {
|
|
1181
|
+
} & ({
|
|
1546
1182
|
optional: boolean;
|
|
1547
1183
|
primaryKey: false;
|
|
1548
1184
|
default?: number | SerializedSQL | undefined;
|
|
1549
|
-
}
|
|
1550
|
-
unique: boolean;
|
|
1551
|
-
deprecated: boolean;
|
|
1552
|
-
name?: string | undefined;
|
|
1553
|
-
label?: string | undefined;
|
|
1554
|
-
collection?: string | undefined;
|
|
1555
|
-
} & {
|
|
1185
|
+
} | {
|
|
1556
1186
|
primaryKey: true;
|
|
1557
1187
|
optional?: false | undefined;
|
|
1558
1188
|
default?: undefined;
|
|
1559
|
-
} & any
|
|
1189
|
+
})) & any;
|
|
1560
1190
|
} | undefined;
|
|
1561
|
-
}
|
|
1191
|
+
};
|
|
1562
1192
|
}, {
|
|
1563
1193
|
type: "number";
|
|
1564
1194
|
schema: ({
|
|
@@ -1567,25 +1197,17 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1567
1197
|
unique?: boolean | undefined;
|
|
1568
1198
|
deprecated?: boolean | undefined;
|
|
1569
1199
|
collection?: string | undefined;
|
|
1570
|
-
} & {
|
|
1571
|
-
primaryKey?: false | undefined;
|
|
1200
|
+
} & ({
|
|
1572
1201
|
optional?: boolean | undefined;
|
|
1573
1202
|
default?: number | SQL<any> | undefined;
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
}) | ({
|
|
1577
|
-
name?: string | undefined;
|
|
1578
|
-
label?: string | undefined;
|
|
1579
|
-
unique?: boolean | undefined;
|
|
1580
|
-
deprecated?: boolean | undefined;
|
|
1581
|
-
collection?: string | undefined;
|
|
1582
|
-
} & {
|
|
1203
|
+
primaryKey?: false | undefined;
|
|
1204
|
+
} | {
|
|
1583
1205
|
primaryKey: true;
|
|
1584
1206
|
optional?: false | undefined;
|
|
1585
1207
|
default?: undefined;
|
|
1586
|
-
} & {
|
|
1208
|
+
})) & {
|
|
1587
1209
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
1588
|
-
}
|
|
1210
|
+
};
|
|
1589
1211
|
}>, z.ZodObject<{
|
|
1590
1212
|
type: z.ZodLiteral<"text">;
|
|
1591
1213
|
schema: z.ZodType<({
|
|
@@ -1605,18 +1227,7 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1605
1227
|
})) & {
|
|
1606
1228
|
references?: {
|
|
1607
1229
|
type: "text";
|
|
1608
|
-
schema: ({
|
|
1609
|
-
unique: boolean;
|
|
1610
|
-
deprecated: boolean;
|
|
1611
|
-
name?: string | undefined;
|
|
1612
|
-
label?: string | undefined;
|
|
1613
|
-
collection?: string | undefined;
|
|
1614
|
-
default?: string | SerializedSQL | undefined;
|
|
1615
|
-
multiline?: boolean | undefined;
|
|
1616
|
-
} & {
|
|
1617
|
-
optional: boolean;
|
|
1618
|
-
primaryKey: false;
|
|
1619
|
-
} & any) | ({
|
|
1230
|
+
schema: ({
|
|
1620
1231
|
unique: boolean;
|
|
1621
1232
|
deprecated: boolean;
|
|
1622
1233
|
name?: string | undefined;
|
|
@@ -1624,10 +1235,13 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1624
1235
|
collection?: string | undefined;
|
|
1625
1236
|
default?: string | SerializedSQL | undefined;
|
|
1626
1237
|
multiline?: boolean | undefined;
|
|
1627
|
-
} & {
|
|
1238
|
+
} & ({
|
|
1239
|
+
optional: boolean;
|
|
1240
|
+
primaryKey: false;
|
|
1241
|
+
} | {
|
|
1628
1242
|
primaryKey: true;
|
|
1629
1243
|
optional?: false | undefined;
|
|
1630
|
-
} & any
|
|
1244
|
+
})) & any;
|
|
1631
1245
|
} | undefined;
|
|
1632
1246
|
}, ZodTypeDef, ({
|
|
1633
1247
|
name?: string | undefined;
|
|
@@ -1638,8 +1252,8 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1638
1252
|
default?: string | SQL<any> | undefined;
|
|
1639
1253
|
multiline?: boolean | undefined;
|
|
1640
1254
|
} & ({
|
|
1641
|
-
primaryKey?: false | undefined;
|
|
1642
1255
|
optional?: boolean | undefined;
|
|
1256
|
+
primaryKey?: false | undefined;
|
|
1643
1257
|
} | {
|
|
1644
1258
|
primaryKey: true;
|
|
1645
1259
|
optional?: false | undefined;
|
|
@@ -1656,48 +1270,13 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1656
1270
|
collection?: string | undefined;
|
|
1657
1271
|
default?: string | SerializedSQL | undefined;
|
|
1658
1272
|
multiline?: boolean | undefined;
|
|
1659
|
-
} & {
|
|
1273
|
+
} & ({
|
|
1660
1274
|
optional: boolean;
|
|
1661
1275
|
primaryKey: false;
|
|
1662
|
-
}
|
|
1663
|
-
references?: {
|
|
1664
|
-
type: "text";
|
|
1665
|
-
schema: ({
|
|
1666
|
-
unique: boolean;
|
|
1667
|
-
deprecated: boolean;
|
|
1668
|
-
name?: string | undefined;
|
|
1669
|
-
label?: string | undefined;
|
|
1670
|
-
collection?: string | undefined;
|
|
1671
|
-
default?: string | SerializedSQL | undefined;
|
|
1672
|
-
multiline?: boolean | undefined;
|
|
1673
|
-
} & {
|
|
1674
|
-
optional: boolean;
|
|
1675
|
-
primaryKey: false;
|
|
1676
|
-
} & any) | ({
|
|
1677
|
-
unique: boolean;
|
|
1678
|
-
deprecated: boolean;
|
|
1679
|
-
name?: string | undefined;
|
|
1680
|
-
label?: string | undefined;
|
|
1681
|
-
collection?: string | undefined;
|
|
1682
|
-
default?: string | SerializedSQL | undefined;
|
|
1683
|
-
multiline?: boolean | undefined;
|
|
1684
|
-
} & {
|
|
1685
|
-
primaryKey: true;
|
|
1686
|
-
optional?: false | undefined;
|
|
1687
|
-
} & any);
|
|
1688
|
-
} | undefined;
|
|
1689
|
-
}) | ({
|
|
1690
|
-
unique: boolean;
|
|
1691
|
-
deprecated: boolean;
|
|
1692
|
-
name?: string | undefined;
|
|
1693
|
-
label?: string | undefined;
|
|
1694
|
-
collection?: string | undefined;
|
|
1695
|
-
default?: string | SerializedSQL | undefined;
|
|
1696
|
-
multiline?: boolean | undefined;
|
|
1697
|
-
} & {
|
|
1276
|
+
} | {
|
|
1698
1277
|
primaryKey: true;
|
|
1699
1278
|
optional?: false | undefined;
|
|
1700
|
-
} & {
|
|
1279
|
+
})) & {
|
|
1701
1280
|
references?: {
|
|
1702
1281
|
type: "text";
|
|
1703
1282
|
schema: ({
|
|
@@ -1708,23 +1287,15 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1708
1287
|
collection?: string | undefined;
|
|
1709
1288
|
default?: string | SerializedSQL | undefined;
|
|
1710
1289
|
multiline?: boolean | undefined;
|
|
1711
|
-
} & {
|
|
1290
|
+
} & ({
|
|
1712
1291
|
optional: boolean;
|
|
1713
1292
|
primaryKey: false;
|
|
1714
|
-
}
|
|
1715
|
-
unique: boolean;
|
|
1716
|
-
deprecated: boolean;
|
|
1717
|
-
name?: string | undefined;
|
|
1718
|
-
label?: string | undefined;
|
|
1719
|
-
collection?: string | undefined;
|
|
1720
|
-
default?: string | SerializedSQL | undefined;
|
|
1721
|
-
multiline?: boolean | undefined;
|
|
1722
|
-
} & {
|
|
1293
|
+
} | {
|
|
1723
1294
|
primaryKey: true;
|
|
1724
1295
|
optional?: false | undefined;
|
|
1725
|
-
} & any
|
|
1296
|
+
})) & any;
|
|
1726
1297
|
} | undefined;
|
|
1727
|
-
}
|
|
1298
|
+
};
|
|
1728
1299
|
}, {
|
|
1729
1300
|
type: "text";
|
|
1730
1301
|
schema: ({
|
|
@@ -1735,36 +1306,27 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1735
1306
|
collection?: string | undefined;
|
|
1736
1307
|
default?: string | SQL<any> | undefined;
|
|
1737
1308
|
multiline?: boolean | undefined;
|
|
1738
|
-
} & {
|
|
1739
|
-
primaryKey?: false | undefined;
|
|
1309
|
+
} & ({
|
|
1740
1310
|
optional?: boolean | undefined;
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}) | ({
|
|
1744
|
-
name?: string | undefined;
|
|
1745
|
-
label?: string | undefined;
|
|
1746
|
-
unique?: boolean | undefined;
|
|
1747
|
-
deprecated?: boolean | undefined;
|
|
1748
|
-
collection?: string | undefined;
|
|
1749
|
-
default?: string | SQL<any> | undefined;
|
|
1750
|
-
multiline?: boolean | undefined;
|
|
1751
|
-
} & {
|
|
1311
|
+
primaryKey?: false | undefined;
|
|
1312
|
+
} | {
|
|
1752
1313
|
primaryKey: true;
|
|
1753
1314
|
optional?: false | undefined;
|
|
1754
|
-
} & {
|
|
1315
|
+
})) & {
|
|
1755
1316
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
1756
|
-
}
|
|
1317
|
+
};
|
|
1757
1318
|
}>, z.ZodObject<{
|
|
1758
1319
|
type: z.ZodLiteral<"date">;
|
|
1759
|
-
schema: z.ZodObject<{
|
|
1760
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1320
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1761
1321
|
label: z.ZodOptional<z.ZodString>;
|
|
1762
1322
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1763
1323
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1764
1324
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1325
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1765
1326
|
collection: z.ZodOptional<z.ZodString>;
|
|
1327
|
+
}, {
|
|
1766
1328
|
default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
|
|
1767
|
-
}
|
|
1329
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1768
1330
|
optional: boolean;
|
|
1769
1331
|
unique: boolean;
|
|
1770
1332
|
deprecated: boolean;
|
|
@@ -1805,15 +1367,16 @@ export declare const columnsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedU
|
|
|
1805
1367
|
};
|
|
1806
1368
|
}>, z.ZodObject<{
|
|
1807
1369
|
type: z.ZodLiteral<"json">;
|
|
1808
|
-
schema: z.ZodObject<{
|
|
1809
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1810
1371
|
label: z.ZodOptional<z.ZodString>;
|
|
1811
1372
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1812
1373
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1813
1374
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1375
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1814
1376
|
collection: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
}, {
|
|
1815
1378
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
1816
|
-
}
|
|
1379
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1817
1380
|
optional: boolean;
|
|
1818
1381
|
unique: boolean;
|
|
1819
1382
|
deprecated: boolean;
|
|
@@ -1864,10 +1427,10 @@ export declare const resolvedIndexSchema: z.ZodObject<{
|
|
|
1864
1427
|
on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1865
1428
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
1866
1429
|
}, "strip", z.ZodTypeAny, {
|
|
1867
|
-
on:
|
|
1430
|
+
on: string | string[];
|
|
1868
1431
|
unique?: boolean | undefined;
|
|
1869
1432
|
}, {
|
|
1870
|
-
on:
|
|
1433
|
+
on: string | string[];
|
|
1871
1434
|
unique?: boolean | undefined;
|
|
1872
1435
|
}>;
|
|
1873
1436
|
export declare const indexSchema: z.ZodObject<{
|
|
@@ -1875,26 +1438,27 @@ export declare const indexSchema: z.ZodObject<{
|
|
|
1875
1438
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
1876
1439
|
name: z.ZodOptional<z.ZodString>;
|
|
1877
1440
|
}, "strip", z.ZodTypeAny, {
|
|
1878
|
-
on:
|
|
1879
|
-
unique?: boolean | undefined;
|
|
1441
|
+
on: string | string[];
|
|
1880
1442
|
name?: string | undefined;
|
|
1881
|
-
}, {
|
|
1882
|
-
on: (string | string[]) & (string | string[] | undefined);
|
|
1883
1443
|
unique?: boolean | undefined;
|
|
1444
|
+
}, {
|
|
1445
|
+
on: string | string[];
|
|
1884
1446
|
name?: string | undefined;
|
|
1447
|
+
unique?: boolean | undefined;
|
|
1885
1448
|
}>;
|
|
1886
1449
|
export declare const tableSchema: z.ZodObject<{
|
|
1887
1450
|
columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1888
1451
|
type: z.ZodLiteral<"boolean">;
|
|
1889
|
-
schema: z.ZodObject<{
|
|
1890
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1891
1453
|
label: z.ZodOptional<z.ZodString>;
|
|
1892
1454
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1893
1455
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1894
1456
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1457
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1895
1458
|
collection: z.ZodOptional<z.ZodString>;
|
|
1459
|
+
}, {
|
|
1896
1460
|
default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
|
|
1897
|
-
}
|
|
1461
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1898
1462
|
optional: boolean;
|
|
1899
1463
|
unique: boolean;
|
|
1900
1464
|
deprecated: boolean;
|
|
@@ -1958,21 +1522,15 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
1958
1522
|
name?: string | undefined;
|
|
1959
1523
|
label?: string | undefined;
|
|
1960
1524
|
collection?: string | undefined;
|
|
1961
|
-
} & {
|
|
1525
|
+
} & ({
|
|
1962
1526
|
optional: boolean;
|
|
1963
1527
|
primaryKey: false;
|
|
1964
1528
|
default?: number | SerializedSQL | undefined;
|
|
1965
|
-
}
|
|
1966
|
-
unique: boolean;
|
|
1967
|
-
deprecated: boolean;
|
|
1968
|
-
name?: string | undefined;
|
|
1969
|
-
label?: string | undefined;
|
|
1970
|
-
collection?: string | undefined;
|
|
1971
|
-
} & {
|
|
1529
|
+
} | {
|
|
1972
1530
|
primaryKey: true;
|
|
1973
1531
|
optional?: false | undefined;
|
|
1974
1532
|
default?: undefined;
|
|
1975
|
-
} & any
|
|
1533
|
+
})) & any;
|
|
1976
1534
|
} | undefined;
|
|
1977
1535
|
}, ZodTypeDef, ({
|
|
1978
1536
|
name?: string | undefined;
|
|
@@ -1981,9 +1539,9 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
1981
1539
|
deprecated?: boolean | undefined;
|
|
1982
1540
|
collection?: string | undefined;
|
|
1983
1541
|
} & ({
|
|
1984
|
-
primaryKey?: false | undefined;
|
|
1985
1542
|
optional?: boolean | undefined;
|
|
1986
1543
|
default?: number | SQL<any> | undefined;
|
|
1544
|
+
primaryKey?: false | undefined;
|
|
1987
1545
|
} | {
|
|
1988
1546
|
primaryKey: true;
|
|
1989
1547
|
optional?: false | undefined;
|
|
@@ -1999,21 +1557,15 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
1999
1557
|
name?: string | undefined;
|
|
2000
1558
|
label?: string | undefined;
|
|
2001
1559
|
collection?: string | undefined;
|
|
2002
|
-
} & {
|
|
1560
|
+
} & ({
|
|
2003
1561
|
optional: boolean;
|
|
2004
1562
|
primaryKey: false;
|
|
2005
1563
|
default?: number | SerializedSQL | undefined;
|
|
2006
|
-
}
|
|
2007
|
-
unique: boolean;
|
|
2008
|
-
deprecated: boolean;
|
|
2009
|
-
name?: string | undefined;
|
|
2010
|
-
label?: string | undefined;
|
|
2011
|
-
collection?: string | undefined;
|
|
2012
|
-
} & {
|
|
1564
|
+
} | {
|
|
2013
1565
|
primaryKey: true;
|
|
2014
1566
|
optional?: false | undefined;
|
|
2015
1567
|
default?: undefined;
|
|
2016
|
-
} & any
|
|
1568
|
+
})) & any;
|
|
2017
1569
|
}, {
|
|
2018
1570
|
type: "number";
|
|
2019
1571
|
schema: ({
|
|
@@ -2022,25 +1574,17 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2022
1574
|
unique?: boolean | undefined;
|
|
2023
1575
|
deprecated?: boolean | undefined;
|
|
2024
1576
|
collection?: string | undefined;
|
|
2025
|
-
} & {
|
|
2026
|
-
primaryKey?: false | undefined;
|
|
1577
|
+
} & ({
|
|
2027
1578
|
optional?: boolean | undefined;
|
|
2028
1579
|
default?: number | SQL<any> | undefined;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
}) | ({
|
|
2032
|
-
name?: string | undefined;
|
|
2033
|
-
label?: string | undefined;
|
|
2034
|
-
unique?: boolean | undefined;
|
|
2035
|
-
deprecated?: boolean | undefined;
|
|
2036
|
-
collection?: string | undefined;
|
|
2037
|
-
} & {
|
|
1580
|
+
primaryKey?: false | undefined;
|
|
1581
|
+
} | {
|
|
2038
1582
|
primaryKey: true;
|
|
2039
1583
|
optional?: false | undefined;
|
|
2040
1584
|
default?: undefined;
|
|
2041
|
-
} & {
|
|
1585
|
+
})) & {
|
|
2042
1586
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
2043
|
-
}
|
|
1587
|
+
};
|
|
2044
1588
|
}>, z.ZodObject<{
|
|
2045
1589
|
type: z.ZodLiteral<"text">;
|
|
2046
1590
|
schema: z.ZodType<({
|
|
@@ -2068,21 +1612,13 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2068
1612
|
collection?: string | undefined;
|
|
2069
1613
|
default?: string | SerializedSQL | undefined;
|
|
2070
1614
|
multiline?: boolean | undefined;
|
|
2071
|
-
} & {
|
|
1615
|
+
} & ({
|
|
2072
1616
|
optional: boolean;
|
|
2073
1617
|
primaryKey: false;
|
|
2074
|
-
}
|
|
2075
|
-
unique: boolean;
|
|
2076
|
-
deprecated: boolean;
|
|
2077
|
-
name?: string | undefined;
|
|
2078
|
-
label?: string | undefined;
|
|
2079
|
-
collection?: string | undefined;
|
|
2080
|
-
default?: string | SerializedSQL | undefined;
|
|
2081
|
-
multiline?: boolean | undefined;
|
|
2082
|
-
} & {
|
|
1618
|
+
} | {
|
|
2083
1619
|
primaryKey: true;
|
|
2084
1620
|
optional?: false | undefined;
|
|
2085
|
-
} & any
|
|
1621
|
+
})) & any;
|
|
2086
1622
|
} | undefined;
|
|
2087
1623
|
}, ZodTypeDef, ({
|
|
2088
1624
|
name?: string | undefined;
|
|
@@ -2093,8 +1629,8 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2093
1629
|
default?: string | SQL<any> | undefined;
|
|
2094
1630
|
multiline?: boolean | undefined;
|
|
2095
1631
|
} & ({
|
|
2096
|
-
primaryKey?: false | undefined;
|
|
2097
1632
|
optional?: boolean | undefined;
|
|
1633
|
+
primaryKey?: false | undefined;
|
|
2098
1634
|
} | {
|
|
2099
1635
|
primaryKey: true;
|
|
2100
1636
|
optional?: false | undefined;
|
|
@@ -2111,21 +1647,13 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2111
1647
|
collection?: string | undefined;
|
|
2112
1648
|
default?: string | SerializedSQL | undefined;
|
|
2113
1649
|
multiline?: boolean | undefined;
|
|
2114
|
-
} & {
|
|
1650
|
+
} & ({
|
|
2115
1651
|
optional: boolean;
|
|
2116
1652
|
primaryKey: false;
|
|
2117
|
-
}
|
|
2118
|
-
unique: boolean;
|
|
2119
|
-
deprecated: boolean;
|
|
2120
|
-
name?: string | undefined;
|
|
2121
|
-
label?: string | undefined;
|
|
2122
|
-
collection?: string | undefined;
|
|
2123
|
-
default?: string | SerializedSQL | undefined;
|
|
2124
|
-
multiline?: boolean | undefined;
|
|
2125
|
-
} & {
|
|
1653
|
+
} | {
|
|
2126
1654
|
primaryKey: true;
|
|
2127
1655
|
optional?: false | undefined;
|
|
2128
|
-
} & any
|
|
1656
|
+
})) & any;
|
|
2129
1657
|
}, {
|
|
2130
1658
|
type: "text";
|
|
2131
1659
|
schema: ({
|
|
@@ -2136,36 +1664,27 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2136
1664
|
collection?: string | undefined;
|
|
2137
1665
|
default?: string | SQL<any> | undefined;
|
|
2138
1666
|
multiline?: boolean | undefined;
|
|
2139
|
-
} & {
|
|
2140
|
-
primaryKey?: false | undefined;
|
|
1667
|
+
} & ({
|
|
2141
1668
|
optional?: boolean | undefined;
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
}) | ({
|
|
2145
|
-
name?: string | undefined;
|
|
2146
|
-
label?: string | undefined;
|
|
2147
|
-
unique?: boolean | undefined;
|
|
2148
|
-
deprecated?: boolean | undefined;
|
|
2149
|
-
collection?: string | undefined;
|
|
2150
|
-
default?: string | SQL<any> | undefined;
|
|
2151
|
-
multiline?: boolean | undefined;
|
|
2152
|
-
} & {
|
|
1669
|
+
primaryKey?: false | undefined;
|
|
1670
|
+
} | {
|
|
2153
1671
|
primaryKey: true;
|
|
2154
1672
|
optional?: false | undefined;
|
|
2155
|
-
} & {
|
|
1673
|
+
})) & {
|
|
2156
1674
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
2157
|
-
}
|
|
1675
|
+
};
|
|
2158
1676
|
}>, z.ZodObject<{
|
|
2159
1677
|
type: z.ZodLiteral<"date">;
|
|
2160
|
-
schema: z.ZodObject<{
|
|
2161
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2162
1679
|
label: z.ZodOptional<z.ZodString>;
|
|
2163
1680
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2164
1681
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2165
1682
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1683
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2166
1684
|
collection: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
}, {
|
|
2167
1686
|
default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
|
|
2168
|
-
}
|
|
1687
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2169
1688
|
optional: boolean;
|
|
2170
1689
|
unique: boolean;
|
|
2171
1690
|
deprecated: boolean;
|
|
@@ -2206,15 +1725,16 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2206
1725
|
};
|
|
2207
1726
|
}>, z.ZodObject<{
|
|
2208
1727
|
type: z.ZodLiteral<"json">;
|
|
2209
|
-
schema: z.ZodObject<{
|
|
2210
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1728
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2211
1729
|
label: z.ZodOptional<z.ZodString>;
|
|
2212
1730
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2213
1731
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2214
1732
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1733
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2215
1734
|
collection: z.ZodOptional<z.ZodString>;
|
|
1735
|
+
}, {
|
|
2216
1736
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
2217
|
-
}
|
|
1737
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2218
1738
|
optional: boolean;
|
|
2219
1739
|
unique: boolean;
|
|
2220
1740
|
deprecated: boolean;
|
|
@@ -2259,21 +1779,21 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2259
1779
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
2260
1780
|
name: z.ZodOptional<z.ZodString>;
|
|
2261
1781
|
}, "strip", z.ZodTypeAny, {
|
|
2262
|
-
on:
|
|
2263
|
-
unique?: boolean | undefined;
|
|
1782
|
+
on: string | string[];
|
|
2264
1783
|
name?: string | undefined;
|
|
2265
|
-
}, {
|
|
2266
|
-
on: (string | string[]) & (string | string[] | undefined);
|
|
2267
1784
|
unique?: boolean | undefined;
|
|
1785
|
+
}, {
|
|
1786
|
+
on: string | string[];
|
|
2268
1787
|
name?: string | undefined;
|
|
1788
|
+
unique?: boolean | undefined;
|
|
2269
1789
|
}>, "many">, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2270
1790
|
on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
2271
1791
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
2272
1792
|
}, "strip", z.ZodTypeAny, {
|
|
2273
|
-
on:
|
|
1793
|
+
on: string | string[];
|
|
2274
1794
|
unique?: boolean | undefined;
|
|
2275
1795
|
}, {
|
|
2276
|
-
on:
|
|
1796
|
+
on: string | string[];
|
|
2277
1797
|
unique?: boolean | undefined;
|
|
2278
1798
|
}>>]>>;
|
|
2279
1799
|
foreignKeys: z.ZodOptional<z.ZodArray<z.ZodType<ForeignKeysOutput, ZodTypeDef, ForeignKeysInput>, "many">>;
|
|
@@ -2299,21 +1819,15 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2299
1819
|
name?: string | undefined;
|
|
2300
1820
|
label?: string | undefined;
|
|
2301
1821
|
collection?: string | undefined;
|
|
2302
|
-
} & {
|
|
1822
|
+
} & ({
|
|
2303
1823
|
optional: boolean;
|
|
2304
1824
|
primaryKey: false;
|
|
2305
1825
|
default?: number | SerializedSQL | undefined;
|
|
2306
|
-
}
|
|
2307
|
-
unique: boolean;
|
|
2308
|
-
deprecated: boolean;
|
|
2309
|
-
name?: string | undefined;
|
|
2310
|
-
label?: string | undefined;
|
|
2311
|
-
collection?: string | undefined;
|
|
2312
|
-
} & {
|
|
1826
|
+
} | {
|
|
2313
1827
|
primaryKey: true;
|
|
2314
1828
|
optional?: false | undefined;
|
|
2315
1829
|
default?: undefined;
|
|
2316
|
-
} & any
|
|
1830
|
+
})) & any;
|
|
2317
1831
|
} | {
|
|
2318
1832
|
type: "text";
|
|
2319
1833
|
schema: ({
|
|
@@ -2324,21 +1838,13 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2324
1838
|
collection?: string | undefined;
|
|
2325
1839
|
default?: string | SerializedSQL | undefined;
|
|
2326
1840
|
multiline?: boolean | undefined;
|
|
2327
|
-
} & {
|
|
1841
|
+
} & ({
|
|
2328
1842
|
optional: boolean;
|
|
2329
1843
|
primaryKey: false;
|
|
2330
|
-
}
|
|
2331
|
-
unique: boolean;
|
|
2332
|
-
deprecated: boolean;
|
|
2333
|
-
name?: string | undefined;
|
|
2334
|
-
label?: string | undefined;
|
|
2335
|
-
collection?: string | undefined;
|
|
2336
|
-
default?: string | SerializedSQL | undefined;
|
|
2337
|
-
multiline?: boolean | undefined;
|
|
2338
|
-
} & {
|
|
1844
|
+
} | {
|
|
2339
1845
|
primaryKey: true;
|
|
2340
1846
|
optional?: false | undefined;
|
|
2341
|
-
} & any
|
|
1847
|
+
})) & any;
|
|
2342
1848
|
} | {
|
|
2343
1849
|
type: "date";
|
|
2344
1850
|
schema: {
|
|
@@ -2363,11 +1869,11 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2363
1869
|
};
|
|
2364
1870
|
}>;
|
|
2365
1871
|
indexes?: {
|
|
2366
|
-
on:
|
|
2367
|
-
unique?: boolean | undefined;
|
|
1872
|
+
on: string | string[];
|
|
2368
1873
|
name?: string | undefined;
|
|
1874
|
+
unique?: boolean | undefined;
|
|
2369
1875
|
}[] | Record<string, {
|
|
2370
|
-
on:
|
|
1876
|
+
on: string | string[];
|
|
2371
1877
|
unique?: boolean | undefined;
|
|
2372
1878
|
}> | undefined;
|
|
2373
1879
|
foreignKeys?: ForeignKeysOutput[] | undefined;
|
|
@@ -2391,25 +1897,17 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2391
1897
|
unique?: boolean | undefined;
|
|
2392
1898
|
deprecated?: boolean | undefined;
|
|
2393
1899
|
collection?: string | undefined;
|
|
2394
|
-
} & {
|
|
2395
|
-
primaryKey?: false | undefined;
|
|
1900
|
+
} & ({
|
|
2396
1901
|
optional?: boolean | undefined;
|
|
2397
1902
|
default?: number | SQL<any> | undefined;
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
}) | ({
|
|
2401
|
-
name?: string | undefined;
|
|
2402
|
-
label?: string | undefined;
|
|
2403
|
-
unique?: boolean | undefined;
|
|
2404
|
-
deprecated?: boolean | undefined;
|
|
2405
|
-
collection?: string | undefined;
|
|
2406
|
-
} & {
|
|
1903
|
+
primaryKey?: false | undefined;
|
|
1904
|
+
} | {
|
|
2407
1905
|
primaryKey: true;
|
|
2408
1906
|
optional?: false | undefined;
|
|
2409
1907
|
default?: undefined;
|
|
2410
|
-
} & {
|
|
1908
|
+
})) & {
|
|
2411
1909
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
2412
|
-
}
|
|
1910
|
+
};
|
|
2413
1911
|
} | {
|
|
2414
1912
|
type: "text";
|
|
2415
1913
|
schema: ({
|
|
@@ -2420,25 +1918,15 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2420
1918
|
collection?: string | undefined;
|
|
2421
1919
|
default?: string | SQL<any> | undefined;
|
|
2422
1920
|
multiline?: boolean | undefined;
|
|
2423
|
-
} & {
|
|
2424
|
-
primaryKey?: false | undefined;
|
|
1921
|
+
} & ({
|
|
2425
1922
|
optional?: boolean | undefined;
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
}) | ({
|
|
2429
|
-
name?: string | undefined;
|
|
2430
|
-
label?: string | undefined;
|
|
2431
|
-
unique?: boolean | undefined;
|
|
2432
|
-
deprecated?: boolean | undefined;
|
|
2433
|
-
collection?: string | undefined;
|
|
2434
|
-
default?: string | SQL<any> | undefined;
|
|
2435
|
-
multiline?: boolean | undefined;
|
|
2436
|
-
} & {
|
|
1923
|
+
primaryKey?: false | undefined;
|
|
1924
|
+
} | {
|
|
2437
1925
|
primaryKey: true;
|
|
2438
1926
|
optional?: false | undefined;
|
|
2439
|
-
} & {
|
|
1927
|
+
})) & {
|
|
2440
1928
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
2441
|
-
}
|
|
1929
|
+
};
|
|
2442
1930
|
} | {
|
|
2443
1931
|
type: "date";
|
|
2444
1932
|
schema: {
|
|
@@ -2462,29 +1950,30 @@ export declare const tableSchema: z.ZodObject<{
|
|
|
2462
1950
|
default?: unknown;
|
|
2463
1951
|
};
|
|
2464
1952
|
}>;
|
|
1953
|
+
deprecated?: boolean | undefined;
|
|
2465
1954
|
indexes?: {
|
|
2466
|
-
on:
|
|
2467
|
-
unique?: boolean | undefined;
|
|
1955
|
+
on: string | string[];
|
|
2468
1956
|
name?: string | undefined;
|
|
1957
|
+
unique?: boolean | undefined;
|
|
2469
1958
|
}[] | Record<string, {
|
|
2470
|
-
on:
|
|
1959
|
+
on: string | string[];
|
|
2471
1960
|
unique?: boolean | undefined;
|
|
2472
1961
|
}> | undefined;
|
|
2473
1962
|
foreignKeys?: ForeignKeysInput[] | undefined;
|
|
2474
|
-
deprecated?: boolean | undefined;
|
|
2475
1963
|
}>;
|
|
2476
1964
|
export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2477
1965
|
columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2478
1966
|
type: z.ZodLiteral<"boolean">;
|
|
2479
|
-
schema: z.ZodObject<{
|
|
2480
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1967
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2481
1968
|
label: z.ZodOptional<z.ZodString>;
|
|
2482
1969
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2483
1970
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2484
1971
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1972
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2485
1973
|
collection: z.ZodOptional<z.ZodString>;
|
|
1974
|
+
}, {
|
|
2486
1975
|
default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
|
|
2487
|
-
}
|
|
1976
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2488
1977
|
optional: boolean;
|
|
2489
1978
|
unique: boolean;
|
|
2490
1979
|
deprecated: boolean;
|
|
@@ -2548,21 +2037,15 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2548
2037
|
name?: string | undefined;
|
|
2549
2038
|
label?: string | undefined;
|
|
2550
2039
|
collection?: string | undefined;
|
|
2551
|
-
} & {
|
|
2040
|
+
} & ({
|
|
2552
2041
|
optional: boolean;
|
|
2553
2042
|
primaryKey: false;
|
|
2554
2043
|
default?: number | SerializedSQL | undefined;
|
|
2555
|
-
}
|
|
2556
|
-
unique: boolean;
|
|
2557
|
-
deprecated: boolean;
|
|
2558
|
-
name?: string | undefined;
|
|
2559
|
-
label?: string | undefined;
|
|
2560
|
-
collection?: string | undefined;
|
|
2561
|
-
} & {
|
|
2044
|
+
} | {
|
|
2562
2045
|
primaryKey: true;
|
|
2563
2046
|
optional?: false | undefined;
|
|
2564
2047
|
default?: undefined;
|
|
2565
|
-
} & any
|
|
2048
|
+
})) & any;
|
|
2566
2049
|
} | undefined;
|
|
2567
2050
|
}, ZodTypeDef, ({
|
|
2568
2051
|
name?: string | undefined;
|
|
@@ -2571,9 +2054,9 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2571
2054
|
deprecated?: boolean | undefined;
|
|
2572
2055
|
collection?: string | undefined;
|
|
2573
2056
|
} & ({
|
|
2574
|
-
primaryKey?: false | undefined;
|
|
2575
2057
|
optional?: boolean | undefined;
|
|
2576
2058
|
default?: number | SQL<any> | undefined;
|
|
2059
|
+
primaryKey?: false | undefined;
|
|
2577
2060
|
} | {
|
|
2578
2061
|
primaryKey: true;
|
|
2579
2062
|
optional?: false | undefined;
|
|
@@ -2589,21 +2072,15 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2589
2072
|
name?: string | undefined;
|
|
2590
2073
|
label?: string | undefined;
|
|
2591
2074
|
collection?: string | undefined;
|
|
2592
|
-
} & {
|
|
2075
|
+
} & ({
|
|
2593
2076
|
optional: boolean;
|
|
2594
2077
|
primaryKey: false;
|
|
2595
2078
|
default?: number | SerializedSQL | undefined;
|
|
2596
|
-
}
|
|
2597
|
-
unique: boolean;
|
|
2598
|
-
deprecated: boolean;
|
|
2599
|
-
name?: string | undefined;
|
|
2600
|
-
label?: string | undefined;
|
|
2601
|
-
collection?: string | undefined;
|
|
2602
|
-
} & {
|
|
2079
|
+
} | {
|
|
2603
2080
|
primaryKey: true;
|
|
2604
2081
|
optional?: false | undefined;
|
|
2605
2082
|
default?: undefined;
|
|
2606
|
-
} & any
|
|
2083
|
+
})) & any;
|
|
2607
2084
|
}, {
|
|
2608
2085
|
type: "number";
|
|
2609
2086
|
schema: ({
|
|
@@ -2612,25 +2089,17 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2612
2089
|
unique?: boolean | undefined;
|
|
2613
2090
|
deprecated?: boolean | undefined;
|
|
2614
2091
|
collection?: string | undefined;
|
|
2615
|
-
} & {
|
|
2616
|
-
primaryKey?: false | undefined;
|
|
2092
|
+
} & ({
|
|
2617
2093
|
optional?: boolean | undefined;
|
|
2618
2094
|
default?: number | SQL<any> | undefined;
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
}) | ({
|
|
2622
|
-
name?: string | undefined;
|
|
2623
|
-
label?: string | undefined;
|
|
2624
|
-
unique?: boolean | undefined;
|
|
2625
|
-
deprecated?: boolean | undefined;
|
|
2626
|
-
collection?: string | undefined;
|
|
2627
|
-
} & {
|
|
2095
|
+
primaryKey?: false | undefined;
|
|
2096
|
+
} | {
|
|
2628
2097
|
primaryKey: true;
|
|
2629
2098
|
optional?: false | undefined;
|
|
2630
2099
|
default?: undefined;
|
|
2631
|
-
} & {
|
|
2100
|
+
})) & {
|
|
2632
2101
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
2633
|
-
}
|
|
2102
|
+
};
|
|
2634
2103
|
}>, z.ZodObject<{
|
|
2635
2104
|
type: z.ZodLiteral<"text">;
|
|
2636
2105
|
schema: z.ZodType<({
|
|
@@ -2658,21 +2127,13 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2658
2127
|
collection?: string | undefined;
|
|
2659
2128
|
default?: string | SerializedSQL | undefined;
|
|
2660
2129
|
multiline?: boolean | undefined;
|
|
2661
|
-
} & {
|
|
2130
|
+
} & ({
|
|
2662
2131
|
optional: boolean;
|
|
2663
2132
|
primaryKey: false;
|
|
2664
|
-
}
|
|
2665
|
-
unique: boolean;
|
|
2666
|
-
deprecated: boolean;
|
|
2667
|
-
name?: string | undefined;
|
|
2668
|
-
label?: string | undefined;
|
|
2669
|
-
collection?: string | undefined;
|
|
2670
|
-
default?: string | SerializedSQL | undefined;
|
|
2671
|
-
multiline?: boolean | undefined;
|
|
2672
|
-
} & {
|
|
2133
|
+
} | {
|
|
2673
2134
|
primaryKey: true;
|
|
2674
2135
|
optional?: false | undefined;
|
|
2675
|
-
} & any
|
|
2136
|
+
})) & any;
|
|
2676
2137
|
} | undefined;
|
|
2677
2138
|
}, ZodTypeDef, ({
|
|
2678
2139
|
name?: string | undefined;
|
|
@@ -2683,8 +2144,8 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2683
2144
|
default?: string | SQL<any> | undefined;
|
|
2684
2145
|
multiline?: boolean | undefined;
|
|
2685
2146
|
} & ({
|
|
2686
|
-
primaryKey?: false | undefined;
|
|
2687
2147
|
optional?: boolean | undefined;
|
|
2148
|
+
primaryKey?: false | undefined;
|
|
2688
2149
|
} | {
|
|
2689
2150
|
primaryKey: true;
|
|
2690
2151
|
optional?: false | undefined;
|
|
@@ -2701,37 +2162,16 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2701
2162
|
collection?: string | undefined;
|
|
2702
2163
|
default?: string | SerializedSQL | undefined;
|
|
2703
2164
|
multiline?: boolean | undefined;
|
|
2704
|
-
} & {
|
|
2165
|
+
} & ({
|
|
2705
2166
|
optional: boolean;
|
|
2706
2167
|
primaryKey: false;
|
|
2707
|
-
}
|
|
2708
|
-
unique: boolean;
|
|
2709
|
-
deprecated: boolean;
|
|
2710
|
-
name?: string | undefined;
|
|
2711
|
-
label?: string | undefined;
|
|
2712
|
-
collection?: string | undefined;
|
|
2713
|
-
default?: string | SerializedSQL | undefined;
|
|
2714
|
-
multiline?: boolean | undefined;
|
|
2715
|
-
} & {
|
|
2168
|
+
} | {
|
|
2716
2169
|
primaryKey: true;
|
|
2717
2170
|
optional?: false | undefined;
|
|
2718
|
-
} & any
|
|
2171
|
+
})) & any;
|
|
2719
2172
|
}, {
|
|
2720
2173
|
type: "text";
|
|
2721
|
-
schema: ({
|
|
2722
|
-
name?: string | undefined;
|
|
2723
|
-
label?: string | undefined;
|
|
2724
|
-
unique?: boolean | undefined;
|
|
2725
|
-
deprecated?: boolean | undefined;
|
|
2726
|
-
collection?: string | undefined;
|
|
2727
|
-
default?: string | SQL<any> | undefined;
|
|
2728
|
-
multiline?: boolean | undefined;
|
|
2729
|
-
} & {
|
|
2730
|
-
primaryKey?: false | undefined;
|
|
2731
|
-
optional?: boolean | undefined;
|
|
2732
|
-
} & {
|
|
2733
|
-
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
2734
|
-
}) | ({
|
|
2174
|
+
schema: ({
|
|
2735
2175
|
name?: string | undefined;
|
|
2736
2176
|
label?: string | undefined;
|
|
2737
2177
|
unique?: boolean | undefined;
|
|
@@ -2739,23 +2179,27 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2739
2179
|
collection?: string | undefined;
|
|
2740
2180
|
default?: string | SQL<any> | undefined;
|
|
2741
2181
|
multiline?: boolean | undefined;
|
|
2742
|
-
} & {
|
|
2182
|
+
} & ({
|
|
2183
|
+
optional?: boolean | undefined;
|
|
2184
|
+
primaryKey?: false | undefined;
|
|
2185
|
+
} | {
|
|
2743
2186
|
primaryKey: true;
|
|
2744
2187
|
optional?: false | undefined;
|
|
2745
|
-
} & {
|
|
2188
|
+
})) & {
|
|
2746
2189
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
2747
|
-
}
|
|
2190
|
+
};
|
|
2748
2191
|
}>, z.ZodObject<{
|
|
2749
2192
|
type: z.ZodLiteral<"date">;
|
|
2750
|
-
schema: z.ZodObject<{
|
|
2751
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2193
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2752
2194
|
label: z.ZodOptional<z.ZodString>;
|
|
2753
2195
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2754
2196
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2755
2197
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2198
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2756
2199
|
collection: z.ZodOptional<z.ZodString>;
|
|
2200
|
+
}, {
|
|
2757
2201
|
default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
|
|
2758
|
-
}
|
|
2202
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2759
2203
|
optional: boolean;
|
|
2760
2204
|
unique: boolean;
|
|
2761
2205
|
deprecated: boolean;
|
|
@@ -2796,15 +2240,16 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2796
2240
|
};
|
|
2797
2241
|
}>, z.ZodObject<{
|
|
2798
2242
|
type: z.ZodLiteral<"json">;
|
|
2799
|
-
schema: z.ZodObject<{
|
|
2800
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2801
2244
|
label: z.ZodOptional<z.ZodString>;
|
|
2802
2245
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2803
2246
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2804
2247
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2248
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2805
2249
|
collection: z.ZodOptional<z.ZodString>;
|
|
2250
|
+
}, {
|
|
2806
2251
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
2807
|
-
}
|
|
2252
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2808
2253
|
optional: boolean;
|
|
2809
2254
|
unique: boolean;
|
|
2810
2255
|
deprecated: boolean;
|
|
@@ -2849,21 +2294,21 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2849
2294
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
2850
2295
|
name: z.ZodOptional<z.ZodString>;
|
|
2851
2296
|
}, "strip", z.ZodTypeAny, {
|
|
2852
|
-
on:
|
|
2853
|
-
unique?: boolean | undefined;
|
|
2297
|
+
on: string | string[];
|
|
2854
2298
|
name?: string | undefined;
|
|
2855
|
-
}, {
|
|
2856
|
-
on: (string | string[]) & (string | string[] | undefined);
|
|
2857
2299
|
unique?: boolean | undefined;
|
|
2300
|
+
}, {
|
|
2301
|
+
on: string | string[];
|
|
2858
2302
|
name?: string | undefined;
|
|
2303
|
+
unique?: boolean | undefined;
|
|
2859
2304
|
}>, "many">, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2860
2305
|
on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
2861
2306
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
2862
2307
|
}, "strip", z.ZodTypeAny, {
|
|
2863
|
-
on:
|
|
2308
|
+
on: string | string[];
|
|
2864
2309
|
unique?: boolean | undefined;
|
|
2865
2310
|
}, {
|
|
2866
|
-
on:
|
|
2311
|
+
on: string | string[];
|
|
2867
2312
|
unique?: boolean | undefined;
|
|
2868
2313
|
}>>]>>;
|
|
2869
2314
|
foreignKeys: z.ZodOptional<z.ZodArray<z.ZodType<ForeignKeysOutput, ZodTypeDef, ForeignKeysInput>, "many">>;
|
|
@@ -2889,21 +2334,15 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2889
2334
|
name?: string | undefined;
|
|
2890
2335
|
label?: string | undefined;
|
|
2891
2336
|
collection?: string | undefined;
|
|
2892
|
-
} & {
|
|
2337
|
+
} & ({
|
|
2893
2338
|
optional: boolean;
|
|
2894
2339
|
primaryKey: false;
|
|
2895
2340
|
default?: number | SerializedSQL | undefined;
|
|
2896
|
-
}
|
|
2897
|
-
unique: boolean;
|
|
2898
|
-
deprecated: boolean;
|
|
2899
|
-
name?: string | undefined;
|
|
2900
|
-
label?: string | undefined;
|
|
2901
|
-
collection?: string | undefined;
|
|
2902
|
-
} & {
|
|
2341
|
+
} | {
|
|
2903
2342
|
primaryKey: true;
|
|
2904
2343
|
optional?: false | undefined;
|
|
2905
2344
|
default?: undefined;
|
|
2906
|
-
} & any
|
|
2345
|
+
})) & any;
|
|
2907
2346
|
} | {
|
|
2908
2347
|
type: "text";
|
|
2909
2348
|
schema: ({
|
|
@@ -2914,21 +2353,13 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2914
2353
|
collection?: string | undefined;
|
|
2915
2354
|
default?: string | SerializedSQL | undefined;
|
|
2916
2355
|
multiline?: boolean | undefined;
|
|
2917
|
-
} & {
|
|
2356
|
+
} & ({
|
|
2918
2357
|
optional: boolean;
|
|
2919
2358
|
primaryKey: false;
|
|
2920
|
-
}
|
|
2921
|
-
unique: boolean;
|
|
2922
|
-
deprecated: boolean;
|
|
2923
|
-
name?: string | undefined;
|
|
2924
|
-
label?: string | undefined;
|
|
2925
|
-
collection?: string | undefined;
|
|
2926
|
-
default?: string | SerializedSQL | undefined;
|
|
2927
|
-
multiline?: boolean | undefined;
|
|
2928
|
-
} & {
|
|
2359
|
+
} | {
|
|
2929
2360
|
primaryKey: true;
|
|
2930
2361
|
optional?: false | undefined;
|
|
2931
|
-
} & any
|
|
2362
|
+
})) & any;
|
|
2932
2363
|
} | {
|
|
2933
2364
|
type: "date";
|
|
2934
2365
|
schema: {
|
|
@@ -2953,11 +2384,11 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2953
2384
|
};
|
|
2954
2385
|
}>;
|
|
2955
2386
|
indexes?: {
|
|
2956
|
-
on:
|
|
2957
|
-
unique?: boolean | undefined;
|
|
2387
|
+
on: string | string[];
|
|
2958
2388
|
name?: string | undefined;
|
|
2389
|
+
unique?: boolean | undefined;
|
|
2959
2390
|
}[] | Record<string, {
|
|
2960
|
-
on:
|
|
2391
|
+
on: string | string[];
|
|
2961
2392
|
unique?: boolean | undefined;
|
|
2962
2393
|
}> | undefined;
|
|
2963
2394
|
foreignKeys?: ForeignKeysOutput[] | undefined;
|
|
@@ -2981,25 +2412,17 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
2981
2412
|
unique?: boolean | undefined;
|
|
2982
2413
|
deprecated?: boolean | undefined;
|
|
2983
2414
|
collection?: string | undefined;
|
|
2984
|
-
} & {
|
|
2985
|
-
primaryKey?: false | undefined;
|
|
2415
|
+
} & ({
|
|
2986
2416
|
optional?: boolean | undefined;
|
|
2987
2417
|
default?: number | SQL<any> | undefined;
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
}) | ({
|
|
2991
|
-
name?: string | undefined;
|
|
2992
|
-
label?: string | undefined;
|
|
2993
|
-
unique?: boolean | undefined;
|
|
2994
|
-
deprecated?: boolean | undefined;
|
|
2995
|
-
collection?: string | undefined;
|
|
2996
|
-
} & {
|
|
2418
|
+
primaryKey?: false | undefined;
|
|
2419
|
+
} | {
|
|
2997
2420
|
primaryKey: true;
|
|
2998
2421
|
optional?: false | undefined;
|
|
2999
2422
|
default?: undefined;
|
|
3000
|
-
} & {
|
|
2423
|
+
})) & {
|
|
3001
2424
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
3002
|
-
}
|
|
2425
|
+
};
|
|
3003
2426
|
} | {
|
|
3004
2427
|
type: "text";
|
|
3005
2428
|
schema: ({
|
|
@@ -3010,25 +2433,15 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
3010
2433
|
collection?: string | undefined;
|
|
3011
2434
|
default?: string | SQL<any> | undefined;
|
|
3012
2435
|
multiline?: boolean | undefined;
|
|
3013
|
-
} & {
|
|
3014
|
-
primaryKey?: false | undefined;
|
|
2436
|
+
} & ({
|
|
3015
2437
|
optional?: boolean | undefined;
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
}) | ({
|
|
3019
|
-
name?: string | undefined;
|
|
3020
|
-
label?: string | undefined;
|
|
3021
|
-
unique?: boolean | undefined;
|
|
3022
|
-
deprecated?: boolean | undefined;
|
|
3023
|
-
collection?: string | undefined;
|
|
3024
|
-
default?: string | SQL<any> | undefined;
|
|
3025
|
-
multiline?: boolean | undefined;
|
|
3026
|
-
} & {
|
|
2438
|
+
primaryKey?: false | undefined;
|
|
2439
|
+
} | {
|
|
3027
2440
|
primaryKey: true;
|
|
3028
2441
|
optional?: false | undefined;
|
|
3029
|
-
} & {
|
|
2442
|
+
})) & {
|
|
3030
2443
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
3031
|
-
}
|
|
2444
|
+
};
|
|
3032
2445
|
} | {
|
|
3033
2446
|
type: "date";
|
|
3034
2447
|
schema: {
|
|
@@ -3052,16 +2465,16 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
3052
2465
|
default?: unknown;
|
|
3053
2466
|
};
|
|
3054
2467
|
}>;
|
|
2468
|
+
deprecated?: boolean | undefined;
|
|
3055
2469
|
indexes?: {
|
|
3056
|
-
on:
|
|
3057
|
-
unique?: boolean | undefined;
|
|
2470
|
+
on: string | string[];
|
|
3058
2471
|
name?: string | undefined;
|
|
2472
|
+
unique?: boolean | undefined;
|
|
3059
2473
|
}[] | Record<string, {
|
|
3060
|
-
on:
|
|
2474
|
+
on: string | string[];
|
|
3061
2475
|
unique?: boolean | undefined;
|
|
3062
2476
|
}> | undefined;
|
|
3063
2477
|
foreignKeys?: ForeignKeysInput[] | undefined;
|
|
3064
|
-
deprecated?: boolean | undefined;
|
|
3065
2478
|
}>>, Record<string, {
|
|
3066
2479
|
deprecated: boolean;
|
|
3067
2480
|
columns: Record<string, {
|
|
@@ -3083,21 +2496,15 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
3083
2496
|
name?: string | undefined;
|
|
3084
2497
|
label?: string | undefined;
|
|
3085
2498
|
collection?: string | undefined;
|
|
3086
|
-
} & {
|
|
2499
|
+
} & ({
|
|
3087
2500
|
optional: boolean;
|
|
3088
2501
|
primaryKey: false;
|
|
3089
2502
|
default?: number | SerializedSQL | undefined;
|
|
3090
|
-
}
|
|
3091
|
-
unique: boolean;
|
|
3092
|
-
deprecated: boolean;
|
|
3093
|
-
name?: string | undefined;
|
|
3094
|
-
label?: string | undefined;
|
|
3095
|
-
collection?: string | undefined;
|
|
3096
|
-
} & {
|
|
2503
|
+
} | {
|
|
3097
2504
|
primaryKey: true;
|
|
3098
2505
|
optional?: false | undefined;
|
|
3099
2506
|
default?: undefined;
|
|
3100
|
-
} & any
|
|
2507
|
+
})) & any;
|
|
3101
2508
|
} | {
|
|
3102
2509
|
type: "text";
|
|
3103
2510
|
schema: ({
|
|
@@ -3108,21 +2515,13 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
3108
2515
|
collection?: string | undefined;
|
|
3109
2516
|
default?: string | SerializedSQL | undefined;
|
|
3110
2517
|
multiline?: boolean | undefined;
|
|
3111
|
-
} & {
|
|
2518
|
+
} & ({
|
|
3112
2519
|
optional: boolean;
|
|
3113
2520
|
primaryKey: false;
|
|
3114
|
-
}
|
|
3115
|
-
unique: boolean;
|
|
3116
|
-
deprecated: boolean;
|
|
3117
|
-
name?: string | undefined;
|
|
3118
|
-
label?: string | undefined;
|
|
3119
|
-
collection?: string | undefined;
|
|
3120
|
-
default?: string | SerializedSQL | undefined;
|
|
3121
|
-
multiline?: boolean | undefined;
|
|
3122
|
-
} & {
|
|
2521
|
+
} | {
|
|
3123
2522
|
primaryKey: true;
|
|
3124
2523
|
optional?: false | undefined;
|
|
3125
|
-
} & any
|
|
2524
|
+
})) & any;
|
|
3126
2525
|
} | {
|
|
3127
2526
|
type: "date";
|
|
3128
2527
|
schema: {
|
|
@@ -3147,11 +2546,11 @@ export declare const tablesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
3147
2546
|
};
|
|
3148
2547
|
}>;
|
|
3149
2548
|
indexes?: {
|
|
3150
|
-
on:
|
|
3151
|
-
unique?: boolean | undefined;
|
|
2549
|
+
on: string | string[];
|
|
3152
2550
|
name?: string | undefined;
|
|
2551
|
+
unique?: boolean | undefined;
|
|
3153
2552
|
}[] | Record<string, {
|
|
3154
|
-
on:
|
|
2553
|
+
on: string | string[];
|
|
3155
2554
|
unique?: boolean | undefined;
|
|
3156
2555
|
}> | undefined;
|
|
3157
2556
|
foreignKeys?: ForeignKeysOutput[] | undefined;
|
|
@@ -3160,15 +2559,16 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3160
2559
|
tables: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3161
2560
|
columns: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3162
2561
|
type: z.ZodLiteral<"boolean">;
|
|
3163
|
-
schema: z.ZodObject<{
|
|
3164
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2562
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3165
2563
|
label: z.ZodOptional<z.ZodString>;
|
|
3166
2564
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3167
2565
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3168
2566
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2567
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3169
2568
|
collection: z.ZodOptional<z.ZodString>;
|
|
2569
|
+
}, {
|
|
3170
2570
|
default: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>]>>;
|
|
3171
|
-
}
|
|
2571
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3172
2572
|
optional: boolean;
|
|
3173
2573
|
unique: boolean;
|
|
3174
2574
|
deprecated: boolean;
|
|
@@ -3232,21 +2632,15 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3232
2632
|
name?: string | undefined;
|
|
3233
2633
|
label?: string | undefined;
|
|
3234
2634
|
collection?: string | undefined;
|
|
3235
|
-
} & {
|
|
2635
|
+
} & ({
|
|
3236
2636
|
optional: boolean;
|
|
3237
2637
|
primaryKey: false;
|
|
3238
2638
|
default?: number | SerializedSQL | undefined;
|
|
3239
|
-
}
|
|
3240
|
-
unique: boolean;
|
|
3241
|
-
deprecated: boolean;
|
|
3242
|
-
name?: string | undefined;
|
|
3243
|
-
label?: string | undefined;
|
|
3244
|
-
collection?: string | undefined;
|
|
3245
|
-
} & {
|
|
2639
|
+
} | {
|
|
3246
2640
|
primaryKey: true;
|
|
3247
2641
|
optional?: false | undefined;
|
|
3248
2642
|
default?: undefined;
|
|
3249
|
-
} & any
|
|
2643
|
+
})) & any;
|
|
3250
2644
|
} | undefined;
|
|
3251
2645
|
}, ZodTypeDef, ({
|
|
3252
2646
|
name?: string | undefined;
|
|
@@ -3255,9 +2649,9 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3255
2649
|
deprecated?: boolean | undefined;
|
|
3256
2650
|
collection?: string | undefined;
|
|
3257
2651
|
} & ({
|
|
3258
|
-
primaryKey?: false | undefined;
|
|
3259
2652
|
optional?: boolean | undefined;
|
|
3260
2653
|
default?: number | SQL<any> | undefined;
|
|
2654
|
+
primaryKey?: false | undefined;
|
|
3261
2655
|
} | {
|
|
3262
2656
|
primaryKey: true;
|
|
3263
2657
|
optional?: false | undefined;
|
|
@@ -3273,21 +2667,15 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3273
2667
|
name?: string | undefined;
|
|
3274
2668
|
label?: string | undefined;
|
|
3275
2669
|
collection?: string | undefined;
|
|
3276
|
-
} & {
|
|
2670
|
+
} & ({
|
|
3277
2671
|
optional: boolean;
|
|
3278
2672
|
primaryKey: false;
|
|
3279
2673
|
default?: number | SerializedSQL | undefined;
|
|
3280
|
-
}
|
|
3281
|
-
unique: boolean;
|
|
3282
|
-
deprecated: boolean;
|
|
3283
|
-
name?: string | undefined;
|
|
3284
|
-
label?: string | undefined;
|
|
3285
|
-
collection?: string | undefined;
|
|
3286
|
-
} & {
|
|
2674
|
+
} | {
|
|
3287
2675
|
primaryKey: true;
|
|
3288
2676
|
optional?: false | undefined;
|
|
3289
2677
|
default?: undefined;
|
|
3290
|
-
} & any
|
|
2678
|
+
})) & any;
|
|
3291
2679
|
}, {
|
|
3292
2680
|
type: "number";
|
|
3293
2681
|
schema: ({
|
|
@@ -3296,25 +2684,17 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3296
2684
|
unique?: boolean | undefined;
|
|
3297
2685
|
deprecated?: boolean | undefined;
|
|
3298
2686
|
collection?: string | undefined;
|
|
3299
|
-
} & {
|
|
3300
|
-
primaryKey?: false | undefined;
|
|
2687
|
+
} & ({
|
|
3301
2688
|
optional?: boolean | undefined;
|
|
3302
2689
|
default?: number | SQL<any> | undefined;
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
}) | ({
|
|
3306
|
-
name?: string | undefined;
|
|
3307
|
-
label?: string | undefined;
|
|
3308
|
-
unique?: boolean | undefined;
|
|
3309
|
-
deprecated?: boolean | undefined;
|
|
3310
|
-
collection?: string | undefined;
|
|
3311
|
-
} & {
|
|
2690
|
+
primaryKey?: false | undefined;
|
|
2691
|
+
} | {
|
|
3312
2692
|
primaryKey: true;
|
|
3313
2693
|
optional?: false | undefined;
|
|
3314
2694
|
default?: undefined;
|
|
3315
|
-
} & {
|
|
2695
|
+
})) & {
|
|
3316
2696
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
3317
|
-
}
|
|
2697
|
+
};
|
|
3318
2698
|
}>, z.ZodObject<{
|
|
3319
2699
|
type: z.ZodLiteral<"text">;
|
|
3320
2700
|
schema: z.ZodType<({
|
|
@@ -3342,21 +2722,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3342
2722
|
collection?: string | undefined;
|
|
3343
2723
|
default?: string | SerializedSQL | undefined;
|
|
3344
2724
|
multiline?: boolean | undefined;
|
|
3345
|
-
} & {
|
|
2725
|
+
} & ({
|
|
3346
2726
|
optional: boolean;
|
|
3347
2727
|
primaryKey: false;
|
|
3348
|
-
}
|
|
3349
|
-
unique: boolean;
|
|
3350
|
-
deprecated: boolean;
|
|
3351
|
-
name?: string | undefined;
|
|
3352
|
-
label?: string | undefined;
|
|
3353
|
-
collection?: string | undefined;
|
|
3354
|
-
default?: string | SerializedSQL | undefined;
|
|
3355
|
-
multiline?: boolean | undefined;
|
|
3356
|
-
} & {
|
|
2728
|
+
} | {
|
|
3357
2729
|
primaryKey: true;
|
|
3358
2730
|
optional?: false | undefined;
|
|
3359
|
-
} & any
|
|
2731
|
+
})) & any;
|
|
3360
2732
|
} | undefined;
|
|
3361
2733
|
}, ZodTypeDef, ({
|
|
3362
2734
|
name?: string | undefined;
|
|
@@ -3367,8 +2739,8 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3367
2739
|
default?: string | SQL<any> | undefined;
|
|
3368
2740
|
multiline?: boolean | undefined;
|
|
3369
2741
|
} & ({
|
|
3370
|
-
primaryKey?: false | undefined;
|
|
3371
2742
|
optional?: boolean | undefined;
|
|
2743
|
+
primaryKey?: false | undefined;
|
|
3372
2744
|
} | {
|
|
3373
2745
|
primaryKey: true;
|
|
3374
2746
|
optional?: false | undefined;
|
|
@@ -3385,21 +2757,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3385
2757
|
collection?: string | undefined;
|
|
3386
2758
|
default?: string | SerializedSQL | undefined;
|
|
3387
2759
|
multiline?: boolean | undefined;
|
|
3388
|
-
} & {
|
|
2760
|
+
} & ({
|
|
3389
2761
|
optional: boolean;
|
|
3390
2762
|
primaryKey: false;
|
|
3391
|
-
}
|
|
3392
|
-
unique: boolean;
|
|
3393
|
-
deprecated: boolean;
|
|
3394
|
-
name?: string | undefined;
|
|
3395
|
-
label?: string | undefined;
|
|
3396
|
-
collection?: string | undefined;
|
|
3397
|
-
default?: string | SerializedSQL | undefined;
|
|
3398
|
-
multiline?: boolean | undefined;
|
|
3399
|
-
} & {
|
|
2763
|
+
} | {
|
|
3400
2764
|
primaryKey: true;
|
|
3401
2765
|
optional?: false | undefined;
|
|
3402
|
-
} & any
|
|
2766
|
+
})) & any;
|
|
3403
2767
|
}, {
|
|
3404
2768
|
type: "text";
|
|
3405
2769
|
schema: ({
|
|
@@ -3410,36 +2774,27 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3410
2774
|
collection?: string | undefined;
|
|
3411
2775
|
default?: string | SQL<any> | undefined;
|
|
3412
2776
|
multiline?: boolean | undefined;
|
|
3413
|
-
} & {
|
|
3414
|
-
primaryKey?: false | undefined;
|
|
2777
|
+
} & ({
|
|
3415
2778
|
optional?: boolean | undefined;
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
}) | ({
|
|
3419
|
-
name?: string | undefined;
|
|
3420
|
-
label?: string | undefined;
|
|
3421
|
-
unique?: boolean | undefined;
|
|
3422
|
-
deprecated?: boolean | undefined;
|
|
3423
|
-
collection?: string | undefined;
|
|
3424
|
-
default?: string | SQL<any> | undefined;
|
|
3425
|
-
multiline?: boolean | undefined;
|
|
3426
|
-
} & {
|
|
2779
|
+
primaryKey?: false | undefined;
|
|
2780
|
+
} | {
|
|
3427
2781
|
primaryKey: true;
|
|
3428
2782
|
optional?: false | undefined;
|
|
3429
|
-
} & {
|
|
2783
|
+
})) & {
|
|
3430
2784
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
3431
|
-
}
|
|
2785
|
+
};
|
|
3432
2786
|
}>, z.ZodObject<{
|
|
3433
2787
|
type: z.ZodLiteral<"date">;
|
|
3434
|
-
schema: z.ZodObject<{
|
|
3435
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2788
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3436
2789
|
label: z.ZodOptional<z.ZodString>;
|
|
3437
2790
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3438
2791
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3439
2792
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2793
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3440
2794
|
collection: z.ZodOptional<z.ZodString>;
|
|
2795
|
+
}, {
|
|
3441
2796
|
default: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<SQL<any>, ZodTypeDef, SQL<any>>, SerializedSQL, SQL<any>>, z.ZodEffects<z.ZodDate, string, Date>]>>;
|
|
3442
|
-
}
|
|
2797
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3443
2798
|
optional: boolean;
|
|
3444
2799
|
unique: boolean;
|
|
3445
2800
|
deprecated: boolean;
|
|
@@ -3480,15 +2835,16 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3480
2835
|
};
|
|
3481
2836
|
}>, z.ZodObject<{
|
|
3482
2837
|
type: z.ZodLiteral<"json">;
|
|
3483
|
-
schema: z.ZodObject<{
|
|
3484
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2838
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3485
2839
|
label: z.ZodOptional<z.ZodString>;
|
|
3486
2840
|
optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3487
2841
|
unique: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3488
2842
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2843
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3489
2844
|
collection: z.ZodOptional<z.ZodString>;
|
|
2845
|
+
}, {
|
|
3490
2846
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
3491
|
-
}
|
|
2847
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3492
2848
|
optional: boolean;
|
|
3493
2849
|
unique: boolean;
|
|
3494
2850
|
deprecated: boolean;
|
|
@@ -3533,21 +2889,21 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3533
2889
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
3534
2890
|
name: z.ZodOptional<z.ZodString>;
|
|
3535
2891
|
}, "strip", z.ZodTypeAny, {
|
|
3536
|
-
on:
|
|
3537
|
-
unique?: boolean | undefined;
|
|
2892
|
+
on: string | string[];
|
|
3538
2893
|
name?: string | undefined;
|
|
3539
|
-
}, {
|
|
3540
|
-
on: (string | string[]) & (string | string[] | undefined);
|
|
3541
2894
|
unique?: boolean | undefined;
|
|
2895
|
+
}, {
|
|
2896
|
+
on: string | string[];
|
|
3542
2897
|
name?: string | undefined;
|
|
2898
|
+
unique?: boolean | undefined;
|
|
3543
2899
|
}>, "many">, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3544
2900
|
on: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
3545
2901
|
unique: z.ZodOptional<z.ZodBoolean>;
|
|
3546
2902
|
}, "strip", z.ZodTypeAny, {
|
|
3547
|
-
on:
|
|
2903
|
+
on: string | string[];
|
|
3548
2904
|
unique?: boolean | undefined;
|
|
3549
2905
|
}, {
|
|
3550
|
-
on:
|
|
2906
|
+
on: string | string[];
|
|
3551
2907
|
unique?: boolean | undefined;
|
|
3552
2908
|
}>>]>>;
|
|
3553
2909
|
foreignKeys: z.ZodOptional<z.ZodArray<z.ZodType<ForeignKeysOutput, ZodTypeDef, ForeignKeysInput>, "many">>;
|
|
@@ -3573,21 +2929,15 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3573
2929
|
name?: string | undefined;
|
|
3574
2930
|
label?: string | undefined;
|
|
3575
2931
|
collection?: string | undefined;
|
|
3576
|
-
} & {
|
|
2932
|
+
} & ({
|
|
3577
2933
|
optional: boolean;
|
|
3578
2934
|
primaryKey: false;
|
|
3579
2935
|
default?: number | SerializedSQL | undefined;
|
|
3580
|
-
}
|
|
3581
|
-
unique: boolean;
|
|
3582
|
-
deprecated: boolean;
|
|
3583
|
-
name?: string | undefined;
|
|
3584
|
-
label?: string | undefined;
|
|
3585
|
-
collection?: string | undefined;
|
|
3586
|
-
} & {
|
|
2936
|
+
} | {
|
|
3587
2937
|
primaryKey: true;
|
|
3588
2938
|
optional?: false | undefined;
|
|
3589
2939
|
default?: undefined;
|
|
3590
|
-
} & any
|
|
2940
|
+
})) & any;
|
|
3591
2941
|
} | {
|
|
3592
2942
|
type: "text";
|
|
3593
2943
|
schema: ({
|
|
@@ -3598,21 +2948,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3598
2948
|
collection?: string | undefined;
|
|
3599
2949
|
default?: string | SerializedSQL | undefined;
|
|
3600
2950
|
multiline?: boolean | undefined;
|
|
3601
|
-
} & {
|
|
2951
|
+
} & ({
|
|
3602
2952
|
optional: boolean;
|
|
3603
2953
|
primaryKey: false;
|
|
3604
|
-
}
|
|
3605
|
-
unique: boolean;
|
|
3606
|
-
deprecated: boolean;
|
|
3607
|
-
name?: string | undefined;
|
|
3608
|
-
label?: string | undefined;
|
|
3609
|
-
collection?: string | undefined;
|
|
3610
|
-
default?: string | SerializedSQL | undefined;
|
|
3611
|
-
multiline?: boolean | undefined;
|
|
3612
|
-
} & {
|
|
2954
|
+
} | {
|
|
3613
2955
|
primaryKey: true;
|
|
3614
2956
|
optional?: false | undefined;
|
|
3615
|
-
} & any
|
|
2957
|
+
})) & any;
|
|
3616
2958
|
} | {
|
|
3617
2959
|
type: "date";
|
|
3618
2960
|
schema: {
|
|
@@ -3637,11 +2979,11 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3637
2979
|
};
|
|
3638
2980
|
}>;
|
|
3639
2981
|
indexes?: {
|
|
3640
|
-
on:
|
|
3641
|
-
unique?: boolean | undefined;
|
|
2982
|
+
on: string | string[];
|
|
3642
2983
|
name?: string | undefined;
|
|
2984
|
+
unique?: boolean | undefined;
|
|
3643
2985
|
}[] | Record<string, {
|
|
3644
|
-
on:
|
|
2986
|
+
on: string | string[];
|
|
3645
2987
|
unique?: boolean | undefined;
|
|
3646
2988
|
}> | undefined;
|
|
3647
2989
|
foreignKeys?: ForeignKeysOutput[] | undefined;
|
|
@@ -3665,25 +3007,17 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3665
3007
|
unique?: boolean | undefined;
|
|
3666
3008
|
deprecated?: boolean | undefined;
|
|
3667
3009
|
collection?: string | undefined;
|
|
3668
|
-
} & {
|
|
3669
|
-
primaryKey?: false | undefined;
|
|
3010
|
+
} & ({
|
|
3670
3011
|
optional?: boolean | undefined;
|
|
3671
3012
|
default?: number | SQL<any> | undefined;
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
}) | ({
|
|
3675
|
-
name?: string | undefined;
|
|
3676
|
-
label?: string | undefined;
|
|
3677
|
-
unique?: boolean | undefined;
|
|
3678
|
-
deprecated?: boolean | undefined;
|
|
3679
|
-
collection?: string | undefined;
|
|
3680
|
-
} & {
|
|
3013
|
+
primaryKey?: false | undefined;
|
|
3014
|
+
} | {
|
|
3681
3015
|
primaryKey: true;
|
|
3682
3016
|
optional?: false | undefined;
|
|
3683
3017
|
default?: undefined;
|
|
3684
|
-
} & {
|
|
3018
|
+
})) & {
|
|
3685
3019
|
references?: (() => z.input<typeof numberColumnSchema>) | undefined;
|
|
3686
|
-
}
|
|
3020
|
+
};
|
|
3687
3021
|
} | {
|
|
3688
3022
|
type: "text";
|
|
3689
3023
|
schema: ({
|
|
@@ -3694,25 +3028,15 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3694
3028
|
collection?: string | undefined;
|
|
3695
3029
|
default?: string | SQL<any> | undefined;
|
|
3696
3030
|
multiline?: boolean | undefined;
|
|
3697
|
-
} & {
|
|
3698
|
-
primaryKey?: false | undefined;
|
|
3031
|
+
} & ({
|
|
3699
3032
|
optional?: boolean | undefined;
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
}) | ({
|
|
3703
|
-
name?: string | undefined;
|
|
3704
|
-
label?: string | undefined;
|
|
3705
|
-
unique?: boolean | undefined;
|
|
3706
|
-
deprecated?: boolean | undefined;
|
|
3707
|
-
collection?: string | undefined;
|
|
3708
|
-
default?: string | SQL<any> | undefined;
|
|
3709
|
-
multiline?: boolean | undefined;
|
|
3710
|
-
} & {
|
|
3033
|
+
primaryKey?: false | undefined;
|
|
3034
|
+
} | {
|
|
3711
3035
|
primaryKey: true;
|
|
3712
3036
|
optional?: false | undefined;
|
|
3713
|
-
} & {
|
|
3037
|
+
})) & {
|
|
3714
3038
|
references?: (() => z.input<typeof textColumnSchema>) | undefined;
|
|
3715
|
-
}
|
|
3039
|
+
};
|
|
3716
3040
|
} | {
|
|
3717
3041
|
type: "date";
|
|
3718
3042
|
schema: {
|
|
@@ -3736,16 +3060,16 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3736
3060
|
default?: unknown;
|
|
3737
3061
|
};
|
|
3738
3062
|
}>;
|
|
3063
|
+
deprecated?: boolean | undefined;
|
|
3739
3064
|
indexes?: {
|
|
3740
|
-
on:
|
|
3741
|
-
unique?: boolean | undefined;
|
|
3065
|
+
on: string | string[];
|
|
3742
3066
|
name?: string | undefined;
|
|
3067
|
+
unique?: boolean | undefined;
|
|
3743
3068
|
}[] | Record<string, {
|
|
3744
|
-
on:
|
|
3069
|
+
on: string | string[];
|
|
3745
3070
|
unique?: boolean | undefined;
|
|
3746
3071
|
}> | undefined;
|
|
3747
3072
|
foreignKeys?: ForeignKeysInput[] | undefined;
|
|
3748
|
-
deprecated?: boolean | undefined;
|
|
3749
3073
|
}>>, Record<string, {
|
|
3750
3074
|
deprecated: boolean;
|
|
3751
3075
|
columns: Record<string, {
|
|
@@ -3767,21 +3091,15 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3767
3091
|
name?: string | undefined;
|
|
3768
3092
|
label?: string | undefined;
|
|
3769
3093
|
collection?: string | undefined;
|
|
3770
|
-
} & {
|
|
3094
|
+
} & ({
|
|
3771
3095
|
optional: boolean;
|
|
3772
3096
|
primaryKey: false;
|
|
3773
3097
|
default?: number | SerializedSQL | undefined;
|
|
3774
|
-
}
|
|
3775
|
-
unique: boolean;
|
|
3776
|
-
deprecated: boolean;
|
|
3777
|
-
name?: string | undefined;
|
|
3778
|
-
label?: string | undefined;
|
|
3779
|
-
collection?: string | undefined;
|
|
3780
|
-
} & {
|
|
3098
|
+
} | {
|
|
3781
3099
|
primaryKey: true;
|
|
3782
3100
|
optional?: false | undefined;
|
|
3783
3101
|
default?: undefined;
|
|
3784
|
-
} & any
|
|
3102
|
+
})) & any;
|
|
3785
3103
|
} | {
|
|
3786
3104
|
type: "text";
|
|
3787
3105
|
schema: ({
|
|
@@ -3792,21 +3110,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3792
3110
|
collection?: string | undefined;
|
|
3793
3111
|
default?: string | SerializedSQL | undefined;
|
|
3794
3112
|
multiline?: boolean | undefined;
|
|
3795
|
-
} & {
|
|
3113
|
+
} & ({
|
|
3796
3114
|
optional: boolean;
|
|
3797
3115
|
primaryKey: false;
|
|
3798
|
-
}
|
|
3799
|
-
unique: boolean;
|
|
3800
|
-
deprecated: boolean;
|
|
3801
|
-
name?: string | undefined;
|
|
3802
|
-
label?: string | undefined;
|
|
3803
|
-
collection?: string | undefined;
|
|
3804
|
-
default?: string | SerializedSQL | undefined;
|
|
3805
|
-
multiline?: boolean | undefined;
|
|
3806
|
-
} & {
|
|
3116
|
+
} | {
|
|
3807
3117
|
primaryKey: true;
|
|
3808
3118
|
optional?: false | undefined;
|
|
3809
|
-
} & any
|
|
3119
|
+
})) & any;
|
|
3810
3120
|
} | {
|
|
3811
3121
|
type: "date";
|
|
3812
3122
|
schema: {
|
|
@@ -3831,11 +3141,11 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3831
3141
|
};
|
|
3832
3142
|
}>;
|
|
3833
3143
|
indexes?: {
|
|
3834
|
-
on:
|
|
3835
|
-
unique?: boolean | undefined;
|
|
3144
|
+
on: string | string[];
|
|
3836
3145
|
name?: string | undefined;
|
|
3146
|
+
unique?: boolean | undefined;
|
|
3837
3147
|
}[] | Record<string, {
|
|
3838
|
-
on:
|
|
3148
|
+
on: string | string[];
|
|
3839
3149
|
unique?: boolean | undefined;
|
|
3840
3150
|
}> | undefined;
|
|
3841
3151
|
foreignKeys?: ForeignKeysOutput[] | undefined;
|
|
@@ -3862,21 +3172,15 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3862
3172
|
name?: string | undefined;
|
|
3863
3173
|
label?: string | undefined;
|
|
3864
3174
|
collection?: string | undefined;
|
|
3865
|
-
} & {
|
|
3175
|
+
} & ({
|
|
3866
3176
|
optional: boolean;
|
|
3867
3177
|
primaryKey: false;
|
|
3868
3178
|
default?: number | SerializedSQL | undefined;
|
|
3869
|
-
}
|
|
3870
|
-
unique: boolean;
|
|
3871
|
-
deprecated: boolean;
|
|
3872
|
-
name?: string | undefined;
|
|
3873
|
-
label?: string | undefined;
|
|
3874
|
-
collection?: string | undefined;
|
|
3875
|
-
} & {
|
|
3179
|
+
} | {
|
|
3876
3180
|
primaryKey: true;
|
|
3877
3181
|
optional?: false | undefined;
|
|
3878
3182
|
default?: undefined;
|
|
3879
|
-
} & any
|
|
3183
|
+
})) & any;
|
|
3880
3184
|
} | {
|
|
3881
3185
|
type: "text";
|
|
3882
3186
|
schema: ({
|
|
@@ -3887,21 +3191,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3887
3191
|
collection?: string | undefined;
|
|
3888
3192
|
default?: string | SerializedSQL | undefined;
|
|
3889
3193
|
multiline?: boolean | undefined;
|
|
3890
|
-
} & {
|
|
3194
|
+
} & ({
|
|
3891
3195
|
optional: boolean;
|
|
3892
3196
|
primaryKey: false;
|
|
3893
|
-
}
|
|
3894
|
-
unique: boolean;
|
|
3895
|
-
deprecated: boolean;
|
|
3896
|
-
name?: string | undefined;
|
|
3897
|
-
label?: string | undefined;
|
|
3898
|
-
collection?: string | undefined;
|
|
3899
|
-
default?: string | SerializedSQL | undefined;
|
|
3900
|
-
multiline?: boolean | undefined;
|
|
3901
|
-
} & {
|
|
3197
|
+
} | {
|
|
3902
3198
|
primaryKey: true;
|
|
3903
3199
|
optional?: false | undefined;
|
|
3904
|
-
} & any
|
|
3200
|
+
})) & any;
|
|
3905
3201
|
} | {
|
|
3906
3202
|
type: "date";
|
|
3907
3203
|
schema: {
|
|
@@ -3926,11 +3222,11 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3926
3222
|
};
|
|
3927
3223
|
}>;
|
|
3928
3224
|
indexes?: {
|
|
3929
|
-
on:
|
|
3930
|
-
unique?: boolean | undefined;
|
|
3225
|
+
on: string | string[];
|
|
3931
3226
|
name?: string | undefined;
|
|
3227
|
+
unique?: boolean | undefined;
|
|
3932
3228
|
}[] | Record<string, {
|
|
3933
|
-
on:
|
|
3229
|
+
on: string | string[];
|
|
3934
3230
|
unique?: boolean | undefined;
|
|
3935
3231
|
}> | undefined;
|
|
3936
3232
|
foreignKeys?: ForeignKeysOutput[] | undefined;
|
|
@@ -3940,7 +3236,7 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3940
3236
|
}>, {
|
|
3941
3237
|
tables: Record<string, {
|
|
3942
3238
|
indexes: Record<string, {
|
|
3943
|
-
on:
|
|
3239
|
+
on: string | string[];
|
|
3944
3240
|
unique?: boolean | undefined;
|
|
3945
3241
|
}>;
|
|
3946
3242
|
deprecated: boolean;
|
|
@@ -3963,21 +3259,15 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3963
3259
|
name?: string | undefined;
|
|
3964
3260
|
label?: string | undefined;
|
|
3965
3261
|
collection?: string | undefined;
|
|
3966
|
-
} & {
|
|
3262
|
+
} & ({
|
|
3967
3263
|
optional: boolean;
|
|
3968
3264
|
primaryKey: false;
|
|
3969
3265
|
default?: number | SerializedSQL | undefined;
|
|
3970
|
-
}
|
|
3971
|
-
unique: boolean;
|
|
3972
|
-
deprecated: boolean;
|
|
3973
|
-
name?: string | undefined;
|
|
3974
|
-
label?: string | undefined;
|
|
3975
|
-
collection?: string | undefined;
|
|
3976
|
-
} & {
|
|
3266
|
+
} | {
|
|
3977
3267
|
primaryKey: true;
|
|
3978
3268
|
optional?: false | undefined;
|
|
3979
3269
|
default?: undefined;
|
|
3980
|
-
} & any
|
|
3270
|
+
})) & any;
|
|
3981
3271
|
} | {
|
|
3982
3272
|
type: "text";
|
|
3983
3273
|
schema: ({
|
|
@@ -3988,21 +3278,13 @@ export declare const dbConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3988
3278
|
collection?: string | undefined;
|
|
3989
3279
|
default?: string | SerializedSQL | undefined;
|
|
3990
3280
|
multiline?: boolean | undefined;
|
|
3991
|
-
} & {
|
|
3281
|
+
} & ({
|
|
3992
3282
|
optional: boolean;
|
|
3993
3283
|
primaryKey: false;
|
|
3994
|
-
}
|
|
3995
|
-
unique: boolean;
|
|
3996
|
-
deprecated: boolean;
|
|
3997
|
-
name?: string | undefined;
|
|
3998
|
-
label?: string | undefined;
|
|
3999
|
-
collection?: string | undefined;
|
|
4000
|
-
default?: string | SerializedSQL | undefined;
|
|
4001
|
-
multiline?: boolean | undefined;
|
|
4002
|
-
} & {
|
|
3284
|
+
} | {
|
|
4003
3285
|
primaryKey: true;
|
|
4004
3286
|
optional?: false | undefined;
|
|
4005
|
-
} & any
|
|
3287
|
+
})) & any;
|
|
4006
3288
|
} | {
|
|
4007
3289
|
type: "date";
|
|
4008
3290
|
schema: {
|