package com.template.model.evaluate.student;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 平分项管理
 * </p>
 *
 * @author ceshi
 * @since 2024-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SmartTemplateRule对象", description="平分项管理")
public class SmartTemplateRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "模板ID")
    @NotBlank(message = "模板ID不能为空")
    private Integer templateId;

    @ApiModelProperty(value = "等级")
    @NotBlank(message = "评分等级不能为空")
    private String level;

    @ApiModelProperty(value = "分值区间")
    @NotBlank(message = "分数区间能为空")
    private String scoreRange;

    @ApiModelProperty(value = "逻辑删除 未删除：0；删除：1")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleted;


}
