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 javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

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

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "年级")
    @NotBlank(message = "年级不能为空")
    private String grade;

    @ApiModelProperty(value = "年级")
    @NotNull(message = "年级不能为空")
    private Integer gradeId;

    @ApiModelProperty(value = "学期")
    @NotBlank(message = "学期不能为空")
    private String term;

    @ApiModelProperty(value = "学期ID")
    @NotNull(message = "学期ID不能为空")
    private Integer termId;

    @ApiModelProperty(value = "考试类型")
    @NotBlank(message = "考试类型不能为空")
    private String examType;

    @TableField(exist = false)
    private List<SmartTermTemplate> examTypes;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "创建人员")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "更新人员")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "逻辑删除 未删除：0；删除：1")
    private Integer deleted;


}
