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 java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 班级课表（必修课安排）
 * </p>
 *
 * @author xu
 * @since 2025-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("class_schedule")
@ApiModel(value="ClassSchedule对象", description="班级课表（必修课安排）")
public class ClassSchedule implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "班级ID")
    private Long classId;

    @ApiModelProperty(value = "排课项ID")
    private Long scheduleItemId;

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

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

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

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

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

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

    @ApiModelProperty(value = "是否固定课表(1=固定,0=临时)")
    private Integer isFixed;

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


}
