|
@@ -6,37 +6,37 @@ import (
|
|
|
)
|
|
|
|
|
|
type ProjectInfo struct {
|
|
|
- ProjectID int64 `gorm:"column:project_id;primary_key;AUTO_INCREMENT"` // 项目id
|
|
|
- ProjectName string `gorm:"column:project_name"` // 项目名称
|
|
|
- ProjectStatus int64 `gorm:"column:project_status"` // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案
|
|
|
- ProjectType int64 `gorm:"column:project_type"` // 项目类型,1代表全流程项目,2代表专项项目
|
|
|
- ProjectPlatform int64 `gorm:"column:project_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
|
|
|
- ProjectForm int64 `gorm:"column:project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
|
|
|
- TalentType string `gorm:"column:talent_type"` // 达人类型
|
|
|
+ ProjectID int64 `gorm:"column:project_id;primary_key;AUTO_INCREMENT"` // 项目id
|
|
|
+ ProjectName string `gorm:"column:project_name"` // 项目名称
|
|
|
+ ProjectStatus int64 `gorm:"column:project_status"` // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、失效、执行中、已结案
|
|
|
+ ProjectType int64 `gorm:"column:project_type"` // 项目类型,1代表全流程项目,2代表专项项目
|
|
|
+ ProjectPlatform int64 `gorm:"column:project_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
|
|
|
+ ProjectForm int64 `gorm:"column:project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
|
|
|
+ TalentType string `gorm:"column:talent_type"` // 达人类型
|
|
|
RecruitDdl *time.Time `gorm:"column:recruit_ddl"` // 招募截止时间
|
|
|
- ContentType int64 `gorm:"column:content_type"` // 内容形式,1代表图文,2代表视频
|
|
|
- ProjectDetail string `gorm:"column:project_detail"` // 项目详情
|
|
|
- ApplyNum int64 `gorm:"column:apply_num;default:0;NOT NULL"` // 报名人数
|
|
|
- RecruitNum int64 `gorm:"column:recruit_num;default:0;NOT NULL"` // 已招募人数
|
|
|
- EnterpriseID int64 `gorm:"column:enterprise_id"` // 所属企业id
|
|
|
- ProductID int64 `gorm:"column:product_id"` // 关联商品id
|
|
|
+ ContentType int64 `gorm:"column:content_type"` // 内容形式,1代表图文,2代表视频
|
|
|
+ ProjectDetail string `gorm:"column:project_detail"` // 项目详情
|
|
|
+ ApplyNum int64 `gorm:"column:apply_num;default:0;NOT NULL"` // 报名人数
|
|
|
+ RecruitNum int64 `gorm:"column:recruit_num;default:0;NOT NULL"` // 已招募人数
|
|
|
+ EnterpriseID int64 `gorm:"column:enterprise_id"` // 所属企业id
|
|
|
+ ProductID int64 `gorm:"column:product_id"` // 关联商品id
|
|
|
CreatedAt *time.Time `gorm:"column:created_at"` // 创建时间
|
|
|
UpdatedAt *time.Time `gorm:"column:updated_at"` // 修改时间
|
|
|
- FeeForm string `gorm:"column:fee_form"` // 稿费形式列表
|
|
|
+ FeeForm string `gorm:"column:fee_form"` // 稿费形式列表
|
|
|
AutoFailAt *time.Time `gorm:"column:auto_fail_at"` // 失效自动处理时间
|
|
|
- AutoTaskID int64 `gorm:"column:auto_task_id;NOT NULL"` // 定时任务id
|
|
|
- AutoDefaultID int64 `gorm:"column:auto_default_id;NOT NULL"` // 违约状态id
|
|
|
- PaymentAmount float64 `gorm:"column:payment_amount"` // 支付金额
|
|
|
+ AutoTaskID int64 `gorm:"column:auto_task_id;NOT NULL"` // 定时任务id
|
|
|
+ AutoDefaultID int64 `gorm:"column:auto_default_id;NOT NULL"` // 违约状态id
|
|
|
+ PaymentAmount float64 `gorm:"column:payment_amount"` // 支付金额
|
|
|
PayAt *time.Time `gorm:"column:pay_at"` // 支付时间
|
|
|
AutoScriptBreakAt *time.Time `gorm:"column:auto_script_break_at"` // 脚本违约自动处理时间
|
|
|
AutoSketchBreakAt *time.Time `gorm:"column:auto_sketch_break_at"` // 初稿违约自动处理时间
|
|
|
- FailReason int64 `gorm:"column:fail_reason"` // 失效原因,1、2分别表示逾期未支付、项目存在风险
|
|
|
+ FailReason int64 `gorm:"column:fail_reason"` // 失效原因,1、2分别表示逾期未支付、项目存在风险
|
|
|
PassAt *time.Time `gorm:"column:pass_at"` // 审核通过时间
|
|
|
FinishAt *time.Time `gorm:"column:finish_at"` // 结案时间
|
|
|
- EstimatedCost float64 `gorm:"column:estimated_cost"`
|
|
|
+ EstimatedCost string `gorm:"column:estimated_cost"` // 预估成本
|
|
|
+ IsRead int64 `gorm:"column:is_read"` // 是否已读
|
|
|
}
|
|
|
|
|
|
func (m *ProjectInfo) TableName() string {
|
|
|
return "project_info"
|
|
|
}
|
|
|
-
|