import { ApiProperty } from '@nestjs/swagger';

export class ReviewDto {
  @ApiProperty({ example: "ok", description: "Review text given by the patient" })
  review: string;

  @ApiProperty({ example: null, description: "Name of the patient", nullable: true })
  patient_name?: string;

  @ApiProperty({ example: 4, description: "Rating given by the patient", minimum: 1, maximum: 5 })
  rating: number;

  @ApiProperty({ example: "2024-05-22T08:35:49.000Z", description: "Timestamp when the review was created" })
  created_at: string;
}


export class DocReviewDetailsDto {
    @ApiProperty({ example: '10' })
    details: ReviewDto[];
  
    @ApiProperty({ example: '10' })
    total: number;
  
  }