You are on page 1of 11

------

MySQL dump 10.13 Distrib 5.5.21, for Linux (i686) Host: localhost Database: AppHotelBook -----------------------------------------------------Server version 5.5.21 SET SET SET SET SET SET SET SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; NAMES utf8 */; @OLD_TIME_ZONE=@@TIME_ZONE */; TIME_ZONE='+00:00' */; @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0

/*!40101 /*!40101 /*!40101 /*!40101 /*!40103 /*!40103 /*!40014 /*!40014 */; /*!40101 /*!40111

SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--- Table structure for table `app_category` -DROP TABLE IF EXISTS `app_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_category` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `category_name` varchar(200) DEFAULT NULL, `description` text, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_category` -LOCK TABLES `app_category` WRITE; /*!40000 ALTER TABLE `app_category` DISABLE KEYS */; /*!40000 ALTER TABLE `app_category` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_city` -DROP TABLE IF EXISTS `app_city`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_city` ( `city_id` int(11) NOT NULL AUTO_INCREMENT, `country_code` char(4) NOT NULL, `province_id` int(11) NOT NULL, `city_name` varchar(45) NOT NULL, PRIMARY KEY (`city_id`), KEY `fk_city_country1` (`country_code`), KEY `fk_city_province1` (`province_id`), CONSTRAINT `fk_city_country1` FOREIGN KEY (`country_code`) REFERENCES `app_cou ntry` (`code`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_city` -LOCK TABLES `app_city` WRITE; /*!40000 ALTER TABLE `app_city` DISABLE KEYS */; /*!40000 ALTER TABLE `app_city` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_contact` -DROP TABLE IF EXISTS `app_contact`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_contact` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `last_name` varchar(255) DEFAULT NULL, `contact_type_id` int(11) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL, PRIMARY KEY (`ID`), KEY `fk_contacts_contact_types1` (`contact_type_id`), CONSTRAINT `fk_contacts_contact_types1` FOREIGN KEY (`contact_type_id`) REFERE NCES `app_contact_type` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_contact` -LOCK TABLES `app_contact` WRITE; /*!40000 ALTER TABLE `app_contact` DISABLE KEYS */; /*!40000 ALTER TABLE `app_contact` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_contact_type` -DROP TABLE IF EXISTS `app_contact_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_contact_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_contact_type` -LOCK TABLES `app_contact_type` WRITE;

/*!40000 ALTER TABLE `app_contact_type` DISABLE KEYS */; /*!40000 ALTER TABLE `app_contact_type` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_continent` -DROP TABLE IF EXISTS `app_continent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_continent` ( `code` char(4) NOT NULL, `continent_name` varchar(50) NOT NULL, PRIMARY KEY (`code`,`continent_name`), UNIQUE KEY `continent_name` (`continent_name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_continent` -LOCK TABLES `app_continent` WRITE; /*!40000 ALTER TABLE `app_continent` DISABLE KEYS */; INSERT INTO `app_continent` VALUES ('AF','Africa'),('AN','Antartica'),('AS','Asi a'),('CA','Central America'),('EU','Europe'),('NA','North America'),('OC','Ocean ia'),('SA','South America'); /*!40000 ALTER TABLE `app_continent` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_country` -DROP TABLE IF EXISTS `app_country`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_country` ( `name` varchar(50) NOT NULL, `code` char(4) NOT NULL, `continent_code` char(2) DEFAULT NULL, PRIMARY KEY (`code`), UNIQUE KEY `name` (`name`), KEY `continent_code` (`continent_code`), CONSTRAINT `app_country_ibfk_1` FOREIGN KEY (`continent_code`) REFERENCES `app _continent` (`code`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_country` -LOCK TABLES `app_country` WRITE; /*!40000 ALTER TABLE `app_country` DISABLE KEYS */; INSERT INTO `app_country` VALUES ('Andorra','AD','EU'),('United Arab Emirates',' AE','AS'),('Afghanistan','AF','AS'),('Antigua and Barbuda','AG','NA'),('Anguilla ','AI','NA'),('Albania','AL','EU'),('Armenia','AM','AS'),('Angola','AO','AF'),(' Argentina','AR','SA'),('American Samoa','AS','OC'),('Austria','AT','EU'),('Austr

alia','AU','OC'),('Aruba','AW','NA'),(' land Islands','AX','EU'),('Azerbaijan','AZ' ,'AS'),('Bosnia and Herzegovina','BA','EU'),('Barbados','BB','NA'),('Bangladesh' ,'BD','AS'),('Belgium','BE','EU'),('Burkina Faso','BF','AF'),('Bulgaria','BG','E U'),('Bahrain','BH','AS'),('Burundi','BI','AF'),('Benin','BJ','AF'),('Bermuda',' BM','NA'),('Brunei Darussalam','BN','AS'),('Bolivia','BO','SA'),('Brazil','BR',' SA'),('Bahamas','BS','NA'),('Bhutan','BT','AS'),('Botswana','BW','AF'),('Belarus ','BY','EU'),('Belize','BZ','NA'),('Canada','CA','NA'),('Cocos (Keeling) Islands ','CC','AS'),('Congo Democratic','CD','AF'),('Central African Republic','CF','AF '),('Congo','CG','AF'),('Switzerland','CH','EU'),('Cote d\'Ivoire','CI','AF'),(' Cook Islands','CK','OC'),('Chile','CL','SA'),('Cameroon','CM','AF'),('China','CN ','AS'),('Colombia','CO','SA'),('Costa Rica','CR','NA'),('Cuba','CU','NA'),('Cap e Verde','CV','AF'),('Curaao','CW','NA'),('Christmas Island','CX','AS'),('Cyprus', 'CY','AS'),('Czech Republic','CZ','EU'),('Germany','DE','EU'),('Djibouti','DJ',' AF'),('Denmark','DK','EU'),('Dominica','DM','NA'),('Dominican Republic','DO','NA '),('Algeria','DZ','AF'),('Ecuador','EC','SA'),('Estonia','EE','EU'),('Egypt','E G','AF'),('Western Sahara','EH','AF'),('Eritrea','ER','AF'),('Spain','ES','EU'), ('Ethiopia','ET','AF'),('Finland','FI','EU'),('Fiji','FJ','OC'),('Falkland Islan ds (Malvinas)','FK','SA'),('Micronesia','FM','OC'),('Faroe Islands','FO','EU'),( 'France','FR','EU'),('Gabon','GA','AF'),('United Kingdom of Great Britain & Nort hern Ireland','GB','EU'),('Grenada','GD','NA'),('Georgia','GE','AS'),('French Gu iana','GF','SA'),('Ghana','GH','AF'),('Gibraltar','GI','EU'),('Greenland','GL',' NA'),('Gambia','GM','AF'),('Guinea','GN','AF'),('Guadeloupe','GP','NA'),('Equato rial Guinea','GQ','AF'),('Greece','GR','EU'),('South Georgia and the South Sandw ich Islands','GS','AN'),('Guatemala','GT','NA'),('Guam','GU','OC'),('Guinea-Biss au','GW','AF'),('Guyana','GY','SA'),('Hong Kong','HK','AS'),('Heard Island and M cDonald Islands','HM','AN'),('Honduras','HN','NA'),('Croatia','HR','EU'),('Haiti ','HT','NA'),('Hungary','HU','EU'),('Indonesia','ID','AS'),('Ireland','IE','EU') ,('Israel','IL','AS'),('India','IN','AS'),('British Indian Ocean Territory (Chag os Archipelago','IO','AS'),('Iraq','IQ','AS'),('Iran','IR','AS'),('Iceland','IS' ,'EU'),('Italy','IT','EU'),('Jersey','JE','EU'),('Jamaica','JM','NA'),('Jordan', 'JO','AS'),('Japan','JP','AS'),('Kenya','KE','AF'),('Kyrgyz Republic','KG','AS') ,('Cambodia','KH','AS'),('Kiribati','KI','OC'),('Comoros','KM','AF'),('Saint Kit ts and Nevis','KN','NA'),('Korea Democratic ','KP','AS'),('North Korea','KR','AS '),('Kuwait','KW','AS'),('Cayman Islands','KY','NA'),('Kazakhstan','KZ','AS'),(' Lao People\'s Democratic Republic','LA','AS'),('Lebanon','LB','AS'),('Saint Luci a','LC','NA'),('Liechtenstein','LI','EU'),('Sri Lanka','LK','AS'),('Liberia','LR ','AF'),('Lesotho','LS','AF'),('Lithuania','LT','EU'),('Luxembourg','LU','EU'),( 'Latvia','LV','EU'),('Libya','LY','AF'),('Morocco','MA','AF'),('Monaco','MC','EU '),('Moldova','MD','EU'),('Montenegro','ME','EU'),('Saint Martin','MF','NA'),('M adagascar','MG','AF'),('Marshall Islands','MH','OC'),('Macedonia','MK','EU'),('M ali','ML','AF'),('Myanmar','MM','AS'),('Mongolia','MN','AS'),('Macao','MO','AS') ,('Northern Mariana Islands','MP','OC'),('Martinique','MQ','NA'),('Mauritania',' MR','AF'),('Montserrat','MS','NA'),('Malta','MT','EU'),('Mauritius','MU','AF'),( 'Maldives','MV','AS'),('Malawi','MW','AF'),('Mexico','MX','NA'),('Malaysia','MY' ,'AS'),('Mozambique','MZ','AF'),('Namibia','NA','AF'),('New Caledonia','NC','OC' ),('Niger','NE','AF'),('Norfolk Island','NF','OC'),('Nigeria','NG','AF'),('Nicar agua','NI','NA'),('Netherlands','NL','EU'),('Norway','NO','EU'),('Nepal','NP','A S'),('Nauru','NR','OC'),('Niue','NU','OC'),('New Zealand','NZ','OC'),('Oman','OM ','AS'),('Panama','PA','NA'),('Peru','PE','SA'),('French Polynesia','PF','OC'),( 'Papua New Guinea','PG','OC'),('Philippines','PH','AS'),('Pakistan','PK','AS'),( 'Poland','PL','EU'),('Saint Pierre and Miquelon','PM','NA'),('Pitcairn Islands', 'PN','OC'),('Puerto Rico','PR','NA'),('Palestinian Territory','PS','AS'),('Portu gal','PT','EU'),('Palau','PW','OC'),('Paraguay','PY','SA'),('Qatar','QA','AS'),( 'Runion','RE','AF'),('Romania','RO','EU'),('Russian Federation','RU','EU'),('Rwand a','RW','AF'),('Saudi Arabia','SA','AS'),('Solomon Islands','SB','OC'),('Seychel les','SC','AF'),('Sudan','SD','AF'),('Sweden','SE','EU'),('Singapore','SG','AS') ,('Saint Helena, Ascension and Tristan da Cunha','SH','AF'),('Slovenia','SI','EU '),('Svalbard & Jan Mayen Islands','SJ','EU'),('Slovakia (Slovak Republic)','SK' ,'EU'),('Sierra Leone','SL','AF'),('San Marino','SM','EU'),('Senegal','SN','AF') ,('Somalia','SO','AF'),('Suriname','SR','SA'),('Sao Tome and Principe','ST','AF'

),('El Salvador','SV','NA'),('Syrian Arab Republic','SY','AS'),('Swaziland','SZ' ,'AF'),('Turks and Caicos Islands','TC','NA'),('Chad','TD','AF'),('French Southe rn Territories','TF','AN'),('Togo','TG','AF'),('Thailand','TH','AS'),('Tajikista n','TJ','AS'),('Tokelau','TK','OC'),('Timor-Leste','TL','AS'),('Turkmenistan','T M','AS'),('Tunisia','TN','AF'),('Tonga','TO','OC'),('Turkey','TR','AS'),('Trinid ad and Tobago','TT','NA'),('Tuvalu','TV','OC'),('Taiwan','TW','AS'),('Tanzania', 'TZ','AF'),('Ukraine','UA','EU'),('Uganda','UG','AF'),('United States Minor Outl ying Islands','UM','OC'),('United States of America','US','NA'),('Uruguay','UY', 'SA'),('Uzbekistan','UZ','AS'),('Holy See (Vatican City State)','VA','EU'),('Sai nt Vincent and the Grenadines','VC','NA'),('Venezuela','VE','SA'),('British Virg in Islands','VG','NA'),('United States Virgin Islands','VI','NA'),('Vietnam','VN ','AS'),('Vanuatu','VU','OC'),('Wallis and Futuna','WF','OC'),('Samoa','WS','OC' ),('Yemen','YE','AS'),('Mayotte','YT','AF'),('South Africa','ZA','AF'),('Zambia' ,'ZM','AF'),('Zimbabwe','ZW','AF'); /*!40000 ALTER TABLE `app_country` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_facility` -DROP TABLE IF EXISTS `app_facility`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_facility` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `amenity_name` varchar(255) DEFAULT NULL, `applicable_in_hotel` tinyint(4) DEFAULT NULL, `applicable_in_room` tinyint(4) DEFAULT NULL, `active` tinyint(4) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_facility` -LOCK TABLES `app_facility` WRITE; /*!40000 ALTER TABLE `app_facility` DISABLE KEYS */; /*!40000 ALTER TABLE `app_facility` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_geographic_locale` -DROP TABLE IF EXISTS `app_geographic_locale`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_geographic_locale` ( `source_code` char(4) DEFAULT NULL, `locale_name` varchar(50) DEFAULT NULL, `language_prefix` char(2) DEFAULT NULL, KEY `source_code` (`source_code`), KEY `language_prefix` (`language_prefix`), CONSTRAINT `app_geographic_locale_ibfk_1` FOREIGN KEY (`source_code`) REFERENC ES `app_country` (`code`), CONSTRAINT `app_geographic_locale_ibfk_2` FOREIGN KEY (`source_code`) REFERENC ES `app_continent` (`code`),

CONSTRAINT `app_geographic_locale_ibfk_3` FOREIGN KEY (`language_prefix`) REFE RENCES `app_language` (`prefix`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_geographic_locale` -LOCK TABLES `app_geographic_locale` WRITE; /*!40000 ALTER TABLE `app_geographic_locale` DISABLE KEYS */; /*!40000 ALTER TABLE `app_geographic_locale` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_hotel` -DROP TABLE IF EXISTS `app_hotel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_hotel` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `hotel_name` varchar(255) DEFAULT NULL, `address` varchar(255) NOT NULL, `country_code` char(4) NOT NULL, `province_id` int(11) NOT NULL, `city_id` int(11) NOT NULL, `contact_id` int(11) NOT NULL, `postal_code` varchar(10) NOT NULL, `rooms_number` int(11) NOT NULL, `phone` varchar(20) NOT NULL, `fax` varchar(20) DEFAULT NULL, `category_id` int(11) NOT NULL, `start_rating` int(11) NOT NULL, `is_chain_part` tinyint(4) DEFAULT NULL, `chain_hotel_id` int(11) DEFAULT NULL, `website` varchar(200) DEFAULT NULL, `user_id` int(11) NOT NULL, `creation_date` datetime NOT NULL, `last_update` datetime NOT NULL, `active` tinyint(4) NOT NULL DEFAULT '0', `map` text, `picture_group` int(11) DEFAULT NULL, PRIMARY KEY (`ID`), KEY `fk_hotels_categories1` (`category_id`), KEY `fk_hotels_contacts1` (`contact_id`), CONSTRAINT `fk_hotels_categories1` FOREIGN KEY (`category_id`) REFERENCES `app _category` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_hotels_contacts1` FOREIGN KEY (`contact_id`) REFERENCES `app_co ntact` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_hotel` -LOCK TABLES `app_hotel` WRITE; /*!40000 ALTER TABLE `app_hotel` DISABLE KEYS */;

