package jnpf.entity.training;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
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_identify_user")

public class TrainingIdentifyUserEntity extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;


    @Schema(description = "用户ID")
    @TableField("F_UserId")
    private String userId;

    @Schema(description = "用户名称")
    @TableField("F_UserName")
    private String userName;

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

    @Schema(description = "模板ID")
    @TableField("F_TemplateId")
    private String templateId;

    @Schema(description = "模板名称")
    @TableField("F_TemplateName")
    private String templateName;

    @Schema(description = "发布人ID")
    @TableField(exist = false)
    private String templateUserID;

    @Schema(description = "发布人名称")
    @TableField(exist = false)
    private String templateUserName;

    @Schema(description = "头像地址")
    @TableField(exist = false)
    private String headIcon;

    @Schema(description = "鉴定人ID")
    @TableField("F_IdentifyUserID")
    private String identifyUserID;

    @Schema(description = "鉴定人名称")
    @TableField("F_IdentifyUserName")
    private String identifyUserName;

    @Schema(description = "用时")
    @TableField("F_Duration")
    private Integer duration;

    @Schema(description = "鉴定时间")
    @TableField("F_IdentifyTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime identifyTime;

    @Schema(description = "状态（-1未提交 0待鉴定，1通过，2未通过）")
    @TableField("F_Status")
    private Integer status;

    @Schema(description = "申请状态（0未申请，1已申请）")
    @TableField("F_Apply_Status")
    private Integer applyStatus;

    @Schema(description = "描述")
    @TableField("F_Description")
    private String description;

    @Schema(description = "学习内容ID")
    @TableField("F_LearningId")
    private String learningId;


    @Schema(description = "组织名称")
    @TableField(exist = false)
    private String organizeName;

    @Schema(description = "岗位名称")
    @TableField(exist = false)
    private String positionName;

}