package com.cxy.classroll.model.entity;

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

import java.util.Date;

@Data
@Schema(description = "lesson")
public class Lesson {
    private static final long serialVersionUID = 1L;

    @TableField("id")
    @TableId(type = IdType.AUTO)
    @Schema(description = "课程id")
    private Long id;

    @Schema(description = "课程名字")
    @TableField("lesson_name")
    private String lesson_name;

    @Schema(description = "老师主键id")
    @TableField("teacher_id")
    private Long teacher_id;

    @Schema(description = "课程状态（0：没上课，1：正在上课）")
    @TableField("status")
    private Integer status;

    @Schema(description = "点名状态（0：没点名：1：正在点名）")
    @TableField("roll")
    private Integer roll;

}
