level7

Tenants DB Dump

Nov 26th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 4.11 KB | None | 0 0
  1. -- MySQL dump 10.11
  2. --
  3. -- Host: mysql-rw    Database: utils
  4. -- ------------------------------------------------------
  5. -- Server version   5.0.51a-3ubuntu5.8-log
  6.  
  7. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  8. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  9. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  10. /*!40101 SET NAMES utf8 */;
  11. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  12. /*!40103 SET TIME_ZONE='+00:00' */;
  13. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  14. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  15. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  16. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  17.  
  18. --
  19. -- Table structure for table `landlord`
  20. --
  21.  
  22. DROP TABLE IF EXISTS `landlord`;
  23. SET @saved_cs_client     = @@character_set_client;
  24. SET character_set_client = utf8;
  25. CREATE TABLE `landlord` (
  26.   `id` int(11) NOT NULL auto_increment,
  27.   `name` varchar(255) collate utf8_unicode_ci NOT NULL,
  28.   PRIMARY KEY  (`id`)
  29. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  30. SET character_set_client = @saved_cs_client;
  31.  
  32. --
  33. -- Dumping data for table `landlord`
  34. --
  35.  
  36. LOCK TABLES `landlord` WRITE;
  37. /*!40000 ALTER TABLE `landlord` DISABLE KEYS */;
  38. INSERT INTO `landlord` (`id`, `name`) VALUES (2,'RealEstates Inc'),(1,'Best Homes Ltd.');
  39. /*!40000 ALTER TABLE `landlord` ENABLE KEYS */;
  40. UNLOCK TABLES;
  41.  
  42. --
  43. -- Table structure for table `property`
  44. --
  45.  
  46. DROP TABLE IF EXISTS `property`;
  47. SET @saved_cs_client     = @@character_set_client;
  48. SET character_set_client = utf8;
  49. CREATE TABLE `property` (
  50.   `id` int(11) NOT NULL,
  51.   `landlord_id` int(11) NOT NULL,
  52.   `address` varchar(255) collate utf8_unicode_ci NOT NULL,
  53.   PRIMARY KEY  (`id`)
  54. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  55. SET character_set_client = @saved_cs_client;
  56.  
  57. --
  58. -- Dumping data for table `property`
  59. --
  60.  
  61. LOCK TABLES `property` WRITE;
  62. /*!40000 ALTER TABLE `property` DISABLE KEYS */;
  63. INSERT INTO `property` (`id`, `landlord_id`, `address`) VALUES (3,2,'Queen Stree 3'),(2,1,'Green Grove 2'),(1,1,'King Street 1');
  64. /*!40000 ALTER TABLE `property` ENABLE KEYS */;
  65. UNLOCK TABLES;
  66.  
  67. --
  68. -- Table structure for table `tenant`
  69. --
  70.  
  71. DROP TABLE IF EXISTS `tenant`;
  72. SET @saved_cs_client     = @@character_set_client;
  73. SET character_set_client = utf8;
  74. CREATE TABLE `tenant` (
  75.   `id` int(11) NOT NULL auto_increment,
  76.   `name` varchar(255) collate utf8_unicode_ci NOT NULL,
  77.   PRIMARY KEY  (`id`)
  78. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  79. SET character_set_client = @saved_cs_client;
  80.  
  81. --
  82. -- Dumping data for table `tenant`
  83. --
  84.  
  85. LOCK TABLES `tenant` WRITE;
  86. /*!40000 ALTER TABLE `tenant` DISABLE KEYS */;
  87. INSERT INTO `tenant` (`id`, `name`) VALUES (2,'Anna Jones'),(1,'John Smith');
  88. /*!40000 ALTER TABLE `tenant` ENABLE KEYS */;
  89. UNLOCK TABLES;
  90.  
  91. --
  92. -- Table structure for table `tenant_has_property`
  93. --
  94.  
  95. DROP TABLE IF EXISTS `tenant_has_property`;
  96. SET @saved_cs_client     = @@character_set_client;
  97. SET character_set_client = utf8;
  98. CREATE TABLE `tenant_has_property` (
  99.   `tenant_id` int(11) NOT NULL,
  100.   `property_id` int(11) NOT NULL
  101. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  102. SET character_set_client = @saved_cs_client;
  103.  
  104. --
  105. -- Dumping data for table `tenant_has_property`
  106. --
  107.  
  108. LOCK TABLES `tenant_has_property` WRITE;
  109. /*!40000 ALTER TABLE `tenant_has_property` DISABLE KEYS */;
  110. INSERT INTO `tenant_has_property` (`tenant_id`, `property_id`) VALUES (1,1),(1,2);
  111. /*!40000 ALTER TABLE `tenant_has_property` ENABLE KEYS */;
  112. UNLOCK TABLES;
  113. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  114.  
  115. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  116. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  117. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  118. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  119. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  120. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  121. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  122.  
  123. -- Dump completed on 2011-11-26 12:37:30
  124.  
  125.  
Add Comment
Please, Sign In to add comment