mirror of
https://github.com/Jinnrry/PMail.git
synced 2026-04-23 00:17:16 +08:00
5af46b32f6
支持Imap协议 升级所有依赖 修复部分bug
18 lines
876 B
Go
18 lines
876 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type UserEmail struct {
|
|
ID int `xorm:"id int unsigned not null pk autoincr"`
|
|
UserID int `xorm:"user_id int not null index('idx_eid') index comment('用户id')"`
|
|
EmailID int `xorm:"email_id not null index('idx_eid') index comment('信件id')"`
|
|
IsRead int8 `xorm:"is_read tinyint(1) comment('是否已读')" json:"is_read"`
|
|
GroupId int `xorm:"group_id int notnull default(0) comment('分组id')'" json:"group_id"`
|
|
Status int8 `xorm:"status tinyint(4) notnull default(0) comment('0未发送或收件,1已发送,2发送失败,3删除')" json:"status"` // 0未发送或收件,1已发送,2发送失败 3删除 4草稿箱(Drafts) 5骚扰邮件(Junk)
|
|
Created time.Time `xorm:"create datetime created index('idx_create_time')"`
|
|
}
|
|
|
|
func (p UserEmail) TableName() string {
|
|
return "user_email"
|
|
}
|