Files
samreshu_backend/drizzle.config.ts
Anton c7c9982234 chore: wire schema and migrations
Made-with: Cursor
2026-03-04 13:39:00 +03:00

14 lines
353 B
TypeScript

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,
},
});