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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;


@Data
@TableName(value = "t_course_directory",autoResultMap = true)
@Schema(description = "课程目录类")
public class TCourseDirectory extends BaseDO {

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

    @Schema(description = "父id", example = "1")
    private Long parentId;


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

    @NotNull(message = "序号不能为空")
    @Schema(description = "序号", example = "1")
    private Integer sequence;

    private List<Long> idChain;
}
