package de.thpeetz.kontor.media.data;

import de.thpeetz.kontor.common.data.AbstractEntity;
import jakarta.annotation.Nullable;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.persistence.UniqueConstraint;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(uniqueConstraints = { @UniqueConstraint(columnNames = { "url" }) })
public class MediaVideo extends AbstractEntity {

    @Nullable
    private String url;

    private boolean review;

    private boolean shouldDownload;

    @Nullable
    private String title;

    @Nullable
    private String cloudLink;

    @Nullable
    private String fileName;

    @Nullable
    private String path;

}
