Start work on media storage

This commit is contained in:
Melody Becker 2024-11-21 14:45:25 +01:00
parent bf8d272122
commit 9acecfd7f6
10 changed files with 110 additions and 48 deletions

View file

@ -21,11 +21,11 @@ type MediaMetadata struct {
DeletedAt gorm.DeletedAt `gorm:"index"`
OwnedBy string // Account id this media belongs to
Remote bool // whether the attachment is a remote one
// Where the media is stored. Url if remote file, file path if local
// Where the media is stored. Url
Location string
Type string // What media type this is following mime types, eg image/png
// Descriptive name for a media file
// Emote name for example or servername.filetype for a server's icon
// Name of the file
// Could be <emote-name>.png, <server-name>.webp for example. Or the name the file was uploaded with
Name string
// Alternative description of the media file's content
AltText string