import { WorkspaceMemberRole } from "@prisma/client";
import { IsEnum } from "class-validator";

/**
 * DTO for updating a workspace member's role.
 */
export class UpdateMemberRoleDto {
  @IsEnum(WorkspaceMemberRole, { message: "role must be a valid WorkspaceMemberRole" })
  role!: WorkspaceMemberRole;
}
