docs(db): add introspect-only drizzle config and DB README

This commit is contained in:
Simo committed 2026-06-27 14:35:25 +02:00
1 parent d04ed42586
commit 2a304c94a4
2 files changed
+36

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { defineConfig } from "drizzle-kit";
// INTROSPECT-ONLY. We never generate or push migrations against this database —
// it is owned and written live by the game emulator. Use only `drizzle-kit pull`.
export default defineConfig({
dialect: "mysql",
schema: "./src/schema/index.ts",
out: "./drizzle", // where `pull` writes the introspected schema snapshot
dbCredentials: {
url: process.env.DATABASE_URL ?? "",
},
});