import { ApiProperty } from '@nestjs/swagger';
import {
    IsIn,
    IsNotEmpty,
    IsOptional,
    IsString,
    IsStrongPassword,
} from 'class-validator';

export class UserRegisterDto {
    @IsString()
    @IsNotEmpty({ message: `First name can't be empty.` })
    @ApiProperty({
        required: true,
        type: String,
        description: 'First name',
    })
    first_name: string;

    @IsOptional()
    @IsString()
    @ApiProperty({
        required: false,
        type: String,
        description: 'Last name',
    })
    last_name: string;

    @IsString()
    @IsNotEmpty({ message: `Username can't be empty.` })
    @ApiProperty({
        required: true,
        type: String,
        description: 'Username',
    })
    username: string;



    @IsString()
    @IsNotEmpty()
    @ApiProperty({
        required: true,
        type: String,
        description: 'Country Code',
    })
    country_phone_code: string;

    @IsString()
    @IsNotEmpty({ message: `Mobile number can't be empty` })
    @ApiProperty({
        required: true,
        type: String,
        description: 'Phone Number',
    })
    phone_number: string;

}
