import { IsBoolean, IsIn, IsInt } from 'class-validator';
import { TeamRolesEnum } from '../../team-roles/team-roles.enum';

export class PlayerActiveDto {
  @IsBoolean()
  active: boolean;
}

export class PlayerTeamRoleDto {
  @IsInt()
  @IsIn([
    TeamRolesEnum.player,
    TeamRolesEnum.scnd_treasurer,
    TeamRolesEnum.captain,
    TeamRolesEnum.treasurer,
    TeamRolesEnum.coach,
  ])
  teamRoleId: TeamRolesEnum;
}
