GF-6, #8 Added auth.
Some checks failed
Production PR / QA Tests (pull_request) Failing after 13s

This commit is contained in:
Liviu Burcusel 2026-01-07 09:54:06 +01:00
parent e8818d6eaa
commit 10e4363cbd
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
60 changed files with 4855 additions and 160 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;