blob: cd1a741bc02ab1c476bd47d179b5ab5fe6e2130c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package models
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"`
}
|