import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export  class AddPackageCategoriesDto {
  @ApiProperty()
  @IsNotEmpty({ message: 'Name should not be empty' })
  name: string;

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

  @ApiProperty({ example: 1, description: 'Creator ID' })
  created_by: number;

  @ApiProperty({ example: 'hms', description: 'Create Source' })
  created_source: string;
}

export  class EditPackageCategoriesDto {
  @ApiProperty()
  @IsNotEmpty({ message: 'Name should not be empty' })
  name: string;

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