forked from ASoulCnki/ASoulCnki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcnki.sql
35 lines (33 loc) · 1.32 KB
/
cnki.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
drop table if exists user_dynamic;
create table user_dynamic
(
dynamic_id bigint comment '动态唯一id',
type_id int comment '动态类型, 用于获取评论, 区分视频/',
oid bigint comment '动态对象id,用于获取评论',
ctime int comment '动态创建时间',
uid int comment '视频/专栏/动态 拥有者(UP主)uid',
status int comment '评论爬取状态,0: 未爬取, 1: 至少爬取完成过一次',
primary key (dynamic_id)
) DEFAULT CHARACTER SET = utf8mb4;
drop table if exists kv;
create table kv_store
(
field_name varchar(255) NOT NULL,
field_value text NOT NULL,
primary key (field_name)
) DEFAULT CHARACTER SET = utf8mb4;
drop table if exists reply;
create table reply
(
rpid bigint comment '回复id',
type_id int comment '动态类型,用于区分视频/专栏/动态'
dynamic_id bigint comment '适用于动态的评论区',
uid int comment '视频/专栏/动态 拥有者(UP主)uid',
mid int comment '评论发布者id',
oid bigint comment '源稿件id',
ctime int comment '创建时间',
m_name varchar(255) comment '评论发布者昵称',
content text comment '评论内容',
like_num int,
primary key (rpid)
) DEFAULT CHARACTER SET = utf8mb4;