import { UserRole } from "@prisma/client";

export const APP_ROLES = {
  user: UserRole.user,
  superadmin: UserRole.superadmin,
} as const;

export const ADMIN_ROLES = [APP_ROLES.superadmin] as const;

export function normalizeRole(role: string | null | undefined): string {
  return role?.trim().toLowerCase() ?? "";
}
