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

export class CreateProductDto {
	@IsString()
	@IsNotEmpty()
	@ApiProperty()
	title: string;

	@IsString()
	@IsOptional()
	@ApiProperty()
	description: string;

	@IsNumber()
	@IsNotEmpty()
	@ApiProperty()
	categoryId: number;

	@IsString()
	@IsNotEmpty()
	@ApiProperty()
	brand: string;

	@IsString()
	@IsNotEmpty()
	@ApiProperty()
	brandId: string;

	@IsNumber()
	@IsNotEmpty()
	@ApiProperty()
	cost: number;

	@IsNumber()
	@IsNotEmpty()
	@ApiProperty()
	modifier: number;

	@IsNumber()
	@IsNotEmpty()
	@ApiProperty()
	price: number;
}
