project.go 2.1 KB

1234567891011121314151617181920212223242526
  1. package gorm_model
  2. import (
  3. "time"
  4. )
  5. type ProjectInfo struct {
  6. ProjectId int `gorm:"column:project_id;type:int(11);primary_key" json:"project_id"` // 项目id
  7. ProjectName string `gorm:"column:project_name;type:varchar(50)" json:"project_name"` // 项目名称
  8. ProjectStatus int `gorm:"column:project_status;type:tinyint(4)" json:"project_status"` // 项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案
  9. ProjectType int `gorm:"column:project_type;type:tinyint(4)" json:"project_type"` // 项目类型,1代表全流程项目,2代表专项项目
  10. ProjectPlatform int `gorm:"column:project_platform;type:tinyint(4)" json:"project_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  11. ProjectForm int `gorm:"column:project_form;type:tinyint(4)" json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  12. TalentType int `gorm:"column:talent_type;type:int(11)" json:"talent_type"` // 达人类型
  13. RecruitDdl time.Time `gorm:"column:recruit_ddl;type:datetime" json:"recruit_ddl"` // 招募截止时间
  14. ContentType int `gorm:"column:content_type;type:tinyint(4)" json:"content_type"` // 内容形式,1代表图文,2代表视频
  15. ProjectDetail string `gorm:"column:project_detail;type:varchar(300)" json:"project_detail"` // 项目详情
  16. EnterpriseId int `gorm:"column:enterprise_id;type:int(11)" json:"enterprise_id"` // 所属企业id
  17. ProductId int `gorm:"column:product_id;type:int(11)" json:"product_id"` // 关联商品id
  18. CreatedAt time.Time `gorm:"column:created_at;type:datetime" json:"created_at"` // 创建时间
  19. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"` // 修改时间
  20. }
  21. func (m *ProjectInfo) TableName() string {
  22. return "project_info"
  23. }