/*!40000 ALTER TABLE `app_hotel` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_hotel_room` -DROP TABLE IF EXISTS `app_hotel_room`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_hotel_room` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `hotel_id` int(11) DEFAULT NULL, `room_id` int(11) DEFAULT NULL, `last_update` datetime DEFAULT NULL, PRIMARY KEY (`ID`), KEY `fk_hotel_rooms_hotels` (`hotel_id`), KEY `fk_hotel_rooms_rooms1` (`room_id`), CONSTRAINT `fk_hotel_rooms_hotels` FOREIGN KEY (`hotel_id`) REFERENCES `app_ho tel` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_hotel_rooms_rooms1` FOREIGN KEY (`room_id`) REFERENCES `app_roo m` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_hotel_room` -LOCK TABLES `app_hotel_room` WRITE; /*!40000 ALTER TABLE `app_hotel_room` DISABLE KEYS */; /*!40000 ALTER TABLE `app_hotel_room` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_language` -DROP TABLE IF EXISTS `app_language`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_language` ( `prefix` char(2) NOT NULL, `language_name` varchar(50) NOT NULL, PRIMARY KEY (`prefix`,`language_name`), UNIQUE KEY `language_name` (`language_name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_language` -LOCK TABLES `app_language` WRITE; /*!40000 ALTER TABLE `app_language` DISABLE KEYS */; INSERT INTO `app_language` VALUES ('de','Deutsch'),('en','English'),('es','Espaol' ),('fr','Franais'),('it','Italiano'); /*!40000 ALTER TABLE `app_language` ENABLE KEYS */; UNLOCK TABLES;

