@anthonyalayo/drizzle-kit 1.0.2 → 1.0.4

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