user_email.go 696 B

1234567891011121314
  1. package models
  2. type UserEmail struct {
  3. ID int `xorm:"id int unsigned not null pk autoincr"`
  4. UserID int `xorm:"user_id int not null index('idx_eid') index comment('用户id')"`
  5. EmailID int `xorm:"email_id not null index('idx_eid') index comment('信件id')"`
  6. IsRead int8 `xorm:"is_read tinyint(1) comment('是否已读')" json:"is_read"`
  7. GroupId int `xorm:"group_id int notnull default(0) comment('分组id')'" json:"group_id"`
  8. Status int8 `xorm:"status tinyint(4) notnull default(0) comment('0未发送,1已发送,2发送失败,3删除')" json:"status"` // 0未发送,1已发送,2发送失败 3删除
  9. }
  10. func (p UserEmail) TableName() string {
  11. return "user_email"
  12. }