-- phpMyAdmin SQL Dump
-- version 3.3.2deb1ubuntu1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 24, 2018 at 08:04 PM
-- Server version: 5.1.63
-- PHP Version: 5.3.10-1~lucid+2uwsgi2

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


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

--
-- Database: `metro_global_status`
--

-- --------------------------------------------------------

--
-- Table structure for table `icons`
--

CREATE TABLE IF NOT EXISTS `icons` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `submitter` int(11) NOT NULL,
  `date_submitted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `delete` tinyint(4) NOT NULL,
  `edit` tinyint(4) NOT NULL DEFAULT '1',
  `icon` tinyint(4) NOT NULL,
  `action_name` varchar(255) NOT NULL,
  `post` varchar(255) NOT NULL DEFAULT 'change_status',
  `hide` tinyint(4) NOT NULL,
  `ordering` tinyint(4) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `icons`
--

INSERT INTO `icons` (`id`, `name`, `submitter`, `date_submitted`, `active`, `delete`, `edit`, `icon`, `action_name`, `post`, `hide`, `ordering`, `status`) VALUES
(1, 'Active', 1, '2009-10-08 02:22:15', 1, 0, 1, 5, 'Restore', 'change_status', 0, 1, 1),
(2, 'Inactive', 1, '2009-10-08 02:40:06', 0, 0, 1, 7, 'Deactive', 'change_status', 0, 2, 1),
(3, 'Deleted', 1, '2010-07-29 00:58:55', 0, 0, 1, 16, 'Delete', 'change_status', 0, 3, 1);

-- --------------------------------------------------------

--
-- Table structure for table `icons_con`
--

CREATE TABLE IF NOT EXISTS `icons_con` (
  `id` int(11) unsigned NOT NULL,
  `con_id` int(11) unsigned NOT NULL,
  PRIMARY KEY (`id`,`con_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `icons_con`
--

INSERT INTO `icons_con` (`id`, `con_id`) VALUES
(1, 2),
(1, 3),
(2, 1),
(2, 3),
(3, 1);

-- --------------------------------------------------------

--
-- Table structure for table `modules`
--

CREATE TABLE IF NOT EXISTS `modules` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `submitter` int(11) NOT NULL,
  `date_submitted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `delete` tinyint(4) NOT NULL,
  `edit` tinyint(4) NOT NULL DEFAULT '1',
  `icon` tinyint(4) NOT NULL,
  `action_name` varchar(255) NOT NULL,
  `post` varchar(255) NOT NULL DEFAULT 'change_status',
  `hide` tinyint(4) NOT NULL,
  `ordering` tinyint(4) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `submitter` (`submitter`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` (`id`, `name`, `submitter`, `date_submitted`, `active`, `delete`, `edit`, `icon`, `action_name`, `post`, `hide`, `ordering`, `status`) VALUES
(1, 'Active', 1, '2012-01-06 16:37:14', 1, 0, 1, 5, 'Reactivate', 'change_status', 0, 1, 1),
(2, 'Suspended', 1, '2009-11-07 04:36:09', 0, 0, 1, 7, 'Suspend', 'change_status', 0, 2, 1),
(3, 'Deleted', 1, '2010-11-21 04:44:00', 0, 0, 1, 16, 'Delete', 'change_status', 0, 3, 1);

-- --------------------------------------------------------

--
-- Table structure for table `modules_con`
--

CREATE TABLE IF NOT EXISTS `modules_con` (
  `id` int(11) unsigned NOT NULL,
  `con_id` int(11) unsigned NOT NULL,
  PRIMARY KEY (`id`,`con_id`),
  KEY `con_id` (`con_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `modules_con`
--

INSERT INTO `modules_con` (`id`, `con_id`) VALUES
(2, 1),
(3, 1),
(1, 2),
(1, 3),
(2, 3);

-- --------------------------------------------------------

--
-- Table structure for table `modules_sub`
--

CREATE TABLE IF NOT EXISTS `modules_sub` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `submitter` int(11) NOT NULL,
  `date_submitted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `delete` tinyint(4) NOT NULL,
  `edit` tinyint(4) NOT NULL DEFAULT '1',
  `icon` tinyint(4) NOT NULL,
  `action_name` varchar(255) NOT NULL,
  `post` varchar(255) NOT NULL DEFAULT 'change_status',
  `hide` tinyint(4) NOT NULL,
  `ordering` tinyint(4) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `submitter` (`submitter`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `modules_sub`
--

INSERT INTO `modules_sub` (`id`, `name`, `submitter`, `date_submitted`, `active`, `delete`, `edit`, `icon`, `action_name`, `post`, `hide`, `ordering`, `status`) VALUES
(1, 'Active', 1, '2009-10-08 07:22:56', 1, 0, 1, 5, 'Reactivate', 'change_status', 0, 1, 1),
(2, 'Suspended', 1, '2009-11-07 04:36:09', 0, 0, 1, 7, 'Suspend', 'change_status', 0, 2, 1),
(3, 'Deleted', 1, '2010-11-21 04:44:00', 0, 0, 1, 16, 'Delete', 'change_status', 0, 3, 1);

-- --------------------------------------------------------

--
-- Table structure for table `modules_sub_con`
--

CREATE TABLE IF NOT EXISTS `modules_sub_con` (
  `id` int(11) unsigned NOT NULL,
  `con_id` int(11) unsigned NOT NULL,
  PRIMARY KEY (`id`,`con_id`),
  KEY `con_id` (`con_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `modules_sub_con`
--

INSERT INTO `modules_sub_con` (`id`, `con_id`) VALUES
(2, 1),
(3, 1),
(1, 2),
(1, 3),
(2, 3);

-- --------------------------------------------------------

--
-- Table structure for table `priorities`
--

CREATE TABLE IF NOT EXISTS `priorities` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `submitter` int(11) NOT NULL,
  `date_submitted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `delete` tinyint(4) NOT NULL,
  `edit` tinyint(4) NOT NULL DEFAULT '1',
  `icon` tinyint(4) NOT NULL,
  `action_name` varchar(255) NOT NULL,
  `post` varchar(255) NOT NULL DEFAULT 'change_status',
  `hide` tinyint(4) NOT NULL,
  `ordering` tinyint(4) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `priorities`
--

INSERT INTO `priorities` (`id`, `name`, `submitter`, `date_submitted`, `active`, `delete`, `edit`, `icon`, `action_name`, `post`, `hide`, `ordering`, `status`) VALUES
(1, 'Current', 1, '2009-11-26 09:57:46', 0, 0, 1, 5, 'Re-instate', 'change_status', 0, 1, 1),
(2, 'Deleted', 1, '2010-11-23 20:37:56', 0, 0, 1, 16, 'Delete', 'delete', 0, 2, 1);

-- --------------------------------------------------------

--
-- Table structure for table `priorities_con`
--

CREATE TABLE IF NOT EXISTS `priorities_con` (
  `id` int(11) unsigned NOT NULL,
  `con_id` int(11) unsigned NOT NULL,
  PRIMARY KEY (`id`,`con_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `priorities_con`
--

INSERT INTO `priorities_con` (`id`, `con_id`) VALUES
(1, 2),
(5, 1),
(5, 2);
