-- RLS-Policies für die Risiko-Tabellen (analog zu den vorherigen RLS-Migrationen)

ALTER TABLE "risks" ENABLE ROW LEVEL SECURITY;
ALTER TABLE "risk_assets" ENABLE ROW LEVEL SECURITY;

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