FR Demo

Data model

er Money and receiptsA purchase belongs to a wallet; a receipt and a bank line point at the purchase.walletsPK idFK user_id name kind currency opening_balance_cents archivedpurchasesPK idFK user_idFK wallet_idFK category_id merchant occurred_on amount_cents …receiptsPK idFK user_idFK purchase_id status source doc_type merchant …receipt_itemsPK idFK user_idFK receipt_id idx raw_name merchant_key qty …bank_transactionsPK idFK user_idFK wallet_id occurred_on amount_cents description dedup_key …subscriptionsPK idFK user_id name amount_cents currency cycle next_due …categoriesPK idFK user_idFK parent_id name color icon hiddenproductsPK idFK user_id nameFK category_id*1*1*1*1*1*1*1*1*1er Money and receipts
er Accounts and learningEvery table belongs to one user; aliases remember how each store spells a product.usersPK id email is_admin base_currency share_aliases inbox_token locale …sessionsPK token_hashFK user_id expires_atlogin_tokensPK token_hashFK user_id expires_at used_atapi_tokensPK idFK user_id name token_hash hint scopes last_used_at …invitesPK id code_hashFK created_byFK used_by expires_atquestionsPK idFK user_id kind target_type target_id path prompt …product_aliasesPK user_idPK merchant_keyPK raw_keyFK product_idproductsPK idFK user_id nameFK category_idline_hintsPK user_idPK merchant_keyPK raw_keyFK category_id ask_after*1*1*1*1*1*1*1*1er Accounts and learning