package cn.iocoder.yudao.module.knowledge.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;

import java.util.List;


/**
 * 课程表
 *
 * @author admin
 * @since 1.0.0 2024-04-16
 */

@Data
@TableName("t_course")
@Schema(description = "课程类")
public class TCourse extends BaseDO {

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

    @Schema(description = "课程目录表主键", example = "1")
    private Long courseDirectoryId;

    @Schema(description = "课程目录名称", example = "数学")
    private String courseDirectoryName;

    @Schema(description = "课程名称", example = "数学")
    private String name;

    @Schema(description = "课程说明", example = "erwef")
    private String desrc;

    @Schema(description = "课件列表")
    @TableField(exist = false)
    private List<TCourseware> tCoursewareList;

    @TableField(exist = false)
    private List<Long> idChain;

}
