import { IsDateString, IsOptional, IsString } from 'class-validator'

export class CreateBranchDto {
    @IsString()
    code: string

    @IsString()
    name: string

    @IsString()
    address: string

    @IsDateString()
    beginEffective: string

    @IsOptional()
    @IsDateString()
    endEffective?: string
}