Subversion Repositories ALCASAR

Rev

Rev 1800 | Rev 2372 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
1800 richard 1
-- MySQL dump 10.15  Distrib 10.0.23-MariaDB, for Linux (x86_64)
2
--
3
-- Host: localhost    Database: radius
4
-- ------------------------------------------------------
5
-- Server version	10.0.23-MariaDB
6
 
7
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10
/*!40101 SET NAMES utf8 */;
11
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12
/*!40103 SET TIME_ZONE='+00:00' */;
13
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
 
18
--
19
-- Table structure for table `mtotacct`
20
--
21
 
22
DROP TABLE IF EXISTS `mtotacct`;
23
/*!40101 SET @saved_cs_client     = @@character_set_client */;
24
/*!40101 SET character_set_client = utf8 */;
25
CREATE TABLE `mtotacct` (
26
  `MTotAcctId` bigint(21) NOT NULL AUTO_INCREMENT,
2063 raphael.pi 27
  `UserName` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 28
  `AcctDate` date NOT NULL DEFAULT '0000-00-00',
29
  `ConnNum` bigint(12) DEFAULT NULL,
30
  `ConnTotDuration` bigint(12) DEFAULT NULL,
31
  `ConnMaxDuration` bigint(12) DEFAULT NULL,
32
  `ConnMinDuration` bigint(12) DEFAULT NULL,
33
  `InputOctets` bigint(12) DEFAULT NULL,
34
  `OutputOctets` bigint(12) DEFAULT NULL,
2063 raphael.pi 35
  `NASIPAddress` varchar(15) COLLATE utf8_bin DEFAULT NULL,
1800 richard 36
  PRIMARY KEY (`MTotAcctId`),
37
  KEY `UserName` (`UserName`),
38
  KEY `AcctDate` (`AcctDate`),
39
  KEY `UserOnDate` (`UserName`,`AcctDate`),
40
  KEY `NASIPAddress` (`NASIPAddress`)
2063 raphael.pi 41
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 42
/*!40101 SET character_set_client = @saved_cs_client */;
43
 
44
--
45
-- Table structure for table `radacct`
46
--
47
 
48
DROP TABLE IF EXISTS `radacct`;
49
/*!40101 SET @saved_cs_client     = @@character_set_client */;
50
/*!40101 SET character_set_client = utf8 */;
51
CREATE TABLE `radacct` (
52
  `radacctid` bigint(21) NOT NULL AUTO_INCREMENT,
2063 raphael.pi 53
  `acctsessionid` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
54
  `acctuniqueid` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
55
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
56
  `groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
57
  `realm` varchar(64) COLLATE utf8_bin DEFAULT '',
58
  `nasipaddress` varchar(15) COLLATE utf8_bin NOT NULL DEFAULT '',
59
  `nasportid` varchar(15) COLLATE utf8_bin DEFAULT NULL,
60
  `nasporttype` varchar(32) COLLATE utf8_bin DEFAULT NULL,
1800 richard 61
  `acctstarttime` datetime DEFAULT NULL,
62
  `acctstoptime` datetime DEFAULT NULL,
63
  `acctsessiontime` int(12) DEFAULT NULL,
2063 raphael.pi 64
  `acctauthentic` varchar(32) COLLATE utf8_bin DEFAULT NULL,
65
  `connectinfo_start` varchar(50) COLLATE utf8_bin DEFAULT NULL,
66
  `connectinfo_stop` varchar(50) COLLATE utf8_bin DEFAULT NULL,
1800 richard 67
  `acctinputoctets` bigint(20) DEFAULT NULL,
68
  `acctoutputoctets` bigint(20) DEFAULT NULL,
2063 raphael.pi 69
  `calledstationid` varchar(50) COLLATE utf8_bin NOT NULL DEFAULT '',
70
  `callingstationid` varchar(50) COLLATE utf8_bin NOT NULL DEFAULT '',
71
  `acctterminatecause` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
72
  `servicetype` varchar(32) COLLATE utf8_bin DEFAULT NULL,
73
  `framedprotocol` varchar(32) COLLATE utf8_bin DEFAULT NULL,
74
  `framedipaddress` varchar(15) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 75
  `acctstartdelay` int(12) DEFAULT NULL,
76
  `acctstopdelay` int(12) DEFAULT NULL,
2063 raphael.pi 77
  `xascendsessionsvrkey` varchar(10) COLLATE utf8_bin DEFAULT NULL,
1800 richard 78
  PRIMARY KEY (`radacctid`),
79
  KEY `username` (`username`),
80
  KEY `framedipaddress` (`framedipaddress`),
81
  KEY `acctsessionid` (`acctsessionid`),
82
  KEY `acctsessiontime` (`acctsessiontime`),
83
  KEY `acctuniqueid` (`acctuniqueid`),
84
  KEY `acctstarttime` (`acctstarttime`),
85
  KEY `acctstoptime` (`acctstoptime`),
86
  KEY `nasipaddress` (`nasipaddress`)
2063 raphael.pi 87
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 88
/*!40101 SET character_set_client = @saved_cs_client */;
89
 
90
--
91
-- Table structure for table `radcheck`
92
--
93
 
94
DROP TABLE IF EXISTS `radcheck`;
95
/*!40101 SET @saved_cs_client     = @@character_set_client */;
96
/*!40101 SET character_set_client = utf8 */;
97
CREATE TABLE `radcheck` (
98
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2063 raphael.pi 99
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
100
  `attribute` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
101
  `op` char(2) COLLATE utf8_bin NOT NULL DEFAULT '==',
102
  `value` varchar(253) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 103
  PRIMARY KEY (`id`),
104
  KEY `username` (`username`(32))
2063 raphael.pi 105
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 106
/*!40101 SET character_set_client = @saved_cs_client */;
107
 
108
--
109
-- Table structure for table `radgroupcheck`
110
--
111
 
112
DROP TABLE IF EXISTS `radgroupcheck`;
113
/*!40101 SET @saved_cs_client     = @@character_set_client */;
114
/*!40101 SET character_set_client = utf8 */;
115
CREATE TABLE `radgroupcheck` (
116
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2063 raphael.pi 117
  `groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
118
  `attribute` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
119
  `op` char(2) COLLATE utf8_bin NOT NULL DEFAULT '==',
120
  `value` varchar(253) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 121
  PRIMARY KEY (`id`),
122
  KEY `groupname` (`groupname`(32))
2063 raphael.pi 123
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 124
/*!40101 SET character_set_client = @saved_cs_client */;
125
 
126
--
127
-- Table structure for table `radgroupreply`
128
--
129
 
130
DROP TABLE IF EXISTS `radgroupreply`;
131
/*!40101 SET @saved_cs_client     = @@character_set_client */;
132
/*!40101 SET character_set_client = utf8 */;
133
CREATE TABLE `radgroupreply` (
134
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2063 raphael.pi 135
  `groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
136
  `attribute` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
137
  `op` char(2) COLLATE utf8_bin NOT NULL DEFAULT '=',
138
  `value` varchar(253) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 139
  PRIMARY KEY (`id`),
140
  KEY `groupname` (`groupname`(32))
2063 raphael.pi 141
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 142
/*!40101 SET character_set_client = @saved_cs_client */;
143
 
144
--
145
-- Table structure for table `radpostauth`
146
--
147
 
148
DROP TABLE IF EXISTS `radpostauth`;
149
/*!40101 SET @saved_cs_client     = @@character_set_client */;
150
/*!40101 SET character_set_client = utf8 */;
151
CREATE TABLE `radpostauth` (
152
  `id` int(11) NOT NULL AUTO_INCREMENT,
2063 raphael.pi 153
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
154
  `reply` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 155
  `authdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
156
  PRIMARY KEY (`id`)
2063 raphael.pi 157
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 158
/*!40101 SET character_set_client = @saved_cs_client */;
159
 
160
--
161
-- Table structure for table `radreply`
162
--
163
 
164
DROP TABLE IF EXISTS `radreply`;
165
/*!40101 SET @saved_cs_client     = @@character_set_client */;
166
/*!40101 SET character_set_client = utf8 */;
167
CREATE TABLE `radreply` (
168
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2063 raphael.pi 169
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
170
  `attribute` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '',
171
  `op` char(2) COLLATE utf8_bin NOT NULL DEFAULT '=',
172
  `value` varchar(253) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 173
  PRIMARY KEY (`id`),
174
  KEY `username` (`username`(32))
2063 raphael.pi 175
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 176
/*!40101 SET character_set_client = @saved_cs_client */;
177
 
178
--
179
-- Table structure for table `radusergroup`
180
--
181
 
182
DROP TABLE IF EXISTS `radusergroup`;
183
/*!40101 SET @saved_cs_client     = @@character_set_client */;
184
/*!40101 SET character_set_client = utf8 */;
185
CREATE TABLE `radusergroup` (
2063 raphael.pi 186
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
187
  `groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 188
  `priority` int(11) NOT NULL DEFAULT '1',
189
  KEY `username` (`username`(32))
2063 raphael.pi 190
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 191
/*!40101 SET character_set_client = @saved_cs_client */;
192
 
193
--
194
-- Table structure for table `totacct`
195
--
196
 
197
DROP TABLE IF EXISTS `totacct`;
198
/*!40101 SET @saved_cs_client     = @@character_set_client */;
199
/*!40101 SET character_set_client = utf8 */;
200
CREATE TABLE `totacct` (
201
  `TotAcctId` bigint(21) NOT NULL AUTO_INCREMENT,
2063 raphael.pi 202
  `UserName` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
1800 richard 203
  `AcctDate` date NOT NULL DEFAULT '0000-00-00',
204
  `ConnNum` bigint(12) DEFAULT NULL,
205
  `ConnTotDuration` bigint(12) DEFAULT NULL,
206
  `ConnMaxDuration` bigint(12) DEFAULT NULL,
207
  `ConnMinDuration` bigint(12) DEFAULT NULL,
208
  `InputOctets` bigint(12) DEFAULT NULL,
209
  `OutputOctets` bigint(12) DEFAULT NULL,
2063 raphael.pi 210
  `NASIPAddress` varchar(15) COLLATE utf8_bin DEFAULT NULL,
1800 richard 211
  PRIMARY KEY (`TotAcctId`),
212
  KEY `UserName` (`UserName`),
213
  KEY `AcctDate` (`AcctDate`),
214
  KEY `UserOnDate` (`UserName`,`AcctDate`),
215
  KEY `NASIPAddress` (`NASIPAddress`),
216
  KEY `NASIPAddressOnDate` (`AcctDate`,`NASIPAddress`)
2063 raphael.pi 217
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 218
/*!40101 SET character_set_client = @saved_cs_client */;
219
 
220
--
221
-- Table structure for table `userinfo`
222
--
223
 
224
DROP TABLE IF EXISTS `userinfo`;
225
/*!40101 SET @saved_cs_client     = @@character_set_client */;
226
/*!40101 SET character_set_client = utf8 */;
227
CREATE TABLE `userinfo` (
228
  `id` int(10) NOT NULL AUTO_INCREMENT,
2063 raphael.pi 229
  `UserName` varchar(64) COLLATE utf8_bin DEFAULT NULL,
230
  `Name` varchar(200) COLLATE utf8_bin DEFAULT NULL,
231
  `Mail` varchar(200) COLLATE utf8_bin DEFAULT NULL,
232
  `Department` varchar(200) COLLATE utf8_bin DEFAULT NULL,
233
  `WorkPhone` varchar(200) COLLATE utf8_bin DEFAULT NULL,
234
  `HomePhone` varchar(200) COLLATE utf8_bin DEFAULT NULL,
235
  `Mobile` varchar(200) COLLATE utf8_bin DEFAULT NULL,
1800 richard 236
  PRIMARY KEY (`id`),
237
  KEY `UserName` (`UserName`),
238
  KEY `Department` (`Department`)
2063 raphael.pi 239
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
1800 richard 240
/*!40101 SET character_set_client = @saved_cs_client */;
241
 
242
 
243
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
244
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
245
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
246
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
247
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
248
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
249
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
250
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
251
 
252
-- Dump completed on 2016-02-28 18:01:42