package com.lingyue.graph.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lingyue.common.domain.entity.SimpleModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文本存储实体
 * 用于记录TXT文件存储路径
 * 
 * @author lingyue
 * @since 2026-01-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("text_storage")
@Schema(description = "文本存储实体")
public class TextStorage extends SimpleModel {
    
    @Schema(description = "文档ID")
    @TableField("document_id")
    private String documentId;
    
    @Schema(description = "TXT文件路径")
    @TableField("file_path")
    private String filePath;
    
    @Schema(description = "文件大小（字节）")
    @TableField("file_size")
    private Long fileSize;
    
    @Schema(description = "文件校验和（MD5）")
    @TableField("checksum")
    private String checksum;
}
