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-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("teacher_course")
@ApiModel(value="TeacherCourse对象", description="教师授课表")
public class TeacherCourse implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

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

    @ApiModelProperty(value = "优先级(1主课,2副课)")
    private Integer priority;

    @ApiModelProperty(value = "每周最多课时")
    private Integer maxHoursPerWeek;

    @ApiModelProperty(value = "每周最少课时")
    private Integer minHoursPerWeek;

    @ApiModelProperty(value = "偏好时间(格式:周一上午,周三下午)")
    private String preferredTime;

    @ApiModelProperty(value = "不可用时间")
    private String unavailableTime;

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


}
