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

export class CreateMatrixDto {
	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	tableName: string;

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

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

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

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

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