package com.gxwebsoft.bszx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 百色中学-年级
 *
 * @author 科技小王子
 * @since 2025-03-06 22:50:25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "BszxGrade对象", description = "百色中学-年级")
public class BszxGrade implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "年级")
    private String name;

    @Schema(description = "年代")
    private Integer eraId;

    @Schema(description = "分部")
    private Integer branch;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "子分类")
    @TableField(exist = false)
    private List<BszxClass> children;

}
