set up drizzle

This commit is contained in:
Nayan Sawyer
2026-03-13 18:05:56 -04:00
parent 532e333c3e
commit 95e68037f0
3 changed files with 27 additions and 0 deletions

13
drizzle.config.ts Normal file
View File

@@ -0,0 +1,13 @@
import { config } from "dotenv";
import { defineConfig } from "drizzle-kit";
config({ path: ".env" });
export default defineConfig({
schema: "./src/db/schema.ts",
out: "./src/db/migrations",
dialect: "postgresql",
dbCredentials: {
url: `postgresql://${process.env.POSTGRES_USER}:${process.env.POSTGRES_PASSWORD}@localhost:5432/${process.env.POSTGRES_DB}`,
},
});