12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Code generated by sql2gorm. DO NOT EDIT.
- package gorm_model
- import (
- "time"
- )
- type YoungeeTalentInfo struct {
- ID string `gorm:"column:id;primary_key;type:char(25)"` // 达人id
- TalentWxOpenid string `gorm:"column:talent_wx_openid;NOT NULL;type:char(128)"` // 达人的微信openid
- Avatar string `gorm:"column:avatar;type:varchar(1000);NOT NULL"` // 头像
- TalentWxNickname string `gorm:"column:talent_wx_nickname;type:varchar(30);DEFAULT NULL"` // 达人的微信昵称
- Income float64 `gorm:"column:income;type:decimal(10,2);DEFAULT NULL"` // 收益总数
- Withdrawing float64 `gorm:"column:withdrawing;type:decimal(10,2);DEFAULT NULL"` // 提现中金额
- Canwithdraw float64 `gorm:"column:canwithdraw;type:decimal(10,2);DEFAULT NULL"` // 可提现金额
- Withdrawed float64 `gorm:"column:withdrawed;type:decimal(10,2);DEFAULT NULL"` // 已提现金额
- Point int `gorm:"column:point;type:int;DEFAULT NULL"` // 可用积分
- TalentPhoneNumber string `gorm:"column:talent_phone_number;type:char(20);DEFAULT NULL"` // 电话号码
- TalentAgeBracket int8 `gorm:"column:talent_age_bracket;type:tinyint(1);DEFAULT NULL"` // 年龄段
- TalentNationality int8 `gorm:"column:talent_nationality;type:tinyint(1);DEFAULT NULL"` // 国籍
- VisitStoreRegion int `gorm:"column:visit_store_region;type:int;DEFAULT NULL"` // 探店区域
- IsBindInfo uint8 `gorm:"column:is_bind_info;type:tinyint(1);DEFAULT 0"` // 是否填写个人资料
- IsBindAccount uint8 `gorm:"column:is_bind_account;type:tinyint(1);DEFAULT 0"` // 是否绑定账号
- IsBindLocation uint8 `gorm:"column:is_bind_location;type:tinyint(1);DEFAULT 0"` // 是否绑定收货地址
- IsBindBank uint8 `gorm:"column:is_bind_bank;type:tinyint(1);DEFAULT 0"` // 是否绑定银行账户信息
- InBlacklist uint8 `gorm:"column:in_blacklist;type:tinyint(1);DEFAULT 0"` // 是否加入黑名单
- TaskAll int `gorm:"column:task_all;type:int;DEFAULT 0"` // 任务总数
- TaskApply int `gorm:"column:task_apply;type:int;DEFAULT 0"` // 报名任务数量
- TaskExecute int `gorm:"column:task_execute;type:int;DEFAULT 0"` // 执行中任务数量
- TaskEnd int `gorm:"column:task_end;type:int;DEFAULT 0"` // 结束任务数量
- CreateDate time.Time `gorm:"column:create_date;type:datetime;NOT NULL;DEFAULT CURRENT_TIMESTAMP"` // 创建时间
- LastLoginDate time.Time `gorm:"column:last_login_date;type:datetime;NOT NULL"` // 最后登录时间
- ApplyNum int `gorm:"column:apply_num;type:int;NOT NULL;DEFAULT 5"` // 剩余申请次数
- UserType uint8 `gorm:"column:user_type;type:tinyint;DEFAULT 1"` // 用户类型
- Sex int8 `gorm:"column:sex;type:tinyint(1);DEFAULT NULL"` // 性别
- }
- func (m *YoungeeTalentInfo) TableName() string {
- return "youngee_talent_info"
- }
|