project.go 5.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Code generated by sql2gorm. DO NOT EDIT.
  2. package entity
  3. import (
  4. "time"
  5. )
  6. type Project struct {
  7. ID int64 `gorm:"column:id;primary_key;AUTO_INCREMENT"` // 种草主键ID
  8. ProjectId string `gorm:"column:project_id"` // 项目id 项目ID生成规则:年(2位)+一年中的第几天(3位)+5位数随机数,雪花算法也可,生成10位订单号
  9. ProjectName string `gorm:"column:project_name"` // 项目名称
  10. ProjectStatus int64 `gorm:"column:project_status"` // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案
  11. ProjectType int64 `gorm:"column:project_type"` // 项目类型,1代表全流程项目,2代表专项项目
  12. ProjectPlatform int64 `gorm:"column:project_platform"` // 项目平台,1-7分别代表红book、抖音、微博、快手、b站、大众点评、知乎
  13. ProjectForm int64 `gorm:"column:project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  14. TalentType string `gorm:"column:talent_type"` // 达人类型
  15. RecruitDdl time.Time `gorm:"column:recruit_ddl"` // 招募截止时间
  16. ContentType int64 `gorm:"column:content_type"` // 内容形式,1代表图文,2代表视频
  17. ProjectDetail string `gorm:"column:project_detail"` // 项目详情
  18. ApplyNum int64 `gorm:"column:apply_num;default:0;NOT NULL"` // 报名人数
  19. RecruitNum int64 `gorm:"column:recruit_num;default:0;NOT NULL"` // 已招募人数
  20. EnterpriseID string `gorm:"column:enterprise_id"` // 所属企业id
  21. SubAccountId int64 `gorm:"column:sub_account_id"` // 子账号id
  22. ProductID int64 `gorm:"column:product_id"` // 关联商品id
  23. ProductCategory string `gorm:"column:product_category"` // 商品类目1--20
  24. CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
  25. UpdatedAt time.Time `gorm:"column:updated_at"` // 修改时间
  26. FeeForm string `gorm:"column:fee_form"` // 稿费形式列表
  27. AutoFailAt time.Time `gorm:"column:auto_fail_at"` // 失效自动处理时间
  28. AutoTaskID int64 `gorm:"column:auto_task_id;NOT NULL"` // 定时任务id
  29. AutoDefaultID int64 `gorm:"column:auto_default_id;NOT NULL"` // 违约状态id
  30. PaymentAmount float64 `gorm:"column:payment_amount"` // 支付金额
  31. PayAt time.Time `gorm:"column:pay_at"` // 支付时间
  32. AutoScriptBreakAt time.Time `gorm:"column:auto_script_break_at"` // 脚本违约自动处理时间
  33. AutoSketchBreakAt time.Time `gorm:"column:auto_sketch_break_at"` // 初稿违约自动处理时间
  34. FailReason int64 `gorm:"column:fail_reason"` // 失效原因,1、2分别表示逾期未支付、项目存在风险
  35. PassAt time.Time `gorm:"column:pass_at"` // 审核通过时间
  36. FinishAt time.Time `gorm:"column:finish_at"` // 结案时间
  37. SubmitAt time.Time `gorm:"column:submit_at"` // 结案时间
  38. EstimatedCost float64 `gorm:"column:estimated_cost"` // 预估成本
  39. IsRead int64 `gorm:"column:is_read"` // 是否已读
  40. SettlementAmount float64 `gorm:"column:settlement_amount;NOT NULL"` // 结算金额
  41. ProductSnap string `gorm:"column:product_snap"` // 商品信息快照
  42. ProductPhotoSnap string `gorm:"column:product_photo_snap"` // 商品图片快照
  43. NeedReview int64 `gorm:"column:need_review"` // 待审稿
  44. NeedQuality int64 `gorm:"column:need_quality"` // 待质检
  45. NeedCalculate int64 `gorm:"column:need_calculate"` // 待结算
  46. ServiceChargeRate float64 `gorm:"column:service_charge_rate"` // 公开服务费率
  47. OperatorType int64 `gorm:"column:operator_type"` // 创建者类型,1商家主账号,2商家子账号
  48. TotalRecruitNum int64 `gorm:"column:total_recruit_num"` // 各策略招募人数总和
  49. Tools string `gorm:"column:tools"` // 工具选择,1邀约招募 2结算账单 3样品物流 4审稿工具 5作品审查 6数据巡检(,分隔)
  50. InvoiceStatus int64 `gorm:"column:invoice_status"` // 开票状态(1开票中 2已开票)
  51. BeforeDeliveryNum int64 `gorm:"column:before_delivery_num"`
  52. DeliveryNum int64 `gorm:"column:delivery_num"`
  53. AfterDeliveryNum int64 `gorm:"column:after_delivery_num"`
  54. NeedPay float64 `gorm:"column:need_pay"` // 待支付金额
  55. SettleFlag int64 `gorm:"column:settle_flag"`
  56. }
  57. func (m *Project) TableName() string {
  58. return "project_info"
  59. }