import "dotenv/config"
import { defineConfig } from "drizzle-kit"

const fallbackDatabaseUrl = "postgres://postgres:wJw7aNpEBJdcxgoct6GXNpvY4Cn6ECqu@fedeo-db-001.vpn.internal:5432/fedeo"
const databaseUrl = process.env.DATABASE_URL || fallbackDatabaseUrl

export default defineConfig({
    dialect: "postgresql",
    schema: "./db/schema",
    out: "./db/migrations",
    dbCredentials: {
        url: databaseUrl,
    },
})
