first commit

This commit is contained in:
2026-07-08 19:17:05 +02:00
parent f001b0ca63
commit 786b161dae
19 changed files with 2492 additions and 79 deletions
+16
View File
@@ -0,0 +1,16 @@
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import * as schema from './schema';
const connectionString = process.env.DATABASE_URL!;
if (!connectionString) {
throw new Error('DATABASE_URL is required');
}
// For query client (server)
const client = postgres(connectionString);
export const db = drizzle(client, { schema });
export * from './schema';