lib/mysql
DefaultMySqlSchema
type DefaultMySqlSchema: {
accountsTable: MySqlTableFn<typeof mysqlAccountsTable["_"]["config"]>;
sessionsTable: MySqlTableFn<typeof mysqlSessionsTable["_"]["config"]>;
usersTable: MySqlTableFn<typeof mysqlUsersTable["_"]["config"]>;
verificationTokensTable: MySqlTableFn<typeof mysqlVerificationTokensTable["_"]["config"]>;
};
Type declaration
accountsTable
accountsTable: MySqlTableFn<typeof mysqlAccountsTable["_"]["config"]>;
sessionsTable
sessionsTable: MySqlTableFn<typeof mysqlSessionsTable["_"]["config"]>;
usersTable
usersTable: MySqlTableFn<typeof mysqlUsersTable["_"]["config"]>;
verificationTokensTable
verificationTokensTable: MySqlTableFn<typeof mysqlVerificationTokensTable["_"]["config"]>;
MySqlTableFn<T>
type MySqlTableFn<T>: MySqlTableWithColumns<{
columns: T["columns"];
dialect: T["dialect"];
name: T["name"];
schema: string | undefined;
}>;
Type declaration
columns
columns: T["columns"];
dialect
dialect: T["dialect"];
name
name: T["name"];
schema
schema: string | undefined;
Type parameters
Type parameter |
---|
T extends TableConfig |
mysqlAccountsTable
const mysqlAccountsTable: MySqlTableWithColumns<{
columns: {
access_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "access_token";
notNull: false;
tableName: string;
}, object>;
expires_at: MySqlColumn<{
baseColumn: never;
columnType: "MySqlInt";
data: number;
dataType: "number";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires_at";
notNull: false;
tableName: string;
}, object>;
id_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "id_token";
notNull: false;
tableName: string;
}, object>;
provider: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "provider";
notNull: true;
tableName: string;
}, object>;
providerAccountId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "providerAccountId";
notNull: true;
tableName: string;
}, object>;
refresh_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "refresh_token";
notNull: false;
tableName: string;
}, object>;
scope: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "scope";
notNull: false;
tableName: string;
}, object>;
session_state: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "session_state";
notNull: false;
tableName: string;
}, object>;
token_type: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token_type";
notNull: false;
tableName: string;
}, object>;
type: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "type";
notNull: true;
tableName: string;
}, object>;
userId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, object>;
};
dialect: "mysql";
name: string;
schema: undefined;
}>;
Type declaration
columns
columns: {
access_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "access_token";
notNull: false;
tableName: string;
}, object>;
expires_at: MySqlColumn<{
baseColumn: never;
columnType: "MySqlInt";
data: number;
dataType: "number";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires_at";
notNull: false;
tableName: string;
}, object>;
id_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "id_token";
notNull: false;
tableName: string;
}, object>;
provider: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "provider";
notNull: true;
tableName: string;
}, object>;
providerAccountId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "providerAccountId";
notNull: true;
tableName: string;
}, object>;
refresh_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "refresh_token";
notNull: false;
tableName: string;
}, object>;
scope: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "scope";
notNull: false;
tableName: string;
}, object>;
session_state: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "session_state";
notNull: false;
tableName: string;
}, object>;
token_type: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token_type";
notNull: false;
tableName: string;
}, object>;
type: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "type";
notNull: true;
tableName: string;
}, object>;
userId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, object>;
};
columns.access_token
access_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "access_token";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "access_token";
notNull
notNull: false;
tableName
tableName: string;
columns.expires_at
expires_at: MySqlColumn<{
baseColumn: never;
columnType: "MySqlInt";
data: number;
dataType: "number";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires_at";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlInt";
data
data: number;
dataType
dataType: "number";
driverParam
driverParam: string | number;
enumValues
enumValues: undefined;
hasDefault
hasDefault: false;
name
name: "expires_at";
notNull
notNull: false;
tableName
tableName: string;
columns.id_token
id_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "id_token";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "id_token";
notNull
notNull: false;
tableName
tableName: string;
columns.provider
provider: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "provider";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "provider";
notNull
notNull: true;
tableName
tableName: string;
columns.providerAccountId
providerAccountId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "providerAccountId";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "providerAccountId";
notNull
notNull: true;
tableName
tableName: string;
columns.refresh_token
refresh_token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "refresh_token";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "refresh_token";
notNull
notNull: false;
tableName
tableName: string;
columns.scope
scope: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "scope";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "scope";
notNull
notNull: false;
tableName
tableName: string;
columns.session_state
session_state: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "session_state";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "session_state";
notNull
notNull: false;
tableName
tableName: string;
columns.token_type
token_type: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token_type";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "token_type";
notNull
notNull: false;
tableName
tableName: string;
columns.type
type: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "type";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "type";
notNull
notNull: true;
tableName
tableName: string;
columns.userId
userId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "userId";
notNull
notNull: true;
tableName
tableName: string;
dialect
dialect: "mysql";
name
name: string;
schema
schema: undefined;
mysqlSessionsTable
const mysqlSessionsTable: MySqlTableWithColumns<{
columns: {
expires: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, object>;
id: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, object>;
sessionToken: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "sessionToken";
notNull: true;
tableName: string;
}, object>;
userId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, object>;
};
dialect: "mysql";
name: string;
schema: undefined;
}>;
Type declaration
columns
columns: {
expires: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, object>;
id: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, object>;
sessionToken: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "sessionToken";
notNull: true;
tableName: string;
}, object>;
userId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, object>;
};
columns.expires
expires: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlTimestamp";
data
data: Date;
dataType
dataType: "date";
driverParam
driverParam: string | number;
enumValues
enumValues: undefined;
hasDefault
hasDefault: false;
name
name: "expires";
notNull
notNull: true;
tableName
tableName: string;
columns.id
id: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: true;
name
name: "id";
notNull
notNull: true;
tableName
tableName: string;
columns.sessionToken
sessionToken: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "sessionToken";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "sessionToken";
notNull
notNull: true;
tableName
tableName: string;
columns.userId
userId: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "userId";
notNull
notNull: true;
tableName
tableName: string;
dialect
dialect: "mysql";
name
name: string;
schema
schema: undefined;
mysqlUsersTable
const mysqlUsersTable: MySqlTableWithColumns<{
columns: {
email: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "email";
notNull: true;
tableName: string;
}, object>;
emailVerified: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "emailVerified";
notNull: false;
tableName: string;
}, object>;
id: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, object>;
image: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "image";
notNull: false;
tableName: string;
}, object>;
name: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "name";
notNull: false;
tableName: string;
}, object>;
};
dialect: "mysql";
name: string;
schema: undefined;
}>;
Type declaration
columns
columns: {
email: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "email";
notNull: true;
tableName: string;
}, object>;
emailVerified: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "emailVerified";
notNull: false;
tableName: string;
}, object>;
id: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, object>;
image: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "image";
notNull: false;
tableName: string;
}, object>;
name: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "name";
notNull: false;
tableName: string;
}, object>;
};
columns.email
email: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "email";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "email";
notNull
notNull: true;
tableName
tableName: string;
columns.emailVerified
emailVerified: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "emailVerified";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlTimestamp";
data
data: Date;
dataType
dataType: "date";
driverParam
driverParam: string | number;
enumValues
enumValues: undefined;
hasDefault
hasDefault: false;
name
name: "emailVerified";
notNull
notNull: false;
tableName
tableName: string;
columns.id
id: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: true;
name
name: "id";
notNull
notNull: true;
tableName
tableName: string;
columns.image
image: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "image";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "image";
notNull
notNull: false;
tableName
tableName: string;
columns.name
name: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "name";
notNull: false;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "name";
notNull
notNull: false;
tableName
tableName: string;
dialect
dialect: "mysql";
name
name: string;
schema
schema: undefined;
mysqlVerificationTokensTable
const mysqlVerificationTokensTable: MySqlTableWithColumns<{
columns: {
expires: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, object>;
identifier: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "identifier";
notNull: true;
tableName: string;
}, object>;
token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token";
notNull: true;
tableName: string;
}, object>;
};
dialect: "mysql";
name: string;
schema: undefined;
}>;
Type declaration
columns
columns: {
expires: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, object>;
identifier: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "identifier";
notNull: true;
tableName: string;
}, object>;
token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token";
notNull: true;
tableName: string;
}, object>;
};
columns.expires
expires: MySqlColumn<{
baseColumn: never;
columnType: "MySqlTimestamp";
data: Date;
dataType: "date";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlTimestamp";
data
data: Date;
dataType
dataType: "date";
driverParam
driverParam: string | number;
enumValues
enumValues: undefined;
hasDefault
hasDefault: false;
name
name: "expires";
notNull
notNull: true;
tableName
tableName: string;
columns.identifier
identifier: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "identifier";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "identifier";
notNull
notNull: true;
tableName
tableName: string;
columns.token
token: MySqlColumn<{
baseColumn: never;
columnType: "MySqlVarChar";
data: string;
dataType: "string";
driverParam: string | number;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token";
notNull: true;
tableName: string;
}, object>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "MySqlVarChar";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string | number;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "token";
notNull
notNull: true;
tableName
tableName: string;
dialect
dialect: "mysql";
name
name: string;
schema
schema: undefined;
MySqlDrizzleAdapter()
MySqlDrizzleAdapter(client, schema): Adapter
Parameters
Parameter | Type |
---|---|
client | MySqlDatabase <QueryResultHKT , PreparedQueryHKTBase , any , ExtractTablesWithRelations <any >> |
schema | DefaultMySqlSchema |