forked from naver/ngrinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-tables.sql
120 lines (120 loc) · 3.19 KB
/
create-tables.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
create table if not exists AGENT (
id bigint auto_increment unique,
approved char(1) not null,
hostName varchar(255),
ip varchar(255),
region varchar(255),
state varchar(20),
port int default 0,
system_stat varchar(1000),
version varchar(256) default '',
primary key (id)
);
#########################################################
create table if not exists NUSER (
id bigint auto_increment unique,
created_date timestamp,
last_modified_date timestamp,
authentication_provider_class varchar(255),
description varchar(255),
email varchar(255),
enabled char(1) not null,
is_external char(1),
mobile_phone varchar(255),
password varchar(255),
role_name varchar(255) not null,
timeZone varchar(255),
user_id varchar(255) not null unique,
user_language varchar(255),
user_name varchar(255),
created_user bigint,
last_modified_user bigint,
primary key (id)
);
#########################################################
create table if not exists PERF_TEST (
id bigint auto_increment unique,
created_date timestamp,
last_modified_date timestamp,
agent_count int,
description text,
distribution_path varchar(255),
duration bigint,
errors bigint,
finish_time timestamp,
ignore_sample_count int,
ramp_up_init_count int,
ramp_up_init_sleep_time int,
last_progress_message text,
mean_test_time double,
peak_tps double,
port int,
ramp_up_step int,
ramp_up_increment_interval int,
processes int,
progress_message text,
run_count int,
scheduled_time timestamp,
script_name varchar(255),
script_revision bigint,
send_mail char(1),
start_time timestamp,
status varchar(255),
stop_request char(1),
tag_string varchar(255),
target_hosts text,
test_comment text,
test_error_cause varchar(255),
name varchar(255),
test_time_standard_deviation double,
tests bigint,
threads int,
threshold varchar(255),
tps double,
use_rampup char(1),
vuser_per_agent int,
created_user bigint,
last_modified_user bigint,
region varchar(255),
safe_distribution char(1) default 'F',
sampling_interval int default 1,
param varchar(256) default '',
ramp_up_type varchar(10) default 'PROCESS',
primary key (id)
);
#########################################################
create table if not exists PERF_TEST_TAG (
perf_test_id bigint not null,
tag_id bigint not null,
primary key (perf_test_id, tag_id)
);
#########################################################
create table if not exists TAG (
id bigint auto_increment unique,
created_date timestamp,
last_modified_date timestamp,
tagValue varchar(255),
created_user bigint,
last_modified_user bigint,
primary key (id)
);
#########################################################
create table if not exists SYSTEM_MONITOR (
id bigint auto_increment unique,
collect_time bigint,
cpu_used_percentage float,
free_memory bigint,
ip varchar(255),
monitor_key varchar(255),
message varchar(255),
port int not null,
system varchar(255),
total_memory bigint,
primary key (id)
);
#########################################################
create table if not exists SHARED_USER (
owner_id bigint not null,
follow_id bigint not null,
primary key (owner_id, follow_id)
);