Files
flowsight/backend/internal/store/migrations/0002_scope.sql
T

6 lines
367 B
SQL
Raw Normal View History

-- FlowSight schema v2: holder attribution + user scoping for history reads.
-- Idempotent: safe to re-run on DBs created before schema_migrations existed.
ALTER TABLE filings ADD COLUMN holder_name TEXT NOT NULL DEFAULT '';
ALTER TABLE routine_runs ADD COLUMN user_key TEXT NOT NULL DEFAULT '';
ALTER TABLE alert_events ADD COLUMN user_key TEXT NOT NULL DEFAULT '';