drizzle-kit 0.20.18 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/bin.cjs +104694 -56732
  2. package/index.d.mts +232 -68
  3. package/index.d.ts +232 -68
  4. package/index.js +1 -0
  5. package/package.json +44 -72
  6. package/payload.d.mts +1052 -18
  7. package/payload.d.ts +1052 -18
  8. package/payload.js +22129 -34534
  9. package/payload.mjs +22174 -34562
  10. package/utils-studio.js +4580 -805
  11. package/utils-studio.mjs +4556 -784
  12. package/utils.js +4410 -6940
  13. package/utils.mjs +4852 -7382
  14. package/@types/utils.d.ts +0 -12
  15. package/cli/commands/migrate.d.ts +0 -270
  16. package/cli/commands/mysqlIntrospect.d.ts +0 -119
  17. package/cli/commands/mysqlPushUtils.d.ts +0 -18
  18. package/cli/commands/mysqlUp.d.ts +0 -4
  19. package/cli/commands/pgConnect.d.ts +0 -5
  20. package/cli/commands/pgIntrospect.d.ts +0 -123
  21. package/cli/commands/pgPushUtils.d.ts +0 -14
  22. package/cli/commands/pgUp.d.ts +0 -4
  23. package/cli/commands/sqliteIntrospect.d.ts +0 -107
  24. package/cli/commands/sqlitePushUtils.d.ts +0 -21
  25. package/cli/commands/sqliteUtils.d.ts +0 -162
  26. package/cli/commands/upFolders.d.ts +0 -27
  27. package/cli/commands/utils.d.ts +0 -274
  28. package/cli/selector-ui.d.ts +0 -13
  29. package/cli/validations/common.d.ts +0 -13
  30. package/cli/validations/mysql.d.ts +0 -365
  31. package/cli/validations/outputs.d.ts +0 -40
  32. package/cli/validations/pg.d.ts +0 -438
  33. package/cli/views.d.ts +0 -61
  34. package/drivers/index.d.ts +0 -39
  35. package/global.d.ts +0 -4
  36. package/introspect-mysql.d.ts +0 -9
  37. package/introspect-pg.d.ts +0 -12
  38. package/introspect-sqlite.d.ts +0 -10
  39. package/jsonDiffer.d.ts +0 -76
  40. package/jsonStatements.d.ts +0 -349
  41. package/migrationPreparator.d.ts +0 -35
  42. package/schemaValidator.d.ts +0 -1313
  43. package/serializer/index.d.ts +0 -9
  44. package/serializer/mysqlImports.d.ts +0 -11
  45. package/serializer/mysqlSchema.d.ts +0 -3833
  46. package/serializer/mysqlSerializer.d.ts +0 -7
  47. package/serializer/pgImports.d.ts +0 -11
  48. package/serializer/pgSchema.d.ts +0 -4333
  49. package/serializer/pgSerializer.d.ts +0 -7
  50. package/serializer/schemaToDrizzle.d.ts +0 -7
  51. package/serializer/sqliteImports.d.ts +0 -9
  52. package/serializer/sqliteSchema.d.ts +0 -3227
  53. package/serializer/sqliteSerializer.d.ts +0 -6
  54. package/snapshotsDiffer.d.ts +0 -2660
  55. package/sqlgenerator.d.ts +0 -33
  56. package/utils/words.d.ts +0 -7
  57. package/utils-studio.d.mts +0 -5
  58. package/utils-studio.d.ts +0 -5
  59. package/utils.d.ts +0 -199
