feat: add drizzle

This commit is contained in:
Max Koon
2025-10-14 19:06:52 -04:00
parent 032f38b711
commit e27a48edb5
20 changed files with 920 additions and 77 deletions

14
shared/drizzle.config.ts Normal file
View File

@@ -0,0 +1,14 @@
import { defineConfig } from "drizzle-kit";
if (!process.env.ZERO_UPSTREAM_DB) {
throw new Error("ZERO_UPSTREAM_DB is not set");
}
export default defineConfig({
schema: "./src/db/schema/index.ts",
// out: "../migrations",
dialect: "postgresql",
dbCredentials: {
url: process.env.ZERO_UPSTREAM_DB,
},
});