import { defineConfig } from "drizzle-kit"; // Local store is SQLite (single-site, single-writer, WAL). The same schema is // designed to port to PostgreSQL for the deferred remote sync target — that is // a durability/anti-fraud decision, not a capacity one. See wiki/entities/sqlite. export default defineConfig({ dialect: "sqlite", schema: "./src/schema.ts", out: "./drizzle", dbCredentials: { // Default to the live appliance DB (apps/server), NOT a stray ./parking.sqlite in // this package. The `db:migrate` script also sets DATABASE_URL to this. Override with // DATABASE_URL to target another DB. url: process.env.DATABASE_URL ?? "../../apps/server/parking.sqlite", }, });