Business Entities and Relationships

The real-world things enterprise systems represent, including attempts, refunds, reversals, chargebacks, suspense entries and adjustments; why identifiers differ; and lifecycle states defined by contracts and policy.

  • Intermediate
  • About 25 minutes
  • Includes an exercise and a knowledge check

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.

The core entities of Apex Auto Finance as linked record cards. One customer, the fictional Jordan Ellis of Dallas, Texas, has many loans; loan LN500 has many installments; an installment due November 1 for $500 has one or more payment attempts; payment PM9001 is captured. A provider record TX1001 and a bank settlement record are matched to the payment, and a reconciliation record links all three. On the right, the same payment in two systems: the provider calls it TX1001 and loan servicing calls it PM9001, linked by loan reference LN500, not by ID. Never match by amount alone: two customers can pay $500 on the same day.
Entities, their relationships, and why the same payment can carry two different IDs.
  • 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:

EntityWhat it isWhy reconciliation must model it
Payment attemptOne try at paying, which can fail and be retriedThree attempts for one installment are not three payments
RefundMoney Apex sends back to a borrower, for example after an overpaymentMoney leaves Apex; the bank file shows a debit, not a missing payment
ReversalA provider or bank undoes an earlier payment, such as a returned bank transferA posted payment must be undone with its own entry, never deleted
ChargebackA card payment pulled back after the borrower disputes it with the card issuerCan arrive weeks after posting, and reopens a paid installment
Suspense entryMoney received that cannot yet be allocated to a loanThe money is real; it must be tracked until someone finds its loan
AdjustmentAn approved manual correction to a loan recordEvery correction needs an approver, a reason and an audit trail

Why it matters Same event, different identifiers

SystemIts identifierLoan referenceAmount
Payment providerTX1001LN500$500
Payment providerTX1002LN501$700
Loan servicingPM9001LN500$500
Loan servicingPM9002LN501$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.

StateWhat it means at Apex
InitiatedThe borrower started a payment
AuthorizedThe provider approved it
CapturedThe provider took the money
SettledFunds reached Apex's bank
PostedThe loan balance was updated
ReconciledAll records agree
ReversedThe payment was undone, with its own traceable entry
Charged backA card payment pulled back after a dispute; the installment reopens
In suspenseMoney received but not yet allocated to a loan
UnmatchedRecords 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 transitionsDefined byStatus at Apex
Initiated, authorized, capturedEach provider's contract and API documentationConfirmed for Provider A; Provider B still to read
SettledThe bank settlement agreementConfirmed: the value date in the bank file
Posted only after settledApex payment application policy PA-3, section 2Confirmed
Charged back up to 120 days after captureProvider A contract, section 9Confirmed for Provider A; unknown for Provider B
When a suspense entry must be resolvedOperations procedureAssumed: five business days
The payment state machine at Apex Auto Finance. Main path: initiated, authorized, captured, settled, posted, reconciled. Under each move, what defines it and its status: the provider contract and API documentation for the first two moves, confirmed for Provider A with Provider B still to read; the bank settlement agreement, using the value date, confirmed; payment application policy PA-3, section 2, post only after settlement, confirmed; and the matching rules for reconciled, still an open question. Exception states below: charged back from captured, up to 120 days under Provider A contract section 9, confirmed for Provider A and unknown for Provider B; in suspense from settled, time to resolve from the operations procedure, assumed five business days; reversed from posted, meaning set by each provider contract and recorded as a compensating entry, never a delete; and unmatched from reconciled, defined by the matching rules, an open question.
Every state change rests on a document. Green moves are confirmed; amber and red ones are what discovery still has to settle.

Practice Model a second domain

Practical exercise

Entities in a factory

A fictional factory makes car parts on three production lines.

  1. List at least six entities (for example machine and work order).
  2. Write the relationships between them.
  3. 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

1. TX1001 in the provider and PM9001 in servicing share loan LN500 and $500. What should you conclude?
2. How should a reversal be recorded?
3. One loan has many installments. What kind of relationship is that?
4. A $500 payment posted in October is charged back in December. What should the model do?
Answer every question to submit.

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.