chore: wire schema and migrations

Made-with: Cursor
This commit is contained in:
Anton
2026-03-04 13:39:00 +03:00
parent ed8658916c
commit c7c9982234
2 changed files with 32 additions and 0 deletions

13
drizzle.config.ts Normal file
View File

@@ -0,0 +1,13 @@
import 'dotenv/config';
import { defineConfig } from 'drizzle-kit';
const databaseUrl = process.env.DATABASE_URL ?? 'postgresql://samreshu:samreshu_dev@localhost:5432/samreshu';
export default defineConfig({
schema: './src/db/schema/index.ts',
out: './src/db/migrations',
dialect: 'postgresql',
dbCredentials: {
url: databaseUrl,
},
});