Architecture Decision Records (ADR)¶
Ringkasan keputusan arsitektur tetap. Format ringkas — bukan ADR formal per RFC.
| ID | Keputusan | Status | Rujukan |
|---|---|---|---|
| ADR-001 | PostgreSQL 16+, DB tunggal erp |
Accepted | 00 |
| ADR-002 | Schema-per-tenant tenant_<kode> |
Accepted | 04 |
| ADR-003 | Trigger-first logika bisnis | Accepted | 05, AGENTS.md |
| ADR-004 | Big-bang cutover | Accepted | 06 |
| ADR-005 | NestJS backend tipis | Accepted | 00 |
| ADR-006 | Firebase Auth + JWT tenant | Accepted | 10 |
| ADR-007 | CDC PG→Kafka→CH untuk OLAP | Accepted 2026-05-21 | cdc/README |
| ADR-008 | ClickHouse single DB erp_clickhouse + tenant_kode |
Accepted | database/TODO |
| ADR-009 | Pensiun kdpc, devisi→cabang |
Accepted | 08 |
| ADR-010 | Delphi sunset → Flutter/Web | Accepted | 10 |
| ADR-011 | DDL CH sebelum PG (tambah kolom) | Accepted | AGENTS.md |
| ADR-012 | Control plane CDC job async (prod) | Proposed | 01-CONTROL-PLANE |
Template keputusan baru: salin baris di tabel + dokumen detail di docs/ atau database/cdc/.