package com.ruoyi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.GnhzBaseEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: RuoYi-Vue-master
 * @description: 题库表
 * @author: niujie
 * @create: 2023-08-03 20:18
 */
@Data
@TableName("question_bank")
public class QuestionBank extends GnhzBaseEntity {
    //id
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    //题目标题
    @TableField("question_title")
    private String questionTitle;

    //题目选项
    @TableField("question_option")
    private String questionOption;

    //题目答案
    @TableField("question_anscha")
    private String questionAnscha;

    //题目类型
    @TableField("question_types")
    private String questionTypes;

    //培训计划分类表id
    @TableField("training_plan_classification_id")
    private String trainingPlanClassificationId;

    //题目分值
    @TableField("question_score")
    private Integer questionScore;

    @TableField(exist = false)
    private String userName;

    /**
     * 试卷ID：paper.id
     */
    @TableField(exist = false)
    private String paperId;


    //题目选项(数组)
    @TableField(exist = false)
    private List<String> questionOptions;

    //答案数组
    @TableField(exist = false)
    private List<String> questionAnschas;

    //提交答案
    @TableField(exist = false)
    private List<String> submitAnswers = new ArrayList<>();
}
