Appearance
Data Model
Entity relationship diagram
Six tables. Each has a single responsibility — no table does double duty.
JOBSTop-level envelope — intent, owner, overall status, idempotency key
JOB_ITEMSPer-card execution state, retry count, failure code
NOTIFICATIONSOutbound comms log — absence means the cardholder was never notified
AUDIT_LOGImmutable append-only event stream; basis for dispute resolution and debugging
POLICY_REGISTRYVersioned rules governing when auto-execution is allowed vs. human approval required
APPROVALSApproval lifecycle with expiry; links a job to the policy that required human sign-off
JOBS1 → ∞JOB_ITEMScontains
JOBS1 → ∞AUDIT_LOGlogs
JOBS0 → 1APPROVALSrequires
JOB_ITEMS0 → 1NOTIFICATIONStriggers
APPROVALS→POLICY_REGISTRYenforces