feat(#6): persist book requests to D1 with audit log and 90-day retention - #76
Open
TheMaestr-o wants to merge 1 commit into
Open
feat(#6): persist book requests to D1 with audit log and 90-day retention#76TheMaestr-o wants to merge 1 commit into
TheMaestr-o wants to merge 1 commit into
Conversation
…tion Add book_requests table (migration 0011) that stores all book delivery requests submitted via the "Geschenk erhalten" form. Removes the religion field (Art. 9 DSGVO special category). Records are auto-deleted after 90 days via a Cloudflare Cron Trigger (daily 02:00 UTC). Add admin_audit table (migration 0012) that logs every admin read of a book request record. Admin surface is intentionally minimal: GET /admin/book-requests/:id only (no list, no bulk export). Notification email includes a direct link to the record. Locale is forwarded from the request form to the DB. Disclose Resend as a data processor in Datenschutzerklärung (section 6, de + en). Closes the DSGVO gap documented in docs/dsgvo.md item #1. Updated playwright snapshots for datenschutz page. Closes #6
TheMaestr-o
force-pushed
the
feat/6-user-db
branch
from
June 8, 2026 12:57
a0f4775 to
a9f28a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Persists book delivery requests (submitted via
POST /api/v1/book-request) to D1 database instead of being email-only.book_requeststable in D1 — stores name, email, phone, address, book list, language, IP hash (not raw IP)GET /api/v1/admin/book-requests— list + deleteCloses #6
Test plan
pnpm --filter @sdarm/api exec tsc --noEmitpasses