import { IsInt, IsNotEmpty, IsString } from "class-validator"
import { ApiProperty } from "@nestjs/swagger"

export class CreateNoRatingDto {
  @ApiProperty({ description: "ID of the trip associated with the rating" })
  @IsInt()
  @IsNotEmpty()
  trip_id: number

  @ApiProperty({
    description:
      "ID of the entity opting out of rating (e.g., TeamMember or Customer)",
  })
  @IsInt()
  @IsNotEmpty()
  rater_id: number

  @ApiProperty({
    description: "ID of the entity being rated (e.g., TeamMember or Customer)",
  })
  @IsInt()
  @IsNotEmpty()
  rated_id: number

  @ApiProperty({
    description:
      "The type of rating (e.g., DRIVER_TO_CUSTOMER, CUSTOMER_TO_DRIVER)",
  })
  @IsNotEmpty()
  @IsString()
  rating_type: string
}
