-- Product usage per account: the uploader's SSO email (lower case) on each new event, for the -- administrator per-user view. Earlier events carry only budget_owner (sha256 of that email). ALTER TABLE eddy_usage_events ADD COLUMN IF NOT EXISTS owner text; CREATE INDEX IF NOT EXISTS eddy_usage_owner_at ON eddy_usage_events (owner, at);