CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
api.d.ts3340 linesDownload Raw Back to drizzle-kit
1import { PGlite } from '@electric-sql/pglite';2import { LibSQLDatabase } from 'drizzle-orm/libsql';3import { MySql2Database } from 'drizzle-orm/mysql2';4import { PgDatabase } from 'drizzle-orm/pg-core';5import { SingleStoreDriverDatabase } from 'drizzle-orm/singlestore';6import * as zod from 'zod';7import { TypeOf } from 'zod';8import { ConnectionOptions } from 'tls';9 10declare const prefixes: readonly ["index", "timestamp", "supabase", "unix", "none"];11type Prefix = (typeof prefixes)[number];12declare const casingTypes: readonly ["snake_case", "camelCase"];13type CasingType = (typeof casingTypes)[number];14declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite"];15type Driver = (typeof drivers)[number];16 17declare const mysqlCredentials: zod.ZodUnion<[zod.ZodObject<{18    host: zod.ZodString;19    port: zod.ZodOptional<zod.ZodNumber>;20    user: zod.ZodOptional<zod.ZodString>;21    password: zod.ZodOptional<zod.ZodString>;22    database: zod.ZodString;23    ssl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<{24        pfx: zod.ZodOptional<zod.ZodString>;25        key: zod.ZodOptional<zod.ZodString>;26        passphrase: zod.ZodOptional<zod.ZodString>;27        cert: zod.ZodOptional<zod.ZodString>;28        ca: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;29        crl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;30        ciphers: zod.ZodOptional<zod.ZodString>;31        rejectUnauthorized: zod.ZodOptional<zod.ZodBoolean>;32    }, "strip", zod.ZodTypeAny, {33        pfx?: string | undefined;34        key?: string | undefined;35        passphrase?: string | undefined;36        cert?: string | undefined;37        ca?: string | string[] | undefined;38        crl?: string | string[] | undefined;39        ciphers?: string | undefined;40        rejectUnauthorized?: boolean | undefined;41    }, {42        pfx?: string | undefined;43        key?: string | undefined;44        passphrase?: string | undefined;45        cert?: string | undefined;46        ca?: string | string[] | undefined;47        crl?: string | string[] | undefined;48        ciphers?: string | undefined;49        rejectUnauthorized?: boolean | undefined;50    }>]>>;51}, "strip", zod.ZodTypeAny, {52    host: string;53    database: string;54    port?: number | undefined;55    user?: string | undefined;56    password?: string | undefined;57    ssl?: string | {58        pfx?: string | undefined;59        key?: string | undefined;60        passphrase?: string | undefined;61        cert?: string | undefined;62        ca?: string | string[] | undefined;63        crl?: string | string[] | undefined;64        ciphers?: string | undefined;65        rejectUnauthorized?: boolean | undefined;66    } | undefined;67}, {68    host: string;69    database: string;70    port?: number | undefined;71    user?: string | undefined;72    password?: string | undefined;73    ssl?: string | {74        pfx?: string | undefined;75        key?: string | undefined;76        passphrase?: string | undefined;77        cert?: string | undefined;78        ca?: string | string[] | undefined;79        crl?: string | string[] | undefined;80        ciphers?: string | undefined;81        rejectUnauthorized?: boolean | undefined;82    } | undefined;83}>, zod.ZodObject<{84    url: zod.ZodString;85}, "strip", zod.ZodTypeAny, {86    url: string;87}, {88    url: string;89}>]>;90type MysqlCredentials = TypeOf<typeof mysqlCredentials>;91 92declare const postgresCredentials: zod.ZodUnion<[zod.ZodEffects<zod.ZodObject<{93    driver: zod.ZodUndefined;94    host: zod.ZodString;95    port: zod.ZodOptional<zod.ZodNumber>;96    user: zod.ZodOptional<zod.ZodString>;97    password: zod.ZodOptional<zod.ZodString>;98    database: zod.ZodString;99    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">>]>>;100}, "strip", zod.ZodTypeAny, {101    host: string;102    database: string;103    driver?: undefined;104    port?: number | undefined;105    user?: string | undefined;106    password?: string | undefined;107    ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;108}, {109    host: string;110    database: string;111    driver?: undefined;112    port?: number | undefined;113    user?: string | undefined;114    password?: string | undefined;115    ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;116}>, Omit<{117    host: string;118    database: string;119    driver?: undefined;120    port?: number | undefined;121    user?: string | undefined;122    password?: string | undefined;123    ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;124}, "driver">, {125    host: string;126    database: string;127    driver?: undefined;128    port?: number | undefined;129    user?: string | undefined;130    password?: string | undefined;131    ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;132}>, zod.ZodEffects<zod.ZodObject<{133    driver: zod.ZodUndefined;134    url: zod.ZodString;135}, "strip", zod.ZodTypeAny, {136    url: string;137    driver?: undefined;138}, {139    url: string;140    driver?: undefined;141}>, {142    url: string;143}, {144    url: string;145    driver?: undefined;146}>, zod.ZodObject<{147    driver: zod.ZodLiteral<"aws-data-api">;148    database: zod.ZodString;149    secretArn: zod.ZodString;150    resourceArn: zod.ZodString;151}, "strip", zod.ZodTypeAny, {152    driver: "aws-data-api";153    database: string;154    secretArn: string;155    resourceArn: string;156}, {157    driver: "aws-data-api";158    database: string;159    secretArn: string;160    resourceArn: string;161}>, zod.ZodObject<{162    driver: zod.ZodLiteral<"pglite">;163    url: zod.ZodString;164}, "strip", zod.ZodTypeAny, {165    url: string;166    driver: "pglite";167}, {168    url: string;169    driver: "pglite";170}>]>;171type PostgresCredentials = TypeOf<typeof postgresCredentials>;172 173declare const singlestoreCredentials: zod.ZodUnion<[zod.ZodObject<{174    host: zod.ZodString;175    port: zod.ZodOptional<zod.ZodNumber>;176    user: zod.ZodOptional<zod.ZodString>;177    password: zod.ZodOptional<zod.ZodString>;178    database: zod.ZodString;179    ssl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<{180        pfx: zod.ZodOptional<zod.ZodString>;181        key: zod.ZodOptional<zod.ZodString>;182        passphrase: zod.ZodOptional<zod.ZodString>;183        cert: zod.ZodOptional<zod.ZodString>;184        ca: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;185        crl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;186        ciphers: zod.ZodOptional<zod.ZodString>;187        rejectUnauthorized: zod.ZodOptional<zod.ZodBoolean>;188    }, "strip", zod.ZodTypeAny, {189        pfx?: string | undefined;190        key?: string | undefined;191        passphrase?: string | undefined;192        cert?: string | undefined;193        ca?: string | string[] | undefined;194        crl?: string | string[] | undefined;195        ciphers?: string | undefined;196        rejectUnauthorized?: boolean | undefined;197    }, {198        pfx?: string | undefined;199        key?: string | undefined;200        passphrase?: string | undefined;201        cert?: string | undefined;202        ca?: string | string[] | undefined;203        crl?: string | string[] | undefined;204        ciphers?: string | undefined;205        rejectUnauthorized?: boolean | undefined;206    }>]>>;207}, "strip", zod.ZodTypeAny, {208    host: string;209    database: string;210    port?: number | undefined;211    user?: string | undefined;212    password?: string | undefined;213    ssl?: string | {214        pfx?: string | undefined;215        key?: string | undefined;216        passphrase?: string | undefined;217        cert?: string | undefined;218        ca?: string | string[] | undefined;219        crl?: string | string[] | undefined;220        ciphers?: string | undefined;221        rejectUnauthorized?: boolean | undefined;222    } | undefined;223}, {224    host: string;225    database: string;226    port?: number | undefined;227    user?: string | undefined;228    password?: string | undefined;229    ssl?: string | {230        pfx?: string | undefined;231        key?: string | undefined;232        passphrase?: string | undefined;233        cert?: string | undefined;234        ca?: string | string[] | undefined;235        crl?: string | string[] | undefined;236        ciphers?: string | undefined;237        rejectUnauthorized?: boolean | undefined;238    } | undefined;239}>, zod.ZodObject<{240    url: zod.ZodString;241}, "strip", zod.ZodTypeAny, {242    url: string;243}, {244    url: string;245}>]>;246type SingleStoreCredentials = TypeOf<typeof singlestoreCredentials>;247 248type SqliteCredentials = {249    driver: 'd1-http';250    accountId: string;251    databaseId: string;252    token: string;253} | {254    url: string;255};256 257declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel"];258type Dialect = (typeof dialects)[number];259 260type SslOptions = {261    pfx?: string;262    key?: string;263    passphrase?: string;264    cert?: string;265    ca?: string | string[];266    crl?: string | string[];267    ciphers?: string;268    rejectUnauthorized?: boolean;269};270type Verify<T, U extends T> = U;271/**272 * **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 what273 * adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**274 *275 * **Config** usage:276 *277 * `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands278 * *Possible values*: `postgresql`, `mysql`, `sqlite`, `singlestore279 *280 * See https://orm.drizzle.team/kit-docs/config-reference#dialect281 *282 * ---283 * `schema` - param lets you define where your schema file/files live.284 * You can have as many separate schema files as you want and define paths to them using glob or array of globs syntax.285 *286 * See https://orm.drizzle.team/kit-docs/config-reference#schema287 *288 * ---289 * `out` - allows you to define the folder for your migrations and a folder, where drizzle will introspect the schema and relations290 *291 * See https://orm.drizzle.team/kit-docs/config-reference#out292 *293 * ---294 * `driver` - optional param that is responsible for explicitly providing a driver to use when accessing a database295 * *Possible values*: `aws-data-api`, `d1-http`, `expo`, `turso`, `pglite`296 * 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-21297 *298 * See https://orm.drizzle.team/kit-docs/config-reference#driver299 *300 * ---301 *302 * `dbCredentials` - an object to define your connection to the database. For more info please check the docs303 *304 * See https://orm.drizzle.team/kit-docs/config-reference#dbcredentials305 *306 * ---307 *308 * `migrations` - param let’s use specify custom table and schema(PostgreSQL only) for migrations.309 * By default, all information about executed migrations will be stored in the database inside310 * the `__drizzle_migrations` table, and for PostgreSQL, inside the drizzle schema.311 * However, you can configure where to store those records.312 *313 * See https://orm.drizzle.team/kit-docs/config-reference#migrations314 *315 * ---316 *317 * `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.318 * It’s optional and true by default, it’s necessary to properly apply migrations on databases,319 * that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite, SingleStore) and320 * Drizzle ORM has to apply them sequentially one by one.321 *322 * See https://orm.drizzle.team/kit-docs/config-reference#breakpoints323 *324 * ---325 *326 * `tablesFilters` - param lets you filter tables with glob syntax for db push command.327 * It’s useful when you have only one database avaialable for several separate projects with separate sql schemas.328 *329 * How to define multi-project tables with Drizzle ORM — see https://orm.drizzle.team/docs/goodies#multi-project-schema330 *331 * See https://orm.drizzle.team/kit-docs/config-reference#tablesfilters332 *333 * ---334 *335 * `schemaFilter` - parameter allows you to define which schema in PostgreSQL should be used for either introspect or push commands.336 * This parameter accepts a single schema as a string or an array of schemas as strings.337 * No glob pattern is supported here. By default, drizzle will use the public schema for both commands,338 * but you can add any schema you need.339 *340 * For example, having schemaFilter: ["my_schema"] will only look for tables in both the database and341 * drizzle schema that are a part of the my_schema schema.342 *343 * See https://orm.drizzle.team/kit-docs/config-reference#schemafilter344 *345 * ---346 *347 * `verbose` - command is used for drizzle-kit push commands and prints all statements that will be executed.348 *349 * > Note: This command will only print the statements that should be executed.350 * To approve them before applying, please refer to the `strict` command.351 *352 * See https://orm.drizzle.team/kit-docs/config-reference#verbose353 *354 * ---355 *356 * `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,357 * either to execute all statements needed to sync your schema with the database or not.358 *359 * See https://orm.drizzle.team/kit-docs/config-reference#strict360 */361type Config = {362    dialect: Dialect;363    out?: string;364    breakpoints?: boolean;365    tablesFilter?: string | string[];366    extensionsFilters?: 'postgis'[];367    schemaFilter?: string | string[];368    schema?: string | string[];369    verbose?: boolean;370    strict?: boolean;371    casing?: 'camelCase' | 'snake_case';372    migrations?: {373        table?: string;374        schema?: string;375        prefix?: Prefix;376    };377    introspect?: {378        casing: 'camel' | 'preserve';379    };380    entities?: {381        roles?: boolean | {382            provider?: 'supabase' | 'neon' | string & {};383            exclude?: string[];384            include?: string[];385        };386    };387} & ({388    dialect: Verify<Dialect, 'turso'>;389    dbCredentials: {390        url: string;391        authToken?: string;392    };393} | {394    dialect: Verify<Dialect, 'sqlite'>;395    dbCredentials: {396        url: string;397    };398} | {399    dialect: Verify<Dialect, 'postgresql'>;400    dbCredentials: ({401        host: string;402        port?: number;403        user?: string;404        password?: string;405        database: string;406        ssl?: boolean | 'require' | 'allow' | 'prefer' | 'verify-full' | ConnectionOptions;407    } & {}) | {408        url: string;409    };410} | {411    dialect: Verify<Dialect, 'postgresql'>;412    driver: Verify<Driver, 'aws-data-api'>;413    dbCredentials: {414        database: string;415        secretArn: string;416        resourceArn: string;417    };418} | {419    dialect: Verify<Dialect, 'postgresql'>;420    driver: Verify<Driver, 'pglite'>;421    dbCredentials: {422        url: string;423    };424} | {425    dialect: Verify<Dialect, 'mysql'>;426    dbCredentials: {427        host: string;428        port?: number;429        user?: string;430        password?: string;431        database: string;432        ssl?: string | SslOptions;433    } | {434        url: string;435    };436} | {437    dialect: Verify<Dialect, 'sqlite'>;438    driver: Verify<Driver, 'd1-http'>;439    dbCredentials: {440        accountId: string;441        databaseId: string;442        token: string;443    };444} | {445    dialect: Verify<Dialect, 'sqlite'>;446    driver: Verify<Driver, 'expo'>;447} | {448    dialect: Verify<Dialect, 'sqlite'>;449    driver: Verify<Driver, 'durable-sqlite'>;450} | {} | {451    dialect: Verify<Dialect, 'singlestore'>;452    dbCredentials: {453        host: string;454        port?: number;455        user?: string;456        password?: string;457        database: string;458        ssl?: string | SslOptions;459    } | {460        url: string;461    };462} | {463    dialect: Verify<Dialect, 'gel'>;464    dbCredentials?: {465        tlsSecurity?: 'insecure' | 'no_host_verification' | 'strict' | 'default';466    } & ({467        url: string;468    } | ({469        host: string;470        port?: number;471        user?: string;472        password?: string;473        database: string;474    }));475});476 477declare const schema$2: zod.ZodObject<{478    version: zod.ZodLiteral<"5">;479    dialect: zod.ZodLiteral<"mysql">;480    tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{481        name: zod.ZodString;482        columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{483            name: zod.ZodString;484            type: zod.ZodString;485            primaryKey: zod.ZodBoolean;486            notNull: zod.ZodBoolean;487            autoincrement: zod.ZodOptional<zod.ZodBoolean>;488            default: zod.ZodOptional<zod.ZodAny>;489            onUpdate: zod.ZodOptional<zod.ZodAny>;490            generated: zod.ZodOptional<zod.ZodObject<{491                type: zod.ZodEnum<["stored", "virtual"]>;492                as: zod.ZodString;493            }, "strip", zod.ZodTypeAny, {494                type: "stored" | "virtual";495                as: string;496            }, {497                type: "stored" | "virtual";498                as: string;499            }>>;500        }, "strict", zod.ZodTypeAny, {501            type: string;502            name: string;503            primaryKey: boolean;504            notNull: boolean;505            default?: any;506            generated?: {507                type: "stored" | "virtual";508                as: string;509            } | undefined;510            onUpdate?: any;511            autoincrement?: boolean | undefined;512        }, {513            type: string;514            name: string;515            primaryKey: boolean;516            notNull: boolean;517            default?: any;518            generated?: {519                type: "stored" | "virtual";520                as: string;521            } | undefined;522            onUpdate?: any;523            autoincrement?: boolean | undefined;524        }>>;525        indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{526            name: zod.ZodString;527            columns: zod.ZodArray<zod.ZodString, "many">;528            isUnique: zod.ZodBoolean;529            using: zod.ZodOptional<zod.ZodEnum<["btree", "hash"]>>;530            algorithm: zod.ZodOptional<zod.ZodEnum<["default", "inplace", "copy"]>>;531            lock: zod.ZodOptional<zod.ZodEnum<["default", "none", "shared", "exclusive"]>>;532        }, "strict", zod.ZodTypeAny, {533            name: string;534            columns: string[];535            isUnique: boolean;536            using?: "btree" | "hash" | undefined;537            algorithm?: "default" | "inplace" | "copy" | undefined;538            lock?: "default" | "none" | "shared" | "exclusive" | undefined;539        }, {540            name: string;541            columns: string[];542            isUnique: boolean;543            using?: "btree" | "hash" | undefined;544            algorithm?: "default" | "inplace" | "copy" | undefined;545            lock?: "default" | "none" | "shared" | "exclusive" | undefined;546        }>>;547        foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{548            name: zod.ZodString;549            tableFrom: zod.ZodString;550            columnsFrom: zod.ZodArray<zod.ZodString, "many">;551            tableTo: zod.ZodString;552            columnsTo: zod.ZodArray<zod.ZodString, "many">;553            onUpdate: zod.ZodOptional<zod.ZodString>;554            onDelete: zod.ZodOptional<zod.ZodString>;555        }, "strict", zod.ZodTypeAny, {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            name: string;565            tableFrom: string;566            columnsFrom: string[];567            tableTo: string;568            columnsTo: string[];569            onUpdate?: string | undefined;570            onDelete?: string | undefined;571        }>>;572        compositePrimaryKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{573            name: zod.ZodString;574            columns: zod.ZodArray<zod.ZodString, "many">;575        }, "strict", zod.ZodTypeAny, {576            name: string;577            columns: string[];578        }, {579            name: string;580            columns: string[];581        }>>;582        uniqueConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{583            name: zod.ZodString;584            columns: zod.ZodArray<zod.ZodString, "many">;585        }, "strict", zod.ZodTypeAny, {586            name: string;587            columns: string[];588        }, {589            name: string;590            columns: string[];591        }>>>;592        checkConstraint: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{593            name: zod.ZodString;594            value: zod.ZodString;595        }, "strict", zod.ZodTypeAny, {596            value: string;597            name: string;598        }, {599            value: string;600            name: string;601        }>>>;602    }, "strict", zod.ZodTypeAny, {603        name: string;604        columns: Record<string, {605            type: string;606            name: string;607            primaryKey: boolean;608            notNull: boolean;609            default?: any;610            generated?: {611                type: "stored" | "virtual";612                as: string;613            } | undefined;614            onUpdate?: any;615            autoincrement?: boolean | undefined;616        }>;617        indexes: Record<string, {618            name: string;619            columns: string[];620            isUnique: boolean;621            using?: "btree" | "hash" | undefined;622            algorithm?: "default" | "inplace" | "copy" | undefined;623            lock?: "default" | "none" | "shared" | "exclusive" | undefined;624        }>;625        foreignKeys: Record<string, {626            name: string;627            tableFrom: string;628            columnsFrom: string[];629            tableTo: string;630            columnsTo: string[];631            onUpdate?: string | undefined;632            onDelete?: string | undefined;633        }>;634        compositePrimaryKeys: Record<string, {635            name: string;636            columns: string[];637        }>;638        uniqueConstraints: Record<string, {639            name: string;640            columns: string[];641        }>;642        checkConstraint: Record<string, {643            value: string;644            name: string;645        }>;646    }, {647        name: string;648        columns: Record<string, {649            type: string;650            name: string;651            primaryKey: boolean;652            notNull: boolean;653            default?: any;654            generated?: {655                type: "stored" | "virtual";656                as: string;657            } | undefined;658            onUpdate?: any;659            autoincrement?: boolean | undefined;660        }>;661        indexes: Record<string, {662            name: string;663            columns: string[];664            isUnique: boolean;665            using?: "btree" | "hash" | undefined;666            algorithm?: "default" | "inplace" | "copy" | undefined;667            lock?: "default" | "none" | "shared" | "exclusive" | undefined;668        }>;669        foreignKeys: Record<string, {670            name: string;671            tableFrom: string;672            columnsFrom: string[];673            tableTo: string;674            columnsTo: string[];675            onUpdate?: string | undefined;676            onDelete?: string | undefined;677        }>;678        compositePrimaryKeys: Record<string, {679            name: string;680            columns: string[];681        }>;682        uniqueConstraints?: Record<string, {683            name: string;684            columns: string[];685        }> | undefined;686        checkConstraint?: Record<string, {687            value: string;688            name: string;689        }> | undefined;690    }>>;691    views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{692        name: zod.ZodString;693        columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{694            name: zod.ZodString;695            type: zod.ZodString;696            primaryKey: zod.ZodBoolean;697            notNull: zod.ZodBoolean;698            autoincrement: zod.ZodOptional<zod.ZodBoolean>;699            default: zod.ZodOptional<zod.ZodAny>;700            onUpdate: zod.ZodOptional<zod.ZodAny>;701            generated: zod.ZodOptional<zod.ZodObject<{702                type: zod.ZodEnum<["stored", "virtual"]>;703                as: zod.ZodString;704            }, "strip", zod.ZodTypeAny, {705                type: "stored" | "virtual";706                as: string;707            }, {708                type: "stored" | "virtual";709                as: string;710            }>>;711        }, "strict", zod.ZodTypeAny, {712            type: string;713            name: string;714            primaryKey: boolean;715            notNull: boolean;716            default?: any;717            generated?: {718                type: "stored" | "virtual";719                as: string;720            } | undefined;721            onUpdate?: any;722            autoincrement?: boolean | undefined;723        }, {724            type: string;725            name: string;726            primaryKey: boolean;727            notNull: boolean;728            default?: any;729            generated?: {730                type: "stored" | "virtual";731                as: string;732            } | undefined;733            onUpdate?: any;734            autoincrement?: boolean | undefined;735        }>>;736        definition: zod.ZodOptional<zod.ZodString>;737        isExisting: zod.ZodBoolean;738    } & {739        algorithm: zod.ZodEnum<["undefined", "merge", "temptable"]>;740        sqlSecurity: zod.ZodEnum<["definer", "invoker"]>;741        withCheckOption: zod.ZodOptional<zod.ZodEnum<["local", "cascaded"]>>;742    }, "strict", zod.ZodTypeAny, {743        name: string;744        columns: Record<string, {745            type: string;746            name: string;747            primaryKey: boolean;748            notNull: boolean;749            default?: any;750            generated?: {751                type: "stored" | "virtual";752                as: string;753            } | undefined;754            onUpdate?: any;755            autoincrement?: boolean | undefined;756        }>;757        isExisting: boolean;758        algorithm: "undefined" | "merge" | "temptable";759        sqlSecurity: "definer" | "invoker";760        definition?: string | undefined;761        withCheckOption?: "local" | "cascaded" | undefined;762    }, {763        name: string;764        columns: Record<string, {765            type: string;766            name: string;767            primaryKey: boolean;768            notNull: boolean;769            default?: any;770            generated?: {771                type: "stored" | "virtual";772                as: string;773            } | undefined;774            onUpdate?: any;775            autoincrement?: boolean | undefined;776        }>;777        isExisting: boolean;778        algorithm: "undefined" | "merge" | "temptable";779        sqlSecurity: "definer" | "invoker";780        definition?: string | undefined;781        withCheckOption?: "local" | "cascaded" | undefined;782    }>>>;783    _meta: zod.ZodObject<{784        tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;785        columns: zod.ZodRecord<zod.ZodString, zod.ZodString>;786    }, "strip", zod.ZodTypeAny, {787        tables: Record<string, string>;788        columns: Record<string, string>;789    }, {790        tables: Record<string, string>;791        columns: Record<string, string>;792    }>;793    internal: zod.ZodOptional<zod.ZodObject<{794        tables: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{795            columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{796                isDefaultAnExpression: zod.ZodOptional<zod.ZodBoolean>;797            }, "strip", zod.ZodTypeAny, {798                isDefaultAnExpression?: boolean | undefined;799            }, {800                isDefaultAnExpression?: boolean | undefined;801            }>>>;802        }, "strip", zod.ZodTypeAny, {803            columns: Record<string, {804                isDefaultAnExpression?: boolean | undefined;805            } | undefined>;806        }, {807            columns: Record<string, {808                isDefaultAnExpression?: boolean | undefined;809            } | undefined>;810        }>>>>;811        indexes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{812            columns: zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodObject<{813                isExpression: zod.ZodOptional<zod.ZodBoolean>;814            }, "strip", zod.ZodTypeAny, {815                isExpression?: boolean | undefined;816            }, {817                isExpression?: boolean | undefined;818            }>>>;819        }, "strip", zod.ZodTypeAny, {820            columns: Record<string, {821                isExpression?: boolean | undefined;822            } | undefined>;823        }, {824            columns: Record<string, {825                isExpression?: boolean | undefined;826            } | undefined>;827        }>>>>;828    }, "strip", zod.ZodTypeAny, {829        tables?: Record<string, {830            columns: Record<string, {831                isDefaultAnExpression?: boolean | undefined;832            } | undefined>;833        } | undefined> | undefined;834        indexes?: Record<string, {835            columns: Record<string, {836                isExpression?: boolean | undefined;837            } | undefined>;838        } | undefined> | undefined;839    }, {840        tables?: Record<string, {841            columns: Record<string, {842                isDefaultAnExpression?: boolean | undefined;843            } | undefined>;844        } | undefined> | undefined;845        indexes?: Record<string, {846            columns: Record<string, {847                isExpression?: boolean | undefined;848            } | undefined>;849        } | undefined> | undefined;850    }>>;851} & {852    id: zod.ZodString;853    prevId: zod.ZodString;854}, "strip", zod.ZodTypeAny, {855    version: "5";856    dialect: "mysql";857    tables: Record<string, {858        name: string;859        columns: Record<string, {860            type: string;861            name: string;862            primaryKey: boolean;863            notNull: boolean;864            default?: any;865            generated?: {866                type: "stored" | "virtual";867                as: string;868            } | undefined;869            onUpdate?: any;870            autoincrement?: boolean | undefined;871        }>;872        indexes: Record<string, {873            name: string;874            columns: string[];875            isUnique: boolean;876            using?: "btree" | "hash" | undefined;877            algorithm?: "default" | "inplace" | "copy" | undefined;878            lock?: "default" | "none" | "shared" | "exclusive" | undefined;879        }>;880        foreignKeys: Record<string, {881            name: string;882            tableFrom: string;883            columnsFrom: string[];884            tableTo: string;885            columnsTo: string[];886            onUpdate?: string | undefined;887            onDelete?: string | undefined;888        }>;889        compositePrimaryKeys: Record<string, {890            name: string;891            columns: string[];892        }>;893        uniqueConstraints: Record<string, {894            name: string;895            columns: string[];896        }>;897        checkConstraint: Record<string, {898            value: string;899            name: string;900        }>;901    }>;902    views: Record<string, {903        name: string;904        columns: Record<string, {905            type: string;906            name: string;907            primaryKey: boolean;908            notNull: boolean;909            default?: any;910            generated?: {911                type: "stored" | "virtual";912                as: string;913            } | undefined;914            onUpdate?: any;915            autoincrement?: boolean | undefined;916        }>;917        isExisting: boolean;918        algorithm: "undefined" | "merge" | "temptable";919        sqlSecurity: "definer" | "invoker";920        definition?: string | undefined;921        withCheckOption?: "local" | "cascaded" | undefined;922    }>;923    _meta: {924        tables: Record<string, string>;925        columns: Record<string, string>;926    };927    id: string;928    prevId: string;929    internal?: {930        tables?: Record<string, {931            columns: Record<string, {932                isDefaultAnExpression?: boolean | undefined;933            } | undefined>;934        } | undefined> | undefined;935        indexes?: Record<string, {936            columns: Record<string, {937                isExpression?: boolean | undefined;938            } | undefined>;939        } | undefined> | undefined;940    } | undefined;941}, {942    version: "5";943    dialect: "mysql";944    tables: Record<string, {945        name: string;946        columns: Record<string, {947            type: string;948            name: string;949            primaryKey: boolean;950            notNull: boolean;951            default?: any;952            generated?: {953                type: "stored" | "virtual";954                as: string;955            } | undefined;956            onUpdate?: any;957            autoincrement?: boolean | undefined;958        }>;959        indexes: Record<string, {960            name: string;961            columns: string[];962            isUnique: boolean;963            using?: "btree" | "hash" | undefined;964            algorithm?: "default" | "inplace" | "copy" | undefined;965            lock?: "default" | "none" | "shared" | "exclusive" | undefined;966        }>;967        foreignKeys: Record<string, {968            name: string;969            tableFrom: string;970            columnsFrom: string[];971            tableTo: string;972            columnsTo: string[];973            onUpdate?: string | undefined;974            onDelete?: string | undefined;975        }>;976        compositePrimaryKeys: Record<string, {977            name: string;978            columns: string[];979        }>;980        uniqueConstraints?: Record<string, {981            name: string;982            columns: string[];983        }> | undefined;984        checkConstraint?: Record<string, {985            value: string;986            name: string;987        }> | undefined;988    }>;989    _meta: {990        tables: Record<string, string>;991        columns: Record<string, string>;992    };993    id: string;994    prevId: string;995    views?: Record<string, {996        name: string;997        columns: Record<string, {998            type: string;999            name: string;1000            primaryKey: boolean;1001            notNull: boolean;1002            default?: any;1003            generated?: {1004                type: "stored" | "virtual";1005                as: string;1006            } | undefined;1007            onUpdate?: any;1008            autoincrement?: boolean | undefined;1009        }>;1010        isExisting: boolean;1011        algorithm: "undefined" | "merge" | "temptable";1012        sqlSecurity: "definer" | "invoker";1013        definition?: string | undefined;1014        withCheckOption?: "local" | "cascaded" | undefined;1015    }> | undefined;1016    internal?: {1017        tables?: Record<string, {1018            columns: Record<string, {1019                isDefaultAnExpression?: boolean | undefined;1020            } | undefined>;1021        } | undefined> | undefined;1022        indexes?: Record<string, {1023            columns: Record<string, {1024                isExpression?: boolean | undefined;1025            } | undefined>;1026        } | undefined> | undefined;1027    } | undefined;1028}>;1029type MySqlSchema = TypeOf<typeof schema$2>;1030 1031declare const pgSchema: zod.ZodObject<{1032    version: zod.ZodLiteral<"7">;1033    dialect: zod.ZodLiteral<"postgresql">;1034    tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{1035        name: zod.ZodString;1036        schema: zod.ZodString;1037        columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{1038            name: zod.ZodString;1039            type: zod.ZodString;1040            typeSchema: zod.ZodOptional<zod.ZodString>;1041            primaryKey: zod.ZodBoolean;1042            notNull: zod.ZodBoolean;1043            default: zod.ZodOptional<zod.ZodAny>;1044            isUnique: zod.ZodOptional<zod.ZodAny>;1045            uniqueName: zod.ZodOptional<zod.ZodString>;1046            nullsNotDistinct: zod.ZodOptional<zod.ZodBoolean>;1047            generated: zod.ZodOptional<zod.ZodObject<{1048                type: zod.ZodLiteral<"stored">;1049                as: zod.ZodString;1050            }, "strip", zod.ZodTypeAny, {1051                type: "stored";1052                as: string;1053            }, {1054                type: "stored";1055                as: string;1056            }>>;1057            identity: zod.ZodOptional<zod.ZodObject<{1058                name: zod.ZodString;1059                increment: zod.ZodOptional<zod.ZodString>;1060                minValue: zod.ZodOptional<zod.ZodString>;1061                maxValue: zod.ZodOptional<zod.ZodString>;1062                startWith: zod.ZodOptional<zod.ZodString>;1063                cache: zod.ZodOptional<zod.ZodString>;1064                cycle: zod.ZodOptional<zod.ZodBoolean>;1065                schema: zod.ZodString;1066            } & {1067                type: zod.ZodEnum<["always", "byDefault"]>;1068            }, "strip", zod.ZodTypeAny, {1069                type: "always" | "byDefault";1070                name: string;1071                schema: string;1072                increment?: string | undefined;1073                minValue?: string | undefined;1074                maxValue?: string | undefined;1075                startWith?: string | undefined;1076                cache?: string | undefined;1077                cycle?: boolean | undefined;1078            }, {1079                type: "always" | "byDefault";1080                name: string;1081                schema: string;1082                increment?: string | undefined;1083                minValue?: string | undefined;1084                maxValue?: string | undefined;1085                startWith?: string | undefined;1086                cache?: string | undefined;1087                cycle?: boolean | undefined;1088            }>>;1089        }, "strict", zod.ZodTypeAny, {1090            type: string;1091            name: string;1092            primaryKey: boolean;1093            notNull: boolean;1094            typeSchema?: string | undefined;1095            default?: any;1096            isUnique?: any;1097            uniqueName?: string | undefined;1098            nullsNotDistinct?: boolean | undefined;1099            generated?: {1100                type: "stored";1101                as: string;1102            } | undefined;1103            identity?: {1104                type: "always" | "byDefault";1105                name: string;1106                schema: string;1107                increment?: string | undefined;1108                minValue?: string | undefined;1109                maxValue?: string | undefined;1110                startWith?: string | undefined;1111                cache?: string | undefined;1112                cycle?: boolean | undefined;1113            } | undefined;1114        }, {1115            type: string;1116            name: string;1117            primaryKey: boolean;1118            notNull: boolean;1119            typeSchema?: string | undefined;1120            default?: any;1121            isUnique?: any;1122            uniqueName?: string | undefined;1123            nullsNotDistinct?: boolean | undefined;1124            generated?: {1125                type: "stored";1126                as: string;1127            } | undefined;1128            identity?: {1129                type: "always" | "byDefault";1130                name: string;1131                schema: string;1132                increment?: string | undefined;1133                minValue?: string | undefined;1134                maxValue?: string | undefined;1135                startWith?: string | undefined;1136                cache?: string | undefined;1137                cycle?: boolean | undefined;1138            } | undefined;1139        }>>;1140        indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{1141            name: zod.ZodString;1142            columns: zod.ZodArray<zod.ZodObject<{1143                expression: zod.ZodString;1144                isExpression: zod.ZodBoolean;1145                asc: zod.ZodBoolean;1146                nulls: zod.ZodOptional<zod.ZodString>;1147                opclass: zod.ZodOptional<zod.ZodString>;1148            }, "strip", zod.ZodTypeAny, {1149                expression: string;1150                isExpression: boolean;1151                asc: boolean;1152                nulls?: string | undefined;1153                opclass?: string | undefined;1154            }, {1155                expression: string;1156                isExpression: boolean;1157                asc: boolean;1158                nulls?: string | undefined;1159                opclass?: string | undefined;1160            }>, "many">;1161            isUnique: zod.ZodBoolean;1162            with: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;1163            method: zod.ZodDefault<zod.ZodString>;1164            where: zod.ZodOptional<zod.ZodString>;1165            concurrently: zod.ZodDefault<zod.ZodBoolean>;1166        }, "strict", zod.ZodTypeAny, {1167            name: string;1168            columns: {1169                expression: string;1170                isExpression: boolean;1171                asc: boolean;1172                nulls?: string | undefined;1173                opclass?: string | undefined;1174            }[];1175            isUnique: boolean;1176            method: string;1177            concurrently: boolean;1178            with?: Record<string, any> | undefined;1179            where?: string | undefined;1180        }, {1181            name: string;1182            columns: {1183                expression: string;1184                isExpression: boolean;1185                asc: boolean;1186                nulls?: string | undefined;1187                opclass?: string | undefined;1188            }[];1189            isUnique: boolean;1190            with?: Record<string, any> | undefined;1191            method?: string | undefined;1192            where?: string | undefined;1193            concurrently?: boolean | undefined;1194        }>>;1195        foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{1196            name: zod.ZodString;1197            tableFrom: zod.ZodString;1198            columnsFrom: zod.ZodArray<zod.ZodString, "many">;1199            tableTo: zod.ZodString;1200            schemaTo: zod.ZodOptional<zod.ZodString>;

Showing the first 1,200 of 3340 lines. Download the file for the rest.