package jnpf.model.certificate.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.base.entity.SuperEntity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 证照实例实体。
 */
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ftb_certificate_instance")
public class CertificateInstanceEntity extends SuperEntity.SuperCUBaseEntity<String> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(value = "F_CertificateType")
    private String certificateType;

    @TableField(value = "F_TemplateId")
    private String templateId;

    @TableField(value = "F_TemplateStatus")
    private Integer templateStatus;

    /**
     * 主体类型，1为员工、2为公司、3为门店
     */
    @TableField(value = "F_SubjectType")
    private Integer subjectType;

    @TableField(value = "F_SubjectId")
    private String subjectId;

    @TableField(value = "F_CertificateNo")
    private String certificateNo;

    @TableField(value = "F_IssueDate")
    private Date issueDate;

    @TableField(value = "F_ExpireDate")
    private Date expireDate;

    @TableField(value = "F_ExpireTimestamp")
    private long expireTimestamp;

    @TableField(value = "F_IsLongTerm")
    private Integer isLongTerm;

    /**
     * 状态，1为缺失，2为过期，3为临期，4为正常
     */
    @TableField(value = "F_Status")
    private Integer status;

    @TableField(value = "F_CertificateImage")
    private String certificateImage;

    @TableField(value = "F_EnabledMark")
    private Integer enabledMark;

    /**
     * 冗余门店得disable状态。默认为0.0为不禁用，1为禁用
     */
    @TableField(value = "F_StoreDisable")
    private Integer storeDisable;
}
