增加渠道上传预统计

This commit is contained in:
yml2213
2026-07-25 14:34:03 +08:00
parent 1ea01f7d46
commit 7ca68e6b8b
15 changed files with 689 additions and 63 deletions
@@ -0,0 +1,11 @@
-- +goose Up
ALTER TABLE listing_uploads
ADD COLUMN source_channel VARCHAR(32) NOT NULL DEFAULT '' COMMENT '订单来源渠道:咸鱼/淘宝/京东/QQ/微信/自定义' AFTER uploader_name,
ADD KEY idx_listing_uploads_source_channel (source_channel, created_at);
-- +goose Down
ALTER TABLE listing_uploads
DROP KEY idx_listing_uploads_source_channel,
DROP COLUMN source_channel;