Jan 18, 2025, 1:53 AM
Files
with columns for FileID
, FileName
, FileType
, FileSize
, and FileContent
.id
(Primary Key): Unique identifier for each file entryfull_path
: Complete path including filename (e.g., '/home/user/documents/report.pdf')content
: The actual content of the file (or a reference to where it's stored)timestamp
: Last modified or accessed timemetadata
: JSON field to store various metadata (creation date, database name, number of pages, etc.)hash
: A hash of the file content to avoid duplicates and track changesversion
: Version number to track updatesfull_path
combines the directory path and filename.timestamp
captures the last modification time.metadata
can store flexible information about the file.hash
helps avoid repeated entries and detect changes.version
allows for tracking updates to the same file.directories
to keep track of all the folders we've processed.directories
table to keep track of all processed folders.files
and directories
. However, both of these tables are empty at the moment. This suggests that either:scan_and_update
function with a valid directory path.