package com.reading.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * Lesson Entity
 */
@Data
@TableName("lessons")
public class Lesson {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long tenantId;

    private Long courseId;

    private Long classId;

    private Long teacherId;

    private String title;

    private LocalDate lessonDate;

    private LocalTime startTime;

    private LocalTime endTime;

    private String location;

    private String status;

    private String notes;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic
    private Integer deleted;

}
