-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 21, 2014 at 04:17 AM -- Server version: 5.5.24-log -- PHP Version: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!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: `apple_sample2` -- -- -------------------------------------------------------- -- -- Table structure for table `app` -- DROP TABLE IF EXISTS `app`; CREATE TABLE IF NOT EXISTS `app` ( `index` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(16) COLLATE utf8_unicode_ci NOT NULL, `domain` varchar(16) COLLATE utf8_unicode_ci NOT NULL, `arch_typ` int(11) NOT NULL, `status_typ` int(11) NOT NULL, PRIMARY KEY (`index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=23 ; -- -- Dumping data for table `app` -- INSERT INTO `app` (`index`, `name`, `domain`, `arch_typ`, `status_typ`) VALUES (1, 'Sample App 1', '123.321.213.312', 1, 1), (2, 'Sample App 2', '123.321.213.312', 2, 2), (3, 'Sample X', 'xxx.xxx.xxx.xxx', 2, 2), (16, 'Rodeo Roadkill', 'Hereandthere.com', 3, 2); -- -------------------------------------------------------- -- -- Table structure for table `arch_typ` -- DROP TABLE IF EXISTS `arch_typ`; CREATE TABLE IF NOT EXISTS `arch_typ` ( `index` int(11) NOT NULL AUTO_INCREMENT, `arch` varchar(16) COLLATE utf8_unicode_ci NOT NULL, KEY `index` (`index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `arch_typ` -- INSERT INTO `arch_typ` (`index`, `arch`) VALUES (1, 'LAMP'), (2, 'Node'), (3, 'other'); -- -------------------------------------------------------- -- -- Table structure for table `deployment` -- DROP TABLE IF EXISTS `deployment`; CREATE TABLE IF NOT EXISTS `deployment` ( `index` int(11) NOT NULL AUTO_INCREMENT, `app` int(11) NOT NULL, `devserver` int(11) NOT NULL DEFAULT '0', `prodserver` int(11) NOT NULL DEFAULT '0', `server` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`index`), KEY `index` (`index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=102 ; -- -- Dumping data for table `deployment` -- INSERT INTO `deployment` (`index`, `app`, `devserver`, `prodserver`, `server`) VALUES (1, 1, 13, 2, 2), (2, 1, 4, 1, 4), (3, 2, 4, 2, 4), (4, 2, 3, 1, 3), (13, 16, 3, 1, 13); -- -------------------------------------------------------- -- -- Table structure for table `os_typ` -- DROP TABLE IF EXISTS `os_typ`; CREATE TABLE IF NOT EXISTS `os_typ` ( `index` int(11) NOT NULL AUTO_INCREMENT, `os` varchar(16) COLLATE utf8_unicode_ci NOT NULL, KEY `index` (`index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=14 ; -- -- Dumping data for table `os_typ` -- INSERT INTO `os_typ` (`index`, `os`) VALUES (1, 'OS X'), (2, 'BSD'), (3, 'RHEL'), (13, 'Thirteen'); -- -------------------------------------------------------- -- -- Table structure for table `realm_typ` -- DROP TABLE IF EXISTS `realm_typ`; CREATE TABLE IF NOT EXISTS `realm_typ` ( `index` int(11) NOT NULL AUTO_INCREMENT, `realm` varchar(4) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`index`), KEY `index` (`index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `realm_typ` -- INSERT INTO `realm_typ` (`index`, `realm`) VALUES (1, 'dev'), (2, 'prod'); -- -------------------------------------------------------- -- -- Table structure for table `server` -- DROP TABLE IF EXISTS `server`; CREATE TABLE IF NOT EXISTS `server` ( `index` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(16) COLLATE utf8_unicode_ci NOT NULL, `realm_typ` varchar(4) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'prod', `type` varchar(16) COLLATE utf8_unicode_ci NOT NULL, `os_typ` int(11) NOT NULL, PRIMARY KEY (`index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=23 ; -- -- Dumping data for table `server` -- INSERT INTO `server` (`index`, `name`, `realm_typ`, `type`, `os_typ`) VALUES (1, 'Prod 1', '2', 'Xander', 2), (2, 'Prod 2', '2', 'Xander', 2), (3, 'Dev 1', '1', 'Willow', 3), (4, 'Dev 2', '1', 'Willow', 3), (13, 'Dev 13', '1', 'Buffy', 13); -- -------------------------------------------------------- -- -- Table structure for table `status_typ` -- DROP TABLE IF EXISTS `status_typ`; CREATE TABLE IF NOT EXISTS `status_typ` ( `index` int(11) NOT NULL AUTO_INCREMENT, `status` varchar(4) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`index`), KEY `index` (`index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1000 ; -- -- Dumping data for table `status_typ` -- INSERT INTO `status_typ` (`index`, `status`) VALUES (1, 'dev'), (2, 'prod'), (999, '---'); /*!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 */;