feat: add portfolio snapshot read layer
This commit is contained in:
@@ -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')
|
||||
);
|
||||
Reference in New Issue
Block a user