chore: add image-size dep and metadata columns (migration 0003)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
3
migrations/0003_attachment_metadata.sql
Normal file
3
migrations/0003_attachment_metadata.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- 0003_attachment_metadata.sql — 给附件加结构化、按类型而异的元信息(纯增量)
|
||||
ALTER TABLE attachments ADD COLUMN metadata TEXT; -- 按 kind 判别的 JSON 对象
|
||||
ALTER TABLE attachments ADD COLUMN metadata_kind TEXT; -- image|video|audio|document|file,冗余便于筛选
|
||||
Reference in New Issue
Block a user