package cn.reghao.tnb.content.app.vod.model.po;

import cn.reghao.jutil.jdk.db.BaseObject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2023-01-30 16:41:15
 */
@NoArgsConstructor
@Setter
@Getter
public class UserCollection extends BaseObject<Integer> {
    private Long userId;
    private String videoId;
    private Long collectionId;
    private String collectionName;
    private Integer contentType;
    private String contentId;
    private LocalDateTime createAt;
    private LocalDateTime collectAt;
    private Long collectBy;

    public UserCollection(Long userId, String videoId) {
        this.userId = userId;
        this.videoId = videoId;
        this.createAt = LocalDateTime.now();
    }
}
