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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
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 org.hibernate.validator.constraints.Length;

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

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

    /**
     * ID
     */
    @NotNull(message = "[ID]不能为空")
    @ApiModelProperty("ID")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 试卷名称
     */
    @Size(max = 200, message = "编码长度不能超过200")
    @ApiModelProperty("试卷名称")
    @Length(max = 200, message = "编码长度不能超过200")
    private String testPaperName;
    /**
     * 培训ID
     */
    @NotNull(message = "[培训ID]不能为空")
    @ApiModelProperty("培训ID")
    private Long trainId;
    /**
     * 通过分数
     */
    @NotNull(message = "[通过分数]不能为空")
    @ApiModelProperty("通过分数")
    private BigDecimal passScore;
    /**
     * 删除标记（0：未删除  1：已删除）
     */
    @ApiModelProperty("删除标记（0：未删除  1：已删除）")
    private String delFlag;

}
