Back to Data Models

Transaction

AgreedUpdated 2024-04-10

A single financial event — a payment, transfer, or refund — pulled from the user's bank.

Open questions / notes

Pending discussion: should we store raw bank category alongside our AI category, or only keep our version?

Fields
10 fields defined
NameTypeRequiredUniqueDescription
iduuidPrimary key
connectionIduuid—FK → BankConnection this came from
plaidTransactionIdstringPlaid's own ID — used to deduplicate syncs
amountfloat—Positive = money in, negative = money out
currencystring—ISO 4217 currency code e.g. 'EUR'
descriptionstring—Merchant name or bank reference text
datedate—Date the transaction occurred
categorystringoptional—AI-assigned category e.g. 'Groceries'
categoryConfidencefloatoptional—AI confidence 0–1 — shown to user if below 0.7
userCategorystringoptional—Category set manually by the user — overrides AI
Relationships
How this model connects to others
Transactionbelongs toBankConnection

Source bank connection

ER Diagram
Auto-generated from the fields and relationships above
Other Models
More models in this project