package jnpf.entity.training;

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

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 * 证书颁发
 *
 * @author yanglei
 * @since 2023-07-22
 */
@Data
@Accessors(chain = true)
@TableName("ftb_training_certificate_user")

public class TrainingCertificateUserEntity extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;


    @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 LocalDateTime 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;
}