Files
better-auth/packages/core/src/db/index.ts
2025-10-02 12:13:44 -07:00

43 lines
1.1 KiB
TypeScript

import type {
DBFieldAttribute,
DBFieldAttributeConfig,
DBFieldType,
DBPrimitive,
BetterAuthDBSchema,
} from "./type";
export { coreSchema } from "./schema/shared";
export { userSchema, type User } from "./schema/user";
export { accountSchema, type Account } from "./schema/account";
export { sessionSchema, type Session } from "./schema/session";
export { verificationSchema, type Verification } from "./schema/verification";
export type {
DBFieldAttribute,
DBFieldAttributeConfig,
DBFieldType,
DBPrimitive,
BetterAuthDBSchema,
};
/**
* @deprecated Backport for 1.3.x, we will remove this in 1.4.x
*/
export type FieldAttribute = DBFieldAttribute;
/**
* @deprecated Backport for 1.3.x, we will remove this in 1.4.x
*/
export type FieldAttributeConfig = DBFieldAttributeConfig;
/**
* @deprecated Backport for 1.3.x, we will remove this in 1.4.x
*/
export type FieldType = DBFieldType;
/**
* @deprecated Backport for 1.3.x, we will remove this in 1.4.x
*/
export type Primitive = DBPrimitive;
/**
* @deprecated Backport for 1.3.x, we will remove this in 1.4.x
*/
export type BetterAuthDbSchema = BetterAuthDBSchema;