VideoPool.java 1.86 KB
package cn.fw.freya.model.data.pool;


import lombok.*;

import javax.persistence.*;
import java.util.Date;


/**
 * @author unknown
 * @version 1.0
 * @date 2021/12/13 16:04
 * @Description 直播池
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
@Entity
@ToString
@Table(name = "video_pool", uniqueConstraints = @UniqueConstraint(columnNames = {"accountNo", "videoId", "type", "reportDate"}))
public class VideoPool {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 账户号
     */
    private String accountNo;
    /**
     * 视频id
     **/
    private String videoId;
    /**
     * 视频标题
     **/
    @Column(length = 1024)
    private String title;
    /**
     * 播放量
     **/
    private Integer playCount;
    /**
     * 点赞量
     **/
    private Integer likeCount;
    /**
     * 评论数
     **/
    private Integer commentCount;
    /**
     * 分享次数
     **/
    private Integer shareCount;
    /**
     * 视频url
     **/
    @Column(length = 1024)
    private String videoUrl;
    /**
     * 封面图路径
     **/
    @Column(length = 1024)
    private String preview;
    /**
     * 账户类型 (1:快手, 2:抖音, 3:懂车帝, 4:Bilibili)
     */
    private Integer type;
    /**
     * 数据采集上报时间
     */
    @Column(columnDefinition = "date")
    @Temporal(TemporalType.DATE)
    private Date reportDate;
    /**
     * 该视频作品上传时间
     */
    @Column(columnDefinition = "datetime")
    private Date publishTime;
    /**
     * 1:视频 2:直播回放
     */
    private Integer resourceType;
    /**
     * 时长(秒钟)
     */
    private Double duration;
    /**
     * 完整播放数量
     **/
    private Integer fullPlayCount;

    // 其他参数
    /**
     * 新增粉丝数
     */
    private Integer newFansUserCnt;
}