[Closes #8] Added authentication
All checks were successful
Production Build and Deploy / Build (push) Successful in 1m7s
Production Build and Deploy / Deploy (push) Successful in 29s

This commit is contained in:
Liviu Burcusel 2026-01-07 11:11:35 +01:00
parent 6eefa137bb
commit 6d3cdb560d
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
65 changed files with 5834 additions and 440 deletions

15
shared/utils/db/index.ts Normal file
View file

@ -0,0 +1,15 @@
// Global database connection
import { drizzle } from "drizzle-orm/node-postgres";
import { Pool } from "pg";
import env from "../env";
import * as schema from "./schema";
const pool = new Pool({
connectionString: env.DATABASE_URL,
});
const db = drizzle({ client: pool, casing: "snake_case", schema });
export default db;