2024-05-17 07:59:51 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "gorm.io/datatypes"
|
|
|
|
|
|
|
|
type Attachment struct {
|
|
|
|
BaseModel
|
|
|
|
|
2024-05-20 14:31:55 +00:00
|
|
|
Uuid string `json:"uuid"`
|
2024-05-17 07:59:51 +00:00
|
|
|
Size int64 `json:"size"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Alternative string `json:"alt"`
|
|
|
|
Usage string `json:"usage"`
|
|
|
|
MimeType string `json:"mimetype"`
|
|
|
|
HashCode string `json:"hash"`
|
|
|
|
Destination string `json:"destination"`
|
|
|
|
|
|
|
|
Metadata datatypes.JSONMap `json:"metadata"`
|
|
|
|
IsMature bool `json:"is_mature"`
|
|
|
|
|
|
|
|
Account Account `json:"account"`
|
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|