package io.delphiplatform.api.v3.rdb.entity.video;

import javax.persistence.Convert;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

import io.delphiplatform.api.v3.model.video.YoutubeContentType;
import io.delphiplatform.api.v3.rdb.entity.converter.YouTubeContentTypeAttributeConverter;
import lombok.Getter;
import lombok.Setter;

@Entity(name = "video_isrc")
@Getter
@Setter
public class VideoIsrcEntity {

    @EmbeddedId
    private VideoIsrcId videoIsrcId;
    @Convert(converter = YouTubeContentTypeAttributeConverter.class)
    private YoutubeContentType contentType;
    private Long views;

}
