feat: 完善视频任务与 KOC 资源库

This commit is contained in:
巫凤萍
2026-08-15 03:53:09 +08:00
parent ad3dbdcc86
commit f37d05dd88
66 changed files with 6633 additions and 558 deletions

View File

@@ -50,6 +50,9 @@ CREATE TABLE IF NOT EXISTS accounts (
profile_url TEXT NOT NULL DEFAULT (''),
ip_location VARCHAR(255) NOT NULL DEFAULT '待识别',
followers INT NOT NULL DEFAULT 0,
gender VARCHAR(16) NOT NULL DEFAULT '',
bio TEXT NOT NULL DEFAULT (''),
tags VARCHAR(500) NOT NULL DEFAULT '',
post_count INT NOT NULL DEFAULT 0,
avg_views INT NOT NULL DEFAULT 0,
first_seen_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),

View File

@@ -0,0 +1,14 @@
ALTER TABLE tasks
ADD COLUMN platform VARCHAR(32) NOT NULL DEFAULT '小红书' AFTER task_type;
-- statement-breakpoint
ALTER TABLE tasks
ADD COLUMN content_format VARCHAR(32) NOT NULL DEFAULT 'image_text' AFTER platform;
-- statement-breakpoint
ALTER TABLE contents
ADD COLUMN video_assets LONGTEXT NOT NULL DEFAULT ('[]') AFTER image_assets;
-- statement-breakpoint
ALTER TABLE distributions
ADD COLUMN latest_shares INT NULL AFTER latest_collects;
-- statement-breakpoint
ALTER TABLE collection_runs
ADD COLUMN shares INT NULL AFTER collects;

View File

@@ -0,0 +1,8 @@
ALTER TABLE accounts
ADD COLUMN gender VARCHAR(16) NOT NULL DEFAULT '' AFTER followers;
-- statement-breakpoint
ALTER TABLE accounts
ADD COLUMN bio TEXT NOT NULL DEFAULT ('') AFTER gender;
-- statement-breakpoint
ALTER TABLE accounts
ADD COLUMN tags VARCHAR(500) NOT NULL DEFAULT '' AFTER bio;

View File

@@ -0,0 +1,2 @@
ALTER TABLE accounts
ADD COLUMN current_contact VARCHAR(255) NOT NULL DEFAULT '' AFTER cooperation_source;