feat: DB-Schema (candles, backtest_runs), Migration, CandleStore

This commit is contained in:
2026-06-09 20:56:24 +00:00
parent f318446ebf
commit 27a10dc794
9 changed files with 243 additions and 0 deletions

7
src/server/db/client.ts Normal file
View File

@@ -0,0 +1,7 @@
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import { env } from '../config';
import * as schema from './schema';
export const sql = postgres(env.DATABASE_URL, { max: 5 });
export const db = drizzle(sql, { schema });