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

export class CreateCategoryTypeDto {
  @ApiProperty({
    description: 'The group of the category type',
    example: 'PAYROLL_TYPE',
  })
  @IsNotEmpty()
  @IsString()
  group: string;

  @ApiProperty({
    description: 'The description of the category type',
    example: 'Quincenal',
  })
  @IsNotEmpty()
  @IsString()
  description: string;

}