Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

337 B
Raw Blame
-- This file should undo anything in `up.sql`
CREATE UNIQUE INDEX role_name_org_id_org_scope_index ON roles (org_id, role_name)
WHERE
    scope = 'organization';

CREATE UNIQUE INDEX role_name_merchant_id_merchant_scope_index ON roles (merchant_id, role_name)
WHERE
    scope = 'merchant';

DROP INDEX IF EXISTS roles_merchant_org_index;