project_task.go 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. TalentID string `gorm:"column:talent_id;NOT NULL"` // 达人id
  10. AccountID int `gorm:"column:account_id;NOT NULL"` // 账号id
  11. TalentPlatformInfoSnap string `gorm:"column:talent_platform_info_snap;NOT NULL"` // 达人平台信息快照
  12. TalentPersonalInfoSnap string `gorm:"column:talent_personal_info_snap;NOT NULL"` // 达人个人信息快照
  13. TalentPostAddrSnap string `gorm:"column:talent_post_addr_snap;NOT NULL"` // 收货地址快照
  14. StrategyID int `gorm:"column:strategy_id"` // 报名选择的招募策略id
  15. TaskReward float64 `gorm:"column:task_reward;NOT NULL"` // 达人报酬
  16. SettleAmount float64 `gorm:"column:settle_amount;NOT NULL"` // 达人实际所得(扣除违约扣款)
  17. AllPayment float64 `gorm:"column:all_payment;NOT NULL"` // 企业支付
  18. RealPayment float64 `gorm:"column:real_payment;NOT NULL"` // 企业实际支付(扣除违约扣款)
  19. Penalty int `gorm:"column:penalty;NOT NULL"` // 违约扣款比例,百分之
  20. FeeForm int `gorm:"column:fee_form;NOT NULL"` // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价
  21. ServiceCharge float64 `gorm:"column:service_charge"` // 服务费
  22. ServiceRate int `gorm:"column:service_rate"` // 服务费率,千分之
  23. TaskStatus int `gorm:"column:task_status;default:1;NOT NULL"` // 任务状态 1待选 2已选 3落选
  24. TaskStage int `gorm:"column:task_stage;NOT NULL"` // 任务阶段,详情见info_task_stage表
  25. CreateDate time.Time `gorm:"column:create_date;NOT NULL"` // 创建时间
  26. SelectDate time.Time `gorm:"column:select_date"` // 反选时间
  27. DeliveryDate time.Time `gorm:"column:delivery_date"` // 发货时间
  28. CompleteStatus int `gorm:"column:complete_status;default:1;NOT NULL"` // 结束方式 1未结束 2正常结束 3反选失败 4被解约
  29. CompleteDate time.Time `gorm:"column:complete_date"` // 结束时间
  30. LogisticsStatus int `gorm:"column:logistics_status;default:1"` // 发货状态 1 待发货 2已发货 3 已签收
  31. ScriptStatus uint `gorm:"column:script_status;default:1"` // 脚本上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  32. SketchStatus int `gorm:"column:sketch_status"` // 初稿上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过
  33. }
  34. func (m *YoungeeTaskInfo) TableName() string {
  35. return "youngee_task_info"
  36. }