0.4.0b1 add database and /userinfo (incomplete)

This commit is contained in:
Yusur 2026-02-25 10:46:15 +01:00
parent 3f13fe1ec0
commit 5b98a2e98a
18 changed files with 1194 additions and 243 deletions

16
src/db/database.ts Normal file
View file

@ -0,0 +1,16 @@
import { drizzle } from "drizzle-orm/node-postgres";
import * as schema from "./schema";
import { Pool } from "pg";
const client = new Pool({
connectionString: process.env.DATABASE_URL!
});
export const db = drizzle({
client,
casing: 'snake_case',
schema
});