Encrypted messaging app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
341 B

  1. package Models
  2. // Attachment holds the attachment data
  3. type Attachment struct {
  4. Base
  5. FilePath string `gorm:"not null" json:"-"`
  6. Mimetype string `gorm:"not null" json:"mimetype"`
  7. Extension string `gorm:"not null" json:"extension"`
  8. Data string `gorm:"-" json:"data"`
  9. ImageLink string `gorm:"-" json:"image_link"`
  10. }