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("course_assignment")
@ApiModel(value="CourseAssignment对象", description="课程分配表（教师-课程关联）")
public class CourseAssignment 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 = "班级ID（如果是必修课）")
    private Long classId;

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

    @ApiModelProperty(value = "每周课时数")
    private Integer hoursPerWeek;

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

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

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


}
