import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator'

export class CreateRoleDto {
    @IsString()
    @IsNotEmpty()
    code: string

    @IsString()
    @IsNotEmpty()
    name: string

    @IsOptional()
    @IsBoolean()
    accessAllBranch?: boolean
}