import { TeamMemberRole } from "@prisma/client";
import { IsEnum, IsOptional, IsUUID } from "class-validator";

export class ManageTeamMemberDto {
  @IsUUID("4", { message: "userId must be a valid UUID" })
  userId!: string;

  @IsOptional()
  @IsEnum(TeamMemberRole, { message: "role must be a valid TeamMemberRole" })
  role?: TeamMemberRole;
}
