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 '',