package entity // DtUser 用户表 type DtUser struct { MysqlFullModel Uid string `json:"uid" gorm:"type:varchar(32);uniqueIndex:uk_uid;comment:用户UID"` Phone string `json:"phone" gorm:"type:varchar(32);uniqueIndex:uk_phone;comment:手机号"` Email string `json:"email" gorm:"type:varchar(128);index:idx_email;comment:邮箱"` Password string `json:"-" gorm:"type:varchar(128);comment:登录密码"` PayPassword string `json:"-" gorm:"type:varchar(128);comment:支付密码"` Nickname string `json:"nickname" gorm:"type:varchar(64);comment:昵称"` Avatar string `json:"avatar" gorm:"type:varchar(255);comment:头像"` InviteCode string `json:"inviteCode" gorm:"type:varchar(16);uniqueIndex:uk_invite_code;comment:邀请码"` ParentId int64 `json:"parentId" gorm:"default:0;index:idx_parent_id;comment:上级用户ID"` ParentUid string `json:"parentUid" gorm:"type:varchar(32);comment:上级用户UID"` LevelId int64 `json:"levelId" gorm:"default:1;index:idx_level_id;comment:用户等级ID"` Balance float64 `json:"balance" gorm:"type:decimal(18,2);default:0.00;comment:账户余额(USDT)"` FrozenBalance float64 `json:"frozenBalance" gorm:"type:decimal(18,2);default:0.00;comment:冻结余额"` TotalRecharge float64 `json:"totalRecharge" gorm:"type:decimal(18,2);default:0.00;comment:累计充值"` TotalWithdraw float64 `json:"totalWithdraw" gorm:"type:decimal(18,2);default:0.00;comment:累计提现"` TotalTaskIncome float64 `json:"totalTaskIncome" gorm:"type:decimal(18,2);default:0.00;comment:累计任务收益"` TotalInviteIncome float64 `json:"totalInviteIncome" gorm:"type:decimal(18,2);default:0.00;comment:累计推广收益"` TodayTaskCount int `json:"todayTaskCount" gorm:"default:0;comment:今日完成任务数"` TotalTaskCount int `json:"totalTaskCount" gorm:"default:0;comment:累计完成任务数"` DirectInviteCount int `json:"directInviteCount" gorm:"default:0;comment:直推人数"` TeamCount int `json:"teamCount" gorm:"default:0;comment:团队人数"` Status int8 `json:"status" gorm:"default:1;comment:状态: 0=禁用 1=正常"` IsRealName int8 `json:"isRealName" gorm:"default:0;comment:是否实名: 0=否 1=是"` RealName string `json:"realName" gorm:"type:varchar(64);comment:真实姓名"` IdCard string `json:"idCard" gorm:"type:varchar(64);comment:身份证号"` RegisterIp string `json:"registerIp" gorm:"type:varchar(64);comment:注册IP"` RegisterDevice string `json:"registerDevice" gorm:"type:varchar(255);comment:注册设备"` LastLoginTime int64 `json:"lastLoginTime" gorm:"comment:最后登录时间"` LastLoginIp string `json:"lastLoginIp" gorm:"type:varchar(64);comment:最后登录IP"` Remark string `json:"remark" gorm:"type:varchar(255);comment:备注"` ContinuousSignDays int `json:"continuousSignDays" gorm:"default:0;comment:连续签到天数"` TotalSignDays int `json:"totalSignDays" gorm:"default:0;comment:累计签到天数"` TotalIncome float64 `json:"totalIncome" gorm:"type:decimal(18,2);default:0.00;comment:累计收益"` } func (*DtUser) TableName() string { return "dt_user" } func (*DtUser) Comment() string { return "用户表" } func NewDtUser() *DtUser { return &DtUser{} }