You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
973 B
19 lines
973 B
9 months ago
|
package model
|
||
|
|
||
|
import "pure-admin/global"
|
||
|
|
||
|
type SellerUser struct { //商家端用户
|
||
|
UUID string `json:"uuid" gorm:"unique;type:varchar(60);comment:用户UUID"` // 用户UUID
|
||
|
HeaderImg string `json:"header_img" gorm:"type:varchar(200);comment:用户头像"` // 用户头像
|
||
|
PhoneCode string `json:"phone_code" gorm:"type:varchar(10);comment:手机国际区号"` //
|
||
|
Phone string `json:"phone" gorm:"unique;type:varchar(20);comment:手机号"` //
|
||
|
Password string `json:"-" gorm:"type:varchar(60);comment:用户登录密码"` // 用户登录密码
|
||
|
Email string `json:"email" gorm:"unique;type:varchar(100);comment:邮箱"` //
|
||
|
Status string `json:"status" gorm:"type:ENUM('1','0');default:'1';comment:用户状态 1.启用 0.禁用"` // 用户状态
|
||
|
global.MG_MODEL
|
||
|
}
|
||
|
|
||
|
func (SellerUser) TableName() string {
|
||
|
return "seller_user"
|
||
|
}
|