DataModel Graphs
Entities, keys, and relationships from schema + code
A DataModel Graph is the living ERD of your domain · tables and objects, primary and foreign keys, and cardinalities · extracted from migrations, ORMs, and the code that reads and writes them.
When payments-api adds a column or claims-api joins the wrong table, you see the break in the model before it ships.
- Payment.payment_id (PK) · customer_id, invoice_id (FK) · amount, currency, status
- Customer.customer_id (PK) · account_number, kyc_tier
- Invoice.invoice_id (PK) · due_date, balance_due
- LedgerEntry.entry_id (PK) · payment_id (FK) · debit_credit, account_code
- Relationships: Customer ||--o{ Payment · Invoice ||--o| Payment · Payment ||--o{ LedgerEntry
- PK payment_id
- FK customer_id
- FK invoice_id
- amount · currency
- status · authorized_at
- PK customer_id
- account_number
- kyc_tier
- PK invoice_id
- due_date
- balance_due
- PK entry_id
- FK payment_id
- debit_credit
- account_code
Ask anything across services, tests, and releases
Grounded answers from the org graph — never generic filler.