package com.lesingle.edu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 学生班级历史实体
 */
@Schema(description = "学生班级历史实体")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("student_class_history")
public class StudentClassHistory extends BaseEntity {

    @Schema(description = "学生 ID")
    private Long studentId;

    @Schema(description = "班级 ID")
    private Long classId;

    @Schema(description = "开始日期")
    private LocalDate startDate;

    @Schema(description = "结束日期")
    private LocalDate endDate;

    @Schema(description = "状态", defaultValue = "ACTIVE")
    private String status;
}
