package org.dromara.system.domain;

import lombok.*;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;

/**
 * 知识片段对象 ai_knowledge_fragment
 *
 * @author wangkang
 * @date 2025-09-17
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@TableName("ai_knowledge_fragment")
@NoArgsConstructor
@AllArgsConstructor
public class AiKnowledgeFragmentDo extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 知识库ID
     */
    private String knowledgeCode;

    /**
     * 文档ID
     */
    private String docCode;

    /**
     * 知识片段ID
     */
    private String fragmentCode;

    /**
     * 片段索引下标
     */
    private Integer idx;

    /**
     * 文档内容
     */
    private String content;

    /**
     * 备注
     */
    private String remark;


}
