-- MySQL dump 10.10
--
-- Host: localhost    Database: mirrors_db
-- ------------------------------------------------------
-- Server version	5.0.18-Debian_8-log

--
-- Table structure for table `Commands`
--

DROP TABLE IF EXISTS `Commands`;
CREATE TABLE `Commands` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `Path` varchar(254) NOT NULL default '',
  `Args` varchar(254) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM;

--
-- Table structure for table `Excludes`
--

DROP TABLE IF EXISTS `Excludes`;
CREATE TABLE `Excludes` (
  `id` int(11) NOT NULL auto_increment,
  `MirrorID` int(11) NOT NULL default '0',
  `CommandID` int(11) NOT NULL default '0',
  `ExList` mediumtext NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM;

--
-- Table structure for table `Mirrors`
--

DROP TABLE IF EXISTS `Mirrors`;
CREATE TABLE `Mirrors` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `Name` varchar(64) NOT NULL default '',
  `LogoURL` varchar(128) default NULL,
  `Description` longtext,
  `HomeSite` varchar(128) NOT NULL default '',
  `LocalDir` varchar(254) NOT NULL default '',
  `Size` bigint(20) NOT NULL default '0',
  `SyncMethod` varchar(32) NOT NULL default '',
  `CommandID` int(11) NOT NULL default '0',
  `LastErrorCode` int(11) NOT NULL default '0',
  `Active` tinyint(4) NOT NULL default '0',
  `InProgress` tinyint(4) NOT NULL default '0',
  `SyncSource` varchar(127) NOT NULL default '',
  `SyncSourceUser` varchar(127) default '',
  `SyncSourcePass` varchar(127) default '',
  `SyncSourceModule` varchar(127) NOT NULL default '',
  `Contact` varchar(127) NOT NULL default '',
  `LastUpdated` int(11) NOT NULL default '0',
  `LastUpdateDuration` int(11) NOT NULL default '0',
  `LastUpdateSpeed` int(11) NOT NULL default '0',
  `LastUpdateFilesNo` int(11) NOT NULL default '0',
  `LastUpdateBytes` int(11) NOT NULL default '0',
  `LocalURL` varchar(127) NOT NULL default '',
  `StdOut` longblob,
  `StdErr` longblob,
  PRIMARY KEY  (`id`),
  KEY `idx_by_name` (`Name`),
  KEY `idx_by_size` (`Size`),
  KEY `idx_by_sync_method` (`SyncMethod`),
  KEY `idx_by_f_active` (`Active`),
  KEY `idx_by_f_syncing` (`InProgress`),
  KEY `idx_by_updated` (`LastUpdated`)
) ENGINE=MyISAM;
