- Updated SQLite journal metadata with new tag and timestamp. - Refactored account deletion API to utilize Better Auth's built-in user deletion method for cascading cleanup. - Enhanced database initialization to include authentication schemas for both SQLite and Postgres. - Removed user, session, account, and verification tables from the Drizzle schema, as they are now managed by Better Auth. - Created separate schema files for authentication in both Postgres and SQLite. - Added SQL migration scripts for creating necessary tables in both database systems.
13 lines
312 B
TypeScript
13 lines
312 B
TypeScript
import type { Config } from 'drizzle-kit';
|
|
import * as dotenv from 'dotenv';
|
|
|
|
dotenv.config();
|
|
|
|
export default {
|
|
schema: ['./src/db/schema_sqlite.ts', './src/db/schema_auth_sqlite.ts'],
|
|
out: './drizzle/sqlite',
|
|
dialect: 'sqlite',
|
|
dbCredentials: {
|
|
url: 'docstore/sqlite3.db',
|
|
},
|
|
} satisfies Config;
|