start work on media storage

This commit is contained in:
Melody Becker 2024-09-24 13:01:33 +02:00
parent cb67b6e2fb
commit 3964c32438
5 changed files with 64 additions and 1 deletions

View file

@ -18,7 +18,7 @@ type MediaMetadata struct {
// If not null, this entry is marked as deleted
DeletedAt gorm.DeletedAt `gorm:"index"`
Remote bool // whether the attachment is a remote one
// Where the media is stored. Url if remote file,
// Where the media is stored. Url if remote file, file path if local
Location string
Type string // What media type this is following mime types, eg image/png
// Descriptive name for a media file