forked from nexmoe/wall-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwall.sql
66 lines (56 loc) · 2.38 KB
/
wall.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`cid` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
`description` varchar(200) DEFAULT NULL,
`count` int(20) NOT NULL DEFAULT '0',
PRIMARY KEY (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `category` (`cid`, `name`, `description`, `count`) VALUES
(2333, '表白', '表白,或称告白意为向他人表示自己的想法或心意,特指表达爱意,又称示爱,在这种情况下通常被认为是建立恋爱关系的方式。', 0),
(2334, '失物招领', NULL, 0),
(2335, '安利', NULL, 0),
(2336, '默认分类', NULL, 0),
(2337, '寻物启事', NULL, 0);
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`coid` int(10) NOT NULL AUTO_INCREMENT,
`mid` int(10) NOT NULL,
`author` varchar(20) NOT NULL,
`text` mediumtext NOT NULL,
`time` int(15) NOT NULL,
`parent` int(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`coid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
INSERT INTO `comment` (`coid`, `mid`, `author`, `text`, `time`, `parent`) VALUES
(2333, 2403, '776194970', '意见反馈区', 1549544960, 0);
DROP TABLE IF EXISTS `message`;
CREATE TABLE `message` (
`mid` int(10) NOT NULL AUTO_INCREMENT,
`cid` int(10) NOT NULL,
`author` varchar(20) NOT NULL,
`article` mediumtext NOT NULL,
`time` int(15) NOT NULL,
`anonymous` varchar(10) NOT NULL DEFAULT 'false',
PRIMARY KEY (`mid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
INSERT INTO `message` (`mid`, `cid`, `author`, `article`, `time`, `anonymous`) VALUES
(2403, 2336, '776194970', '[{\"type\":\"p\",\"text\":\"\\u610f\\u89c1\\u53cd\\u9988\\uff0c\"},{\"type\":\"p\",\"text\":\"\\u5173\\u4e8eAPP\\u7684\\u610f\\u89c1\\u8bf7\\u5728\\u8fd9\\u91cc\\u53cd\\u9988\\u3002\"}]', 0, 'false');
DROP TABLE IF EXISTS `notice`;
CREATE TABLE `notice` (
`inid` int(10) NOT NULL AUTO_INCREMENT,
`type` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`time` int(15) NOT NULL,
`mid` int(10) NOT NULL,
`coid` int(10) NOT NULL,
`uid` int(10) NOT NULL,
`read` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'false',
PRIMARY KEY (`inid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `notice` (`inid`, `type`, `time`, `mid`, `coid`, `uid`, `read`);