package com.ruoyi.course.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.course.enums.GradeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 班级信息表
 * </p>
 *
 * @author xu
 * @since 2025-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("clazz")
@ApiModel(value="Clazz对象", description="班级信息表")
public class Clazz implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "班级名称")
    private String className;

    @ApiModelProperty(value = "年级(高一/高二/高三)")
    @TableField(value = "grade")
    private GradeEnum grade;






    @ApiModelProperty(value = "班级类型(普通班/特长班/实验班)")
    private String classType;

    @ApiModelProperty(value = "学生人数")
    private Integer studentCount;

    @ApiModelProperty(value = "班主任ID")
    private Long headTeacherId;

    @ApiModelProperty(value = "行政班教室ID")
    private Long classroomId;

    @ApiModelProperty(value = "状态(0=停用,1=启用)")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
