project_task.go 3.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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;type:int(11);primary_key;AUTO_INCREMENT;comment:任务id" json:"task_id"`
  8. ProjectId int `gorm:"column:project_id;type:int(11);comment:项目id;NOT NULL" json:"project_id"`
  9. TalentId string `gorm:"column:talent_id;type:varchar(25);comment:达人id;NOT NULL" json:"talent_id"`
  10. AccountId int `gorm:"column:account_id;type:int(11);comment:账号id;NOT NULL" json:"account_id"`
  11. TalentPlatformInfoSnap string `gorm:"column:talent_platform_info_snap;type:json;comment:达人平台信息快照;NOT NULL" json:"talent_platform_info_snap"`
  12. TalentPersonalInfoSnap string `gorm:"column:talent_personal_info_snap;type:json;comment:达人个人信息快照;NOT NULL" json:"talent_personal_info_snap"`
  13. TalentPostAddrSnap string `gorm:"column:talent_post_addr_snap;type:json;comment:收货地址快照;NOT NULL" json:"talent_post_addr_snap"`
  14. StrategyId int `gorm:"column:strategy_id;type:int(11);comment:报名选择的招募策略id" json:"strategy_id"`
  15. TaskReward float64 `gorm:"column:task_reward;type:float;comment:达人报酬;NOT NULL" json:"task_reward"`
  16. SettleAmount float64 `gorm:"column:settle_amount;type:float;comment:达人实际所得(扣除违约扣款);NOT NULL" json:"settle_amount"`
  17. AllPayment float64 `gorm:"column:all_payment;type:float;comment:企业支付;NOT NULL" json:"all_payment"`
  18. RealPayment float64 `gorm:"column:real_payment;type:float;comment:企业实际支付(扣除违约扣款);NOT NULL" json:"real_payment"`
  19. Penalty int `gorm:"column:penalty;type:int(11);comment:违约扣款比例,百分之;NOT NULL" json:"penalty"`
  20. FeeForm int `gorm:"column:fee_form;type:tinyint(4);comment:稿费形式,1,2,3分别代表产品置换、固定稿费、自报价;NOT NULL" json:"fee_form"`
  21. ServiceCharge float64 `gorm:"column:service_charge;type:float;comment:服务费" json:"service_charge"`
  22. ServiceRate int `gorm:"column:service_rate;type:int(11);comment:服务费率,千分之" json:"service_rate"`
  23. TaskStatus int `gorm:"column:task_status;type:tinyint(4);default:1;comment:任务状态 1待选 2已选 3落选;NOT NULL" json:"task_status"`
  24. TaskStage int `gorm:"column:task_stage;type:tinyint(1);comment:任务阶段;NOT NULL" json:"task_stage"`
  25. CreateDate time.Time `gorm:"column:create_date;type:datetime;comment:创建时间;NOT NULL" json:"create_date"`
  26. SelectDate time.Time `gorm:"column:select_date;type:datetime;comment:反选时间" json:"select_date"`
  27. CompleteStatus int `gorm:"column:complete_status;type:tinyint(1);default:1;comment:结束方式 1未结束 2正常结束 3反选失败 4被解约;NOT NULL" json:"complete_status"`
  28. CompleteDate time.Time `gorm:"column:complete_date;type:datetime;comment:结束时间" json:"complete_date"`
  29. }
  30. func (m *YoungeeTaskInfo) TableName() string {
  31. return "youngee_task_info"
  32. }