package com.ruoyi.project.business.domain.train;

import com.ruoyi.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @TableName tt_test_paper_detail
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Builder
public class TtTestPaperDetail extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "[ID]不能为空")
    @ApiModelProperty("ID")
    private Long id;
    /**
     * 试卷ID
     */
    @NotNull(message = "[试卷ID]不能为空")
    @ApiModelProperty("试卷ID")
    private Long testPaperId;
    /**
     * 试题ID
     */
    @NotNull(message = "[试题ID]不能为空")
    @ApiModelProperty("试题ID")
    private Long questionId;
    /**
     * 试题分数
     */
    @NotNull(message = "[试题分数]不能为空")
    @ApiModelProperty("试题分数")
    private BigDecimal questionScore;
    /**
     * 顺序
     */
    @ApiModelProperty("顺序")
    private Long sortIndex;
    /**
     * 删除标记（0：未删除  1：已删除）
     */
    @ApiModelProperty("删除标记（0：未删除  1：已删除）")
    private String delFlag;

}
