From 741278ca52428897358ac7e506349aa789afc9d6 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sun, 15 Nov 2026 13:36:45 +0000 Subject: [PATCH] Note that the app fills market_id, the bank for a cost --- docs/spec.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/spec.md b/docs/spec.md index 9717cef..2fd9a37 100644 --- a/docs/spec.md +++ b/docs/spec.md @@ -288,7 +288,8 @@ CREATE TABLE IF NOT EXISTS transactions ( 'trade', 'income', 'spend', 'loss', 'transfer_out', 'transfer_in', 'gift_received', 'gift_given', 'admin_cost')), - -- Null only for admin_cost, which stands on its own (section 3.10). + -- The app always fills this: for admin_cost it is the bank (section 3.11). The + -- column stays nullable so that a database written before section 3.11 applies. market_id INTEGER REFERENCES markets(id), taxable INTEGER NOT NULL DEFAULT 1 CHECK (taxable IN (0, 1)), note TEXT NOT NULL DEFAULT '',