talent.go 3.5 KB

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