project_task.go 1.8 KB

12345678910111213141516171819202122232425262728
  1. // Code generated by sql2gorm. DO NOT EDIT.
  2. package gorm_model
  3. import (
  4. "time"
  5. )
  6. type YoungeeTaskInfo struct {
  7. TaskID int `gorm:"column:task_id;primary_key;AUTO_INCREMENT"` // 任务id
  8. ProjectID int `gorm:"column:project_id;NOT NULL"` // 项目id
  9. AccountID int `gorm:"column:account_id;NOT NULL"` // 账号id
  10. TalentPlatformInfoSnap string `gorm:"column:talent_platform_info_snap;NOT NULL"` // 达人平台信息快照
  11. TalentPersonalInfoSnap string `gorm:"column:talent_personal_info_snap;NOT NULL"` // 达人个人信息快照
  12. TalentPostAddrSnap string `gorm:"column:talent_post_addr_snap;NOT NULL"` // 收货地址快照
  13. StrategyID int `gorm:"column:strategy_id"` // 报名选择的招募策略id
  14. TaskReward int64 `gorm:"column:task_reward"` // 任务奖励金额
  15. SettleAmount int64 `gorm:"column:settle_amount;NOT NULL"` // 待结算金额(任务奖励扣除违规扣款)
  16. TaskStatus int `gorm:"column:task_status;default:1;NOT NULL"` // 任务状态 1待选 2已选 3落选
  17. CreateDate time.Time `gorm:"column:create_date;NOT NULL"` // 创建时间
  18. SelectDate time.Time `gorm:"column:select_date"` // 反选时间
  19. CompleteStatus int `gorm:"column:complete_status;default:1;NOT NULL"` // 结束方式 1未结束 2正常结束 3反选失败 4被解约
  20. CompleteDate time.Time `gorm:"column:complete_date"` // 结束时间
  21. TaskStage int `gorm:"column:task_stage;NOT NULL"` // 任务阶段
  22. }
  23. func (m *YoungeeTaskInfo) TableName() string {
  24. return "youngee_task_info"
  25. }