Skip to content
Engine
Generator
Design
RAG
Agent
Models
Data
Roadmap
FR
Demo
Overview
Engine
Generator
Design
RAG
Agent
Models
Data
Roadmap
Open the demo
Français
Overview
Design
Data model
Data model
Use cases
Classes
State transitions
Activities
Sequences
Data model
Architecture
Money and receipts
Accounts and learning
Enlarge
er Money and receipts
A purchase belongs to a wallet; a receipt and a bank line point at the purchase.
wallets
PK id
FK user_id
name
kind
currency
opening_balance_cents
archived
purchases
PK id
FK user_id
FK wallet_id
FK category_id
merchant
occurred_on
amount_cents
…
receipts
PK id
FK user_id
FK purchase_id
status
source
doc_type
merchant
…
receipt_items
PK id
FK user_id
FK receipt_id
idx
raw_name
merchant_key
qty
…
bank_transactions
PK id
FK user_id
FK wallet_id
occurred_on
amount_cents
description
dedup_key
…
subscriptions
PK id
FK user_id
name
amount_cents
currency
cycle
next_due
…
categories
PK id
FK user_id
FK parent_id
name
color
icon
hidden
products
PK id
FK user_id
name
FK category_id
*
1
*
1
*
1
*
1
*
1
*
1
*
1
*
1
*
1
er Money and receipts
Enlarge
er Accounts and learning
Every table belongs to one user; aliases remember how each store spells a product.
users
PK id
email
is_admin
base_currency
share_aliases
inbox_token
locale
…
sessions
PK token_hash
FK user_id
expires_at
login_tokens
PK token_hash
FK user_id
expires_at
used_at
api_tokens
PK id
FK user_id
name
token_hash
hint
scopes
last_used_at
…
invites
PK id
code_hash
FK created_by
FK used_by
expires_at
questions
PK id
FK user_id
kind
target_type
target_id
path
prompt
…
product_aliases
PK user_id
PK merchant_key
PK raw_key
FK product_id
products
PK id
FK user_id
name
FK category_id
line_hints
PK user_id
PK merchant_key
PK raw_key
FK category_id
ask_after
*
1
*
1
*
1
*
1
*
1
*
1
*
1
*
1
er Accounts and learning