The concept Systems represent real-world things
Most enterprise systems represent real-world business entities: customers, accounts, loans, payments, transactions, properties, machines, products, suppliers, network devices and service incidents. Before you design a data model, understand what each entity is and how they connect.
- One customer may have many loans.
- One loan has many scheduled installments.
- One installment may have one or more payment attempts.
- One successful payment may produce several financial events.
- A settlement record confirms that funds moved.
- A reconciliation record links the records that belong together.
The happy path needs only a few entities. Real payment operations need more, because money also flows backward, sideways and into holding places. If your model leaves these out, the system has nowhere to put them, and analysts fall back to spreadsheets:
| Entity | What it is | Why reconciliation must model it |
|---|---|---|
| Payment attempt | One try at paying, which can fail and be retried | Three attempts for one installment are not three payments |
| Refund | Money Apex sends back to a borrower, for example after an overpayment | Money leaves Apex; the bank file shows a debit, not a missing payment |
| Reversal | A provider or bank undoes an earlier payment, such as a returned bank transfer | A posted payment must be undone with its own entry, never deleted |
| Chargeback | A card payment pulled back after the borrower disputes it with the card issuer | Can arrive weeks after posting, and reopens a paid installment |
| Suspense entry | Money received that cannot yet be allocated to a loan | The money is real; it must be tracked until someone finds its loan |
| Adjustment | An approved manual correction to a loan record | Every correction needs an approver, a reason and an audit trail |
Why it matters Same event, different identifiers
| System | Its identifier | Loan reference | Amount |
|---|---|---|---|
| Payment provider | TX1001 | LN500 | $500 |
| Payment provider | TX1002 | LN501 | $700 |
| Loan servicing | PM9001 | LN500 | $500 |
| Loan servicing | PM9002 | LN501 | $700 |
The identifiers differ, but TX1001 and PM9001 may be the same business event. The FDE must find out which identifiers are authoritative, how matching should work, and what evidence is enough to link two records.
Domain modeling Questions for every entity
- What are the core business entities?
- What uniquely identifies each one?
- Can an entity have several records or states?
- Which relationships are one-to-one, and which are one-to-many?
- Which system owns each entity?
- Can an entity change over time, and what history must be kept?
Lifecycle Entities move through states
A payment at Apex can move through these states: Initiated → Authorized → Captured → Settled → Posted → Reconciled. It can also land in exception states: Reversed, Charged back, In suspense or Unmatched.
| State | What it means at Apex |
|---|---|
| Initiated | The borrower started a payment |
| Authorized | The provider approved it |
| Captured | The provider took the money |
| Settled | Funds reached Apex's bank |
| Posted | The loan balance was updated |
| Reconciled | All records agree |
| Reversed | The payment was undone, with its own traceable entry |
| Charged back | A card payment pulled back after a dispute; the installment reopens |
| In suspense | Money received but not yet allocated to a loan |
| Unmatched | Records disagree and need investigation |
These states are Apex's working list, not a law of nature. What captured, reversed and charged back mean, and how long each can take, comes from each provider's contract. When a payment may be posted to a loan comes from Apex's accounting policy. At Apex the order above, posting only after settlement, is confirmed in payment application policy PA-3, section 2. Another lender might post on capture and reverse on failure, which gives a different state order. Always write where each state and transition is defined:
| States and transitions | Defined by | Status at Apex |
|---|---|---|
| Initiated, authorized, captured | Each provider's contract and API documentation | Confirmed for Provider A; Provider B still to read |
| Settled | The bank settlement agreement | Confirmed: the value date in the bank file |
| Posted only after settled | Apex payment application policy PA-3, section 2 | Confirmed |
| Charged back up to 120 days after capture | Provider A contract, section 9 | Confirmed for Provider A; unknown for Provider B |
| When a suspense entry must be resolved | Operations procedure | Assumed: five business days |
Practice Model a second domain
Practical exercise
Entities in a factory
A fictional factory makes car parts on three production lines.
- List at least six entities (for example machine and work order).
- Write the relationships between them.
- Write the states a work order moves through.
Show a sample model
- Entities: plant, production line, machine, sensor, work order, maintenance job, part, batch.
- Relationships: one plant has many lines; one line has many machines; one machine has many sensors; one work order produces one batch of parts; one machine has many maintenance jobs.
- Work order states: planned, released, running, paused, completed, or canceled.
4 questions
Check your understanding
What you can do now
- Identify the core entities in a customer's business.
- Describe their relationships and who owns each one.
- Explain why identifiers differ and why amount-only matching is unsafe.
- Model attempts, refunds, reversals, chargebacks, suspense entries and adjustments.
- List an entity's lifecycle and exception states, and where each one is defined.