Add architecture decision records for Discord.js, PostgreSQL, polling strategy, and modular monolith

This commit is contained in:
2026-05-17 15:51:02 +02:00
parent 77e43a6a38
commit c348204772
5 changed files with 28 additions and 16 deletions
@@ -0,0 +1,6 @@
# ADR-002: PostgreSQL over MongoDB
**Status:** Accepted
**Context:** Mileage data is relational (user → role → event → score). MongoDB adds flexibility but sacrifices query power.
**Decision:** Use PostgreSQL with JSONB columns for extensible user metadata.
**Consequences:** Schema migrations needed for new features; joins straightforward.