import { PartialType } from '@nestjs/mapped-types'
import { IsEnum, IsOptional, IsString, MaxLength } from 'class-validator'
import { SettingStatus } from 'generated/prisma/client'

export class CreateBankDto {
    @IsString()
    @MaxLength(50)
    code: string

    @IsString()
    @MaxLength(100)
    name: string

    @IsOptional()
    @IsEnum(SettingStatus)
    status?: SettingStatus
}

export class UpdateBankDto extends PartialType(CreateBankDto) {}