blob: fcff37e696ee86046c09852b95f206d715d7ca81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package mail
import "gorm.io/gorm"
type Attachment struct {
gorm.Model
EmailID uint `gorm:"not null;index" json:"email_id"`
Email Email `gorm:"foreignKey:EmailID" json:"email"`
Filename string `gorm:"not null" json:"filename"`
ContentType string `gorm:"not null" json:"content_type"`
ContentID string `json:"content_id"`
Size int64 `json:"size"`
IsInline bool `gorm:"default:false" json:"is_inline"`
}
|