Skip to content

Commit 198561a

Browse files
committed
ansible file. added db table sql
1 parent 9259092 commit 198561a

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
CREATE TABLE IF NOT EXISTS `histories` (
2+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
3+
`session_id` varchar(64) NOT NULL,
4+
`server_id` varchar(64) NOT NULL,
5+
`started` varchar(64) NOT NULL,
6+
`bytes_received` varchar(64) DEFAULT NULL,
7+
`bytes_sent` varchar(64) DEFAULT NULL,
8+
`ifconfig_pool_local_ip` varchar(64) DEFAULT NULL,
9+
`ifconfig_pool_netmask` varchar(64) DEFAULT NULL,
10+
`ifconfig_pool_remote_ip` varchar(64) DEFAULT NULL,
11+
`time_duration` varchar(64) DEFAULT NULL,
12+
`trusted_ip` varchar(64) DEFAULT NULL,
13+
`trusted_port` varchar(64) DEFAULT NULL,
14+
PRIMARY KEY (`id`),
15+
UNIQUE KEY `session_id` (`session_id`)
16+
) ENGINE=InnoDB DEFAULT CHARSET=utf8
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CREATE TABLE IF NOT EXISTS `sessions` (
2+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
3+
`session_id` varchar(64) NOT NULL,
4+
`started` varchar(64) NOT NULL,
5+
`server_id` varchar(64) NOT NULL,
6+
`vpn_ip` varchar(64) NOT NULL,
7+
PRIMARY KEY (`id`),
8+
UNIQUE KEY `session_id` (`session_id`)
9+
) ENGINE=InnoDB DEFAULT CHARSET=utf8

0 commit comments

Comments
 (0)