Subversion Repositories ALCASAR

Rev

Rev 426 | Blame | Last modification | View Log

-- MySQL dump 10.11
--
-- Host: localhost    Database: radius
-- ------------------------------------------------------
-- Server version       5.0.67

/*!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 */;

--
-- Current Database: `radius`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `radius` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;

USE `radius`;

--
-- Table structure for table `mtotacct`
--

DROP TABLE IF EXISTS `mtotacct`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `mtotacct` (
  `MTotAcctId` bigint(21) NOT NULL auto_increment,
  `UserName` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `AcctDate` date NOT NULL default '0000-00-00',
  `ConnNum` bigint(12) default NULL,
  `ConnTotDuration` bigint(12) default NULL,
  `ConnMaxDuration` bigint(12) default NULL,
  `ConnMinDuration` bigint(12) default NULL,
  `InputOctets` bigint(12) default NULL,
  `OutputOctets` bigint(12) default NULL,
  `NASIPAddress` varchar(15) collate utf8_unicode_ci default NULL,
  PRIMARY KEY  (`MTotAcctId`),
  KEY `UserName` (`UserName`),
  KEY `AcctDate` (`AcctDate`),
  KEY `UserOnDate` (`UserName`,`AcctDate`),
  KEY `NASIPAddress` (`NASIPAddress`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `mtotacct`
--

LOCK TABLES `mtotacct` WRITE;
/*!40000 ALTER TABLE `mtotacct` DISABLE KEYS */;
/*!40000 ALTER TABLE `mtotacct` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `radacct`
--

DROP TABLE IF EXISTS `radacct`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `radacct` (
  `radacctid` bigint(21) NOT NULL auto_increment,
  `acctsessionid` varchar(32) collate utf8_unicode_ci NOT NULL default '',
  `acctuniqueid` varchar(32) collate utf8_unicode_ci NOT NULL default '',
  `username` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `groupname` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `realm` varchar(64) collate utf8_unicode_ci default '',
  `nasipaddress` varchar(15) collate utf8_unicode_ci NOT NULL default '',
  `nasportid` varchar(15) collate utf8_unicode_ci default NULL,
  `nasporttype` varchar(32) collate utf8_unicode_ci default NULL,
  `acctstarttime` datetime default NULL,
  `acctstoptime` datetime default NULL,
  `acctsessiontime` int(12) default NULL,
  `acctauthentic` varchar(32) collate utf8_unicode_ci default NULL,
  `connectinfo_start` varchar(50) collate utf8_unicode_ci default NULL,
  `connectinfo_stop` varchar(50) collate utf8_unicode_ci default NULL,
  `acctinputoctets` bigint(20) default NULL,
  `acctoutputoctets` bigint(20) default NULL,
  `calledstationid` varchar(50) collate utf8_unicode_ci NOT NULL default '',
  `callingstationid` varchar(50) collate utf8_unicode_ci NOT NULL default '',
  `acctterminatecause` varchar(32) collate utf8_unicode_ci NOT NULL default '',
  `servicetype` varchar(32) collate utf8_unicode_ci default NULL,
  `framedprotocol` varchar(32) collate utf8_unicode_ci default NULL,
  `framedipaddress` varchar(15) collate utf8_unicode_ci NOT NULL default '',
  `acctstartdelay` int(12) default NULL,
  `acctstopdelay` int(12) default NULL,
  `xascendsessionsvrkey` varchar(10) collate utf8_unicode_ci default NULL,
  PRIMARY KEY  (`radacctid`),
  KEY `username` (`username`),
  KEY `framedipaddress` (`framedipaddress`),
  KEY `acctsessionid` (`acctsessionid`),
  KEY `acctsessiontime` (`acctsessiontime`),
  KEY `acctuniqueid` (`acctuniqueid`),
  KEY `acctstarttime` (`acctstarttime`),
  KEY `acctstoptime` (`acctstoptime`),
  KEY `nasipaddress` (`nasipaddress`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `radacct`
--

LOCK TABLES `radacct` WRITE;
/*!40000 ALTER TABLE `radacct` DISABLE KEYS */;
/*!40000 ALTER TABLE `radacct` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `radcheck`
--

DROP TABLE IF EXISTS `radcheck`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `radcheck` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `username` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `attribute` varchar(32) collate utf8_unicode_ci NOT NULL default '',
  `op` char(2) collate utf8_unicode_ci NOT NULL default '==',
  `value` varchar(253) collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `username` (`username`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `radcheck`
--

LOCK TABLES `radcheck` WRITE;
/*!40000 ALTER TABLE `radcheck` DISABLE KEYS */;
/*!40000 ALTER TABLE `radcheck` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `radgroupcheck`
--

DROP TABLE IF EXISTS `radgroupcheck`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `radgroupcheck` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `groupname` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `attribute` varchar(32) collate utf8_unicode_ci NOT NULL default '',
  `op` char(2) collate utf8_unicode_ci NOT NULL default '==',
  `value` varchar(253) collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `groupname` (`groupname`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `radgroupcheck`
--

LOCK TABLES `radgroupcheck` WRITE;
/*!40000 ALTER TABLE `radgroupcheck` DISABLE KEYS */;
/*!40000 ALTER TABLE `radgroupcheck` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `radgroupreply`
--

DROP TABLE IF EXISTS `radgroupreply`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `radgroupreply` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `groupname` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `attribute` varchar(32) collate utf8_unicode_ci NOT NULL default '',
  `op` char(2) collate utf8_unicode_ci NOT NULL default '=',
  `value` varchar(253) collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `groupname` (`groupname`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `radgroupreply`
--

LOCK TABLES `radgroupreply` WRITE;
/*!40000 ALTER TABLE `radgroupreply` DISABLE KEYS */;
/*!40000 ALTER TABLE `radgroupreply` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `radpostauth`
--

DROP TABLE IF EXISTS `radpostauth`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `radpostauth` (
  `id` int(11) NOT NULL auto_increment,
  `username` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `reply` varchar(32) collate utf8_unicode_ci NOT NULL default '',
  `authdate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `radpostauth`
--

LOCK TABLES `radpostauth` WRITE;
/*!40000 ALTER TABLE `radpostauth` DISABLE KEYS */;
/*!40000 ALTER TABLE `radpostauth` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `radreply`
--

DROP TABLE IF EXISTS `radreply`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `radreply` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `username` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `attribute` varchar(32) collate utf8_unicode_ci NOT NULL default '',
  `op` char(2) collate utf8_unicode_ci NOT NULL default '=',
  `value` varchar(253) collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `username` (`username`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `radreply`
--

LOCK TABLES `radreply` WRITE;
/*!40000 ALTER TABLE `radreply` DISABLE KEYS */;
/*!40000 ALTER TABLE `radreply` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `radusergroup`
--

DROP TABLE IF EXISTS `radusergroup`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `radusergroup` (
  `username` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `groupname` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `priority` int(11) NOT NULL default '1',
  KEY `username` (`username`(32))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `radusergroup`
--

LOCK TABLES `radusergroup` WRITE;
/*!40000 ALTER TABLE `radusergroup` DISABLE KEYS */;
/*!40000 ALTER TABLE `radusergroup` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `totacct`
--

DROP TABLE IF EXISTS `totacct`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `totacct` (
  `TotAcctId` bigint(21) NOT NULL auto_increment,
  `UserName` varchar(64) collate utf8_unicode_ci NOT NULL default '',
  `AcctDate` date NOT NULL default '0000-00-00',
  `ConnNum` bigint(12) default NULL,
  `ConnTotDuration` bigint(12) default NULL,
  `ConnMaxDuration` bigint(12) default NULL,
  `ConnMinDuration` bigint(12) default NULL,
  `InputOctets` bigint(12) default NULL,
  `OutputOctets` bigint(12) default NULL,
  `NASIPAddress` varchar(15) collate utf8_unicode_ci default NULL,
  PRIMARY KEY  (`TotAcctId`),
  KEY `UserName` (`UserName`),
  KEY `AcctDate` (`AcctDate`),
  KEY `UserOnDate` (`UserName`,`AcctDate`),
  KEY `NASIPAddress` (`NASIPAddress`),
  KEY `NASIPAddressOnDate` (`AcctDate`,`NASIPAddress`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `totacct`
--

LOCK TABLES `totacct` WRITE;
/*!40000 ALTER TABLE `totacct` DISABLE KEYS */;
/*!40000 ALTER TABLE `totacct` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `userinfo`
--

DROP TABLE IF EXISTS `userinfo`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `userinfo` (
  `id` int(10) NOT NULL auto_increment,
  `UserName` varchar(64) collate utf8_unicode_ci default NULL,
  `Name` varchar(200) collate utf8_unicode_ci default NULL,
  `Mail` varchar(200) collate utf8_unicode_ci default NULL,
  `Department` varchar(200) collate utf8_unicode_ci default NULL,
  `WorkPhone` varchar(200) collate utf8_unicode_ci default NULL,
  `HomePhone` varchar(200) collate utf8_unicode_ci default NULL,
  `Mobile` varchar(200) collate utf8_unicode_ci default NULL,
  PRIMARY KEY  (`id`),
  KEY `UserName` (`UserName`),
  KEY `Department` (`Department`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `userinfo`
--

LOCK TABLES `userinfo` WRITE;
/*!40000 ALTER TABLE `userinfo` DISABLE KEYS */;
/*!40000 ALTER TABLE `userinfo` ENABLE KEYS */;
UNLOCK TABLES;
/*!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 */;

-- Dump completed on 2009-01-01 21:20:42