-- MySQL dump 10.9
--
-- Host: localhost    Database: mitsql
-- ------------------------------------------------------
-- Server version	4.1.12-nt

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

DROP TABLE IF EXISTS `db`;
CREATE TABLE `db` (
  `DatabaseId` int(10) unsigned NOT NULL auto_increment,
  `Name` varchar(200) NOT NULL default '',
  `nBytes` int(10) unsigned NOT NULL default '0',
  `dLastCheck` datetime NOT NULL default '0000-00-00 00:00:00',
  `dCreated` datetime NOT NULL default '0000-00-00 00:00:00',
  `bEnabled` tinyint(3) unsigned NOT NULL default '1',
  PRIMARY KEY  (`DatabaseId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `dbowner`
--

DROP TABLE IF EXISTS `dbowner`;
CREATE TABLE `dbowner` (
  `DatabaseId` int(10) unsigned NOT NULL default '0',
  `UserId` int(10) unsigned NOT NULL default '0',
  `GroupId` int(10) unsigned NOT NULL default '0',
  KEY `DatabaseId` (`DatabaseId`),
  KEY `UserId` (`UserId`),
  KEY `GroupId` (`GroupId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `dbquota`
--

DROP TABLE IF EXISTS `dbquota`;
CREATE TABLE `dbquota` (
  `DatabaseId` int(10) unsigned NOT NULL default '0',
  `nBytesSoft` int(10) unsigned NOT NULL default '0',
  `nBytesHard` int(10) unsigned NOT NULL default '0',
  `dCreated` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`DatabaseId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `group`
--

DROP TABLE IF EXISTS `group`;
CREATE TABLE `group` (
  `GroupId` int(10) unsigned NOT NULL auto_increment,
  `Username` varchar(200) NOT NULL default '',
  `Password` varchar(200) NOT NULL default '',
  `Name` text NOT NULL,
  `Email` text NOT NULL,
  `dCreated` datetime NOT NULL default '0000-00-00 00:00:00',
  `bEnabled` tinyint(3) unsigned NOT NULL default '1',
  PRIMARY KEY  (`GroupId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `groupquota`
--

DROP TABLE IF EXISTS `groupquota`;
CREATE TABLE `groupquota` (
  `GroupId` int(10) unsigned NOT NULL default '0',
  `nDatabases` int(10) unsigned NOT NULL default '0',
  `nBytesSoft` int(10) unsigned NOT NULL default '0',
  `nBytesHard` int(10) unsigned NOT NULL default '0',
  `dCreated` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`GroupId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `groupstat`
--

DROP TABLE IF EXISTS `groupstat`;
CREATE TABLE `groupstat` (
  `GroupId` int(10) unsigned NOT NULL default '0',
  `nDatabases` int(10) unsigned NOT NULL default '0',
  `nBytes` int(10) unsigned NOT NULL default '0',
  `dLastCheck` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`GroupId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `user`
--

DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `UserId` int(10) unsigned NOT NULL auto_increment,
  `Username` varchar(200) NOT NULL default '',
  `Password` varchar(200) NOT NULL default '',
  `Name` text NOT NULL,
  `Email` text NOT NULL,
  `UL` tinyint(3) unsigned NOT NULL default '1',
  `dCreated` datetime NOT NULL default '0000-00-00 00:00:00',
  `dSignup` datetime NOT NULL default '0000-00-00 00:00:00',
  `bEnabled` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`UserId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `usergroup`
--

DROP TABLE IF EXISTS `usergroup`;
CREATE TABLE `usergroup` (
  `UserId` int(10) unsigned NOT NULL default '0',
  `GroupId` int(10) unsigned NOT NULL default '0',
  KEY `UserId` (`UserId`),
  KEY `GroupId` (`GroupId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `userquota`
--

DROP TABLE IF EXISTS `userquota`;
CREATE TABLE `userquota` (
  `UserId` int(10) unsigned NOT NULL default '0',
  `nDatabases` int(10) unsigned NOT NULL default '0',
  `nBytesSoft` int(10) unsigned NOT NULL default '0',
  `nBytesHard` int(10) unsigned NOT NULL default '0',
  `dCreated` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`UserId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `userstat`
--

DROP TABLE IF EXISTS `userstat`;
CREATE TABLE `userstat` (
  `UserId` int(10) unsigned NOT NULL default '0',
  `nDatabases` int(10) unsigned NOT NULL default '0',
  `nBytes` int(10) unsigned NOT NULL default '0',
  `dLastCheck` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`UserId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

