package com.xiaoniu.subsystem.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaoniu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 考试题库表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-12-23 05:36:11
 */
@Data
@Accessors(chain = true)
@TableName("tb_exam_question")
@Schema(description = "考试题库表")
public class ExamQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "考题ID")
    @TableId(value = "question_id", type = IdType.AUTO)
    private Long questionId;

    @Schema(description = "班次ID")
    private Long flightId;

    @Excel(name = "班次名称")
    @Schema(description = "班次名称")
    private String flightName;

    @Excel(name = "年度")
    @Schema(description = "年度")
    private String year;


    @Excel(name = "题型", readConverterExp = "0=填空题,1=判断题,2=选择题,3=问答题")
    @Schema(description = "题型(0填空题  1判断题  2选择题  3问答题)")
    private String questionType;

    @Excel(name = "分数")
    @Schema(description = "分数")
    private String score;

    @Excel(name = "题干")
    @Schema(description = "题干")
    private String question;

    @Excel(name = "答案")
    @Schema(description = "答案")
    private String answer;

    @Excel(name = "解析")
    @Schema(description = "解析")
    private String analysis;

    @Schema(description = "上传时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;


    @Schema(description = "备注")
    private String remark;

    @Schema(description = "数据状态（0草稿（待分配）,1待培训,2培训中,3已培训,4作废）")
    private Integer isDistribution;

    @Schema(description = "创建人")
    private Long createUser;

    @Schema(description = "创建部门")
    private Long createDept;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "修改人")
    private Long updateUser;

    @Schema(description = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Schema(description = "是否已删除")
    private Integer isDeleted;


    /**
     * 储存地址
     */
    @Schema(description = "储存地址")
    private String url;

    /**
     * 开训时间
     */
    @Excel(name = "开训时间", dateFormat = "yyyy-MM-dd")
    @Schema(description = "开训时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date trainingTime;
}
