import { defineConfig } from "drizzle-kit";

export default defineConfig({
  schema: "./shared/schema.ts",
  out: "./drizzle",
  dialect: "mysql",
  dbCredentials: {
    host: process.env.DB_HOST ?? "localhost",
    port: Number(process.env.DB_PORT ?? 3306),
    user: process.env.DB_USER ?? "user",
    password: process.env.DB_PASSWORD ?? "pass",
    database: process.env.DB_NAME ?? "biblioteca_onfide",
  },
});
