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

40 lines
931 B
TypeScript

import type {
DBFieldAttribute,
DBFieldAttributeConfig,
DBFieldType,
DBPrimitive,
BetterAuthDBSchema,
} from "./type";
export { coreSchema } from "./schema/shared";
export { userSchema, type User } from "./schema/user";
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;