package com.ruoyi.course.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.ruoyi.course.enums.GradeEnum;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 排课项表（具体的一节课安排）
 * </p>
 *
 * @author xu
 * @since 2025-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("schedule_item")
@ApiModel(value="ScheduleItem对象", description="排课项表（具体的一节课安排）")
public class ScheduleItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "课程ID")
    private Long courseId;

    @ApiModelProperty(value = "教师ID")
    private Long teacherId;

    @ApiModelProperty(value = "时间槽ID")
    private Long timeSlotId;

    @ApiModelProperty(value = "教室ID")
    private Long classroomId;

    @ApiModelProperty(value = "班级ID（如果是必修课）")
    private Long classId;

    @ApiModelProperty(value = "课程类型(必修/选修)")
    private String courseType;

    @ApiModelProperty(value = "年级(高一/高二/高三)")
    private GradeEnum grade;

    @ApiModelProperty(value = "星期几(1-6)")
    private Integer dayOfWeek;

    @ApiModelProperty(value = "第几节(1-5)")
    private Integer period;

    @ApiModelProperty(value = "排课状态(0=待安排,1=已安排,2=冲突)")
    private Integer status;

    @ApiModelProperty(value = "学期(如:2025-2026-1)")
    private String semester;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
