package jnpf.model.cultivate.po.certificate;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jnpf.model.cultivate.entiy.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * 证书颁发
 *
 * @author hao.peng
 */
@Data
@Accessors(chain = true)
@TableName("ftb_cultivate_certificate_user")
public class FtbCertificateUserEntity extends BaseEntity {


    @Schema(description = "证书ID")
    @TableField("F_CertificateId")
    private String certificateId;

    @Schema(description = "证书名称")
    @TableField("F_CertificateName")
    private String certificateName;

    @Schema(description = "企业名称")
    @TableField("F_CompanyName")
    private String companyName;

    @Schema(description = "证书编号")
    @TableField("F_Number")
    private String number;

    @Schema(description = "用户证书图片地址")
    @TableField("F_ImageUrl")
    private String imageUrl;

    @Schema(description = "失效时间")
    @TableField("F_ExpireTime")
    private Date expireTime;

    @Schema(description = "员工ID")
    @TableField("F_UserId")
    private String userId;

    @Schema(description = "组织ID")
    @TableField("F_OrganizeId")
    private String organizeId;

    @Schema(description = "岗位ID")
    @TableField("F_PositionId")
    private String positionId;

    @Schema(description = "员工名称")
    @TableField("F_UserName")
    private String userName;

    @Schema(description = "生效时间")
    @TableField("F_EffectTime")
    private LocalDateTime effectTime;

    @Schema(description = "状态（0生效中，1已失效，2已吊销）")
    @TableField("F_Status")
    private Integer status;

    @Schema(description = "原因")
    @TableField("F_Reason")
    private String reason;

    @Schema(description = "有效标识 1-有效  0-无效")
    @TableField("F_EnabledMark")
    private Integer enabledMark;

    /**
     *  是否是离职删除 0-否  1-是
     */
    @TableField(value = "F_LeaveOut")
    private Integer leaveOut;

}