package com.miaxis.question.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.miaxis.common.annotation.Excel;
import com.miaxis.common.core.domain.BaseBusinessEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

/**
 * collection对象 question_collection
 *
 * @author miaxis
 * @date 2021-08-18
 */
@Data
@TableName("question_collection")
@ApiModel(value = "QuestionCollection", description = "collection对象 question_collection")
public class QuestionCollection  {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id")
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    @TableField("user_id")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /** 题目ID */
    @Excel(name = "题目ID")
    @TableField("question_id")
    @ApiModelProperty(value = "题目ID")
    private Long questionId;

    /** 科目 */
    @Excel(name = "科目")
    @TableField("km")
    @ApiModelProperty(value = "考试科目（1、2、3、4）")
    private Integer km;


    /** 终端类型 */
    @Excel(name = "终端类型")
    @TableField("km")
    @ApiModelProperty(value = "终端类型")
    private Integer deviceType;


    /** 创建时间 */
    @ApiModelProperty(value = "创建时间"  ,hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private Timestamp createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS" )
    @ApiModelProperty(value = "更新时间" ,hidden = true)
    private Timestamp updateTime;

}
