import { SetMetadata } from '@nestjs/common';
import { OrgRole } from '@prisma/client';

export const ROLES_KEY = 'org_role';

// Requires the JWT user to hold AT LEAST this role in the org from :orgId.
export const Roles = (role: OrgRole) => SetMetadata(ROLES_KEY, role);
