first commit

This commit is contained in:
Michaël
2026-01-29 14:13:11 -03:00
commit 2302748c87
105 changed files with 93301 additions and 0 deletions

16
backend/drizzle.config.ts Normal file
View File

@@ -0,0 +1,16 @@
import { defineConfig } from 'drizzle-kit';
const dbType = process.env.DB_TYPE || 'sqlite';
export default defineConfig({
schema: './src/db/schema.ts',
out: './drizzle',
dialect: dbType === 'postgres' ? 'postgresql' : 'sqlite',
dbCredentials: dbType === 'postgres'
? {
url: process.env.DATABASE_URL || 'postgresql://localhost:5432/spanglish',
}
: {
url: process.env.DATABASE_URL || './data/spanglish.db',
},
});