@@ -1,3227 +0,0 @@
1
- import { TypeOf } from "zod";
2
- declare const index: import("zod").ZodObject<{
3
- name: import("zod").ZodString;
4
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
5
- where: import("zod").ZodOptional<import("zod").ZodString>;
6
- isUnique: import("zod").ZodBoolean;
7
- }, "strict", import("zod").ZodTypeAny, {
8
- where?: string | undefined;
9
- name: string;
10
- columns: string[];
11
- isUnique: boolean;
12
- }, {
13
- where?: string | undefined;
14
- name: string;
15
- columns: string[];
16
- isUnique: boolean;
17
- }>;
18
- declare const fk: import("zod").ZodObject<{
19
- name: import("zod").ZodString;
20
- tableFrom: import("zod").ZodString;
21
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
22
- tableTo: import("zod").ZodString;
23
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
24
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
25
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
26
- }, "strict", import("zod").ZodTypeAny, {
27
- onUpdate?: string | undefined;
28
- onDelete?: string | undefined;
29
- name: string;
30
- tableFrom: string;
31
- columnsFrom: string[];
32
- tableTo: string;
33
- columnsTo: string[];
34
- }, {
35
- onUpdate?: string | undefined;
36
- onDelete?: string | undefined;
37
- name: string;
38
- tableFrom: string;
39
- columnsFrom: string[];
40
- tableTo: string;
41
- columnsTo: string[];
42
- }>;
43
- declare const compositePK: import("zod").ZodObject<{
44
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
45
- name: import("zod").ZodOptional<import("zod").ZodString>;
46
- }, "strict", import("zod").ZodTypeAny, {
47
- name?: string | undefined;
48
- columns: string[];
49
- }, {
50
- name?: string | undefined;
51
- columns: string[];
52
- }>;
53
- declare const column: import("zod").ZodObject<{
54
- name: import("zod").ZodString;
55
- type: import("zod").ZodString;
56
- primaryKey: import("zod").ZodBoolean;
57
- notNull: import("zod").ZodBoolean;
58
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
59
- default: import("zod").ZodOptional<import("zod").ZodAny>;
60
- }, "strict", import("zod").ZodTypeAny, {
61
- default?: any;
62
- autoincrement?: boolean | undefined;
63
- name: string;
64
- type: string;
65
- primaryKey: boolean;
66
- notNull: boolean;
67
- }, {
68
- default?: any;
69
- autoincrement?: boolean | undefined;
70
- name: string;
71
- type: string;
72
- primaryKey: boolean;
73
- notNull: boolean;
74
- }>;
75
- declare const uniqueConstraint: import("zod").ZodObject<{
76
- name: import("zod").ZodString;
77
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
78
- }, "strict", import("zod").ZodTypeAny, {
79
- name: string;
80
- columns: string[];
81
- }, {
82
- name: string;
83
- columns: string[];
84
- }>;
85
- declare const table: import("zod").ZodObject<{
86
- name: import("zod").ZodString;
87
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
88
- name: import("zod").ZodString;
89
- type: import("zod").ZodString;
90
- primaryKey: import("zod").ZodBoolean;
91
- notNull: import("zod").ZodBoolean;
92
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
93
- default: import("zod").ZodOptional<import("zod").ZodAny>;
94
- }, "strict", import("zod").ZodTypeAny, {
95
- default?: any;
96
- autoincrement?: boolean | undefined;
97
- name: string;
98
- type: string;
99
- primaryKey: boolean;
100
- notNull: boolean;
101
- }, {
102
- default?: any;
103
- autoincrement?: boolean | undefined;
104
- name: string;
105
- type: string;
106
- primaryKey: boolean;
107
- notNull: boolean;
108
- }>>;
109
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
110
- name: import("zod").ZodString;
111
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
112
- where: import("zod").ZodOptional<import("zod").ZodString>;
113
- isUnique: import("zod").ZodBoolean;
114
- }, "strict", import("zod").ZodTypeAny, {
115
- where?: string | undefined;
116
- name: string;
117
- columns: string[];
118
- isUnique: boolean;
119
- }, {
120
- where?: string | undefined;
121
- name: string;
122
- columns: string[];
123
- isUnique: boolean;
124
- }>>;
125
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
126
- name: import("zod").ZodString;
127
- tableFrom: import("zod").ZodString;
128
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
129
- tableTo: import("zod").ZodString;
130
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
131
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
132
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
133
- }, "strict", import("zod").ZodTypeAny, {
134
- onUpdate?: string | undefined;
135
- onDelete?: string | undefined;
136
- name: string;
137
- tableFrom: string;
138
- columnsFrom: string[];
139
- tableTo: string;
140
- columnsTo: string[];
141
- }, {
142
- onUpdate?: string | undefined;
143
- onDelete?: string | undefined;
144
- name: string;
145
- tableFrom: string;
146
- columnsFrom: string[];
147
- tableTo: string;
148
- columnsTo: string[];
149
- }>>;
150
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
151
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
152
- name: import("zod").ZodOptional<import("zod").ZodString>;
153
- }, "strict", import("zod").ZodTypeAny, {
154
- name?: string | undefined;
155
- columns: string[];
156
- }, {
157
- name?: string | undefined;
158
- columns: string[];
159
- }>>;
160
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
161
- name: import("zod").ZodString;
162
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
163
- }, "strict", import("zod").ZodTypeAny, {
164
- name: string;
165
- columns: string[];
166
- }, {
167
- name: string;
168
- columns: string[];
169
- }>>>;
170
- }, "strict", import("zod").ZodTypeAny, {
171
- name: string;
172
- columns: Record<string, {
173
- default?: any;
174
- autoincrement?: boolean | undefined;
175
- name: string;
176
- type: string;
177
- primaryKey: boolean;
178
- notNull: boolean;
179
- }>;
180
- indexes: Record<string, {
181
- where?: string | undefined;
182
- name: string;
183
- columns: string[];
184
- isUnique: boolean;
185
- }>;
186
- foreignKeys: Record<string, {
187
- onUpdate?: string | undefined;
188
- onDelete?: string | undefined;
189
- name: string;
190
- tableFrom: string;
191
- columnsFrom: string[];
192
- tableTo: string;
193
- columnsTo: string[];
194
- }>;
195
- compositePrimaryKeys: Record<string, {
196
- name?: string | undefined;
197
- columns: string[];
198
- }>;
199
- uniqueConstraints: Record<string, {
200
- name: string;
201
- columns: string[];
202
- }>;
203
- }, {
204
- uniqueConstraints?: Record<string, {
205
- name: string;
206
- columns: string[];
207
- }> | undefined;
208
- name: string;
209
- columns: Record<string, {
210
- default?: any;
211
- autoincrement?: boolean | undefined;
212
- name: string;
213
- type: string;
214
- primaryKey: boolean;
215
- notNull: boolean;
216
- }>;
217
- indexes: Record<string, {
218
- where?: string | undefined;
219
- name: string;
220
- columns: string[];
221
- isUnique: boolean;
222
- }>;
223
- foreignKeys: Record<string, {
224
- onUpdate?: string | undefined;
225
- onDelete?: string | undefined;
226
- name: string;
227
- tableFrom: string;
228
- columnsFrom: string[];
229
- tableTo: string;
230
- columnsTo: string[];
231
- }>;
232
- compositePrimaryKeys: Record<string, {
233
- name?: string | undefined;
234
- columns: string[];
235
- }>;
236
- }>;
237
- declare const dialect: import("zod").ZodEnum<["sqlite"]>;
238
- export declare const schemaInternalV3: import("zod").ZodObject<{
239
- version: import("zod").ZodLiteral<"3">;
240
- dialect: import("zod").ZodEnum<["sqlite"]>;
241
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
242
- name: import("zod").ZodString;
243
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
244
- name: import("zod").ZodString;
245
- type: import("zod").ZodString;
246
- primaryKey: import("zod").ZodBoolean;
247
- notNull: import("zod").ZodBoolean;
248
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
249
- default: import("zod").ZodOptional<import("zod").ZodAny>;
250
- }, "strict", import("zod").ZodTypeAny, {
251
- default?: any;
252
- autoincrement?: boolean | undefined;
253
- name: string;
254
- type: string;
255
- primaryKey: boolean;
256
- notNull: boolean;
257
- }, {
258
- default?: any;
259
- autoincrement?: boolean | undefined;
260
- name: string;
261
- type: string;
262
- primaryKey: boolean;
263
- notNull: boolean;
264
- }>>;
265
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
266
- name: import("zod").ZodString;
267
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
268
- where: import("zod").ZodOptional<import("zod").ZodString>;
269
- isUnique: import("zod").ZodBoolean;
270
- }, "strict", import("zod").ZodTypeAny, {
271
- where?: string | undefined;
272
- name: string;
273
- columns: string[];
274
- isUnique: boolean;
275
- }, {
276
- where?: string | undefined;
277
- name: string;
278
- columns: string[];
279
- isUnique: boolean;
280
- }>>;
281
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
282
- name: import("zod").ZodString;
283
- tableFrom: import("zod").ZodString;
284
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
285
- tableTo: import("zod").ZodString;
286
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
287
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
288
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
289
- }, "strict", import("zod").ZodTypeAny, {
290
- onUpdate?: string | undefined;
291
- onDelete?: string | undefined;
292
- name: string;
293
- tableFrom: string;
294
- columnsFrom: string[];
295
- tableTo: string;
296
- columnsTo: string[];
297
- }, {
298
- onUpdate?: string | undefined;
299
- onDelete?: string | undefined;
300
- name: string;
301
- tableFrom: string;
302
- columnsFrom: string[];
303
- tableTo: string;
304
- columnsTo: string[];
305
- }>>;
306
- }, "strict", import("zod").ZodTypeAny, {
307
- name: string;
308
- columns: Record<string, {
309
- default?: any;
310
- autoincrement?: boolean | undefined;
311
- name: string;
312
- type: string;
313
- primaryKey: boolean;
314
- notNull: boolean;
315
- }>;
316
- indexes: Record<string, {
317
- where?: string | undefined;
318
- name: string;
319
- columns: string[];
320
- isUnique: boolean;
321
- }>;
322
- foreignKeys: Record<string, {
323
- onUpdate?: string | undefined;
324
- onDelete?: string | undefined;
325
- name: string;
326
- tableFrom: string;
327
- columnsFrom: string[];
328
- tableTo: string;
329
- columnsTo: string[];
330
- }>;
331
- }, {
332
- name: string;
333
- columns: Record<string, {
334
- default?: any;
335
- autoincrement?: boolean | undefined;
336
- name: string;
337
- type: string;
338
- primaryKey: boolean;
339
- notNull: boolean;
340
- }>;
341
- indexes: Record<string, {
342
- where?: string | undefined;
343
- name: string;
344
- columns: string[];
345
- isUnique: boolean;
346
- }>;
347
- foreignKeys: Record<string, {
348
- onUpdate?: string | undefined;
349
- onDelete?: string | undefined;
350
- name: string;
351
- tableFrom: string;
352
- columnsFrom: string[];
353
- tableTo: string;
354
- columnsTo: string[];
355
- }>;
356
- }>>;
357
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
358
- }, "strict", import("zod").ZodTypeAny, {
359
- version: "3";
360
- dialect: "sqlite";
361
- tables: Record<string, {
362
- name: string;
363
- columns: Record<string, {
364
- default?: any;
365
- autoincrement?: boolean | undefined;
366
- name: string;
367
- type: string;
368
- primaryKey: boolean;
369
- notNull: boolean;
370
- }>;
371
- indexes: Record<string, {
372
- where?: string | undefined;
373
- name: string;
374
- columns: string[];
375
- isUnique: boolean;
376
- }>;
377
- foreignKeys: Record<string, {
378
- onUpdate?: string | undefined;
379
- onDelete?: string | undefined;
380
- name: string;
381
- tableFrom: string;
382
- columnsFrom: string[];
383
- tableTo: string;
384
- columnsTo: string[];
385
- }>;
386
- }>;
387
- enums: {};
388
- }, {
389
- version: "3";
390
- dialect: "sqlite";
391
- tables: Record<string, {
392
- name: string;
393
- columns: Record<string, {
394
- default?: any;
395
- autoincrement?: boolean | undefined;
396
- name: string;
397
- type: string;
398
- primaryKey: boolean;
399
- notNull: boolean;
400
- }>;
401
- indexes: Record<string, {
402
- where?: string | undefined;
403
- name: string;
404
- columns: string[];
405
- isUnique: boolean;
406
- }>;
407
- foreignKeys: Record<string, {
408
- onUpdate?: string | undefined;
409
- onDelete?: string | undefined;
410
- name: string;
411
- tableFrom: string;
412
- columnsFrom: string[];
413
- tableTo: string;
414
- columnsTo: string[];
415
- }>;
416
- }>;
417
- enums: {};
418
- }>;
419
- export declare const schemaInternalV4: import("zod").ZodObject<{
420
- version: import("zod").ZodLiteral<"4">;
421
- dialect: import("zod").ZodEnum<["sqlite"]>;
422
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
423
- name: import("zod").ZodString;
424
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
425
- name: import("zod").ZodString;
426
- type: import("zod").ZodString;
427
- primaryKey: import("zod").ZodBoolean;
428
- notNull: import("zod").ZodBoolean;
429
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
430
- default: import("zod").ZodOptional<import("zod").ZodAny>;
431
- }, "strict", import("zod").ZodTypeAny, {
432
- default?: any;
433
- autoincrement?: boolean | undefined;
434
- name: string;
435
- type: string;
436
- primaryKey: boolean;
437
- notNull: boolean;
438
- }, {
439
- default?: any;
440
- autoincrement?: boolean | undefined;
441
- name: string;
442
- type: string;
443
- primaryKey: boolean;
444
- notNull: boolean;
445
- }>>;
446
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
447
- name: import("zod").ZodString;
448
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
449
- where: import("zod").ZodOptional<import("zod").ZodString>;
450
- isUnique: import("zod").ZodBoolean;
451
- }, "strict", import("zod").ZodTypeAny, {
452
- where?: string | undefined;
453
- name: string;
454
- columns: string[];
455
- isUnique: boolean;
456
- }, {
457
- where?: string | undefined;
458
- name: string;
459
- columns: string[];
460
- isUnique: boolean;
461
- }>>;
462
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
463
- name: import("zod").ZodString;
464
- tableFrom: import("zod").ZodString;
465
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
466
- tableTo: import("zod").ZodString;
467
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
468
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
469
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
470
- }, "strict", import("zod").ZodTypeAny, {
471
- onUpdate?: string | undefined;
472
- onDelete?: string | undefined;
473
- name: string;
474
- tableFrom: string;
475
- columnsFrom: string[];
476
- tableTo: string;
477
- columnsTo: string[];
478
- }, {
479
- onUpdate?: string | undefined;
480
- onDelete?: string | undefined;
481
- name: string;
482
- tableFrom: string;
483
- columnsFrom: string[];
484
- tableTo: string;
485
- columnsTo: string[];
486
- }>>;
487
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
488
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
489
- name: import("zod").ZodOptional<import("zod").ZodString>;
490
- }, "strict", import("zod").ZodTypeAny, {
491
- name?: string | undefined;
492
- columns: string[];
493
- }, {
494
- name?: string | undefined;
495
- columns: string[];
496
- }>>;
497
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
498
- name: import("zod").ZodString;
499
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
500
- }, "strict", import("zod").ZodTypeAny, {
501
- name: string;
502
- columns: string[];
503
- }, {
504
- name: string;
505
- columns: string[];
506
- }>>>;
507
- }, "strict", import("zod").ZodTypeAny, {
508
- name: string;
509
- columns: Record<string, {
510
- default?: any;
511
- autoincrement?: boolean | undefined;
512
- name: string;
513
- type: string;
514
- primaryKey: boolean;
515
- notNull: boolean;
516
- }>;
517
- indexes: Record<string, {
518
- where?: string | undefined;
519
- name: string;
520
- columns: string[];
521
- isUnique: boolean;
522
- }>;
523
- foreignKeys: Record<string, {
524
- onUpdate?: string | undefined;
525
- onDelete?: string | undefined;
526
- name: string;
527
- tableFrom: string;
528
- columnsFrom: string[];
529
- tableTo: string;
530
- columnsTo: string[];
531
- }>;
532
- compositePrimaryKeys: Record<string, {
533
- name?: string | undefined;
534
- columns: string[];
535
- }>;
536
- uniqueConstraints: Record<string, {
537
- name: string;
538
- columns: string[];
539
- }>;
540
- }, {
541
- uniqueConstraints?: Record<string, {
542
- name: string;
543
- columns: string[];
544
- }> | undefined;
545
- name: string;
546
- columns: Record<string, {
547
- default?: any;
548
- autoincrement?: boolean | undefined;
549
- name: string;
550
- type: string;
551
- primaryKey: boolean;
552
- notNull: boolean;
553
- }>;
554
- indexes: Record<string, {
555
- where?: string | undefined;
556
- name: string;
557
- columns: string[];
558
- isUnique: boolean;
559
- }>;
560
- foreignKeys: Record<string, {
561
- onUpdate?: string | undefined;
562
- onDelete?: string | undefined;
563
- name: string;
564
- tableFrom: string;
565
- columnsFrom: string[];
566
- tableTo: string;
567
- columnsTo: string[];
568
- }>;
569
- compositePrimaryKeys: Record<string, {
570
- name?: string | undefined;
571
- columns: string[];
572
- }>;
573
- }>>;
574
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
575
- }, "strict", import("zod").ZodTypeAny, {
576
- version: "4";
577
- dialect: "sqlite";
578
- tables: Record<string, {
579
- name: string;
580
- columns: Record<string, {
581
- default?: any;
582
- autoincrement?: boolean | undefined;
583
- name: string;
584
- type: string;
585
- primaryKey: boolean;
586
- notNull: boolean;
587
- }>;
588
- indexes: Record<string, {
589
- where?: string | undefined;
590
- name: string;
591
- columns: string[];
592
- isUnique: boolean;
593
- }>;
594
- foreignKeys: Record<string, {
595
- onUpdate?: string | undefined;
596
- onDelete?: string | undefined;
597
- name: string;
598
- tableFrom: string;
599
- columnsFrom: string[];
600
- tableTo: string;
601
- columnsTo: string[];
602
- }>;
603
- compositePrimaryKeys: Record<string, {
604
- name?: string | undefined;
605
- columns: string[];
606
- }>;
607
- uniqueConstraints: Record<string, {
608
- name: string;
609
- columns: string[];
610
- }>;
611
- }>;
612
- enums: {};
613
- }, {
614
- version: "4";
615
- dialect: "sqlite";
616
- tables: Record<string, {
617
- uniqueConstraints?: Record<string, {
618
- name: string;
619
- columns: string[];
620
- }> | undefined;
621
- name: string;
622
- columns: Record<string, {
623
- default?: any;
624
- autoincrement?: boolean | undefined;
625
- name: string;
626
- type: string;
627
- primaryKey: boolean;
628
- notNull: boolean;
629
- }>;
630
- indexes: Record<string, {
631
- where?: string | undefined;
632
- name: string;
633
- columns: string[];
634
- isUnique: boolean;
635
- }>;
636
- foreignKeys: Record<string, {
637
- onUpdate?: string | undefined;
638
- onDelete?: string | undefined;
639
- name: string;
640
- tableFrom: string;
641
- columnsFrom: string[];
642
- tableTo: string;
643
- columnsTo: string[];
644
- }>;
645
- compositePrimaryKeys: Record<string, {
646
- name?: string | undefined;
647
- columns: string[];
648
- }>;
649
- }>;
650
- enums: {};
651
- }>;
652
- export declare const schemaInternal: import("zod").ZodObject<{
653
- version: import("zod").ZodLiteral<"5">;
654
- dialect: import("zod").ZodEnum<["sqlite"]>;
655
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
656
- name: import("zod").ZodString;
657
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
658
- name: import("zod").ZodString;
659
- type: import("zod").ZodString;
660
- primaryKey: import("zod").ZodBoolean;
661
- notNull: import("zod").ZodBoolean;
662
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
663
- default: import("zod").ZodOptional<import("zod").ZodAny>;
664
- }, "strict", import("zod").ZodTypeAny, {
665
- default?: any;
666
- autoincrement?: boolean | undefined;
667
- name: string;
668
- type: string;
669
- primaryKey: boolean;
670
- notNull: boolean;
671
- }, {
672
- default?: any;
673
- autoincrement?: boolean | undefined;
674
- name: string;
675
- type: string;
676
- primaryKey: boolean;
677
- notNull: boolean;
678
- }>>;
679
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
680
- name: import("zod").ZodString;
681
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
682
- where: import("zod").ZodOptional<import("zod").ZodString>;
683
- isUnique: import("zod").ZodBoolean;
684
- }, "strict", import("zod").ZodTypeAny, {
685
- where?: string | undefined;
686
- name: string;
687
- columns: string[];
688
- isUnique: boolean;
689
- }, {
690
- where?: string | undefined;
691
- name: string;
692
- columns: string[];
693
- isUnique: boolean;
694
- }>>;
695
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
696
- name: import("zod").ZodString;
697
- tableFrom: import("zod").ZodString;
698
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
699
- tableTo: import("zod").ZodString;
700
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
701
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
702
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
703
- }, "strict", import("zod").ZodTypeAny, {
704
- onUpdate?: string | undefined;
705
- onDelete?: string | undefined;
706
- name: string;
707
- tableFrom: string;
708
- columnsFrom: string[];
709
- tableTo: string;
710
- columnsTo: string[];
711
- }, {
712
- onUpdate?: string | undefined;
713
- onDelete?: string | undefined;
714
- name: string;
715
- tableFrom: string;
716
- columnsFrom: string[];
717
- tableTo: string;
718
- columnsTo: string[];
719
- }>>;
720
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
721
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
722
- name: import("zod").ZodOptional<import("zod").ZodString>;
723
- }, "strict", import("zod").ZodTypeAny, {
724
- name?: string | undefined;
725
- columns: string[];
726
- }, {
727
- name?: string | undefined;
728
- columns: string[];
729
- }>>;
730
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
731
- name: import("zod").ZodString;
732
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
733
- }, "strict", import("zod").ZodTypeAny, {
734
- name: string;
735
- columns: string[];
736
- }, {
737
- name: string;
738
- columns: string[];
739
- }>>>;
740
- }, "strict", import("zod").ZodTypeAny, {
741
- name: string;
742
- columns: Record<string, {
743
- default?: any;
744
- autoincrement?: boolean | undefined;
745
- name: string;
746
- type: string;
747
- primaryKey: boolean;
748
- notNull: boolean;
749
- }>;
750
- indexes: Record<string, {
751
- where?: string | undefined;
752
- name: string;
753
- columns: string[];
754
- isUnique: boolean;
755
- }>;
756
- foreignKeys: Record<string, {
757
- onUpdate?: string | undefined;
758
- onDelete?: string | undefined;
759
- name: string;
760
- tableFrom: string;
761
- columnsFrom: string[];
762
- tableTo: string;
763
- columnsTo: string[];
764
- }>;
765
- compositePrimaryKeys: Record<string, {
766
- name?: string | undefined;
767
- columns: string[];
768
- }>;
769
- uniqueConstraints: Record<string, {
770
- name: string;
771
- columns: string[];
772
- }>;
773
- }, {
774
- uniqueConstraints?: Record<string, {
775
- name: string;
776
- columns: string[];
777
- }> | undefined;
778
- name: string;
779
- columns: Record<string, {
780
- default?: any;
781
- autoincrement?: boolean | undefined;
782
- name: string;
783
- type: string;
784
- primaryKey: boolean;
785
- notNull: boolean;
786
- }>;
787
- indexes: Record<string, {
788
- where?: string | undefined;
789
- name: string;
790
- columns: string[];
791
- isUnique: boolean;
792
- }>;
793
- foreignKeys: Record<string, {
794
- onUpdate?: string | undefined;
795
- onDelete?: string | undefined;
796
- name: string;
797
- tableFrom: string;
798
- columnsFrom: string[];
799
- tableTo: string;
800
- columnsTo: string[];
801
- }>;
802
- compositePrimaryKeys: Record<string, {
803
- name?: string | undefined;
804
- columns: string[];
805
- }>;
806
- }>>;
807
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
808
- _meta: import("zod").ZodObject<{
809
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
810
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
811
- }, "strip", import("zod").ZodTypeAny, {
812
- columns: Record<string, string>;
813
- tables: Record<string, string>;
814
- }, {
815
- columns: Record<string, string>;
816
- tables: Record<string, string>;
817
- }>;
818
- }, "strict", import("zod").ZodTypeAny, {
819
- version: "5";
820
- dialect: "sqlite";
821
- tables: Record<string, {
822
- name: string;
823
- columns: Record<string, {
824
- default?: any;
825
- autoincrement?: boolean | undefined;
826
- name: string;
827
- type: string;
828
- primaryKey: boolean;
829
- notNull: boolean;
830
- }>;
831
- indexes: Record<string, {
832
- where?: string | undefined;
833
- name: string;
834
- columns: string[];
835
- isUnique: boolean;
836
- }>;
837
- foreignKeys: Record<string, {
838
- onUpdate?: string | undefined;
839
- onDelete?: string | undefined;
840
- name: string;
841
- tableFrom: string;
842
- columnsFrom: string[];
843
- tableTo: string;
844
- columnsTo: string[];
845
- }>;
846
- compositePrimaryKeys: Record<string, {
847
- name?: string | undefined;
848
- columns: string[];
849
- }>;
850
- uniqueConstraints: Record<string, {
851
- name: string;
852
- columns: string[];
853
- }>;
854
- }>;
855
- _meta: {
856
- columns: Record<string, string>;
857
- tables: Record<string, string>;
858
- };
859
- enums: {};
860
- }, {
861
- version: "5";
862
- dialect: "sqlite";
863
- tables: Record<string, {
864
- uniqueConstraints?: Record<string, {
865
- name: string;
866
- columns: string[];
867
- }> | undefined;
868
- name: string;
869
- columns: Record<string, {
870
- default?: any;
871
- autoincrement?: boolean | undefined;
872
- name: string;
873
- type: string;
874
- primaryKey: boolean;
875
- notNull: boolean;
876
- }>;
877
- indexes: Record<string, {
878
- where?: string | undefined;
879
- name: string;
880
- columns: string[];
881
- isUnique: boolean;
882
- }>;
883
- foreignKeys: Record<string, {
884
- onUpdate?: string | undefined;
885
- onDelete?: string | undefined;
886
- name: string;
887
- tableFrom: string;
888
- columnsFrom: string[];
889
- tableTo: string;
890
- columnsTo: string[];
891
- }>;
892
- compositePrimaryKeys: Record<string, {
893
- name?: string | undefined;
894
- columns: string[];
895
- }>;
896
- }>;
897
- _meta: {
898
- columns: Record<string, string>;
899
- tables: Record<string, string>;
900
- };
901
- enums: {};
902
- }>;
903
- export declare const schemaV3: import("zod").ZodObject<import("zod").extendShape<{
904
- version: import("zod").ZodLiteral<"3">;
905
- dialect: import("zod").ZodEnum<["sqlite"]>;
906
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
907
- name: import("zod").ZodString;
908
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
909
- name: import("zod").ZodString;
910
- type: import("zod").ZodString;
911
- primaryKey: import("zod").ZodBoolean;
912
- notNull: import("zod").ZodBoolean;
913
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
914
- default: import("zod").ZodOptional<import("zod").ZodAny>;
915
- }, "strict", import("zod").ZodTypeAny, {
916
- default?: any;
917
- autoincrement?: boolean | undefined;
918
- name: string;
919
- type: string;
920
- primaryKey: boolean;
921
- notNull: boolean;
922
- }, {
923
- default?: any;
924
- autoincrement?: boolean | undefined;
925
- name: string;
926
- type: string;
927
- primaryKey: boolean;
928
- notNull: boolean;
929
- }>>;
930
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
931
- name: import("zod").ZodString;
932
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
933
- where: import("zod").ZodOptional<import("zod").ZodString>;
934
- isUnique: import("zod").ZodBoolean;
935
- }, "strict", import("zod").ZodTypeAny, {
936
- where?: string | undefined;
937
- name: string;
938
- columns: string[];
939
- isUnique: boolean;
940
- }, {
941
- where?: string | undefined;
942
- name: string;
943
- columns: string[];
944
- isUnique: boolean;
945
- }>>;
946
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
947
- name: import("zod").ZodString;
948
- tableFrom: import("zod").ZodString;
949
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
950
- tableTo: import("zod").ZodString;
951
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
952
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
953
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
954
- }, "strict", import("zod").ZodTypeAny, {
955
- onUpdate?: string | undefined;
956
- onDelete?: string | undefined;
957
- name: string;
958
- tableFrom: string;
959
- columnsFrom: string[];
960
- tableTo: string;
961
- columnsTo: string[];
962
- }, {
963
- onUpdate?: string | undefined;
964
- onDelete?: string | undefined;
965
- name: string;
966
- tableFrom: string;
967
- columnsFrom: string[];
968
- tableTo: string;
969
- columnsTo: string[];
970
- }>>;
971
- }, "strict", import("zod").ZodTypeAny, {
972
- name: string;
973
- columns: Record<string, {
974
- default?: any;
975
- autoincrement?: boolean | undefined;
976
- name: string;
977
- type: string;
978
- primaryKey: boolean;
979
- notNull: boolean;
980
- }>;
981
- indexes: Record<string, {
982
- where?: string | undefined;
983
- name: string;
984
- columns: string[];
985
- isUnique: boolean;
986
- }>;
987
- foreignKeys: Record<string, {
988
- onUpdate?: string | undefined;
989
- onDelete?: string | undefined;
990
- name: string;
991
- tableFrom: string;
992
- columnsFrom: string[];
993
- tableTo: string;
994
- columnsTo: string[];
995
- }>;
996
- }, {
997
- name: string;
998
- columns: Record<string, {
999
- default?: any;
1000
- autoincrement?: boolean | undefined;
1001
- name: string;
1002
- type: string;
1003
- primaryKey: boolean;
1004
- notNull: boolean;
1005
- }>;
1006
- indexes: Record<string, {
1007
- where?: string | undefined;
1008
- name: string;
1009
- columns: string[];
1010
- isUnique: boolean;
1011
- }>;
1012
- foreignKeys: Record<string, {
1013
- onUpdate?: string | undefined;
1014
- onDelete?: string | undefined;
1015
- name: string;
1016
- tableFrom: string;
1017
- columnsFrom: string[];
1018
- tableTo: string;
1019
- columnsTo: string[];
1020
- }>;
1021
- }>>;
1022
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
1023
- }, {
1024
- id: import("zod").ZodString;
1025
- prevId: import("zod").ZodString;
1026
- }>, "strict", import("zod").ZodTypeAny, {
1027
- id: string;
1028
- prevId: string;
1029
- version: "3";
1030
- dialect: "sqlite";
1031
- tables: Record<string, {
1032
- name: string;
1033
- columns: Record<string, {
1034
- default?: any;
1035
- autoincrement?: boolean | undefined;
1036
- name: string;
1037
- type: string;
1038
- primaryKey: boolean;
1039
- notNull: boolean;
1040
- }>;
1041
- indexes: Record<string, {
1042
- where?: string | undefined;
1043
- name: string;
1044
- columns: string[];
1045
- isUnique: boolean;
1046
- }>;
1047
- foreignKeys: Record<string, {
1048
- onUpdate?: string | undefined;
1049
- onDelete?: string | undefined;
1050
- name: string;
1051
- tableFrom: string;
1052
- columnsFrom: string[];
1053
- tableTo: string;
1054
- columnsTo: string[];
1055
- }>;
1056
- }>;
1057
- enums: {};
1058
- }, {
1059
- id: string;
1060
- prevId: string;
1061
- version: "3";
1062
- dialect: "sqlite";
1063
- tables: Record<string, {
1064
- name: string;
1065
- columns: Record<string, {
1066
- default?: any;
1067
- autoincrement?: boolean | undefined;
1068
- name: string;
1069
- type: string;
1070
- primaryKey: boolean;
1071
- notNull: boolean;
1072
- }>;
1073
- indexes: Record<string, {
1074
- where?: string | undefined;
1075
- name: string;
1076
- columns: string[];
1077
- isUnique: boolean;
1078
- }>;
1079
- foreignKeys: Record<string, {
1080
- onUpdate?: string | undefined;
1081
- onDelete?: string | undefined;
1082
- name: string;
1083
- tableFrom: string;
1084
- columnsFrom: string[];
1085
- tableTo: string;
1086
- columnsTo: string[];
1087
- }>;
1088
- }>;
1089
- enums: {};
1090
- }>;
1091
- export declare const schemaV4: import("zod").ZodObject<import("zod").extendShape<{
1092
- version: import("zod").ZodLiteral<"4">;
1093
- dialect: import("zod").ZodEnum<["sqlite"]>;
1094
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1095
- name: import("zod").ZodString;
1096
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1097
- name: import("zod").ZodString;
1098
- type: import("zod").ZodString;
1099
- primaryKey: import("zod").ZodBoolean;
1100
- notNull: import("zod").ZodBoolean;
1101
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
1102
- default: import("zod").ZodOptional<import("zod").ZodAny>;
1103
- }, "strict", import("zod").ZodTypeAny, {
1104
- default?: any;
1105
- autoincrement?: boolean | undefined;
1106
- name: string;
1107
- type: string;
1108
- primaryKey: boolean;
1109
- notNull: boolean;
1110
- }, {
1111
- default?: any;
1112
- autoincrement?: boolean | undefined;
1113
- name: string;
1114
- type: string;
1115
- primaryKey: boolean;
1116
- notNull: boolean;
1117
- }>>;
1118
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1119
- name: import("zod").ZodString;
1120
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1121
- where: import("zod").ZodOptional<import("zod").ZodString>;
1122
- isUnique: import("zod").ZodBoolean;
1123
- }, "strict", import("zod").ZodTypeAny, {
1124
- where?: string | undefined;
1125
- name: string;
1126
- columns: string[];
1127
- isUnique: boolean;
1128
- }, {
1129
- where?: string | undefined;
1130
- name: string;
1131
- columns: string[];
1132
- isUnique: boolean;
1133
- }>>;
1134
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1135
- name: import("zod").ZodString;
1136
- tableFrom: import("zod").ZodString;
1137
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
1138
- tableTo: import("zod").ZodString;
1139
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
1140
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
1141
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
1142
- }, "strict", import("zod").ZodTypeAny, {
1143
- onUpdate?: string | undefined;
1144
- onDelete?: string | undefined;
1145
- name: string;
1146
- tableFrom: string;
1147
- columnsFrom: string[];
1148
- tableTo: string;
1149
- columnsTo: string[];
1150
- }, {
1151
- onUpdate?: string | undefined;
1152
- onDelete?: string | undefined;
1153
- name: string;
1154
- tableFrom: string;
1155
- columnsFrom: string[];
1156
- tableTo: string;
1157
- columnsTo: string[];
1158
- }>>;
1159
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1160
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1161
- name: import("zod").ZodOptional<import("zod").ZodString>;
1162
- }, "strict", import("zod").ZodTypeAny, {
1163
- name?: string | undefined;
1164
- columns: string[];
1165
- }, {
1166
- name?: string | undefined;
1167
- columns: string[];
1168
- }>>;
1169
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1170
- name: import("zod").ZodString;
1171
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1172
- }, "strict", import("zod").ZodTypeAny, {
1173
- name: string;
1174
- columns: string[];
1175
- }, {
1176
- name: string;
1177
- columns: string[];
1178
- }>>>;
1179
- }, "strict", import("zod").ZodTypeAny, {
1180
- name: string;
1181
- columns: Record<string, {
1182
- default?: any;
1183
- autoincrement?: boolean | undefined;
1184
- name: string;
1185
- type: string;
1186
- primaryKey: boolean;
1187
- notNull: boolean;
1188
- }>;
1189
- indexes: Record<string, {
1190
- where?: string | undefined;
1191
- name: string;
1192
- columns: string[];
1193
- isUnique: boolean;
1194
- }>;
1195
- foreignKeys: Record<string, {
1196
- onUpdate?: string | undefined;
1197
- onDelete?: string | undefined;
1198
- name: string;
1199
- tableFrom: string;
1200
- columnsFrom: string[];
1201
- tableTo: string;
1202
- columnsTo: string[];
1203
- }>;
1204
- compositePrimaryKeys: Record<string, {
1205
- name?: string | undefined;
1206
- columns: string[];
1207
- }>;
1208
- uniqueConstraints: Record<string, {
1209
- name: string;
1210
- columns: string[];
1211
- }>;
1212
- }, {
1213
- uniqueConstraints?: Record<string, {
1214
- name: string;
1215
- columns: string[];
1216
- }> | undefined;
1217
- name: string;
1218
- columns: Record<string, {
1219
- default?: any;
1220
- autoincrement?: boolean | undefined;
1221
- name: string;
1222
- type: string;
1223
- primaryKey: boolean;
1224
- notNull: boolean;
1225
- }>;
1226
- indexes: Record<string, {
1227
- where?: string | undefined;
1228
- name: string;
1229
- columns: string[];
1230
- isUnique: boolean;
1231
- }>;
1232
- foreignKeys: Record<string, {
1233
- onUpdate?: string | undefined;
1234
- onDelete?: string | undefined;
1235
- name: string;
1236
- tableFrom: string;
1237
- columnsFrom: string[];
1238
- tableTo: string;
1239
- columnsTo: string[];
1240
- }>;
1241
- compositePrimaryKeys: Record<string, {
1242
- name?: string | undefined;
1243
- columns: string[];
1244
- }>;
1245
- }>>;
1246
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
1247
- }, {
1248
- id: import("zod").ZodString;
1249
- prevId: import("zod").ZodString;
1250
- }>, "strict", import("zod").ZodTypeAny, {
1251
- id: string;
1252
- prevId: string;
1253
- version: "4";
1254
- dialect: "sqlite";
1255
- tables: Record<string, {
1256
- name: string;
1257
- columns: Record<string, {
1258
- default?: any;
1259
- autoincrement?: boolean | undefined;
1260
- name: string;
1261
- type: string;
1262
- primaryKey: boolean;
1263
- notNull: boolean;
1264
- }>;
1265
- indexes: Record<string, {
1266
- where?: string | undefined;
1267
- name: string;
1268
- columns: string[];
1269
- isUnique: boolean;
1270
- }>;
1271
- foreignKeys: Record<string, {
1272
- onUpdate?: string | undefined;
1273
- onDelete?: string | undefined;
1274
- name: string;
1275
- tableFrom: string;
1276
- columnsFrom: string[];
1277
- tableTo: string;
1278
- columnsTo: string[];
1279
- }>;
1280
- compositePrimaryKeys: Record<string, {
1281
- name?: string | undefined;
1282
- columns: string[];
1283
- }>;
1284
- uniqueConstraints: Record<string, {
1285
- name: string;
1286
- columns: string[];
1287
- }>;
1288
- }>;
1289
- enums: {};
1290
- }, {
1291
- id: string;
1292
- prevId: string;
1293
- version: "4";
1294
- dialect: "sqlite";
1295
- tables: Record<string, {
1296
- uniqueConstraints?: Record<string, {
1297
- name: string;
1298
- columns: string[];
1299
- }> | undefined;
1300
- name: string;
1301
- columns: Record<string, {
1302
- default?: any;
1303
- autoincrement?: boolean | undefined;
1304
- name: string;
1305
- type: string;
1306
- primaryKey: boolean;
1307
- notNull: boolean;
1308
- }>;
1309
- indexes: Record<string, {
1310
- where?: string | undefined;
1311
- name: string;
1312
- columns: string[];
1313
- isUnique: boolean;
1314
- }>;
1315
- foreignKeys: Record<string, {
1316
- onUpdate?: string | undefined;
1317
- onDelete?: string | undefined;
1318
- name: string;
1319
- tableFrom: string;
1320
- columnsFrom: string[];
1321
- tableTo: string;
1322
- columnsTo: string[];
1323
- }>;
1324
- compositePrimaryKeys: Record<string, {
1325
- name?: string | undefined;
1326
- columns: string[];
1327
- }>;
1328
- }>;
1329
- enums: {};
1330
- }>;
1331
- export declare const schema: import("zod").ZodObject<import("zod").extendShape<{
1332
- version: import("zod").ZodLiteral<"5">;
1333
- dialect: import("zod").ZodEnum<["sqlite"]>;
1334
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1335
- name: import("zod").ZodString;
1336
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1337
- name: import("zod").ZodString;
1338
- type: import("zod").ZodString;
1339
- primaryKey: import("zod").ZodBoolean;
1340
- notNull: import("zod").ZodBoolean;
1341
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
1342
- default: import("zod").ZodOptional<import("zod").ZodAny>;
1343
- }, "strict", import("zod").ZodTypeAny, {
1344
- default?: any;
1345
- autoincrement?: boolean | undefined;
1346
- name: string;
1347
- type: string;
1348
- primaryKey: boolean;
1349
- notNull: boolean;
1350
- }, {
1351
- default?: any;
1352
- autoincrement?: boolean | undefined;
1353
- name: string;
1354
- type: string;
1355
- primaryKey: boolean;
1356
- notNull: boolean;
1357
- }>>;
1358
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1359
- name: import("zod").ZodString;
1360
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1361
- where: import("zod").ZodOptional<import("zod").ZodString>;
1362
- isUnique: import("zod").ZodBoolean;
1363
- }, "strict", import("zod").ZodTypeAny, {
1364
- where?: string | undefined;
1365
- name: string;
1366
- columns: string[];
1367
- isUnique: boolean;
1368
- }, {
1369
- where?: string | undefined;
1370
- name: string;
1371
- columns: string[];
1372
- isUnique: boolean;
1373
- }>>;
1374
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1375
- name: import("zod").ZodString;
1376
- tableFrom: import("zod").ZodString;
1377
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
1378
- tableTo: import("zod").ZodString;
1379
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
1380
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
1381
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
1382
- }, "strict", import("zod").ZodTypeAny, {
1383
- onUpdate?: string | undefined;
1384
- onDelete?: string | undefined;
1385
- name: string;
1386
- tableFrom: string;
1387
- columnsFrom: string[];
1388
- tableTo: string;
1389
- columnsTo: string[];
1390
- }, {
1391
- onUpdate?: string | undefined;
1392
- onDelete?: string | undefined;
1393
- name: string;
1394
- tableFrom: string;
1395
- columnsFrom: string[];
1396
- tableTo: string;
1397
- columnsTo: string[];
1398
- }>>;
1399
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1400
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1401
- name: import("zod").ZodOptional<import("zod").ZodString>;
1402
- }, "strict", import("zod").ZodTypeAny, {
1403
- name?: string | undefined;
1404
- columns: string[];
1405
- }, {
1406
- name?: string | undefined;
1407
- columns: string[];
1408
- }>>;
1409
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1410
- name: import("zod").ZodString;
1411
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1412
- }, "strict", import("zod").ZodTypeAny, {
1413
- name: string;
1414
- columns: string[];
1415
- }, {
1416
- name: string;
1417
- columns: string[];
1418
- }>>>;
1419
- }, "strict", import("zod").ZodTypeAny, {
1420
- name: string;
1421
- columns: Record<string, {
1422
- default?: any;
1423
- autoincrement?: boolean | undefined;
1424
- name: string;
1425
- type: string;
1426
- primaryKey: boolean;
1427
- notNull: boolean;
1428
- }>;
1429
- indexes: Record<string, {
1430
- where?: string | undefined;
1431
- name: string;
1432
- columns: string[];
1433
- isUnique: boolean;
1434
- }>;
1435
- foreignKeys: Record<string, {
1436
- onUpdate?: string | undefined;
1437
- onDelete?: string | undefined;
1438
- name: string;
1439
- tableFrom: string;
1440
- columnsFrom: string[];
1441
- tableTo: string;
1442
- columnsTo: string[];
1443
- }>;
1444
- compositePrimaryKeys: Record<string, {
1445
- name?: string | undefined;
1446
- columns: string[];
1447
- }>;
1448
- uniqueConstraints: Record<string, {
1449
- name: string;
1450
- columns: string[];
1451
- }>;
1452
- }, {
1453
- uniqueConstraints?: Record<string, {
1454
- name: string;
1455
- columns: string[];
1456
- }> | undefined;
1457
- name: string;
1458
- columns: Record<string, {
1459
- default?: any;
1460
- autoincrement?: boolean | undefined;
1461
- name: string;
1462
- type: string;
1463
- primaryKey: boolean;
1464
- notNull: boolean;
1465
- }>;
1466
- indexes: Record<string, {
1467
- where?: string | undefined;
1468
- name: string;
1469
- columns: string[];
1470
- isUnique: boolean;
1471
- }>;
1472
- foreignKeys: Record<string, {
1473
- onUpdate?: string | undefined;
1474
- onDelete?: string | undefined;
1475
- name: string;
1476
- tableFrom: string;
1477
- columnsFrom: string[];
1478
- tableTo: string;
1479
- columnsTo: string[];
1480
- }>;
1481
- compositePrimaryKeys: Record<string, {
1482
- name?: string | undefined;
1483
- columns: string[];
1484
- }>;
1485
- }>>;
1486
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
1487
- _meta: import("zod").ZodObject<{
1488
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1489
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1490
- }, "strip", import("zod").ZodTypeAny, {
1491
- columns: Record<string, string>;
1492
- tables: Record<string, string>;
1493
- }, {
1494
- columns: Record<string, string>;
1495
- tables: Record<string, string>;
1496
- }>;
1497
- }, {
1498
- id: import("zod").ZodString;
1499
- prevId: import("zod").ZodString;
1500
- }>, "strict", import("zod").ZodTypeAny, {
1501
- id: string;
1502
- prevId: string;
1503
- version: "5";
1504
- dialect: "sqlite";
1505
- tables: Record<string, {
1506
- name: string;
1507
- columns: Record<string, {
1508
- default?: any;
1509
- autoincrement?: boolean | undefined;
1510
- name: string;
1511
- type: string;
1512
- primaryKey: boolean;
1513
- notNull: boolean;
1514
- }>;
1515
- indexes: Record<string, {
1516
- where?: string | undefined;
1517
- name: string;
1518
- columns: string[];
1519
- isUnique: boolean;
1520
- }>;
1521
- foreignKeys: Record<string, {
1522
- onUpdate?: string | undefined;
1523
- onDelete?: string | undefined;
1524
- name: string;
1525
- tableFrom: string;
1526
- columnsFrom: string[];
1527
- tableTo: string;
1528
- columnsTo: string[];
1529
- }>;
1530
- compositePrimaryKeys: Record<string, {
1531
- name?: string | undefined;
1532
- columns: string[];
1533
- }>;
1534
- uniqueConstraints: Record<string, {
1535
- name: string;
1536
- columns: string[];
1537
- }>;
1538
- }>;
1539
- _meta: {
1540
- columns: Record<string, string>;
1541
- tables: Record<string, string>;
1542
- };
1543
- enums: {};
1544
- }, {
1545
- id: string;
1546
- prevId: string;
1547
- version: "5";
1548
- dialect: "sqlite";
1549
- tables: Record<string, {
1550
- uniqueConstraints?: Record<string, {
1551
- name: string;
1552
- columns: string[];
1553
- }> | undefined;
1554
- name: string;
1555
- columns: Record<string, {
1556
- default?: any;
1557
- autoincrement?: boolean | undefined;
1558
- name: string;
1559
- type: string;
1560
- primaryKey: boolean;
1561
- notNull: boolean;
1562
- }>;
1563
- indexes: Record<string, {
1564
- where?: string | undefined;
1565
- name: string;
1566
- columns: string[];
1567
- isUnique: boolean;
1568
- }>;
1569
- foreignKeys: Record<string, {
1570
- onUpdate?: string | undefined;
1571
- onDelete?: string | undefined;
1572
- name: string;
1573
- tableFrom: string;
1574
- columnsFrom: string[];
1575
- tableTo: string;
1576
- columnsTo: string[];
1577
- }>;
1578
- compositePrimaryKeys: Record<string, {
1579
- name?: string | undefined;
1580
- columns: string[];
1581
- }>;
1582
- }>;
1583
- _meta: {
1584
- columns: Record<string, string>;
1585
- tables: Record<string, string>;
1586
- };
1587
- enums: {};
1588
- }>;
1589
- export declare const schemaSquashed: import("zod").ZodObject<{
1590
- version: import("zod").ZodLiteral<"5">;
1591
- dialect: import("zod").ZodEnum<["sqlite"]>;
1592
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1593
- name: import("zod").ZodString;
1594
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1595
- name: import("zod").ZodString;
1596
- type: import("zod").ZodString;
1597
- primaryKey: import("zod").ZodBoolean;
1598
- notNull: import("zod").ZodBoolean;
1599
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
1600
- default: import("zod").ZodOptional<import("zod").ZodAny>;
1601
- }, "strict", import("zod").ZodTypeAny, {
1602
- default?: any;
1603
- autoincrement?: boolean | undefined;
1604
- name: string;
1605
- type: string;
1606
- primaryKey: boolean;
1607
- notNull: boolean;
1608
- }, {
1609
- default?: any;
1610
- autoincrement?: boolean | undefined;
1611
- name: string;
1612
- type: string;
1613
- primaryKey: boolean;
1614
- notNull: boolean;
1615
- }>>;
1616
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1617
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1618
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1619
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1620
- }, "strict", import("zod").ZodTypeAny, {
1621
- name: string;
1622
- columns: Record<string, {
1623
- default?: any;
1624
- autoincrement?: boolean | undefined;
1625
- name: string;
1626
- type: string;
1627
- primaryKey: boolean;
1628
- notNull: boolean;
1629
- }>;
1630
- indexes: Record<string, string>;
1631
- foreignKeys: Record<string, string>;
1632
- compositePrimaryKeys: Record<string, string>;
1633
- uniqueConstraints: Record<string, string>;
1634
- }, {
1635
- uniqueConstraints?: Record<string, string> | undefined;
1636
- name: string;
1637
- columns: Record<string, {
1638
- default?: any;
1639
- autoincrement?: boolean | undefined;
1640
- name: string;
1641
- type: string;
1642
- primaryKey: boolean;
1643
- notNull: boolean;
1644
- }>;
1645
- indexes: Record<string, string>;
1646
- foreignKeys: Record<string, string>;
1647
- compositePrimaryKeys: Record<string, string>;
1648
- }>>;
1649
- enums: import("zod").ZodAny;
1650
- }, "strict", import("zod").ZodTypeAny, {
1651
- enums?: any;
1652
- version: "5";
1653
- dialect: "sqlite";
1654
- tables: Record<string, {
1655
- name: string;
1656
- columns: Record<string, {
1657
- default?: any;
1658
- autoincrement?: boolean | undefined;
1659
- name: string;
1660
- type: string;
1661
- primaryKey: boolean;
1662
- notNull: boolean;
1663
- }>;
1664
- indexes: Record<string, string>;
1665
- foreignKeys: Record<string, string>;
1666
- compositePrimaryKeys: Record<string, string>;
1667
- uniqueConstraints: Record<string, string>;
1668
- }>;
1669
- }, {
1670
- enums?: any;
1671
- version: "5";
1672
- dialect: "sqlite";
1673
- tables: Record<string, {
1674
- uniqueConstraints?: Record<string, string> | undefined;
1675
- name: string;
1676
- columns: Record<string, {
1677
- default?: any;
1678
- autoincrement?: boolean | undefined;
1679
- name: string;
1680
- type: string;
1681
- primaryKey: boolean;
1682
- notNull: boolean;
1683
- }>;
1684
- indexes: Record<string, string>;
1685
- foreignKeys: Record<string, string>;
1686
- compositePrimaryKeys: Record<string, string>;
1687
- }>;
1688
- }>;
1689
- export type Dialect = TypeOf<typeof dialect>;
1690
- export type Column = TypeOf<typeof column>;
1691
- export type Table = TypeOf<typeof table>;
1692
- export type SQLiteSchema = TypeOf<typeof schema>;
1693
- export type SQLiteSchemaV3 = TypeOf<typeof schemaV3>;
1694
- export type SQLiteSchemaV4 = TypeOf<typeof schemaV4>;
1695
- export type SQLiteSchemaInternal = TypeOf<typeof schemaInternal>;
1696
- export type SQLiteSchemaSquashed = TypeOf<typeof schemaSquashed>;
1697
- export type Index = TypeOf<typeof index>;
1698
- export type ForeignKey = TypeOf<typeof fk>;
1699
- export type PrimaryKey = TypeOf<typeof compositePK>;
1700
- export type UniqueConstraint = TypeOf<typeof uniqueConstraint>;
1701
- export declare const SQLiteSquasher: {
1702
- squashIdx: (idx: Index) => string;
1703
- unsquashIdx: (input: string) => Index;
1704
- squashUnique: (unq: UniqueConstraint) => string;
1705
- unsquashUnique: (unq: string) => UniqueConstraint;
1706
- squashFK: (fk: ForeignKey) => string;
1707
- unsquashFK: (input: string) => ForeignKey;
1708
- squashPK: (pk: PrimaryKey) => string;
1709
- unsquashPK: (pk: string) => string[];
1710
- };
1711
- export declare const squashSqliteScheme: (json: SQLiteSchema | SQLiteSchemaV4) => SQLiteSchemaSquashed;
1712
- export declare const drySQLite: {
1713
- id: string;
1714
- prevId: string;
1715
- version: "5";
1716
- dialect: "sqlite";
1717
- tables: Record<string, {
1718
- name: string;
1719
- columns: Record<string, {
1720
- default?: any;
1721
- autoincrement?: boolean | undefined;
1722
- name: string;
1723
- type: string;
1724
- primaryKey: boolean;
1725
- notNull: boolean;
1726
- }>;
1727
- indexes: Record<string, {
1728
- where?: string | undefined;
1729
- name: string;
1730
- columns: string[];
1731
- isUnique: boolean;
1732
- }>;
1733
- foreignKeys: Record<string, {
1734
- onUpdate?: string | undefined;
1735
- onDelete?: string | undefined;
1736
- name: string;
1737
- tableFrom: string;
1738
- columnsFrom: string[];
1739
- tableTo: string;
1740
- columnsTo: string[];
1741
- }>;
1742
- compositePrimaryKeys: Record<string, {
1743
- name?: string | undefined;
1744
- columns: string[];
1745
- }>;
1746
- uniqueConstraints: Record<string, {
1747
- name: string;
1748
- columns: string[];
1749
- }>;
1750
- }>;
1751
- _meta: {
1752
- columns: Record<string, string>;
1753
- tables: Record<string, string>;
1754
- };
1755
- enums: {};
1756
- };
1757
- export declare const sqliteSchemaV3: import("zod").ZodObject<import("zod").extendShape<{
1758
- version: import("zod").ZodLiteral<"3">;
1759
- dialect: import("zod").ZodEnum<["sqlite"]>;
1760
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1761
- name: import("zod").ZodString;
1762
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1763
- name: import("zod").ZodString;
1764
- type: import("zod").ZodString;
1765
- primaryKey: import("zod").ZodBoolean;
1766
- notNull: import("zod").ZodBoolean;
1767
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
1768
- default: import("zod").ZodOptional<import("zod").ZodAny>;
1769
- }, "strict", import("zod").ZodTypeAny, {
1770
- default?: any;
1771
- autoincrement?: boolean | undefined;
1772
- name: string;
1773
- type: string;
1774
- primaryKey: boolean;
1775
- notNull: boolean;
1776
- }, {
1777
- default?: any;
1778
- autoincrement?: boolean | undefined;
1779
- name: string;
1780
- type: string;
1781
- primaryKey: boolean;
1782
- notNull: boolean;
1783
- }>>;
1784
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1785
- name: import("zod").ZodString;
1786
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1787
- where: import("zod").ZodOptional<import("zod").ZodString>;
1788
- isUnique: import("zod").ZodBoolean;
1789
- }, "strict", import("zod").ZodTypeAny, {
1790
- where?: string | undefined;
1791
- name: string;
1792
- columns: string[];
1793
- isUnique: boolean;
1794
- }, {
1795
- where?: string | undefined;
1796
- name: string;
1797
- columns: string[];
1798
- isUnique: boolean;
1799
- }>>;
1800
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1801
- name: import("zod").ZodString;
1802
- tableFrom: import("zod").ZodString;
1803
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
1804
- tableTo: import("zod").ZodString;
1805
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
1806
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
1807
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
1808
- }, "strict", import("zod").ZodTypeAny, {
1809
- onUpdate?: string | undefined;
1810
- onDelete?: string | undefined;
1811
- name: string;
1812
- tableFrom: string;
1813
- columnsFrom: string[];
1814
- tableTo: string;
1815
- columnsTo: string[];
1816
- }, {
1817
- onUpdate?: string | undefined;
1818
- onDelete?: string | undefined;
1819
- name: string;
1820
- tableFrom: string;
1821
- columnsFrom: string[];
1822
- tableTo: string;
1823
- columnsTo: string[];
1824
- }>>;
1825
- }, "strict", import("zod").ZodTypeAny, {
1826
- name: string;
1827
- columns: Record<string, {
1828
- default?: any;
1829
- autoincrement?: boolean | undefined;
1830
- name: string;
1831
- type: string;
1832
- primaryKey: boolean;
1833
- notNull: boolean;
1834
- }>;
1835
- indexes: Record<string, {
1836
- where?: string | undefined;
1837
- name: string;
1838
- columns: string[];
1839
- isUnique: boolean;
1840
- }>;
1841
- foreignKeys: Record<string, {
1842
- onUpdate?: string | undefined;
1843
- onDelete?: string | undefined;
1844
- name: string;
1845
- tableFrom: string;
1846
- columnsFrom: string[];
1847
- tableTo: string;
1848
- columnsTo: string[];
1849
- }>;
1850
- }, {
1851
- name: string;
1852
- columns: Record<string, {
1853
- default?: any;
1854
- autoincrement?: boolean | undefined;
1855
- name: string;
1856
- type: string;
1857
- primaryKey: boolean;
1858
- notNull: boolean;
1859
- }>;
1860
- indexes: Record<string, {
1861
- where?: string | undefined;
1862
- name: string;
1863
- columns: string[];
1864
- isUnique: boolean;
1865
- }>;
1866
- foreignKeys: Record<string, {
1867
- onUpdate?: string | undefined;
1868
- onDelete?: string | undefined;
1869
- name: string;
1870
- tableFrom: string;
1871
- columnsFrom: string[];
1872
- tableTo: string;
1873
- columnsTo: string[];
1874
- }>;
1875
- }>>;
1876
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
1877
- }, {
1878
- id: import("zod").ZodString;
1879
- prevId: import("zod").ZodString;
1880
- }>, "strict", import("zod").ZodTypeAny, {
1881
- id: string;
1882
- prevId: string;
1883
- version: "3";
1884
- dialect: "sqlite";
1885
- tables: Record<string, {
1886
- name: string;
1887
- columns: Record<string, {
1888
- default?: any;
1889
- autoincrement?: boolean | undefined;
1890
- name: string;
1891
- type: string;
1892
- primaryKey: boolean;
1893
- notNull: boolean;
1894
- }>;
1895
- indexes: Record<string, {
1896
- where?: string | undefined;
1897
- name: string;
1898
- columns: string[];
1899
- isUnique: boolean;
1900
- }>;
1901
- foreignKeys: Record<string, {
1902
- onUpdate?: string | undefined;
1903
- onDelete?: string | undefined;
1904
- name: string;
1905
- tableFrom: string;
1906
- columnsFrom: string[];
1907
- tableTo: string;
1908
- columnsTo: string[];
1909
- }>;
1910
- }>;
1911
- enums: {};
1912
- }, {
1913
- id: string;
1914
- prevId: string;
1915
- version: "3";
1916
- dialect: "sqlite";
1917
- tables: Record<string, {
1918
- name: string;
1919
- columns: Record<string, {
1920
- default?: any;
1921
- autoincrement?: boolean | undefined;
1922
- name: string;
1923
- type: string;
1924
- primaryKey: boolean;
1925
- notNull: boolean;
1926
- }>;
1927
- indexes: Record<string, {
1928
- where?: string | undefined;
1929
- name: string;
1930
- columns: string[];
1931
- isUnique: boolean;
1932
- }>;
1933
- foreignKeys: Record<string, {
1934
- onUpdate?: string | undefined;
1935
- onDelete?: string | undefined;
1936
- name: string;
1937
- tableFrom: string;
1938
- columnsFrom: string[];
1939
- tableTo: string;
1940
- columnsTo: string[];
1941
- }>;
1942
- }>;
1943
- enums: {};
1944
- }>;
1945
- export declare const sqliteSchemaV4: import("zod").ZodObject<import("zod").extendShape<{
1946
- version: import("zod").ZodLiteral<"4">;
1947
- dialect: import("zod").ZodEnum<["sqlite"]>;
1948
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1949
- name: import("zod").ZodString;
1950
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1951
- name: import("zod").ZodString;
1952
- type: import("zod").ZodString;
1953
- primaryKey: import("zod").ZodBoolean;
1954
- notNull: import("zod").ZodBoolean;
1955
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
1956
- default: import("zod").ZodOptional<import("zod").ZodAny>;
1957
- }, "strict", import("zod").ZodTypeAny, {
1958
- default?: any;
1959
- autoincrement?: boolean | undefined;
1960
- name: string;
1961
- type: string;
1962
- primaryKey: boolean;
1963
- notNull: boolean;
1964
- }, {
1965
- default?: any;
1966
- autoincrement?: boolean | undefined;
1967
- name: string;
1968
- type: string;
1969
- primaryKey: boolean;
1970
- notNull: boolean;
1971
- }>>;
1972
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1973
- name: import("zod").ZodString;
1974
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
1975
- where: import("zod").ZodOptional<import("zod").ZodString>;
1976
- isUnique: import("zod").ZodBoolean;
1977
- }, "strict", import("zod").ZodTypeAny, {
1978
- where?: string | undefined;
1979
- name: string;
1980
- columns: string[];
1981
- isUnique: boolean;
1982
- }, {
1983
- where?: string | undefined;
1984
- name: string;
1985
- columns: string[];
1986
- isUnique: boolean;
1987
- }>>;
1988
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1989
- name: import("zod").ZodString;
1990
- tableFrom: import("zod").ZodString;
1991
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
1992
- tableTo: import("zod").ZodString;
1993
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
1994
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
1995
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
1996
- }, "strict", import("zod").ZodTypeAny, {
1997
- onUpdate?: string | undefined;
1998
- onDelete?: string | undefined;
1999
- name: string;
2000
- tableFrom: string;
2001
- columnsFrom: string[];
2002
- tableTo: string;
2003
- columnsTo: string[];
2004
- }, {
2005
- onUpdate?: string | undefined;
2006
- onDelete?: string | undefined;
2007
- name: string;
2008
- tableFrom: string;
2009
- columnsFrom: string[];
2010
- tableTo: string;
2011
- columnsTo: string[];
2012
- }>>;
2013
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2014
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2015
- name: import("zod").ZodOptional<import("zod").ZodString>;
2016
- }, "strict", import("zod").ZodTypeAny, {
2017
- name?: string | undefined;
2018
- columns: string[];
2019
- }, {
2020
- name?: string | undefined;
2021
- columns: string[];
2022
- }>>;
2023
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2024
- name: import("zod").ZodString;
2025
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2026
- }, "strict", import("zod").ZodTypeAny, {
2027
- name: string;
2028
- columns: string[];
2029
- }, {
2030
- name: string;
2031
- columns: string[];
2032
- }>>>;
2033
- }, "strict", import("zod").ZodTypeAny, {
2034
- name: string;
2035
- columns: Record<string, {
2036
- default?: any;
2037
- autoincrement?: boolean | undefined;
2038
- name: string;
2039
- type: string;
2040
- primaryKey: boolean;
2041
- notNull: boolean;
2042
- }>;
2043
- indexes: Record<string, {
2044
- where?: string | undefined;
2045
- name: string;
2046
- columns: string[];
2047
- isUnique: boolean;
2048
- }>;
2049
- foreignKeys: Record<string, {
2050
- onUpdate?: string | undefined;
2051
- onDelete?: string | undefined;
2052
- name: string;
2053
- tableFrom: string;
2054
- columnsFrom: string[];
2055
- tableTo: string;
2056
- columnsTo: string[];
2057
- }>;
2058
- compositePrimaryKeys: Record<string, {
2059
- name?: string | undefined;
2060
- columns: string[];
2061
- }>;
2062
- uniqueConstraints: Record<string, {
2063
- name: string;
2064
- columns: string[];
2065
- }>;
2066
- }, {
2067
- uniqueConstraints?: Record<string, {
2068
- name: string;
2069
- columns: string[];
2070
- }> | undefined;
2071
- name: string;
2072
- columns: Record<string, {
2073
- default?: any;
2074
- autoincrement?: boolean | undefined;
2075
- name: string;
2076
- type: string;
2077
- primaryKey: boolean;
2078
- notNull: boolean;
2079
- }>;
2080
- indexes: Record<string, {
2081
- where?: string | undefined;
2082
- name: string;
2083
- columns: string[];
2084
- isUnique: boolean;
2085
- }>;
2086
- foreignKeys: Record<string, {
2087
- onUpdate?: string | undefined;
2088
- onDelete?: string | undefined;
2089
- name: string;
2090
- tableFrom: string;
2091
- columnsFrom: string[];
2092
- tableTo: string;
2093
- columnsTo: string[];
2094
- }>;
2095
- compositePrimaryKeys: Record<string, {
2096
- name?: string | undefined;
2097
- columns: string[];
2098
- }>;
2099
- }>>;
2100
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
2101
- }, {
2102
- id: import("zod").ZodString;
2103
- prevId: import("zod").ZodString;
2104
- }>, "strict", import("zod").ZodTypeAny, {
2105
- id: string;
2106
- prevId: string;
2107
- version: "4";
2108
- dialect: "sqlite";
2109
- tables: Record<string, {
2110
- name: string;
2111
- columns: Record<string, {
2112
- default?: any;
2113
- autoincrement?: boolean | undefined;
2114
- name: string;
2115
- type: string;
2116
- primaryKey: boolean;
2117
- notNull: boolean;
2118
- }>;
2119
- indexes: Record<string, {
2120
- where?: string | undefined;
2121
- name: string;
2122
- columns: string[];
2123
- isUnique: boolean;
2124
- }>;
2125
- foreignKeys: Record<string, {
2126
- onUpdate?: string | undefined;
2127
- onDelete?: string | undefined;
2128
- name: string;
2129
- tableFrom: string;
2130
- columnsFrom: string[];
2131
- tableTo: string;
2132
- columnsTo: string[];
2133
- }>;
2134
- compositePrimaryKeys: Record<string, {
2135
- name?: string | undefined;
2136
- columns: string[];
2137
- }>;
2138
- uniqueConstraints: Record<string, {
2139
- name: string;
2140
- columns: string[];
2141
- }>;
2142
- }>;
2143
- enums: {};
2144
- }, {
2145
- id: string;
2146
- prevId: string;
2147
- version: "4";
2148
- dialect: "sqlite";
2149
- tables: Record<string, {
2150
- uniqueConstraints?: Record<string, {
2151
- name: string;
2152
- columns: string[];
2153
- }> | undefined;
2154
- name: string;
2155
- columns: Record<string, {
2156
- default?: any;
2157
- autoincrement?: boolean | undefined;
2158
- name: string;
2159
- type: string;
2160
- primaryKey: boolean;
2161
- notNull: boolean;
2162
- }>;
2163
- indexes: Record<string, {
2164
- where?: string | undefined;
2165
- name: string;
2166
- columns: string[];
2167
- isUnique: boolean;
2168
- }>;
2169
- foreignKeys: Record<string, {
2170
- onUpdate?: string | undefined;
2171
- onDelete?: string | undefined;
2172
- name: string;
2173
- tableFrom: string;
2174
- columnsFrom: string[];
2175
- tableTo: string;
2176
- columnsTo: string[];
2177
- }>;
2178
- compositePrimaryKeys: Record<string, {
2179
- name?: string | undefined;
2180
- columns: string[];
2181
- }>;
2182
- }>;
2183
- enums: {};
2184
- }>;
2185
- export declare const sqliteSchema: import("zod").ZodObject<import("zod").extendShape<{
2186
- version: import("zod").ZodLiteral<"5">;
2187
- dialect: import("zod").ZodEnum<["sqlite"]>;
2188
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2189
- name: import("zod").ZodString;
2190
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2191
- name: import("zod").ZodString;
2192
- type: import("zod").ZodString;
2193
- primaryKey: import("zod").ZodBoolean;
2194
- notNull: import("zod").ZodBoolean;
2195
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
2196
- default: import("zod").ZodOptional<import("zod").ZodAny>;
2197
- }, "strict", import("zod").ZodTypeAny, {
2198
- default?: any;
2199
- autoincrement?: boolean | undefined;
2200
- name: string;
2201
- type: string;
2202
- primaryKey: boolean;
2203
- notNull: boolean;
2204
- }, {
2205
- default?: any;
2206
- autoincrement?: boolean | undefined;
2207
- name: string;
2208
- type: string;
2209
- primaryKey: boolean;
2210
- notNull: boolean;
2211
- }>>;
2212
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2213
- name: import("zod").ZodString;
2214
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2215
- where: import("zod").ZodOptional<import("zod").ZodString>;
2216
- isUnique: import("zod").ZodBoolean;
2217
- }, "strict", import("zod").ZodTypeAny, {
2218
- where?: string | undefined;
2219
- name: string;
2220
- columns: string[];
2221
- isUnique: boolean;
2222
- }, {
2223
- where?: string | undefined;
2224
- name: string;
2225
- columns: string[];
2226
- isUnique: boolean;
2227
- }>>;
2228
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2229
- name: import("zod").ZodString;
2230
- tableFrom: import("zod").ZodString;
2231
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
2232
- tableTo: import("zod").ZodString;
2233
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
2234
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
2235
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
2236
- }, "strict", import("zod").ZodTypeAny, {
2237
- onUpdate?: string | undefined;
2238
- onDelete?: string | undefined;
2239
- name: string;
2240
- tableFrom: string;
2241
- columnsFrom: string[];
2242
- tableTo: string;
2243
- columnsTo: string[];
2244
- }, {
2245
- onUpdate?: string | undefined;
2246
- onDelete?: string | undefined;
2247
- name: string;
2248
- tableFrom: string;
2249
- columnsFrom: string[];
2250
- tableTo: string;
2251
- columnsTo: string[];
2252
- }>>;
2253
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2254
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2255
- name: import("zod").ZodOptional<import("zod").ZodString>;
2256
- }, "strict", import("zod").ZodTypeAny, {
2257
- name?: string | undefined;
2258
- columns: string[];
2259
- }, {
2260
- name?: string | undefined;
2261
- columns: string[];
2262
- }>>;
2263
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2264
- name: import("zod").ZodString;
2265
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2266
- }, "strict", import("zod").ZodTypeAny, {
2267
- name: string;
2268
- columns: string[];
2269
- }, {
2270
- name: string;
2271
- columns: string[];
2272
- }>>>;
2273
- }, "strict", import("zod").ZodTypeAny, {
2274
- name: string;
2275
- columns: Record<string, {
2276
- default?: any;
2277
- autoincrement?: boolean | undefined;
2278
- name: string;
2279
- type: string;
2280
- primaryKey: boolean;
2281
- notNull: boolean;
2282
- }>;
2283
- indexes: Record<string, {
2284
- where?: string | undefined;
2285
- name: string;
2286
- columns: string[];
2287
- isUnique: boolean;
2288
- }>;
2289
- foreignKeys: Record<string, {
2290
- onUpdate?: string | undefined;
2291
- onDelete?: string | undefined;
2292
- name: string;
2293
- tableFrom: string;
2294
- columnsFrom: string[];
2295
- tableTo: string;
2296
- columnsTo: string[];
2297
- }>;
2298
- compositePrimaryKeys: Record<string, {
2299
- name?: string | undefined;
2300
- columns: string[];
2301
- }>;
2302
- uniqueConstraints: Record<string, {
2303
- name: string;
2304
- columns: string[];
2305
- }>;
2306
- }, {
2307
- uniqueConstraints?: Record<string, {
2308
- name: string;
2309
- columns: string[];
2310
- }> | undefined;
2311
- name: string;
2312
- columns: Record<string, {
2313
- default?: any;
2314
- autoincrement?: boolean | undefined;
2315
- name: string;
2316
- type: string;
2317
- primaryKey: boolean;
2318
- notNull: boolean;
2319
- }>;
2320
- indexes: Record<string, {
2321
- where?: string | undefined;
2322
- name: string;
2323
- columns: string[];
2324
- isUnique: boolean;
2325
- }>;
2326
- foreignKeys: Record<string, {
2327
- onUpdate?: string | undefined;
2328
- onDelete?: string | undefined;
2329
- name: string;
2330
- tableFrom: string;
2331
- columnsFrom: string[];
2332
- tableTo: string;
2333
- columnsTo: string[];
2334
- }>;
2335
- compositePrimaryKeys: Record<string, {
2336
- name?: string | undefined;
2337
- columns: string[];
2338
- }>;
2339
- }>>;
2340
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
2341
- _meta: import("zod").ZodObject<{
2342
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2343
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2344
- }, "strip", import("zod").ZodTypeAny, {
2345
- columns: Record<string, string>;
2346
- tables: Record<string, string>;
2347
- }, {
2348
- columns: Record<string, string>;
2349
- tables: Record<string, string>;
2350
- }>;
2351
- }, {
2352
- id: import("zod").ZodString;
2353
- prevId: import("zod").ZodString;
2354
- }>, "strict", import("zod").ZodTypeAny, {
2355
- id: string;
2356
- prevId: string;
2357
- version: "5";
2358
- dialect: "sqlite";
2359
- tables: Record<string, {
2360
- name: string;
2361
- columns: Record<string, {
2362
- default?: any;
2363
- autoincrement?: boolean | undefined;
2364
- name: string;
2365
- type: string;
2366
- primaryKey: boolean;
2367
- notNull: boolean;
2368
- }>;
2369
- indexes: Record<string, {
2370
- where?: string | undefined;
2371
- name: string;
2372
- columns: string[];
2373
- isUnique: boolean;
2374
- }>;
2375
- foreignKeys: Record<string, {
2376
- onUpdate?: string | undefined;
2377
- onDelete?: string | undefined;
2378
- name: string;
2379
- tableFrom: string;
2380
- columnsFrom: string[];
2381
- tableTo: string;
2382
- columnsTo: string[];
2383
- }>;
2384
- compositePrimaryKeys: Record<string, {
2385
- name?: string | undefined;
2386
- columns: string[];
2387
- }>;
2388
- uniqueConstraints: Record<string, {
2389
- name: string;
2390
- columns: string[];
2391
- }>;
2392
- }>;
2393
- _meta: {
2394
- columns: Record<string, string>;
2395
- tables: Record<string, string>;
2396
- };
2397
- enums: {};
2398
- }, {
2399
- id: string;
2400
- prevId: string;
2401
- version: "5";
2402
- dialect: "sqlite";
2403
- tables: Record<string, {
2404
- uniqueConstraints?: Record<string, {
2405
- name: string;
2406
- columns: string[];
2407
- }> | undefined;
2408
- name: string;
2409
- columns: Record<string, {
2410
- default?: any;
2411
- autoincrement?: boolean | undefined;
2412
- name: string;
2413
- type: string;
2414
- primaryKey: boolean;
2415
- notNull: boolean;
2416
- }>;
2417
- indexes: Record<string, {
2418
- where?: string | undefined;
2419
- name: string;
2420
- columns: string[];
2421
- isUnique: boolean;
2422
- }>;
2423
- foreignKeys: Record<string, {
2424
- onUpdate?: string | undefined;
2425
- onDelete?: string | undefined;
2426
- name: string;
2427
- tableFrom: string;
2428
- columnsFrom: string[];
2429
- tableTo: string;
2430
- columnsTo: string[];
2431
- }>;
2432
- compositePrimaryKeys: Record<string, {
2433
- name?: string | undefined;
2434
- columns: string[];
2435
- }>;
2436
- }>;
2437
- _meta: {
2438
- columns: Record<string, string>;
2439
- tables: Record<string, string>;
2440
- };
2441
- enums: {};
2442
- }>;
2443
- export declare const SQLiteSchemaSquashed: import("zod").ZodObject<{
2444
- version: import("zod").ZodLiteral<"5">;
2445
- dialect: import("zod").ZodEnum<["sqlite"]>;
2446
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2447
- name: import("zod").ZodString;
2448
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2449
- name: import("zod").ZodString;
2450
- type: import("zod").ZodString;
2451
- primaryKey: import("zod").ZodBoolean;
2452
- notNull: import("zod").ZodBoolean;
2453
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
2454
- default: import("zod").ZodOptional<import("zod").ZodAny>;
2455
- }, "strict", import("zod").ZodTypeAny, {
2456
- default?: any;
2457
- autoincrement?: boolean | undefined;
2458
- name: string;
2459
- type: string;
2460
- primaryKey: boolean;
2461
- notNull: boolean;
2462
- }, {
2463
- default?: any;
2464
- autoincrement?: boolean | undefined;
2465
- name: string;
2466
- type: string;
2467
- primaryKey: boolean;
2468
- notNull: boolean;
2469
- }>>;
2470
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2471
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2472
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2473
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2474
- }, "strict", import("zod").ZodTypeAny, {
2475
- name: string;
2476
- columns: Record<string, {
2477
- default?: any;
2478
- autoincrement?: boolean | undefined;
2479
- name: string;
2480
- type: string;
2481
- primaryKey: boolean;
2482
- notNull: boolean;
2483
- }>;
2484
- indexes: Record<string, string>;
2485
- foreignKeys: Record<string, string>;
2486
- compositePrimaryKeys: Record<string, string>;
2487
- uniqueConstraints: Record<string, string>;
2488
- }, {
2489
- uniqueConstraints?: Record<string, string> | undefined;
2490
- name: string;
2491
- columns: Record<string, {
2492
- default?: any;
2493
- autoincrement?: boolean | undefined;
2494
- name: string;
2495
- type: string;
2496
- primaryKey: boolean;
2497
- notNull: boolean;
2498
- }>;
2499
- indexes: Record<string, string>;
2500
- foreignKeys: Record<string, string>;
2501
- compositePrimaryKeys: Record<string, string>;
2502
- }>>;
2503
- enums: import("zod").ZodAny;
2504
- }, "strict", import("zod").ZodTypeAny, {
2505
- enums?: any;
2506
- version: "5";
2507
- dialect: "sqlite";
2508
- tables: Record<string, {
2509
- name: string;
2510
- columns: Record<string, {
2511
- default?: any;
2512
- autoincrement?: boolean | undefined;
2513
- name: string;
2514
- type: string;
2515
- primaryKey: boolean;
2516
- notNull: boolean;
2517
- }>;
2518
- indexes: Record<string, string>;
2519
- foreignKeys: Record<string, string>;
2520
- compositePrimaryKeys: Record<string, string>;
2521
- uniqueConstraints: Record<string, string>;
2522
- }>;
2523
- }, {
2524
- enums?: any;
2525
- version: "5";
2526
- dialect: "sqlite";
2527
- tables: Record<string, {
2528
- uniqueConstraints?: Record<string, string> | undefined;
2529
- name: string;
2530
- columns: Record<string, {
2531
- default?: any;
2532
- autoincrement?: boolean | undefined;
2533
- name: string;
2534
- type: string;
2535
- primaryKey: boolean;
2536
- notNull: boolean;
2537
- }>;
2538
- indexes: Record<string, string>;
2539
- foreignKeys: Record<string, string>;
2540
- compositePrimaryKeys: Record<string, string>;
2541
- }>;
2542
- }>;
2543
- export declare const backwardCompatibleSqliteSchema: import("zod").ZodUnion<[import("zod").ZodObject<import("zod").extendShape<{
2544
- version: import("zod").ZodLiteral<"3">;
2545
- dialect: import("zod").ZodEnum<["sqlite"]>;
2546
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2547
- name: import("zod").ZodString;
2548
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2549
- name: import("zod").ZodString;
2550
- type: import("zod").ZodString;
2551
- primaryKey: import("zod").ZodBoolean;
2552
- notNull: import("zod").ZodBoolean;
2553
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
2554
- default: import("zod").ZodOptional<import("zod").ZodAny>;
2555
- }, "strict", import("zod").ZodTypeAny, {
2556
- default?: any;
2557
- autoincrement?: boolean | undefined;
2558
- name: string;
2559
- type: string;
2560
- primaryKey: boolean;
2561
- notNull: boolean;
2562
- }, {
2563
- default?: any;
2564
- autoincrement?: boolean | undefined;
2565
- name: string;
2566
- type: string;
2567
- primaryKey: boolean;
2568
- notNull: boolean;
2569
- }>>;
2570
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2571
- name: import("zod").ZodString;
2572
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2573
- where: import("zod").ZodOptional<import("zod").ZodString>;
2574
- isUnique: import("zod").ZodBoolean;
2575
- }, "strict", import("zod").ZodTypeAny, {
2576
- where?: string | undefined;
2577
- name: string;
2578
- columns: string[];
2579
- isUnique: boolean;
2580
- }, {
2581
- where?: string | undefined;
2582
- name: string;
2583
- columns: string[];
2584
- isUnique: boolean;
2585
- }>>;
2586
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2587
- name: import("zod").ZodString;
2588
- tableFrom: import("zod").ZodString;
2589
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
2590
- tableTo: import("zod").ZodString;
2591
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
2592
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
2593
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
2594
- }, "strict", import("zod").ZodTypeAny, {
2595
- onUpdate?: string | undefined;
2596
- onDelete?: string | undefined;
2597
- name: string;
2598
- tableFrom: string;
2599
- columnsFrom: string[];
2600
- tableTo: string;
2601
- columnsTo: string[];
2602
- }, {
2603
- onUpdate?: string | undefined;
2604
- onDelete?: string | undefined;
2605
- name: string;
2606
- tableFrom: string;
2607
- columnsFrom: string[];
2608
- tableTo: string;
2609
- columnsTo: string[];
2610
- }>>;
2611
- }, "strict", import("zod").ZodTypeAny, {
2612
- name: string;
2613
- columns: Record<string, {
2614
- default?: any;
2615
- autoincrement?: boolean | undefined;
2616
- name: string;
2617
- type: string;
2618
- primaryKey: boolean;
2619
- notNull: boolean;
2620
- }>;
2621
- indexes: Record<string, {
2622
- where?: string | undefined;
2623
- name: string;
2624
- columns: string[];
2625
- isUnique: boolean;
2626
- }>;
2627
- foreignKeys: Record<string, {
2628
- onUpdate?: string | undefined;
2629
- onDelete?: string | undefined;
2630
- name: string;
2631
- tableFrom: string;
2632
- columnsFrom: string[];
2633
- tableTo: string;
2634
- columnsTo: string[];
2635
- }>;
2636
- }, {
2637
- name: string;
2638
- columns: Record<string, {
2639
- default?: any;
2640
- autoincrement?: boolean | undefined;
2641
- name: string;
2642
- type: string;
2643
- primaryKey: boolean;
2644
- notNull: boolean;
2645
- }>;
2646
- indexes: Record<string, {
2647
- where?: string | undefined;
2648
- name: string;
2649
- columns: string[];
2650
- isUnique: boolean;
2651
- }>;
2652
- foreignKeys: Record<string, {
2653
- onUpdate?: string | undefined;
2654
- onDelete?: string | undefined;
2655
- name: string;
2656
- tableFrom: string;
2657
- columnsFrom: string[];
2658
- tableTo: string;
2659
- columnsTo: string[];
2660
- }>;
2661
- }>>;
2662
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
2663
- }, {
2664
- id: import("zod").ZodString;
2665
- prevId: import("zod").ZodString;
2666
- }>, "strict", import("zod").ZodTypeAny, {
2667
- id: string;
2668
- prevId: string;
2669
- version: "3";
2670
- dialect: "sqlite";
2671
- tables: Record<string, {
2672
- name: string;
2673
- columns: Record<string, {
2674
- default?: any;
2675
- autoincrement?: boolean | undefined;
2676
- name: string;
2677
- type: string;
2678
- primaryKey: boolean;
2679
- notNull: boolean;
2680
- }>;
2681
- indexes: Record<string, {
2682
- where?: string | undefined;
2683
- name: string;
2684
- columns: string[];
2685
- isUnique: boolean;
2686
- }>;
2687
- foreignKeys: Record<string, {
2688
- onUpdate?: string | undefined;
2689
- onDelete?: string | undefined;
2690
- name: string;
2691
- tableFrom: string;
2692
- columnsFrom: string[];
2693
- tableTo: string;
2694
- columnsTo: string[];
2695
- }>;
2696
- }>;
2697
- enums: {};
2698
- }, {
2699
- id: string;
2700
- prevId: string;
2701
- version: "3";
2702
- dialect: "sqlite";
2703
- tables: Record<string, {
2704
- name: string;
2705
- columns: Record<string, {
2706
- default?: any;
2707
- autoincrement?: boolean | undefined;
2708
- name: string;
2709
- type: string;
2710
- primaryKey: boolean;
2711
- notNull: boolean;
2712
- }>;
2713
- indexes: Record<string, {
2714
- where?: string | undefined;
2715
- name: string;
2716
- columns: string[];
2717
- isUnique: boolean;
2718
- }>;
2719
- foreignKeys: Record<string, {
2720
- onUpdate?: string | undefined;
2721
- onDelete?: string | undefined;
2722
- name: string;
2723
- tableFrom: string;
2724
- columnsFrom: string[];
2725
- tableTo: string;
2726
- columnsTo: string[];
2727
- }>;
2728
- }>;
2729
- enums: {};
2730
- }>, import("zod").ZodObject<import("zod").extendShape<{
2731
- version: import("zod").ZodLiteral<"4">;
2732
- dialect: import("zod").ZodEnum<["sqlite"]>;
2733
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2734
- name: import("zod").ZodString;
2735
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2736
- name: import("zod").ZodString;
2737
- type: import("zod").ZodString;
2738
- primaryKey: import("zod").ZodBoolean;
2739
- notNull: import("zod").ZodBoolean;
2740
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
2741
- default: import("zod").ZodOptional<import("zod").ZodAny>;
2742
- }, "strict", import("zod").ZodTypeAny, {
2743
- default?: any;
2744
- autoincrement?: boolean | undefined;
2745
- name: string;
2746
- type: string;
2747
- primaryKey: boolean;
2748
- notNull: boolean;
2749
- }, {
2750
- default?: any;
2751
- autoincrement?: boolean | undefined;
2752
- name: string;
2753
- type: string;
2754
- primaryKey: boolean;
2755
- notNull: boolean;
2756
- }>>;
2757
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2758
- name: import("zod").ZodString;
2759
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2760
- where: import("zod").ZodOptional<import("zod").ZodString>;
2761
- isUnique: import("zod").ZodBoolean;
2762
- }, "strict", import("zod").ZodTypeAny, {
2763
- where?: string | undefined;
2764
- name: string;
2765
- columns: string[];
2766
- isUnique: boolean;
2767
- }, {
2768
- where?: string | undefined;
2769
- name: string;
2770
- columns: string[];
2771
- isUnique: boolean;
2772
- }>>;
2773
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2774
- name: import("zod").ZodString;
2775
- tableFrom: import("zod").ZodString;
2776
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
2777
- tableTo: import("zod").ZodString;
2778
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
2779
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
2780
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
2781
- }, "strict", import("zod").ZodTypeAny, {
2782
- onUpdate?: string | undefined;
2783
- onDelete?: string | undefined;
2784
- name: string;
2785
- tableFrom: string;
2786
- columnsFrom: string[];
2787
- tableTo: string;
2788
- columnsTo: string[];
2789
- }, {
2790
- onUpdate?: string | undefined;
2791
- onDelete?: string | undefined;
2792
- name: string;
2793
- tableFrom: string;
2794
- columnsFrom: string[];
2795
- tableTo: string;
2796
- columnsTo: string[];
2797
- }>>;
2798
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2799
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2800
- name: import("zod").ZodOptional<import("zod").ZodString>;
2801
- }, "strict", import("zod").ZodTypeAny, {
2802
- name?: string | undefined;
2803
- columns: string[];
2804
- }, {
2805
- name?: string | undefined;
2806
- columns: string[];
2807
- }>>;
2808
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2809
- name: import("zod").ZodString;
2810
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2811
- }, "strict", import("zod").ZodTypeAny, {
2812
- name: string;
2813
- columns: string[];
2814
- }, {
2815
- name: string;
2816
- columns: string[];
2817
- }>>>;
2818
- }, "strict", import("zod").ZodTypeAny, {
2819
- name: string;
2820
- columns: Record<string, {
2821
- default?: any;
2822
- autoincrement?: boolean | undefined;
2823
- name: string;
2824
- type: string;
2825
- primaryKey: boolean;
2826
- notNull: boolean;
2827
- }>;
2828
- indexes: Record<string, {
2829
- where?: string | undefined;
2830
- name: string;
2831
- columns: string[];
2832
- isUnique: boolean;
2833
- }>;
2834
- foreignKeys: Record<string, {
2835
- onUpdate?: string | undefined;
2836
- onDelete?: string | undefined;
2837
- name: string;
2838
- tableFrom: string;
2839
- columnsFrom: string[];
2840
- tableTo: string;
2841
- columnsTo: string[];
2842
- }>;
2843
- compositePrimaryKeys: Record<string, {
2844
- name?: string | undefined;
2845
- columns: string[];
2846
- }>;
2847
- uniqueConstraints: Record<string, {
2848
- name: string;
2849
- columns: string[];
2850
- }>;
2851
- }, {
2852
- uniqueConstraints?: Record<string, {
2853
- name: string;
2854
- columns: string[];
2855
- }> | undefined;
2856
- name: string;
2857
- columns: Record<string, {
2858
- default?: any;
2859
- autoincrement?: boolean | undefined;
2860
- name: string;
2861
- type: string;
2862
- primaryKey: boolean;
2863
- notNull: boolean;
2864
- }>;
2865
- indexes: Record<string, {
2866
- where?: string | undefined;
2867
- name: string;
2868
- columns: string[];
2869
- isUnique: boolean;
2870
- }>;
2871
- foreignKeys: Record<string, {
2872
- onUpdate?: string | undefined;
2873
- onDelete?: string | undefined;
2874
- name: string;
2875
- tableFrom: string;
2876
- columnsFrom: string[];
2877
- tableTo: string;
2878
- columnsTo: string[];
2879
- }>;
2880
- compositePrimaryKeys: Record<string, {
2881
- name?: string | undefined;
2882
- columns: string[];
2883
- }>;
2884
- }>>;
2885
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
2886
- }, {
2887
- id: import("zod").ZodString;
2888
- prevId: import("zod").ZodString;
2889
- }>, "strict", import("zod").ZodTypeAny, {
2890
- id: string;
2891
- prevId: string;
2892
- version: "4";
2893
- dialect: "sqlite";
2894
- tables: Record<string, {
2895
- name: string;
2896
- columns: Record<string, {
2897
- default?: any;
2898
- autoincrement?: boolean | undefined;
2899
- name: string;
2900
- type: string;
2901
- primaryKey: boolean;
2902
- notNull: boolean;
2903
- }>;
2904
- indexes: Record<string, {
2905
- where?: string | undefined;
2906
- name: string;
2907
- columns: string[];
2908
- isUnique: boolean;
2909
- }>;
2910
- foreignKeys: Record<string, {
2911
- onUpdate?: string | undefined;
2912
- onDelete?: string | undefined;
2913
- name: string;
2914
- tableFrom: string;
2915
- columnsFrom: string[];
2916
- tableTo: string;
2917
- columnsTo: string[];
2918
- }>;
2919
- compositePrimaryKeys: Record<string, {
2920
- name?: string | undefined;
2921
- columns: string[];
2922
- }>;
2923
- uniqueConstraints: Record<string, {
2924
- name: string;
2925
- columns: string[];
2926
- }>;
2927
- }>;
2928
- enums: {};
2929
- }, {
2930
- id: string;
2931
- prevId: string;
2932
- version: "4";
2933
- dialect: "sqlite";
2934
- tables: Record<string, {
2935
- uniqueConstraints?: Record<string, {
2936
- name: string;
2937
- columns: string[];
2938
- }> | undefined;
2939
- name: string;
2940
- columns: Record<string, {
2941
- default?: any;
2942
- autoincrement?: boolean | undefined;
2943
- name: string;
2944
- type: string;
2945
- primaryKey: boolean;
2946
- notNull: boolean;
2947
- }>;
2948
- indexes: Record<string, {
2949
- where?: string | undefined;
2950
- name: string;
2951
- columns: string[];
2952
- isUnique: boolean;
2953
- }>;
2954
- foreignKeys: Record<string, {
2955
- onUpdate?: string | undefined;
2956
- onDelete?: string | undefined;
2957
- name: string;
2958
- tableFrom: string;
2959
- columnsFrom: string[];
2960
- tableTo: string;
2961
- columnsTo: string[];
2962
- }>;
2963
- compositePrimaryKeys: Record<string, {
2964
- name?: string | undefined;
2965
- columns: string[];
2966
- }>;
2967
- }>;
2968
- enums: {};
2969
- }>, import("zod").ZodObject<import("zod").extendShape<{
2970
- version: import("zod").ZodLiteral<"5">;
2971
- dialect: import("zod").ZodEnum<["sqlite"]>;
2972
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2973
- name: import("zod").ZodString;
2974
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2975
- name: import("zod").ZodString;
2976
- type: import("zod").ZodString;
2977
- primaryKey: import("zod").ZodBoolean;
2978
- notNull: import("zod").ZodBoolean;
2979
- autoincrement: import("zod").ZodOptional<import("zod").ZodBoolean>;
2980
- default: import("zod").ZodOptional<import("zod").ZodAny>;
2981
- }, "strict", import("zod").ZodTypeAny, {
2982
- default?: any;
2983
- autoincrement?: boolean | undefined;
2984
- name: string;
2985
- type: string;
2986
- primaryKey: boolean;
2987
- notNull: boolean;
2988
- }, {
2989
- default?: any;
2990
- autoincrement?: boolean | undefined;
2991
- name: string;
2992
- type: string;
2993
- primaryKey: boolean;
2994
- notNull: boolean;
2995
- }>>;
2996
- indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
2997
- name: import("zod").ZodString;
2998
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
2999
- where: import("zod").ZodOptional<import("zod").ZodString>;
3000
- isUnique: import("zod").ZodBoolean;
3001
- }, "strict", import("zod").ZodTypeAny, {
3002
- where?: string | undefined;
3003
- name: string;
3004
- columns: string[];
3005
- isUnique: boolean;
3006
- }, {
3007
- where?: string | undefined;
3008
- name: string;
3009
- columns: string[];
3010
- isUnique: boolean;
3011
- }>>;
3012
- foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3013
- name: import("zod").ZodString;
3014
- tableFrom: import("zod").ZodString;
3015
- columnsFrom: import("zod").ZodArray<import("zod").ZodString, "many">;
3016
- tableTo: import("zod").ZodString;
3017
- columnsTo: import("zod").ZodArray<import("zod").ZodString, "many">;
3018
- onUpdate: import("zod").ZodOptional<import("zod").ZodString>;
3019
- onDelete: import("zod").ZodOptional<import("zod").ZodString>;
3020
- }, "strict", import("zod").ZodTypeAny, {
3021
- onUpdate?: string | undefined;
3022
- onDelete?: string | undefined;
3023
- name: string;
3024
- tableFrom: string;
3025
- columnsFrom: string[];
3026
- tableTo: string;
3027
- columnsTo: string[];
3028
- }, {
3029
- onUpdate?: string | undefined;
3030
- onDelete?: string | undefined;
3031
- name: string;
3032
- tableFrom: string;
3033
- columnsFrom: string[];
3034
- tableTo: string;
3035
- columnsTo: string[];
3036
- }>>;
3037
- compositePrimaryKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3038
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3039
- name: import("zod").ZodOptional<import("zod").ZodString>;
3040
- }, "strict", import("zod").ZodTypeAny, {
3041
- name?: string | undefined;
3042
- columns: string[];
3043
- }, {
3044
- name?: string | undefined;
3045
- columns: string[];
3046
- }>>;
3047
- uniqueConstraints: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
3048
- name: import("zod").ZodString;
3049
- columns: import("zod").ZodArray<import("zod").ZodString, "many">;
3050
- }, "strict", import("zod").ZodTypeAny, {
3051
- name: string;
3052
- columns: string[];
3053
- }, {
3054
- name: string;
3055
- columns: string[];
3056
- }>>>;
3057
- }, "strict", import("zod").ZodTypeAny, {
3058
- name: string;
3059
- columns: Record<string, {
3060
- default?: any;
3061
- autoincrement?: boolean | undefined;
3062
- name: string;
3063
- type: string;
3064
- primaryKey: boolean;
3065
- notNull: boolean;
3066
- }>;
3067
- indexes: Record<string, {
3068
- where?: string | undefined;
3069
- name: string;
3070
- columns: string[];
3071
- isUnique: boolean;
3072
- }>;
3073
- foreignKeys: Record<string, {
3074
- onUpdate?: string | undefined;
3075
- onDelete?: string | undefined;
3076
- name: string;
3077
- tableFrom: string;
3078
- columnsFrom: string[];
3079
- tableTo: string;
3080
- columnsTo: string[];
3081
- }>;
3082
- compositePrimaryKeys: Record<string, {
3083
- name?: string | undefined;
3084
- columns: string[];
3085
- }>;
3086
- uniqueConstraints: Record<string, {
3087
- name: string;
3088
- columns: string[];
3089
- }>;
3090
- }, {
3091
- uniqueConstraints?: Record<string, {
3092
- name: string;
3093
- columns: string[];
3094
- }> | undefined;
3095
- name: string;
3096
- columns: Record<string, {
3097
- default?: any;
3098
- autoincrement?: boolean | undefined;
3099
- name: string;
3100
- type: string;
3101
- primaryKey: boolean;
3102
- notNull: boolean;
3103
- }>;
3104
- indexes: Record<string, {
3105
- where?: string | undefined;
3106
- name: string;
3107
- columns: string[];
3108
- isUnique: boolean;
3109
- }>;
3110
- foreignKeys: Record<string, {
3111
- onUpdate?: string | undefined;
3112
- onDelete?: string | undefined;
3113
- name: string;
3114
- tableFrom: string;
3115
- columnsFrom: string[];
3116
- tableTo: string;
3117
- columnsTo: string[];
3118
- }>;
3119
- compositePrimaryKeys: Record<string, {
3120
- name?: string | undefined;
3121
- columns: string[];
3122
- }>;
3123
- }>>;
3124
- enums: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
3125
- _meta: import("zod").ZodObject<{
3126
- tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3127
- columns: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3128
- }, "strip", import("zod").ZodTypeAny, {
3129
- columns: Record<string, string>;
3130
- tables: Record<string, string>;
3131
- }, {
3132
- columns: Record<string, string>;
3133
- tables: Record<string, string>;
3134
- }>;
3135
- }, {
3136
- id: import("zod").ZodString;
3137
- prevId: import("zod").ZodString;
3138
- }>, "strict", import("zod").ZodTypeAny, {
3139
- id: string;
3140
- prevId: string;
3141
- version: "5";
3142
- dialect: "sqlite";
3143
- tables: Record<string, {
3144
- name: string;
3145
- columns: Record<string, {
3146
- default?: any;
3147
- autoincrement?: boolean | undefined;
3148
- name: string;
3149
- type: string;
3150
- primaryKey: boolean;
3151
- notNull: boolean;
3152
- }>;
3153
- indexes: Record<string, {
3154
- where?: string | undefined;
3155
- name: string;
3156
- columns: string[];
3157
- isUnique: boolean;
3158
- }>;
3159
- foreignKeys: Record<string, {
3160
- onUpdate?: string | undefined;
3161
- onDelete?: string | undefined;
3162
- name: string;
3163
- tableFrom: string;
3164
- columnsFrom: string[];
3165
- tableTo: string;
3166
- columnsTo: string[];
3167
- }>;
3168
- compositePrimaryKeys: Record<string, {
3169
- name?: string | undefined;
3170
- columns: string[];
3171
- }>;
3172
- uniqueConstraints: Record<string, {
3173
- name: string;
3174
- columns: string[];
3175
- }>;
3176
- }>;
3177
- _meta: {
3178
- columns: Record<string, string>;
3179
- tables: Record<string, string>;
3180
- };
3181
- enums: {};
3182
- }, {
3183
- id: string;
3184
- prevId: string;
3185
- version: "5";
3186
- dialect: "sqlite";
3187
- tables: Record<string, {
3188
- uniqueConstraints?: Record<string, {
3189
- name: string;
3190
- columns: string[];
3191
- }> | undefined;
3192
- name: string;
3193
- columns: Record<string, {
3194
- default?: any;
3195
- autoincrement?: boolean | undefined;
3196
- name: string;
3197
- type: string;
3198
- primaryKey: boolean;
3199
- notNull: boolean;
3200
- }>;
3201
- indexes: Record<string, {
3202
- where?: string | undefined;
3203
- name: string;
3204
- columns: string[];
3205
- isUnique: boolean;
3206
- }>;
3207
- foreignKeys: Record<string, {
3208
- onUpdate?: string | undefined;
3209
- onDelete?: string | undefined;
3210
- name: string;
3211
- tableFrom: string;
3212
- columnsFrom: string[];
3213
- tableTo: string;
3214
- columnsTo: string[];
3215
- }>;
3216
- compositePrimaryKeys: Record<string, {
3217
- name?: string | undefined;
3218
- columns: string[];
3219
- }>;
3220
- }>;
3221
- _meta: {
3222
- columns: Record<string, string>;
3223
- tables: Record<string, string>;
3224
- };
3225
- enums: {};
3226
- }>]>;
3227
- export {};