talent_income.go 1.7 KB

12345678910111213141516171819202122232425262728293031
  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"` // 递增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. LocalId string `gorm:"column:local_id;type:char(19);comment:本地生活id" json:"local_id"`
  14. LocalTaskId string `gorm:"column:local_task_id;type:varchar(255);comment:本地生活taskid" json:"local_task_id"`
  15. BrandName string `gorm:"column:brand_name"` // 品牌名称
  16. TaskName string `gorm:"column:task_name"` // 任务名称
  17. TeamID string `gorm:"column:team_id"` // young之团id
  18. Income string `gorm:"column:income"` // 收益金额
  19. IncomeType int `gorm:"column:income_type"` // 收益类型,1-4分别表示任务收益、开团收益、样品返现、悬赏收益
  20. WithdrawStatus int `gorm:"column:withdraw_status"` // 提现状态,1-3分别表示可提现、提现中、已提现
  21. IncomeAt *time.Time `gorm:"column:income_at"` // 收益产生时间
  22. WithdrawAt *time.Time `gorm:"column:withdraw_at"` // 提现时间
  23. PhotoUrl string `gorm:"column:photo_url"`
  24. Type int `gorm:"column:type"` //1.种草2.带货3.本地生活
  25. }
  26. func (m *YounggeeTalentIncome) TableName() string {
  27. return "younggee_talent_income"
  28. }