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("resource_item")
public class ResourceItem extends BaseEntity {

    @Schema(description = "资源库 ID")
    private String libraryId;

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

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

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

    @Schema(description = "文件类型 (IMAGE/PDF/VIDEO/AUDIO/PPT/OTHER)")
    private String fileType;

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

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

    @Schema(description = "资源标签 (JSON 数组)")
    private String tags;

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

    @Schema(description = "资源类型（保留字段，兼容旧数据）")
    private String type;

    @Schema(description = "资源名称（保留字段，兼容旧数据）")
    private String name;

    @Schema(description = "资源编码（保留字段，兼容旧数据）")
    private String code;

    @Schema(description = "数量（保留字段，兼容旧数据）")
    private Integer quantity;

    @Schema(description = "可用数量（保留字段，兼容旧数据）")
    private Integer availableQuantity;

    @Schema(description = "存放位置（保留字段，兼容旧数据）")
    private String location;

    @Schema(description = "状态")
    private String status;

}
