下面是表结构:
mysql> show create table xpost;
| xpost | CREATE TABLE xpost
(
postid
bigint(20) NOT NULL AUTO_INCREMENT,
facetid
int(10) NOT NULL,
entryid
int(10) NOT NULL,
title
varchar(255) NOT NULL DEFAULT ‘’,
url
varchar(512) NOT NULL,
abstract
text DEFAULT NULL COMMENT ‘摘要’,
click
int(11) DEFAULT 0 COMMENT ‘点击/阅读’,
reply
int(11) DEFAULT 0 COMMENT ‘回复/评论’,
repost
int(11) DEFAULT 0 COMMENT ‘转发’,
praise
int(11) DEFAULT 0 COMMENT ‘点赞’,
collect
int(11) DEFAULT 0 COMMENT ‘收藏’,
watch
int(11) DEFAULT NULL,
wordscount
int(11) DEFAULT 0 COMMENT ‘字数’,
keywordcount
int(11) DEFAULT NULL,
siteid
int(11) DEFAULT 0,
domain
varchar(60) DEFAULT ‘’,
author
varchar(60) DEFAULT ‘’,
author_id
varchar(60) DEFAULT ‘’ COMMENT ‘作者ID’,
posttime
datetime NOT NULL,
include_t
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ‘入库时间’,
type
tinyint(4) DEFAULT 0 COMMENT ‘positive/negtive/neutrual’,
source
int(11) DEFAULT 0,
hidden
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘-3;识别噪音,-2:恢复误删数据, -1:已处理, 0: 未处理, 1:已删除, 2:正文噪音, 3:歧义噪音, 4:列表页噪音’,
sourcetype
tinyint(4) NOT NULL,
crisis_post
tinyint(4) NOT NULL DEFAULT 0,
ontop
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘是否标记,0否1是’,
type_rank
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘正负面可信度’,
noise_rank
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘噪音可信度’,
device
varchar(60) DEFAULT ‘’ COMMENT ‘发布设备’,
is_origin
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘是否原创 0:未知,1;原创,2:转载’,
is_top
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘是否头条 0:未知,1;是,2:否’,
media_type
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘媒体类型 0:未知,1;传统媒体,2:自媒体’,
author_type
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘作者类型 0:未知,1;KOL,2:官微 3:水军’,
content_type
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘内容类型 0:未知,1;PGC(营销声量),2:UGC(自然声量)’,
client_type
tinyint(4) NOT NULL DEFAULT 0 COMMENT ‘网站来源 0:未知,1;网页端,2:移动端’,
industry
varchar(60) DEFAULT ‘’ COMMENT ‘行业’,
tags
text DEFAULT NULL,
post_type
tinyint(4) DEFAULT 0 COMMENT ‘内容类型 0:未知,1;PGC,2:UGC’,
type_reason
varchar(256) DEFAULT ‘’ COMMENT ‘正负面规则命中原因’,
update_time
datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ‘更新时间’,
origin_source
varchar(64) DEFAULT ‘’ COMMENT ‘转载来源’,
media_id
int(11) DEFAULT 0 COMMENT ‘媒体库ID’,
w_level
tinyint(1) NOT NULL DEFAULT 0 COMMENT ‘预警等级’,
PRIMARY KEY (postid
),
UNIQUE KEY idx_fid_url
(facetid
,url
),
UNIQUE KEY postid
(postid
),
KEY idx_xpost_url
(url
(255)),
KEY idx_xpost_entryid
(entryid
),
KEY idx_xpost_type
(type
),
KEY idx_xpost_sourcetype
(sourcetype
),
KEY idx_xpost_pt
(posttime
),
KEY idx_xpost_source
(source
),
KEY idx_fid
(facetid
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=31409761974 |
±------±-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)
mysql>