export interface Role {
  id: string;
  name: string;
  description?: string | null;
  color?: string | null;
  isActive: boolean;
  createdAt: Date;
  updatedAt: Date;
}

export interface ResourceRole {
  id: string;
  resourceId: string;
  roleId: string;
  isPrimary: boolean;
}

export interface RoleWithResourceCount extends Role {
  _count: {
    resourceRoles: number;
    allocations: number;
  };
}
