import { defineConfig } from 'drizzle-kit';
import dotenv from 'dotenv';

dotenv.config({ path: `.env.${process.env.NODE_ENV}` });

export default defineConfig({
  dialect: "postgresql",
  schema: "./src/db/schema",
  out: "./drizzle",
  dbCredentials: {
    url: process.env.PG_DATABASE_URL!
  },
  tablesFilter: [
    'account',
    'schedule',
    'comment',
    'follow',
    'favorite',
    'participant'
  ]
});
