统一 frontend、backend、test、test-log 和 out 目录,更新构建、部署及测试入口;纳入配置管理兼容与首次安全引导修复;排除本机配置、密钥和测试产物。
This commit is contained in:
1 parent
28cd9d3406
commit
f60d3b0880
603 files changed
+2351
-660
No files matched your search
@@ -0,0 +1,24 @@
|
||||
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('idx_user_email_user_primary')"`
|
||||
EmailID int `xorm:"email_id not null index('idx_eid') index"`
|
||||
Address string `xorm:"address varchar(254) null" json:"address,omitempty"`
|
||||
AddressCanonical *string `xorm:"address_canonical varchar(254) null unique" json:"-"`
|
||||
IsPrimary int8 `xorm:"is_primary tinyint(1) notnull default(0)" json:"is_primary"`
|
||||
VerifiedAt *time.Time `xorm:"verified_at datetime null" json:"verified_at,omitempty"`
|
||||
CreatedAt time.Time `xorm:"created_at datetime created" json:"created_at"`
|
||||
UpdatedAt time.Time `xorm:"updated_at datetime updated" json:"updated_at"`
|
||||
IsRead int8 `xorm:"is_read tinyint(1) comment('是否已读')" json:"is_read"`
|
||||
IsDeleted int8 `xorm:"is_deleted tinyint(1) notnull default(0)" json:"-"`
|
||||
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删除 4草稿 5广告')" 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"
|
||||
}
|
||||
Reference in new issue
Block a user