auth.go 377 B

1234567891011
  1. package models
  2. type UserAuth struct {
  3. ID int `xorm:"id int unsigned not null pk autoincr"`
  4. UserID int `xorm:"user_id int not null unique('uid_account') index comment('用户id')"`
  5. EmailAccount string `xorm:"email_account not null unique('uid_account') index comment('收信人前缀')"`
  6. }
  7. func (p UserAuth) TableName() string {
  8. return "user_auth"
  9. }