feat(db): db stuff added in starting migration from old app

This commit is contained in:
2025-08-31 15:01:50 -05:00
parent f348e4e053
commit 2d5fbbbab0
11 changed files with 965 additions and 36 deletions

12
drizzle.config.ts Normal file
View File

@@ -0,0 +1,12 @@
import { defineConfig } from "drizzle-kit";
const dbURL = `postgres://${process.env.DATABASE_USER}:${process.env.DATABASE_PASSWORD}@${process.env.DATABASE_HOST}:${process.env.DATABASE_PORT}/${process.env.DATABASE_DB}`;
export default defineConfig({
dialect: "postgresql",
schema: "./app/src/pkg/db/schema",
out: "./migrations",
dbCredentials: { url: dbURL },
// verbose: true, // optional, logs more details
//strict: true, // optional, prevents unsafe operations
});