-
Notifications
You must be signed in to change notification settings - Fork 27
/
anymock_opensource.sql
161 lines (147 loc) · 7.36 KB
/
anymock_opensource.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/*
Navicat Premium Data Transfer
Source Server : localhost-3306
Source Server Type : MySQL
Source Server Version : 80012
Source Host : localhost:3306
Source Schema : anymock_opensource
Target Server Type : MySQL
Target Server Version : 80012
File Encoding : 65001
Date: 27/03/2019 20:36:32
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for anymock_http_interface
-- ----------------------------
DROP TABLE IF EXISTS `anymock_http_interface`;
CREATE TABLE `anymock_http_interface` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`request_uri` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`request_method` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`need_async_callback` tinyint(1) NOT NULL,
`config_mode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`response_body` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`callback_request_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`callback_request_method` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`callback_request_body` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`branch_jump_script` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`sync_script` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`async_script` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`sync_delay` int(11) NOT NULL,
`async_delay` int(11) NOT NULL,
`is_start` tinyint(1) NOT NULL,
`space_id` bigint(20) NOT NULL,
`last_update_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`access_authority` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`gmt_create` datetime NOT NULL,
`gmt_modified` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_request_mapping`(`request_uri`, `request_method`) USING BTREE,
INDEX `idx_space_id`(`space_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 98 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for anymock_interface_branch
-- ----------------------------
DROP TABLE IF EXISTS `anymock_interface_branch`;
CREATE TABLE `anymock_interface_branch` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`interface_id` bigint(20) NOT NULL,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`sync_script` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`async_script` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_name`(`http_interface_id`, `name`) USING BTREE,
INDEX `idx_http_interface_id`(`http_interface_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 159 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for anymock_http_interface_header
-- ----------------------------
DROP TABLE IF EXISTS `anymock_http_interface_header`;
CREATE TABLE `anymock_http_interface_header` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`http_interface_id` bigint(20) NOT NULL,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_name`(`http_interface_id`, `name`, `type`) USING BTREE,
INDEX `idx_http_interface_id`(`http_interface_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 180 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for anymock_http_interface_snapshot
-- ----------------------------
DROP TABLE IF EXISTS `anymock_http_interface_snapshot`;
CREATE TABLE `anymock_http_interface_snapshot` (
`http_interface_id` bigint(20) NOT NULL,
`http_interface_request_uri` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`http_interface_request_method` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`http_interface_space_id` bigint(20) NOT NULL,
`http_interface` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`op_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`gmt_create` datetime NOT NULL,
`gmt_modified` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_id`(`http_interface_id`) USING BTREE,
INDEX `idx_request_mapping`(`http_interface_request_uri`, `http_interface_request_method`) USING BTREE,
INDEX `idx_space_id`(`http_interface_space_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 290 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for anymock_space
-- ----------------------------
DROP TABLE IF EXISTS `anymock_space`;
CREATE TABLE `anymock_space` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`parent_id` bigint(20) NOT NULL,
`access_authority` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`level` int(11) NOT NULL,
`gmt_create` datetime NOT NULL,
`gmt_modified` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_label`(`label`, `parent_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 91 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
SET FOREIGN_KEY_CHECKS = 1;
CREATE TABLE `anymock_tcp_interface` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`request_uri` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`need_async_callback` tinyint(1) NOT NULL,
`config_mode` varchar(255) NOT NULL,
`response_body` mediumtext NOT NULL,
`callback_request_url` varchar(255) NOT NULL,
`callback_request_body` mediumtext NOT NULL,
`branch_jump_script` mediumtext NOT NULL,
`sync_script` mediumtext NOT NULL,
`async_script` mediumtext NOT NULL,
`sync_delay` int(11) NOT NULL,
`async_delay` int(11) NOT NULL,
`is_start` tinyint(1) NOT NULL,
`space_id` bigint(20) NOT NULL,
`last_update_user` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`access_authority` varchar(255) NOT NULL,
`gmt_create` datetime NOT NULL,
`gmt_modified` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_request_mapping` (`request_uri`) USING BTREE,
KEY `idx_space_id` (`space_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
CREATE TABLE `anymock_tcp_interface_snapshot` (
`tcp_interface_id` bigint(20) NOT NULL,
`tcp_interface_request_uri` varchar(255) NOT NULL,
`tcp_interface_space_id` bigint(20) NOT NULL,
`tcp_interface` mediumtext NOT NULL,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`op_type` varchar(255) NOT NULL,
`gmt_create` datetime NOT NULL,
`gmt_modified` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_id` (`tcp_interface_id`) USING BTREE,
KEY `idx_request_mapping` (`tcp_interface_request_uri`) USING BTREE,
KEY `idx_space_id` (`tcp_interface_space_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=290 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;