--- Table structure for table `app_province` -DROP TABLE IF EXISTS `app_province`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_province` ( `province_id` int(11) NOT NULL, `country_code` char(4) NOT NULL, `province_name` varchar(45) NOT NULL, PRIMARY KEY (`province_id`), KEY `fk_province_country1` (`country_code`), CONSTRAINT `fk_province_country1` FOREIGN KEY (`country_code`) REFERENCES `app _country` (`code`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_province` -LOCK TABLES `app_province` WRITE; /*!40000 ALTER TABLE `app_province` DISABLE KEYS */; /*!40000 ALTER TABLE `app_province` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_resource` -DROP TABLE IF EXISTS `app_resource`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_resource` ( `group_id` int(11) DEFAULT NULL, `source_id` int(11) DEFAULT NULL, `source_type` char(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_resource` -LOCK TABLES `app_resource` WRITE; /*!40000 ALTER TABLE `app_resource` DISABLE KEYS */; /*!40000 ALTER TABLE `app_resource` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_resource_item` -DROP TABLE IF EXISTS `app_resource_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_resource_item` ( `group_id` int(11) DEFAULT NULL, `item` varchar(400) DEFAULT NULL,

`item_type` set('PIC','FL') DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_resource_item` -LOCK TABLES `app_resource_item` WRITE; /*!40000 ALTER TABLE `app_resource_item` DISABLE KEYS */; /*!40000 ALTER TABLE `app_resource_item` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_room` -DROP TABLE IF EXISTS `app_room`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_room` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `room_name` varchar(200) NOT NULL, `capacity` int(11) NOT NULL, `description` text NOT NULL, `pictures_group` int(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_room` -LOCK TABLES `app_room` WRITE; /*!40000 ALTER TABLE `app_room` DISABLE KEYS */; /*!40000 ALTER TABLE `app_room` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_room_facilitie` -DROP TABLE IF EXISTS `app_room_facilitie`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_room_facilitie` ( `room_id` int(11) DEFAULT NULL, `amenity_id` int(11) DEFAULT NULL, `last_updated` datetime DEFAULT NULL, KEY `fk_room_facilities_hotel_rooms1` (`room_id`), KEY `fk_room_facilities_facilities1` (`amenity_id`), CONSTRAINT `fk_room_facilities_facilities1` FOREIGN KEY (`amenity_id`) REFEREN CES `app_facility` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_room_facilities_hotel_rooms1` FOREIGN KEY (`room_id`) REFERENCE S `app_hotel_room` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --

-- Dumping data for table `app_room_facilitie` -LOCK TABLES `app_room_facilitie` WRITE; /*!40000 ALTER TABLE `app_room_facilitie` DISABLE KEYS */; /*!40000 ALTER TABLE `app_room_facilitie` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_room_price` -DROP TABLE IF EXISTS `app_room_price`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_room_price` ( `room_id` int(11) DEFAULT NULL, `price` decimal(10,0) DEFAULT NULL, `discount_aplicable` set('0','1') DEFAULT '0', `discount_percent` tinyint(4) DEFAULT '0', `include_taxes` set('0','1') DEFAULT '1', `rate_tax` int(11) DEFAULT '0', KEY `fk_room_prices_rooms1` (`room_id`), CONSTRAINT `fk_room_prices_rooms1` FOREIGN KEY (`room_id`) REFERENCES `app_roo m` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_room_price` -LOCK TABLES `app_room_price` WRITE; /*!40000 ALTER TABLE `app_room_price` DISABLE KEYS */; /*!40000 ALTER TABLE `app_room_price` ENABLE KEYS */; UNLOCK TABLES; --- Table structure for table `app_user` -DROP TABLE IF EXISTS `app_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `app_user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `last_login` datetime NOT NULL, `access_level` int(11) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --- Dumping data for table `app_user` -LOCK TABLES `app_user` WRITE; /*!40000 ALTER TABLE `app_user` DISABLE KEYS */;

/*!40000 ALTER TABLE `app_user` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 /*!40014 /*!40014 /*!40101 /*!40101 /*!40101 /*!40111 SET SET SET SET SET SET SET SQL_MODE=@OLD_SQL_MODE */; FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2012-04-05 11:12:31

You might also like