refactor(database): updated to the schemas

This commit is contained in:
2025-03-01 15:21:19 -06:00
parent 0ddcfaeaa9
commit 6c3199fecc
4 changed files with 36 additions and 6 deletions

12
drizzle.config.js Normal file
View File

@@ -0,0 +1,12 @@
import { defineConfig } from "drizzle-kit";
import dotenv from "dotenv";
dotenv.config();
const database = process.env.DATABASE_URL || "";
export default defineConfig({
dialect: "postgresql",
schema: "database/schema",
out: "database/migrations",
dbCredentials: {
url: database,
},
});