youngee_info.go 1.8 KB

1234567891011121314151617181920212223242526272829
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type YounggeeTalentTeam struct {
  6. ID int `gorm:"column:id;primary_key;AUTO_INCREMENT"` // 递增id
  7. TeamID string `gorm:"column:team_id"` // young之团id,10位随机数
  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. ProjectType int64 `gorm:"column:project_type"` // 项目类型,1为项目,2为选品
  12. ProjectName string `gorm:"column:project_name"` // 项目名称
  13. ProjectPhoto string `gorm:"column:project_photo"` // 项目主图
  14. Platform int64 `gorm:"column:platform"` // 项目平台
  15. TeamStatus int64 `gorm:"column:team_status"` // young之团状态,1表示创建中,2表示开团中,3表示已结束
  16. NumApply int `gorm:"column:num_apply"` // 报名人数
  17. NumApplySuccess int `gorm:"column:num_apply_success"` // 申请成功人数
  18. NumEnd int `gorm:"column:num_end"` // 结案人数
  19. PointIncome int64 `gorm:"column:point_income"` // 积分收益
  20. MoneyIncome string `gorm:"column:money_income"` // 现金收益
  21. CreateAt time.Time `gorm:"column:create_at"` // 成团时间
  22. EndAt time.Time `gorm:"column:end_at"` // 结束时间
  23. }
  24. func (m *YounggeeTalentTeam) TableName() string {
  25. return "younggee_talent_team"
  26. }