package com.lesingle.edu.entity;

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

/**
 * 课程资源实体
 */
@Schema(description = "课程资源实体")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("course_resource")
public class CourseResource extends BaseEntity {

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

    @Schema(description = "资源标题")
    private String title;

    @Schema(description = "资源类型")
    private String type;

    @Schema(description = "资源 URL")
    private String url;

    @Schema(description = "文件路径")
    private String filePath;

    @Schema(description = "文件大小")
    private Long fileSize;

    @Schema(description = "时长")
    private Integer duration;

    @Schema(description = "资源描述")
    private String description;

    @Schema(description = "排序号")
    private Integer sortOrder;

}
