Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MySQL dump 10.11
- --
- -- Host: mysql-rw Database: utils
- -- ------------------------------------------------------
- -- Server version 5.0.51a-3ubuntu5.8-log
- /*!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 */;
- /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
- /*!40103 SET TIME_ZONE='+00:00' */;
- /*!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 `landlord`
- --
- DROP TABLE IF EXISTS `landlord`;
- SET @saved_cs_client = @@character_set_client;
- SET character_set_client = utf8;
- CREATE TABLE `landlord` (
- `id` int(11) NOT NULL auto_increment,
- `name` varchar(255) collate utf8_unicode_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- SET character_set_client = @saved_cs_client;
- --
- -- Dumping data for table `landlord`
- --
- LOCK TABLES `landlord` WRITE;
- /*!40000 ALTER TABLE `landlord` DISABLE KEYS */;
- INSERT INTO `landlord` (`id`, `name`) VALUES (2,'RealEstates Inc'),(1,'Best Homes Ltd.');
- /*!40000 ALTER TABLE `landlord` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `property`
- --
- DROP TABLE IF EXISTS `property`;
- SET @saved_cs_client = @@character_set_client;
- SET character_set_client = utf8;
- CREATE TABLE `property` (
- `id` int(11) NOT NULL,
- `landlord_id` int(11) NOT NULL,
- `address` varchar(255) collate utf8_unicode_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- SET character_set_client = @saved_cs_client;
- --
- -- Dumping data for table `property`
- --
- LOCK TABLES `property` WRITE;
- /*!40000 ALTER TABLE `property` DISABLE KEYS */;
- INSERT INTO `property` (`id`, `landlord_id`, `address`) VALUES (3,2,'Queen Stree 3'),(2,1,'Green Grove 2'),(1,1,'King Street 1');
- /*!40000 ALTER TABLE `property` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `tenant`
- --
- DROP TABLE IF EXISTS `tenant`;
- SET @saved_cs_client = @@character_set_client;
- SET character_set_client = utf8;
- CREATE TABLE `tenant` (
- `id` int(11) NOT NULL auto_increment,
- `name` varchar(255) collate utf8_unicode_ci NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- SET character_set_client = @saved_cs_client;
- --
- -- Dumping data for table `tenant`
- --
- LOCK TABLES `tenant` WRITE;
- /*!40000 ALTER TABLE `tenant` DISABLE KEYS */;
- INSERT INTO `tenant` (`id`, `name`) VALUES (2,'Anna Jones'),(1,'John Smith');
- /*!40000 ALTER TABLE `tenant` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `tenant_has_property`
- --
- DROP TABLE IF EXISTS `tenant_has_property`;
- SET @saved_cs_client = @@character_set_client;
- SET character_set_client = utf8;
- CREATE TABLE `tenant_has_property` (
- `tenant_id` int(11) NOT NULL,
- `property_id` int(11) NOT NULL
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- SET character_set_client = @saved_cs_client;
- --
- -- Dumping data for table `tenant_has_property`
- --
- LOCK TABLES `tenant_has_property` WRITE;
- /*!40000 ALTER TABLE `tenant_has_property` DISABLE KEYS */;
- INSERT INTO `tenant_has_property` (`tenant_id`, `property_id`) VALUES (1,1),(1,2);
- /*!40000 ALTER TABLE `tenant_has_property` ENABLE KEYS */;
- UNLOCK TABLES;
- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
- /*!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 */;
- -- Dump completed on 2011-11-26 12:37:30
Add Comment
Please, Sign In to add comment