forked from RobertLeahy/MCPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.sql
More file actions
35 lines (28 loc) · 686 Bytes
/
Copy pathschema.sql
File metadata and controls
35 lines (28 loc) · 686 Bytes
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 DATABASE IF EXISTS `mcpp`;
CREATE DATABASE `mcpp` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
USE `mcpp`;
CREATE TABLE `settings` (
`setting` varchar(191) PRIMARY KEY,
`value` text
);
CREATE TABLE `log` (
`when` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`type` varchar(255) NOT NULL,
`text` text NOT NULL
);
CREATE TABLE `chat_log` (
`when` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`from` text NOT NULL,
`to` text,
`message` text NOT NULL,
`notes` text
);
CREATE TABLE `keyvaluestore` (
`key` varchar(191) NOT NULL,
`value` text NOT NULL,
INDEX(`key`)
);
CREATE TABLE `binary` (
`key` varchar(191) PRIMARY KEY,
`value` mediumblob NOT NULL
);