Back to Data Models

BankConnection

ImplementedUpdated 2024-04-02

A live link between a user's account and one of their bank accounts via Plaid.

Open questions / notes

accessToken is encrypted at rest. status goes to 'expired' when Plaid token rotates — user must reconnect.

Fields
7 fields defined
NameTypeRequiredUniqueDescription
iduuidPrimary key
userIduuid—FK → User who connected this account
institutionNamestring—Human-readable bank name e.g. 'ING Bank'
accessTokenstringEncrypted Plaid access token
statusenum
activeexpiredrevoked
—Connection health
lastSyncedAtdatetimeoptional—When transactions were last pulled
createdAtdatetime—When the user connected this bank
Relationships
How this model connects to others
BankConnectionbelongs toUser

Owner of this bank connection

BankConnectionhas manyTransaction

Transactions pulled from this account

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