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_course_user")

public class TrainingCourseUserEntity extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;


    @Schema(description = "主键课程ID")
    @TableField("F_CourseId")
    private String courseId;


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

    @Schema(description = "学习完成时间")
    @TableField("F_FinishTime")
    private LocalDateTime finishTime;

    @Schema(description = "学习类型（1岗位学习，2知识库）")
    @TableField("F_Type")
    private Integer type;

    @Schema(description = "状态（0学习中，1已学完，2未学习）")
    @TableField("F_Status")
    private Integer status;

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

    @Schema(description = "人数")
    @TableField(exist = false)
    private Integer peopleNumber;
}