Function: seedRoles()
function seedRoles(prisma: PrismaClient, input: SeedRolesInput): Promise<SeedRolesResult>;Defined in: server/access/seed-roles.ts:46
Seed system / custom roles idempotently. Intended for tests and consumer bootstrap scripts — skips a role whose (organizationId, identifier) already exists. Tiers must be FLATTENED by the caller (owner ⊇ manager ⊇ …); this helper does not expand inheritance.
Parameters
| Parameter | Type |
|---|---|
prisma | PrismaClient |
input | SeedRolesInput |
Returns
Promise<SeedRolesResult>