feat(db): add Drizzle ORM with local SQLite storage

Configure Bun SQLite with WAL mode, foreign keys, and a shared database path for development and production.

Add migration commands and startup migration handling, check database connectivity in the health endpoint, and document configuration while excluding local database files from Git.
This commit is contained in:
syntaxbullet
2026-09-04 07:50:14 +02:00
parent 23e9f4c717
commit 29bf75760b
13 changed files with 284 additions and 6 deletions

2
src/db/schema.ts Normal file
View File

@@ -0,0 +1,2 @@
// Define application tables here with drizzle-orm/sqlite-core.
export {};