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

import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Id;

import io.delphiplatform.api.v3.model.video.VideoDspSlug;
import io.delphiplatform.api.v3.rdb.entity.converter.VideoDspSlugAttributeConverter;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity(name = "video_channel")
public class VideoChannelEntity {

    @Id
    private String channelId;
    private String title;
    private String dspChannelId;
    @Convert(converter = VideoDspSlugAttributeConverter.class)
    private VideoDspSlug dsp;

}
