-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlabel_sys.sql
62 lines (54 loc) · 1.82 KB
/
label_sys.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
/*
Navicat Premium Data Transfer
Source Server : XY-Laptop
Source Server Type : MySQL
Source Server Version : 80019
Source Host : 192.168.0.4:3306
Source Schema : label_sys
Target Server Type : MySQL
Target Server Version : 80019
File Encoding : 65001
Date: 23/08/2020 09:48:00
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for entity_class
-- ----------------------------
DROP TABLE IF EXISTS `entity_class`;
CREATE TABLE `entity_class` (
`c_id` int NOT NULL AUTO_INCREMENT,
`label` varchar(255) NOT NULL,
`color` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`p_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`c_id`)
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for file
-- ----------------------------
DROP TABLE IF EXISTS `file`;
CREATE TABLE `file` (
`f_id` int NOT NULL AUTO_INCREMENT,
`file_name` varchar(255) NOT NULL,
`file_path` varchar(255) DEFAULT NULL,
`version` int unsigned NOT NULL,
`entity_list` json DEFAULT NULL,
`text` json DEFAULT NULL,
`p_id` varchar(255) DEFAULT NULL,
`is_edit` int NOT NULL,
PRIMARY KEY (`f_id`)
) ENGINE=InnoDB AUTO_INCREMENT=162 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for project
-- ----------------------------
DROP TABLE IF EXISTS `project`;
CREATE TABLE `project` (
`p_id` varchar(255) NOT NULL,
`path` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`total` varchar(255) DEFAULT NULL,
PRIMARY KEY (`p_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
SET FOREIGN_KEY_CHECKS = 1;