1,37 → 1,25 |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
/*!40101 SET NAMES utf8 */; |
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
/*!40103 SET TIME_ZONE='+00:00' */; |
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
-- |
-- Table structure for table `radacct` |
-- |
|
DROP TABLE IF EXISTS `radacct`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `radacct` ( |
`radacctid` bigint(21) NOT NULL AUTO_INCREMENT, |
`acctsessionid` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '', |
`acctuniqueid` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
`acctsessionid` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
`acctuniqueid` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '', |
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
`groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
`realm` varchar(64) COLLATE utf8_bin DEFAULT '', |
`nasipaddress` varchar(15) COLLATE utf8_bin NOT NULL DEFAULT '', |
`nasportid` varchar(15) COLLATE utf8_bin DEFAULT NULL, |
`nasportid` varchar(32) COLLATE utf8_bin DEFAULT NULL, |
`nasporttype` varchar(32) COLLATE utf8_bin DEFAULT NULL, |
`acctstarttime` datetime DEFAULT NULL, |
`acctupdatetime` datetime DEFAULT NULL, |
`acctstoptime` datetime DEFAULT NULL, |
`acctinterval` int(12) DEFAULT NULL, |
`acctsessiontime` int(12) DEFAULT NULL, |
`acctauthentic` varchar(32) COLLATE utf8_bin DEFAULT NULL, |
`connectinfo_start` varchar(50) COLLATE utf8_bin DEFAULT NULL, |
`connectinfo_stop` varchar(50) COLLATE utf8_bin DEFAULT NULL, |
`connectinfo_start` varchar(128) COLLATE utf8_bin DEFAULT NULL, |
`connectinfo_stop` varchar(128) COLLATE utf8_bin DEFAULT NULL, |
`acctinputoctets` bigint(20) DEFAULT NULL, |
`acctoutputoctets` bigint(20) DEFAULT NULL, |
`calledstationid` varchar(50) COLLATE utf8_bin NOT NULL DEFAULT '', |
40,20 → 28,27 |
`servicetype` varchar(32) COLLATE utf8_bin DEFAULT NULL, |
`framedprotocol` varchar(32) COLLATE utf8_bin DEFAULT NULL, |
`framedipaddress` varchar(15) COLLATE utf8_bin NOT NULL DEFAULT '', |
`acctstartdelay` int(12) DEFAULT NULL, |
`acctstopdelay` int(12) DEFAULT NULL, |
`xascendsessionsvrkey` varchar(10) COLLATE utf8_bin DEFAULT NULL, |
`framedipv6address` varchar(45) COLLATE utf8_bin NOT NULL DEFAULT '', |
`framedipv6prefix` varchar(45) COLLATE utf8_bin NOT NULL DEFAULT '', |
`framedinterfaceid` varchar(45) COLLATE utf8_bin NOT NULL DEFAULT '', |
`delegatedipv6prefix` varchar(45) COLLATE utf8_bin NOT NULL DEFAULT '', |
`class` varchar(64) DEFAULT NULL, |
PRIMARY KEY (`radacctid`), |
UNIQUE KEY `acctuniqueid` (`acctuniqueid`), |
KEY `username` (`username`), |
KEY `framedipaddress` (`framedipaddress`), |
KEY `framedipv6address` (`framedipv6address`), |
KEY `framedipv6prefix` (`framedipv6prefix`), |
KEY `framedinterfaceid` (`framedinterfaceid`), |
KEY `delegatedipv6prefix` (`delegatedipv6prefix`), |
KEY `acctsessionid` (`acctsessionid`), |
KEY `acctsessiontime` (`acctsessiontime`), |
KEY `acctuniqueid` (`acctuniqueid`), |
KEY `acctstarttime` (`acctstarttime`), |
KEY `acctinterval` (`acctinterval`), |
KEY `acctstoptime` (`acctstoptime`), |
KEY `nasipaddress` (`nasipaddress`) |
KEY `nasipaddress` (`nasipaddress`), |
KEY `class` (`class`) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `radcheck` |
60,8 → 55,6 |
-- |
|
DROP TABLE IF EXISTS `radcheck`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `radcheck` ( |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
71,7 → 64,6 |
PRIMARY KEY (`id`), |
KEY `username` (`username`(32)) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `radgroupcheck` |
78,8 → 70,6 |
-- |
|
DROP TABLE IF EXISTS `radgroupcheck`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `radgroupcheck` ( |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
`groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
89,7 → 79,6 |
PRIMARY KEY (`id`), |
KEY `groupname` (`groupname`(32)) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `radgroupreply` |
96,8 → 85,6 |
-- |
|
DROP TABLE IF EXISTS `radgroupreply`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `radgroupreply` ( |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
`groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
107,7 → 94,6 |
PRIMARY KEY (`id`), |
KEY `groupname` (`groupname`(32)) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `radreply` |
114,8 → 100,6 |
-- |
|
DROP TABLE IF EXISTS `radreply`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `radreply` ( |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
125,7 → 109,6 |
PRIMARY KEY (`id`), |
KEY `username` (`username`(32)) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `radusergroup` |
132,8 → 115,6 |
-- |
|
DROP TABLE IF EXISTS `radusergroup`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `radusergroup` ( |
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
`groupname` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
140,7 → 121,6 |
`priority` int(11) NOT NULL DEFAULT '1', |
KEY `username` (`username`(32)) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `radpostauth` |
147,25 → 127,42 |
-- |
|
DROP TABLE IF EXISTS `radpostauth`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `radpostauth` ( |
`id` int(11) NOT NULL AUTO_INCREMENT, |
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
`pass` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
`reply` varchar(32) COLLATE utf8_bin NOT NULL DEFAULT '', |
`authdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
PRIMARY KEY (`id`) |
`authdate` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), |
`class` varchar(64) DEFAULT NULL, |
PRIMARY KEY (`id`), |
KEY `username` (`username`), |
KEY `class` (`class`) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `nas` |
-- |
|
DROP TABLE IF EXISTS `nas`; |
CREATE TABLE `nas` ( |
`id` int(10) NOT NULL AUTO_INCREMENT, |
`nasname` varchar(128) NOT NULL, |
`shortname` varchar(32), |
`type` varchar(30) DEFAULT 'other', |
`ports` int(5), |
`secret` varchar(60) DEFAULT 'secret' NOT NULL, |
`server` varchar(64), |
`community` varchar(50), |
`description` varchar(200) DEFAULT 'RADIUS Client', |
PRIMARY KEY (id), |
KEY `nasname` (`nasname`) |
); |
|
-- |
-- Table structure for table `mtotacct` |
-- |
|
DROP TABLE IF EXISTS `mtotacct`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `mtotacct` ( |
`mtotacctid` bigint(21) NOT NULL AUTO_INCREMENT, |
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
183,7 → 180,6 |
KEY `UserOnDate` (`username`,`acctdate`), |
KEY `nasipaddress` (`nasipaddress`) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `totacct` |
190,8 → 186,6 |
-- |
|
DROP TABLE IF EXISTS `totacct`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `totacct` ( |
`totacctid` bigint(21) NOT NULL AUTO_INCREMENT, |
`username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', |
210,7 → 204,6 |
KEY `nasipaddress` (`nasipaddress`), |
KEY `nasipaddressOnDate` (`acctdate`,`nasipaddress`) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
-- |
-- Table structure for table `userinfo` |
217,8 → 210,6 |
-- |
|
DROP TABLE IF EXISTS `userinfo`; |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
/*!40101 SET character_set_client = utf8 */; |
CREATE TABLE `userinfo` ( |
`id` int(10) NOT NULL AUTO_INCREMENT, |
`username` varchar(64) COLLATE utf8_bin DEFAULT NULL, |
232,14 → 223,3 |
KEY `username` (`username`), |
KEY `department` (`department`) |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |