lib/pg
DefaultPostgresSchema
type DefaultPostgresSchema: {
accountsTable: PostgresTableFn<typeof postgresAccountsTable["_"]["config"]>;
sessionsTable: PostgresTableFn<typeof postgresSessionsTable["_"]["config"]>;
usersTable: PostgresTableFn<typeof postgresUsersTable["_"]["config"]>;
verificationTokensTable: PostgresTableFn<typeof postgresVerificationTokensTable["_"]["config"]>;
};
Type declaration
accountsTable
accountsTable: PostgresTableFn<typeof postgresAccountsTable["_"]["config"]>;
sessionsTable
sessionsTable: PostgresTableFn<typeof postgresSessionsTable["_"]["config"]>;
usersTable
usersTable: PostgresTableFn<typeof postgresUsersTable["_"]["config"]>;
verificationTokensTable
verificationTokensTable: PostgresTableFn<typeof postgresVerificationTokensTable["_"]["config"]>;
PostgresTableFn<T>
type PostgresTableFn<T>: PgTableWithColumns<{
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 |
postgresAccountsTable
const postgresAccountsTable: PgTableWithColumns<{
columns: {
access_token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "access_token";
notNull: false;
tableName: string;
}, {}, {}>;
expires_at: PgColumn<{
baseColumn: never;
columnType: "PgInteger";
data: number;
dataType: "number";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires_at";
notNull: false;
tableName: string;
}, {}, {}>;
id_token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "id_token";
notNull: false;
tableName: string;
}, {}, {}>;
provider: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "provider";
notNull: true;
tableName: string;
}, {}, {}>;
providerAccountId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "providerAccountId";
notNull: true;
tableName: string;
}, {}, {}>;
refresh_token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "refresh_token";
notNull: false;
tableName: string;
}, {}, {}>;
scope: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "scope";
notNull: false;
tableName: string;
}, {}, {}>;
session_state: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "session_state";
notNull: false;
tableName: string;
}, {}, {}>;
token_type: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token_type";
notNull: false;
tableName: string;
}, {}, {}>;
type: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "type";
notNull: true;
tableName: string;
}, {}, {}>;
userId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, {}, {}>;
};
dialect: "pg";
name: string;
schema: undefined;
}>;
Type declaration
columns
columns: {
access_token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "access_token";
notNull: false;
tableName: string;
}, {}, {}>;
expires_at: PgColumn<{
baseColumn: never;
columnType: "PgInteger";
data: number;
dataType: "number";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires_at";
notNull: false;
tableName: string;
}, {}, {}>;
id_token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "id_token";
notNull: false;
tableName: string;
}, {}, {}>;
provider: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "provider";
notNull: true;
tableName: string;
}, {}, {}>;
providerAccountId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "providerAccountId";
notNull: true;
tableName: string;
}, {}, {}>;
refresh_token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "refresh_token";
notNull: false;
tableName: string;
}, {}, {}>;
scope: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "scope";
notNull: false;
tableName: string;
}, {}, {}>;
session_state: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "session_state";
notNull: false;
tableName: string;
}, {}, {}>;
token_type: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token_type";
notNull: false;
tableName: string;
}, {}, {}>;
type: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "type";
notNull: true;
tableName: string;
}, {}, {}>;
userId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, {}, {}>;
};
columns.access_token
access_token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "access_token";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "access_token";
notNull
notNull: false;
tableName
tableName: string;
columns.expires_at
expires_at: PgColumn<{
baseColumn: never;
columnType: "PgInteger";
data: number;
dataType: "number";
driverParam: string | number;
enumValues: undefined;
hasDefault: false;
name: "expires_at";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgInteger";
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: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "id_token";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "id_token";
notNull
notNull: false;
tableName
tableName: string;
columns.provider
provider: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "provider";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "provider";
notNull
notNull: true;
tableName
tableName: string;
columns.providerAccountId
providerAccountId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "providerAccountId";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "providerAccountId";
notNull
notNull: true;
tableName
tableName: string;
columns.refresh_token
refresh_token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "refresh_token";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "refresh_token";
notNull
notNull: false;
tableName
tableName: string;
columns.scope
scope: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "scope";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "scope";
notNull
notNull: false;
tableName
tableName: string;
columns.session_state
session_state: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "session_state";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "session_state";
notNull
notNull: false;
tableName
tableName: string;
columns.token_type
token_type: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token_type";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "token_type";
notNull
notNull: false;
tableName
tableName: string;
columns.type
type: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "type";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "type";
notNull
notNull: true;
tableName
tableName: string;
columns.userId
userId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "userId";
notNull
notNull: true;
tableName
tableName: string;
dialect
dialect: "pg";
name
name: string;
schema
schema: undefined;
postgresSessionsTable
const postgresSessionsTable: PgTableWithColumns<{
columns: {
expires: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, {}, {}>;
id: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, {}, {}>;
sessionToken: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "sessionToken";
notNull: true;
tableName: string;
}, {}, {}>;
userId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, {}, {}>;
};
dialect: "pg";
name: string;
schema: undefined;
}>;
Type declaration
columns
columns: {
expires: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, {}, {}>;
id: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, {}, {}>;
sessionToken: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "sessionToken";
notNull: true;
tableName: string;
}, {}, {}>;
userId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, {}, {}>;
};
columns.expires
expires: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgTimestamp";
data
data: Date;
dataType
dataType: "date";
driverParam
driverParam: string;
enumValues
enumValues: undefined;
hasDefault
hasDefault: false;
name
name: "expires";
notNull
notNull: true;
tableName
tableName: string;
columns.id
id: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: true;
name
name: "id";
notNull
notNull: true;
tableName
tableName: string;
columns.sessionToken
sessionToken: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "sessionToken";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "sessionToken";
notNull
notNull: true;
tableName
tableName: string;
columns.userId
userId: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "userId";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "userId";
notNull
notNull: true;
tableName
tableName: string;
dialect
dialect: "pg";
name
name: string;
schema
schema: undefined;
postgresUsersTable
const postgresUsersTable: PgTableWithColumns<{
columns: {
email: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "email";
notNull: true;
tableName: string;
}, {}, {}>;
emailVerified: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "emailVerified";
notNull: false;
tableName: string;
}, {}, {}>;
id: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, {}, {}>;
image: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "image";
notNull: false;
tableName: string;
}, {}, {}>;
name: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "name";
notNull: false;
tableName: string;
}, {}, {}>;
};
dialect: "pg";
name: string;
schema: undefined;
}>;
Type declaration
columns
columns: {
email: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "email";
notNull: true;
tableName: string;
}, {}, {}>;
emailVerified: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "emailVerified";
notNull: false;
tableName: string;
}, {}, {}>;
id: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, {}, {}>;
image: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "image";
notNull: false;
tableName: string;
}, {}, {}>;
name: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "name";
notNull: false;
tableName: string;
}, {}, {}>;
};
columns.email
email: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "email";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "email";
notNull
notNull: true;
tableName
tableName: string;
columns.emailVerified
emailVerified: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "emailVerified";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgTimestamp";
data
data: Date;
dataType
dataType: "date";
driverParam
driverParam: string;
enumValues
enumValues: undefined;
hasDefault
hasDefault: false;
name
name: "emailVerified";
notNull
notNull: false;
tableName
tableName: string;
columns.id
id: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: true;
name: "id";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: true;
name
name: "id";
notNull
notNull: true;
tableName
tableName: string;
columns.image
image: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "image";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "image";
notNull
notNull: false;
tableName
tableName: string;
columns.name
name: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "name";
notNull: false;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "name";
notNull
notNull: false;
tableName
tableName: string;
dialect
dialect: "pg";
name
name: string;
schema
schema: undefined;
postgresVerificationTokensTable
const postgresVerificationTokensTable: PgTableWithColumns<{
columns: {
expires: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, {}, {}>;
identifier: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "identifier";
notNull: true;
tableName: string;
}, {}, {}>;
token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token";
notNull: true;
tableName: string;
}, {}, {}>;
};
dialect: "pg";
name: string;
schema: undefined;
}>;
Type declaration
columns
columns: {
expires: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, {}, {}>;
identifier: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "identifier";
notNull: true;
tableName: string;
}, {}, {}>;
token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token";
notNull: true;
tableName: string;
}, {}, {}>;
};
columns.expires
expires: PgColumn<{
baseColumn: never;
columnType: "PgTimestamp";
data: Date;
dataType: "date";
driverParam: string;
enumValues: undefined;
hasDefault: false;
name: "expires";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgTimestamp";
data
data: Date;
dataType
dataType: "date";
driverParam
driverParam: string;
enumValues
enumValues: undefined;
hasDefault
hasDefault: false;
name
name: "expires";
notNull
notNull: true;
tableName
tableName: string;
columns.identifier
identifier: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "identifier";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "identifier";
notNull
notNull: true;
tableName
tableName: string;
columns.token
token: PgColumn<{
baseColumn: never;
columnType: "PgText";
data: string;
dataType: "string";
driverParam: string;
enumValues: [string, ...string[]];
hasDefault: false;
name: "token";
notNull: true;
tableName: string;
}, {}, {}>;
Type declaration
baseColumn
baseColumn: never;
columnType
columnType: "PgText";
data
data: string;
dataType
dataType: "string";
driverParam
driverParam: string;
enumValues
enumValues: [string, ...string[]];
hasDefault
hasDefault: false;
name
name: "token";
notNull
notNull: true;
tableName
tableName: string;
dialect
dialect: "pg";
name
name: string;
schema
schema: undefined;
PostgresDrizzleAdapter()
PostgresDrizzleAdapter(client, schema): Adapter
Parameters
Parameter | Type |
---|---|
client | PgDatabase <QueryResultHKT , any , ExtractTablesWithRelations <any >> |
schema | DefaultPostgresSchema |