16 lines
469 B
TypeScript
16 lines
469 B
TypeScript
|
|
import 'dotenv/config';
|
||
|
|
import { defineConfig } from 'drizzle-kit';
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
out: './drizzle',
|
||
|
|
schema: './src/db/schema.ts',
|
||
|
|
dialect: 'postgresql',
|
||
|
|
dbCredentials: {
|
||
|
|
database: process.env.POSTGRES_DB || 'dre_gerencial',
|
||
|
|
host: process.env.POSTGRES_HOST || 'localhost',
|
||
|
|
port: Number(process.env.POSTGRES_PORT) || 5432,
|
||
|
|
user: process.env.POSTGRES_USER || 'postgres',
|
||
|
|
password: process.env.POSTGRES_PASSWORD || '',
|
||
|
|
},
|
||
|
|
});
|