import { IsString, IsOptional, IsInt, Min, IsEnum } from 'class-validator';

export class CreateBedDto {
  @IsString()
  bedNumber: string;

  @IsOptional()
  @IsString()
  status?: string;

  @IsOptional()
  @IsString()
  notes?: string;
}

export class UpdateBedDto {
  @IsOptional()
  @IsString()
  bedNumber?: string;

  @IsOptional()
  @IsEnum(['available', 'occupied', 'maintenance'])
  status?: string;

  @IsOptional()
  @IsString()
  notes?: string;
}

export class BatchCreateBedDto {
  @IsInt()
  @Min(1)
  count: number;
}
