package com.xxl.job.executor.common.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 素材信息
 *
 * @author jeecg-boot
 * @version V1.0
 * @date 2019-10-11
 */
@Data
@TableName("ctop_material_info")
public class MaterialInfo {

    /**
     * id
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * code
     */
    private String code;
    private String watermarkCode;
    /**
     * url
     */
    private String url;
    /**
     * 封面url
     */
    private String coverUrl;

    /**
     * 水印素材链接
     */
    private String watermarkUrl;

    private String type;
    /**
     * 审核人id
     */
    private String auditorId;
    /**
     * status
     * <p>
     * 0-待审核 1-审核通过 2-审核拒绝
     */
    private Integer status;
    /**
     * userId
     */
    private String userId;

    private String materialDescribe;

    private Long projectId;

    /**
     * 素材名称
     */
    private String materialName;

    /**
     * 水印素材名称
     */
    private String watermarkMaterialName;

    /**
     * 拒绝原因
     */
    private String refuseReason;
    /**
     * 拒绝上传文件
     */
    private String refuseFile;

    /**
     * 创意文案
     */
    private String creativeCopywriter;

    /**
     * 是否优秀素材
     */
    private Integer excellent;
    /**
     * createTime
     */
    private Object createTime;
    /**
     * updateTime
     */
    private Date updateTime;

    private Integer toutiaoEffiType; //判断是否为头条有效素材0否_1是

    private Integer kuaishouEffiType; //判断是否为快手有效素材0否_1是

    @TableField(exist = false)
    private Integer kuaishouVideoIsUp;  //判断是否已经同步到快手平台0否_1是

    @TableField(exist = false)
    private Integer toutiaoVideoIsUp;  //判断是否已经同步到头条平台0否_1是

    @TableField(exist = false)
    private JSONObject byteDance;

    @TableField(exist = false)
    private JSONObject kuaiShou;

    @TableField(exist = false)
    private String videoRoleCode;  //拍摄时候担任的角色

    @TableField(exist = false)
    private String originRoleName;  //原本的角色

    @TableField(exist = false)
    private BigDecimal cost;

    @TableField(exist = false)
    private BigDecimal bytedanceCost;

    @TableField(exist = false)
    private String realname;

    @TableField(exist = false)
    private Boolean whetherUnaudited;  // 是否有未审核封面


    @TableField(exist = false)
    private String mediaId;  // 是否有未审核封面

    @TableField(exist = false)
    private String projectName;  // 是否有未审核封面


    private String supplierCode; // 素造供应商


    @TableField(exist = false)
    private String startDate;  // 是否有未审核封面

    @TableField(exist = false)
    private String endDate;  // 是否有未审核封面


}
