053707d96a
- restructure from src/ + server/ to src/client/ + src/server/ + src/shared/ - switch backend runtime from Node (tsx) to Bun - merge server/package.json into root, remove @hono/node-server + tsx - convert server @/ imports to relative paths - standardize biome config (lineWidth 80, quoteStyle double) - add CLAUDE.md, .env.example at root - update vite.config, tsconfig, deploy.sh for new structure Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
375 B
TypeScript
13 lines
375 B
TypeScript
import { drizzle } from "drizzle-orm/postgres-js"
|
|
import postgres from "postgres"
|
|
import { env } from "../lib/env"
|
|
import * as politicianSchema from "./schema/politicians"
|
|
import * as pushSchema from "./schema/push"
|
|
|
|
const sql = postgres(env.DATABASE_URL)
|
|
|
|
export const db = drizzle(sql, {
|
|
schema: { ...pushSchema, ...politicianSchema },
|
|
})
|
|
export type Database = typeof db
|