初始提交:文字匹配图片项目
This commit is contained in:
30
db/split_tables/ai_statistics.sql
Normal file
30
db/split_tables/ai_statistics.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
-- SQL table definition
|
||||
-- Generated from splitting a larger SQL file
|
||||
-- Table: ai_statistics
|
||||
--
|
||||
|
||||
CREATE TABLE `ai_statistics` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'Auto-increment ID',
|
||||
`author_id` int NOT NULL DEFAULT '0' COMMENT '作者ID',
|
||||
`author_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '作者名称',
|
||||
`channel` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1=baidu|2=toutiao|3=weixin',
|
||||
`date` date NOT NULL COMMENT 'Date of statistics',
|
||||
`submission_count` int DEFAULT '0' COMMENT 'Number of submissions (投稿量)',
|
||||
`read_count` int DEFAULT '0' COMMENT 'Number of reads (阅读量)',
|
||||
`comment_count` int DEFAULT '0' COMMENT 'Number of comments (评论量)',
|
||||
`comment_rate` decimal(5,4) DEFAULT '0.0000' COMMENT 'Comment rate (评论率)',
|
||||
`like_count` int DEFAULT '0' COMMENT 'Number of likes (点赞量)',
|
||||
`like_rate` decimal(5,4) DEFAULT '0.0000' COMMENT 'Like rate (点赞率)',
|
||||
`favorite_count` int DEFAULT '0' COMMENT 'Number of favorites (收藏量)',
|
||||
`favorite_rate` decimal(5,4) DEFAULT '0.0000' COMMENT 'Favorite rate (收藏率)',
|
||||
`share_count` int DEFAULT '0' COMMENT 'Number of shares (分享量)',
|
||||
`share_rate` decimal(5,4) DEFAULT '0.0000' COMMENT 'Share rate (分享率)',
|
||||
`slide_ratio` decimal(5,4) DEFAULT '0.0000' COMMENT 'Slide view ratio (滑图占比)',
|
||||
`baidu_search_volume` int DEFAULT '0' COMMENT 'Baidu search volume (百度搜索量)',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Creation timestamp',
|
||||
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Update timestamp',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `unique_date` (`date`,`author_id`) USING BTREE,
|
||||
KEY `idx_date` (`date`) USING BTREE,
|
||||
KEY `idx_author_id` (`author_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=40720 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='AI Content Statistics';
|
||||
Reference in New Issue
Block a user