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