package models // OutTask 外部任务表 type OutTask struct { ID int64 `json:"id" gorm:"primarykey;comment:主键ID"` ShopID int64 `json:"shop_id" gorm:"not null;default:0;index;comment:店铺ID"` WaveTaskID int64 `json:"wave_task_id" gorm:"not null;default:0;index;comment:波次任务ID"` OutTaskID int64 `json:"out_task_id" gorm:"not null;default:0;index;comment:外部任务ID"` ShopType int8 `json:"shop_type" gorm:"not null;default:0;comment:店铺类型 1 拼多多 2 孔夫子 5 闲鱼"` TaskType int8 `json:"task_type" gorm:"not null;default:0;comment:任务类型 1 核价发布 2 表格发布 3 商品拉取 4 商品详情拉取 5 操作商品 6 核价表格发布 10、按照数量删除任务 11、按照时间删除任务"` ImgType int8 `json:"img_type" gorm:"not null;default:0;comment:图片类型 1仅官图 2 仅实拍图 3 优先官图 4 优先实拍图"` TaskCount int64 `json:"task_count" gorm:"not null;default:0;comment:任务数(小车容量)"` CreatedAt int64 `json:"created_at" gorm:"type:bigint;not null;default:0;comment:创建时间戳(秒)"` UpdatedAt int64 `json:"updated_at" gorm:"type:bigint;not null;default:0;comment:更新时间戳(秒)"` IsDel int8 `json:"is_del" gorm:"type:tinyint(1);not null;default:0;comment:逻辑删除标记(0:未删除,1:已删除)"` } func (OutTask) TableName() string { return "out_task" } func (OutTask) TableOptions() string { return "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='外部任务表'" }