2026-02-12 15:22:20 -05:00
|
|
|
import 'dotenv/config'; // Import dotenv to load environment variables
|
|
|
|
|
import { defineConfig } from 'drizzle-kit';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
out: './drizzle', // Directory for migration files
|
|
|
|
|
schema: './src/db/schema.ts', // Path to your schema file
|
2026-03-11 19:18:45 -04:00
|
|
|
casing: 'snake_case', // camelCase JS objects become snake_case in the DB
|
|
|
|
|
dialect: 'postgresql', // Specify the database dialect
|
2026-02-12 15:22:20 -05:00
|
|
|
dbCredentials: {
|
|
|
|
|
url: process.env.DATABASE_URL!, // Use the URL from your .env file
|
|
|
|
|
},
|
2026-03-11 19:18:45 -04:00
|
|
|
schemaFilter: ['pokemon'],
|
|
|
|
|
verbose: true,
|
|
|
|
|
strict: true,
|
2026-02-12 15:22:20 -05:00
|
|
|
});
|