feat(阶段1): drizzle schema 从本地库生成并剪掉 Django 框架表

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-06 20:45:51 -06:00
co-authored by Claude Opus 5
parent 9bfe629cd7
commit f635737453
10 changed files with 5536 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
import { drizzle } from "drizzle-orm/postgres-js"
import postgres from "postgres"
import * as schema from "./schema"
const url = process.env.DATABASE_URL ?? "postgres://onlinejudge:onlinejudge@localhost:5433/onlinejudge"
const client = postgres(url)
export const db = drizzle(client, { schema })
export { schema }