api.d.mts 119 KB

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