import type { Config } from "drizzle-kit";

// `drizzle-kit generate` only reads the schema — the credentials below are for
// `push`/`studio`, which we do not use in deployment. Migrations are applied by
// `drizzle-kit migrate` against DATABASE_URL.
export default {
  schema: "./db/schema.ts",
  out: "./drizzle",
  dialect: "postgresql",
  dbCredentials: {
    url: process.env.DATABASE_URL ?? "postgres://postgres:postgres@localhost:5432/seoinsight",
  },
} satisfies Config;
