// Code generated by sql2gorm. DO NOT EDIT. package gorm_model import ( "time" ) type YoungeeTaskInfo struct { TaskId string `gorm:"column:task_id;primary_key;AUTO_INCREMENT"` // 任务id ProjectId string `gorm:"column:project_id;NOT NULL"` // 项目id TalentId string `gorm:"column:talent_id;NOT NULL"` // 达人id AccountId int `gorm:"column:account_id;NOT NULL"` // 账号id TalentPlatformInfoSnap string `gorm:"column:talent_platform_info_snap;NOT NULL"` // 达人平台信息快照 TalentPersonalInfoSnap string `gorm:"column:talent_personal_info_snap;NOT NULL"` // 达人个人信息快照 TalentPostAddrSnap string `gorm:"column:talent_post_addr_snap;NOT NULL"` // 收货地址快照 StrategyId int `gorm:"column:strategy_id"` // 报名选择的招募策略id TaskReward float64 `gorm:"column:task_reward;NOT NULL"` // 达人报酬 SettleAmount float64 `gorm:"column:settle_amount;NOT NULL"` // 达人实际所得(扣除违约扣款) AllPayment float64 `gorm:"column:all_payment;NOT NULL"` // 企业支付 RealPayment float64 `gorm:"column:real_payment;NOT NULL"` // 企业实际支付(扣除违约扣款) ErrBreakRate int `gorm:"column:err_break_rate;default:0;NOT NULL"` // 未上传类型违约扣款比例,百分之 ScriptBreakRate int `gorm:"column:script_break_rate;default:0;NOT NULL"` // 脚本上传超时违约扣款比例,百分之 SketchBreakRate int `gorm:"column:sketch_break_rate;default:0;NOT NULL"` // 初稿上传超时违约扣款比例,百分之 LinkBreakRate int `gorm:"column:link_break_rate;default:0;NOT NULL"` // 链接上传超时违约扣款比例,百分之 DataBreakRate int `gorm:"column:data_break_rate;default:0;NOT NULL"` // 数据上传超时违约扣款比例,百分之 FeeForm int `gorm:"column:fee_form;NOT NULL"` RealServiceCharge float64 `gorm:"column:real_service_charge;type:decimal(10,2);comment:服务商实际所得服务费(扣除违约)" json:"real_service_charge"` // 稿费形式,1,2,3分别代表产品置换、固定稿费、自报价 ServiceCharge float64 `gorm:"column:service_charge"` // 服务费 ServiceRate int `gorm:"column:service_rate"` // 服务费率,千分之 TaskStatus int `gorm:"column:task_status;default:1;NOT NULL"` // 任务状态 1待选 2已选 3落选 TaskStage int `gorm:"column:task_stage;NOT NULL"` // 任务阶段,详情见info_task_stage表 CreateDate time.Time `gorm:"column:create_date;default:CURRENT_TIMESTAMP;NOT NULL"` // 创建时间 SelectDate time.Time `gorm:"column:select_date"` // 反选时间 DeliveryDate time.Time `gorm:"column:delivery_date"` // 发货时间 CompleteStatus int `gorm:"column:complete_status;default:1;NOT NULL"` // 结束方式 1未结束 2正常结束 3反选失败 4被解约 CompleteDate time.Time `gorm:"column:complete_date"` // 结束时间 LogisticsStatus int `gorm:"column:logistics_status;default:1"` // 发货状态 1 待发货 2已发货 3 已签收 ScriptStatus uint `gorm:"column:script_status;default:1"` // 脚本上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过 SketchStatus uint `gorm:"column:sketch_status;default:1"` // 初稿上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过 UpdateAt time.Time `gorm:"column:update_at"` // 更新时间 LinkStatus uint `gorm:"column:link_status;default:1"` // 链接上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过 DataStatus uint `gorm:"column:data_status;default:1"` // 数据上传状态 1-5分别代表待添加、已添加、待修改、已修改、已通过 CurDefaultType int `gorm:"column:cur_default_type"` // 任务当前处于的违约类型 0-8分别表示未违约、脚本超时违约、脚本未上传违约、初稿超时违约、初稿未上传违约、链接超时违约、链接未上传违约、数据超时违约、数据未上传违约 WithdrawStatus int `gorm:"column:withdraw_status;default:1"` WithdrawDate time.Time `gorm:"column:withdraw_date;type:datetime;comment:提现时间" json:"withdraw_date"` // 提现状态,1-4分别代表不可提现、可提现、提现中、已提现 SettleStatus int `gorm:"column:settle_status;default:1"` LeadTeamId string `gorm:"column:lead_team_id;type:char(10);comment:作为团长的young之团id,对应younggee_talent_team中的team_id字段" json:"lead_team_id"` TeamId string `gorm:"column:team_id;type:char(10);comment:作为团员的young之团id,对应younggee_talent_team中的team_id字段" json:"team_id"` TeamIncome float64 `gorm:"column:team_income;type:decimal(10,2);comment:young之团团长现金收益" json:"team_income"` TeamPoint int `gorm:"column:team_point;type:int(11);comment:young之团团长积分收益" json:"team_point"` CurBreakAt time.Time `gorm:"column:cur_break_at;type:datetime;comment:当前阶段截止时间" json:"cur_break_at"` SupplierId int `gorm:"column:supplier_id;type:int(11);default:0;comment:服务商ID" json:"supplier_id"` SupplierStatus int `gorm:"column:supplier_status;type:int(11);default:0;comment:服务商任务状态 0表示达人来源非服务商 1待选 2已选 3落选" json:"supplier_status"` DraftFee float64 `gorm:"column:draft_fee;type:decimal(10,2);default:0.00;comment:达人稿费,达人所见的稿费金额" json:"draft_fee"` SignedTime time.Time `gorm:"column:signed_time;type:datetime;comment:签收时间" json:"signed_time"` FansNum int `gorm:"column:fans_num;type:int(11);comment:粉丝数" json:"fans_num"` VoteAvg int `gorm:"column:vote_avg;type:int(11);comment:总点赞数" json:"vote_avg"` CommitAvg int `gorm:"column:commit_avg;type:int(11);comment:总评论数" json:"commit_avg"` ViewNum int `gorm:"column:view_num;type:int(11);comment:作品总浏览量" json:"view_num"` PlatformId int `gorm:"column:platform_id;type:int(11);comment:平台id;NOT NULL" json:"platform_id"` BOperator string `gorm:"column:b_operator;type:varchar(255);comment:商家确定达人操作人ID" json:"b_operator"` BOperatorType int `gorm:"column:b_operator_type;type:int(11);default:0;comment:商家操作人类型,1商家用户,2商家子账号,3管理后台" json:"b_operator_type"` SOperator int `gorm:"column:s_operator;type:int(11);default:0;comment:服务商提报达人操作人ID" json:"s_operator"` SOperatorType int `gorm:"column:s_operator_type;type:int(11);default:0;comment:服务商操作人类型,1服务商主账号,2服务商子账号,3管理后台" json:"s_operator_type"` OpenId string `gorm:"column:open_id;type:varchar(255);comment:达人报名的快手唯一标识" json:"open_id"` SProjectId int `gorm:"column:s_project_id;type:int(11);comment:服务商种草任务ID" json:"s_project_id"` SupportFee float64 `gorm:"column:support_fee;type:decimal(10,2);comment:提报价格(达人自报价经过计算后,)" json:"support_fee"` SketchMissingTime time.Time `gorm:"column:sketch_missing_time;type:datetime;comment:未传初稿违约时间" json:"sketch_missing_time"` SketchMissingStatus int `gorm:"column:sketch_missing_status;type:int(11);default:0;comment:未传初稿违约状态,0无违约,1有违约" json:"sketch_missing_status"` LinkMissingTime time.Time `gorm:"column:link_missing_time;type:datetime;comment:未发作品违约时间" json:"link_missing_time"` LinkMissingStatus int `gorm:"column:link_missing_status;type:int(11);default:0;comment:未发作品违约状态,0无违约,1有违约" json:"link_missing_status"` DataMissingTime time.Time `gorm:"column:data_missing_time;type:datetime;comment:未传数据违约时间" json:"data_missing_time"` DataMissingStatus int `gorm:"column:data_missing_status;type:int(11);default:0;comment:未传数据违约状态,0无违约,1有违约" json:"data_missing_status"` TerminateOperatorType int `gorm:"column:terminate_operator_type;type:int(11);comment:终止合作操作人类型,1商家用户,2商家子账号,3管理后台" json:"terminate_operator_type"` TerminateOperator string `gorm:"column:terminate_operator;type:varchar(255);comment:终止合作操作人ID" json:"terminate_operator"` TerminateReason string `gorm:"column:terminate_reason;type:varchar(255);comment:终止理由" json:"terminate_reason"` TerminateTime time.Time `gorm:"column:terminate_time;type:datetime;comment:终止合作时间" json:"terminate_time"` CancelOperatorType int `gorm:"column:cancel_operator_type;type:int(11);comment:解约操作人类型,1商家用户,2商家子账号,3管理后台" json:"cancel_operator_type"` CancelOperator string `gorm:"column:cancel_operator;type:varchar(255);comment:解约操作人ID" json:"cancel_operator"` CancelReason string `gorm:"column:cancel_reason;type:varchar(255);comment:解约原因" json:"cancel_reason"` CancelTime time.Time `gorm:"column:cancel_time;type:datetime;comment:解约时间" json:"cancel_time"` City string `gorm:"column:city;type:varchar(255);comment:报名达人的所在城市" json:"city"` // 结算状态,1、2分别表示待结算、已结算 } func (m *YoungeeTaskInfo) TableName() string { return "youngee_task_info" }