package com.lesingle.edu.entity;

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

import java.time.LocalDateTime;

/**
 * 班级教师关系实体
 * <p>
 * 中间表，不设置逻辑删除字段，使用物理删除
 * </p>
 */
@Schema(description = "班级教师关系实体")
@Data
@TableName("class_teacher")
public class ClassTeacher {

    @Schema(description = "主键 ID")
    @TableId(type = IdType.AUTO)
    private Long id;

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

    @Schema(description = "教师 ID")
    private Long teacherId;

    @Schema(description = "角色")
    private String role;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
