id | string | Primary key, document ID (content-based hash) |
name | string | Human-readable document name |
description | string | Optional document description |
metadata | json | Full document metadata (file path, loader info, etc.) |
type | string | File extension (e.g., pdf, md, csv) |
size | integer | File size in bytes |
knowledge_base_id | string | ID of the parent KnowledgeBase |
content_hash | string | MD5 hash of document content for deduplication |
chunk_count | integer | Number of chunks created from this document |
source | string | Original file path or source identifier |
status | string | Processing status (indexed, failed) |
status_message | string | Optional status details (e.g., error message) |
access_count | integer | Number of times the document has been accessed |
created_at | integer | Unix timestamp of creation |
updated_at | integer | Unix timestamp of last update |