feat: add portfolio snapshot read layer

This commit is contained in:
2026-06-06 09:33:00 +09:00
parent 56e977a7ad
commit ca757009f5
51 changed files with 3565 additions and 51 deletions
@@ -0,0 +1,10 @@
-- BAT-008 / REQ-032: durable manual pause overlay for snapshot read responses.
-- pause unit = portfolio_id (= asset_id). Survives daemon restart and the
-- daily snapshot refresh; only CLI / RPC control messages mutate it.
CREATE TABLE IF NOT EXISTS snapshot_pause (
portfolio_id TEXT PRIMARY KEY,
actor TEXT,
created_at TIMESTAMPTZ NOT NULL DEFAULT (now() AT TIME ZONE 'UTC'),
updated_at TIMESTAMPTZ NOT NULL DEFAULT (now() AT TIME ZONE 'UTC')
);