Derive Elysia request validators from Drizzle tables via drizzle-typebox

This commit is contained in:
2026-08-28 17:02:10 +00:00
parent 23643904da
commit 4d13570f0b
4 changed files with 36 additions and 22 deletions
+4 -1
View File
@@ -15,7 +15,10 @@ bun run dev
## Layout
- `src/db/` — Drizzle schema (`printers`, `farms`, `print_jobs`, `frame_embeddings`)
and client, pointed at pgCat.
and client, pointed at pgCat. `src/db/validators.ts` derives Elysia/TypeBox
request validators straight from the Drizzle tables via `drizzle-typebox`,
so the Postgres schema and the API validators come from one definition
instead of two hand-synced ones.
- `src/s3/` — R2 presigned URL helpers (`PUT` for client uploads, `GET` for the
edge proxy).
- `src/queue/` — Redis client + `XADD` helper pushing onto `stream:camera_frames`