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
  casing: 'snake_case', // camelCase JS objects become snake_case in the DB
  dialect: 'postgresql', // Specify the database dialect
  dbCredentials: {
    url: process.env.DATABASE_URL!, // Use the URL from your .env file
  },
  schemaFilter: ['pokemon'],
  verbose: true,
  strict: true,
});
