Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 654b9cf

Browse files
committed
Added sql script for create tables
1 parent d6c7698 commit 654b9cf

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

config-templates/tables.sql

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#Statistics for proxy
2+
CREATE TABLE statistics_proxy (
3+
year INT NOT NULL,
4+
month INT NOT NULL,
5+
day INT NOT NULL,
6+
sourceIdp VARCHAR(255) NOT NULL,
7+
count INT,
8+
INDEX (sourceIdp),
9+
INDEX (year),
10+
INDEX (year,month),
11+
INDEX (year,month,day),
12+
PRIMARY KEY (year, month, day, sourceIdp)
13+
);
14+
15+
#Statistics for services
16+
CREATE TABLE statistics_services(
17+
year INT NOT NULL,
18+
month INT NOT NULL,
19+
day INT NOT NULL,
20+
service VARCHAR(255) NOT NULL,
21+
count INT,
22+
INDEX (service),
23+
INDEX (year),
24+
INDEX (year,month),
25+
INDEX (year,month,day),
26+
PRIMARY KEY (year, month, day, service)
27+
);

0 commit comments

Comments
 (0)