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.

36 lines
2.8 KiB

package models
import (
"time"
)
type BotUsers struct {
AgentId int `xorm:"not null default 0 comment('代理id只有parent_id 为0 的用户才有可能分配代理') INT"`
CountryCode string `xorm:"not null default '' comment('国家代码') VARCHAR(20)"`
CountryId int `xorm:"not null default 0 comment('国家id') INT"`
CreateTime time.Time `xorm:"not null comment('注册时间') DATETIME"`
Email string `xorm:"not null default '' comment('电子邮箱') index VARCHAR(50)"`
FirstName string `xorm:"not null default '' comment('姓氏') VARCHAR(100)"`
Gender int `xorm:"not null default 0 comment('性别:0保密,1男,2女') TINYINT"`
HeadImgId int `xorm:"not null default 0 comment('头像图片地址') index INT"`
InviteCode string `xorm:"not null default '' comment('邀请码') unique VARCHAR(20)"`
IsReal int `xorm:"not null default 0 comment('是否实名认证,0:未实名,1实名') SMALLINT"`
IsTestUser int `xorm:"not null default 1 comment('是否测试用户: 1正式用户 2测试用户') TINYINT"`
LastLoginTime string `xorm:"not null default '' comment('最后一次登录时间') VARCHAR(20)"`
LastName string `xorm:"not null default '' comment('名字') VARCHAR(100)"`
LeverStatus int `xorm:"not null default 1 comment('用户申请杠杆状态 1 未申请 2 申请中 3 审核通过 4 审核拒绝') index SMALLINT"`
LoginPassword string `xorm:"not null default '' comment('登录密码') VARCHAR(200)"`
NickName string `xorm:"not null default '' comment('用户名称-注册时需随机生成') VARCHAR(100)"`
OriginUserId int64 `xorm:"not null default 0 comment('祖先用户id 邀请链条的第一个') index BIGINT"`
ParentId int64 `xorm:"not null default 0 comment('上级ID') BIGINT"`
ParentIds string `xorm:"not null default '' comment('用户邀请连') VARCHAR(255)"`
PhoneNumber string `xorm:"not null default '' comment('手机号码') index VARCHAR(50)"`
RealStatus int `xorm:"not null default 1 comment('实名认证状态 1 未认证 2 待审核 3 已认证 4 审核失败') SMALLINT"`
RegIp string `xorm:"not null default '' comment('注册IP') VARCHAR(200)"`
Salt string `xorm:"not null default '' comment('盐 密码使用') VARCHAR(255)"`
Status int `xorm:"not null default 1 comment('账号状态:1 启用 2禁用 3 黑名单') index SMALLINT"`
TradePassword string `xorm:"not null default '' comment('交易密码') VARCHAR(200)"`
UpdateTime time.Time `xorm:"not null comment('更新时间') DATETIME"`
UserId int64 `xorm:"not null pk autoincr comment('用户ID') BIGINT"`
UserNo string `xorm:"not null default '' comment('用于前端显示的用户ID号') unique VARCHAR(50)"`
}