From 0465f9cddc6137afc41001ade1f30ff9ee3f0c4b Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sat, 14 Nov 2026 17:45:02 +0000 Subject: [PATCH] Patch docs/spec.md --- docs/spec.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/spec.md b/docs/spec.md index 86dba72..58a08a9 100644 --- a/docs/spec.md +++ b/docs/spec.md @@ -233,7 +233,8 @@ CREATE TABLE IF NOT EXISTS transactions ( 'trade', 'income', 'spend', 'loss', 'transfer_out', 'transfer_in', 'gift_received', 'gift_given', 'admin_cost')), - market_id INTEGER NOT NULL REFERENCES markets(id), + -- Null only for admin_cost, which stands on its own (section 3.10). + market_id INTEGER REFERENCES markets(id), taxable INTEGER NOT NULL DEFAULT 1 CHECK (taxable IN (0, 1)), note TEXT NOT NULL DEFAULT '', -- leg_in = what the account receives, leg_out = what the account gives up.