-- RLS-Policies für die Maßnahmen-Tabellen

ALTER TABLE "measures" ENABLE ROW LEVEL SECURITY;
ALTER TABLE "risk_measures" ENABLE ROW LEVEL SECURITY;

CREATE POLICY tenant_isolation ON "measures"
  USING ("tenant_id" = current_setting('app.tenant_id', true));
CREATE POLICY tenant_isolation ON "risk_measures"
  USING ("tenant_id" = current_setting('app.tenant_id', true));
