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

export class RegisterDto {
  @ApiProperty({ required: true })
  @IsString()
  fullName: string;
  @ApiProperty({ required: true })
  @IsString()
  email: string;
  @ApiProperty({ required: true })
  @IsString()
  phoneNumber: string;
  @ApiProperty({ required: true })
  @IsInt()
  age: number;
  @ApiProperty({ required: true })
  @IsString()
  cityOrRegion: string;
  @ApiProperty({ required: false })
  @IsString()
  @IsOptional()
  hobbies?: string;
  @ApiProperty({ required: true })
  @IsString()
  justification: string;
}
