talent_income.go 1.8 KB

1234567891011121314151617181920212223242526272829
  1. // Code generated by sql2gorm. DO NOT EDIT.
  2. package gorm_model
  3. import (
  4. "time"
  5. )
  6. type YounggeeTalentIncome struct {
  7. ID int `gorm:"column:id;primary_key;AUTO_INCREMENT"` // 递增id
  8. TalentID string `gorm:"column:talent_id"` // 达人id,对应youngee_talent_info中id字段
  9. ProjectID string `gorm:"column:project_id"` // 项目id
  10. SelectionID string `gorm:"column:selection_id"` // 选品id
  11. TaskID string `gorm:"column:task_id"` // 任务id
  12. SectaskID string `gorm:"column:sectask_id"` // 选品任务id
  13. BrandName string `gorm:"column:brand_name"` // 品牌名称
  14. TaskName string `gorm:"column:task_name"` // 任务名称
  15. TeamID string `gorm:"column:team_id"` // young之团id
  16. Income string `gorm:"column:income"` // 收益金额
  17. IncomeType int `gorm:"column:income_type"` // 收益类型,1-4分别表示任务收益、开团收益、样品返现、悬赏收益
  18. Type int `gorm:"column:type"` // 选品or项目,1:项目,2:选品
  19. WithdrawStatus int `gorm:"column:withdraw_status"` // 提现状态,1-3分别表示可提现、提现中、已提现
  20. IncomeAt *time.Time `gorm:"column:income_at"` // 收益产生时间
  21. WithdrawAt *time.Time `gorm:"column:withdraw_at"` // 提现时间
  22. PhotoUrl string `gorm:"column:photo_url"` // 商品主图
  23. }
  24. func (m *YounggeeTalentIncome) TableName() string {
  25. return "younggee_talent_income"
  26. }