14 lines
360 B
TypeScript
14 lines
360 B
TypeScript
import type { Config } from 'drizzle-kit';
|
|
import * as dotenv from 'dotenv';
|
|
|
|
dotenv.config();
|
|
|
|
export default {
|
|
schema: './src/database/schema/index.ts',
|
|
out: './src/database/migrations',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL || 'postgresql://postgres:postgres@localhost:5432/daiting_app',
|
|
},
|
|
} satisfies Config;
|