fix: Consent API auto-creates database table on startup

- better-sqlite3 creates ConsentLog table if not exists
- Auto-creates data/ directory if missing
- Fixes Astro DB not creating custom tables issue
This commit is contained in:
Kunthawat Greethong
2026-03-31 11:44:31 +07:00
parent 36112e4137
commit 002966b739
3 changed files with 42 additions and 4 deletions

BIN
data/consent.db Normal file

Binary file not shown.