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

export class AddPackageCategoriesDto {
  @ApiProperty({ description: 'Category name', example: 'General' })
  @IsNotEmpty({ message: 'Name should not be empty' })
  @IsString()
  name: string;

  @ApiProperty({ example: 1, description: 'Hospital ID' })
  @IsNotEmpty({ message: 'Hospital ID should not be empty' })
  @IsNumber({}, { message: 'Hospital ID must be a number' })
  hospital_id: number;

  @ApiProperty({ example: 1, description: 'Creator ID' })
  @IsNumber({}, { message: 'Created by must be a number' })
  created_by: number;

  created_source?: string;
}

export class EditPackageCategoriesDto {
  @ApiProperty({ description: 'Category name', example: 'General' })
  @IsNotEmpty({ message: 'Name should not be empty' })
  @IsString()
  name: string;

  @ApiProperty({ example: 1, description: 'Hospital ID' })
  @IsNotEmpty({ message: 'Hospital ID should not be empty' })
  @IsNumber({}, { message: 'Hospital ID must be a number' })
  hospital_id: number;


}
