import { IsNotEmpty, IsEnum, IsUUID } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { ContentType } from '../../common/enums';

export class CreateFavoriteDto {
  @ApiProperty({ example: 'uuid-content-id' })
  @IsUUID()
  @IsNotEmpty()
  contentId: string;

  @ApiProperty({ enum: ContentType, example: ContentType.MOVIE })
  @IsEnum(ContentType)
  @IsNotEmpty()
  contentType: ContentType;
}
