-- +goose Up CREATE SCHEMA governance; -- A model role is the model an organisation chose for one job. Only the agent -- role exists until guards need the judge role. CREATE TABLE governance.model_roles ( org_id text NOT NULL, role text NOT NULL CHECK (role IN ('agent')), class text NOT NULL, base_url text NOT NULL, model text NOT NULL, updated_at timestamptz NOT NULL DEFAULT now(), PRIMARY KEY (org_id, role) ); -- +goose Down DROP SCHEMA governance CASCADE;