cherry-studio/resources/migrations/001_create_files_table.sql
kangfenmao 0337c6649b feat: Added tracking column to files table and updated FileMetadata interface.
- Added a "count" column with default value 1 to the "files" table for tracking purposes.
- Improved file duplication and deletion handling.
- Updated regular expression for vision models to include additional providers.
- Improved removal of topics for assistants from local storage.
- Added support for human-readable date formats in file metadata.
- Improved handling of messages with image attachments to include base64 encoded images in the response.
- Added new 'count' property to the FileMetadata interface.
2024-09-13 13:26:22 +08:00

12 lines
253 B
SQL

CREATE TABLE IF NOT EXISTS files (
id TEXT PRIMARY KEY,
name TEXT NOT NULL,
file_name TEXT NOT NULL,
path TEXT NOT NULL,
size INTEGER NOT NULL,
ext TEXT NOT NULL,
type TEXT NOT NULL,
created_at TEXT NOT NULL,
count INTEGER DEFAULT 1
)