Add Drizzle ORM setup and database configuration

- Add drizzle.config.ts for database migrations
- Create server/database/ structure with schema
- Add drizzle-orm and postgres dependencies
- Add db:* npm scripts for database management
This commit is contained in:
Bastian Masanek
2025-10-30 14:28:42 +01:00
parent 9102dab881
commit ef9845c5c5
7 changed files with 1445 additions and 17 deletions

10
drizzle.config.ts Normal file
View File

@@ -0,0 +1,10 @@
import { defineConfig } from 'drizzle-kit'
export default defineConfig({
schema: './server/database/schema.ts',
out: './server/database/migrations',
dialect: 'postgresql',
dbCredentials: {
url: process.env.DATABASE_URL!,
},
})