package com.lesingle.edu.entity;

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

import java.time.LocalDateTime;

/**
 * 租户课程关联实体
 * <p>
 * 中间表，不设置逻辑删除字段，使用物理删除
 * </p>
 */
@Schema(description = "租户课程关联实体")
@Data
@TableName("tenant_course")
public class TenantCourse {

    @Schema(description = "主键 ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "租户 ID")
    private Long tenantId;

    @Schema(description = "课程 ID")
    private Long courseId;

    @Schema(description = "是否启用")
    private Integer enabled;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
