diff options
Diffstat (limited to 'internal/db/bundb/migrations/20220214175650_media_cleanup/mediaattachment.go')
-rw-r--r-- | internal/db/bundb/migrations/20220214175650_media_cleanup/mediaattachment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/migrations/20220214175650_media_cleanup/mediaattachment.go b/internal/db/bundb/migrations/20220214175650_media_cleanup/mediaattachment.go index a2f0b5f29..7081c730b 100644 --- a/internal/db/bundb/migrations/20220214175650_media_cleanup/mediaattachment.go +++ b/internal/db/bundb/migrations/20220214175650_media_cleanup/mediaattachment.go @@ -30,7 +30,7 @@ type MediaAttachment struct { URL string `validate:"required_without=RemoteURL,omitempty,url" bun:",nullzero"` // Where can the attachment be retrieved on *this* server RemoteURL string `validate:"required_without=URL,omitempty,url" bun:",nullzero"` // Where can the attachment be retrieved on a remote server (empty for local media) Type FileType `validate:"oneof=Image Gif Audio Video Unknown" bun:",nullzero,notnull"` // Type of file (image/gif/audio/video) - FileMeta FileMeta `validate:"required" bun:",embed:filemeta_,nullzero,notnull"` // Metadata about the file + FileMeta FileMeta `validate:"required" bun:",embed:,nullzero,notnull"` // Metadata about the file AccountID string `validate:"required,ulid" bun:"type:CHAR(26),nullzero,notnull"` // To which account does this attachment belong Account *Account `validate:"-" bun:"rel:has-one"` // Account corresponding to accountID Description string `validate:"-" bun:""` // Description of the attachment (for screenreaders) |