import { AuthCredentialsDto } from './auth-credentials.dto'
import { IsNotEmpty, IsOptional, IsString, MaxLength } from 'class-validator'
import { Trim } from 'src/common/decorators/trim.decorator'

export class SignupDto extends AuthCredentialsDto {
    @IsString()
    @Trim()
    @IsNotEmpty()
    @MaxLength(32)
    firstName: string

    @IsOptional()
    @IsString()
    @Trim()
    @MaxLength(32)
    lastName?: string
}
