· 5 years ago · Aug 27, 2020, 12:32 PM
1-- MySQL dump 10.17 Distrib 10.3.23-MariaDB, for debian-linux-gnu (x86_64)
2--
3-- Host: localhost Database: house
4-- ------------------------------------------------------
5-- Server version 10.3.23-MariaDB-0+deb10u1
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 utf8mb4 */;
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-- Current Database: `house`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `house` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `house`;
25
26--
27-- Table structure for table `apartament_pets`
28--
29
30DROP TABLE IF EXISTS `apartament_pets`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `apartament_pets` (
34 `house_number` int(11) NOT NULL,
35 `apartament_number` int(11) NOT NULL,
36 `landlord_pet_name` varchar(255) NOT NULL,
37 PRIMARY KEY (`house_number`)
38) ENGINE=InnoDB DEFAULT CHARSET=latin1;
39/*!40101 SET character_set_client = @saved_cs_client */;
40
41--
42-- Dumping data for table `apartament_pets`
43--
44
45LOCK TABLES `apartament_pets` WRITE;
46/*!40000 ALTER TABLE `apartament_pets` DISABLE KEYS */;
47/*!40000 ALTER TABLE `apartament_pets` ENABLE KEYS */;
48UNLOCK TABLES;
49
50--
51-- Table structure for table `apartaments`
52--
53
54DROP TABLE IF EXISTS `apartaments`;
55/*!40101 SET @saved_cs_client = @@character_set_client */;
56/*!40101 SET character_set_client = utf8 */;
57CREATE TABLE `apartaments` (
58 `idapartaments` int(11) NOT NULL AUTO_INCREMENT,
59 `landlord` varchar(255) NOT NULL,
60 `pet_name` varchar(255) NOT NULL,
61 `retiree` varchar(255) NOT NULL,
62 UNIQUE KEY `idapartaments_UNIQUE` (`idapartaments`)
63) ENGINE=InnoDB DEFAULT CHARSET=latin1;
64/*!40101 SET character_set_client = @saved_cs_client */;
65
66--
67-- Dumping data for table `apartaments`
68--
69
70LOCK TABLES `apartaments` WRITE;
71/*!40000 ALTER TABLE `apartaments` DISABLE KEYS */;
72/*!40000 ALTER TABLE `apartaments` ENABLE KEYS */;
73UNLOCK TABLES;
74
75--
76-- Table structure for table `house_data`
77--
78
79DROP TABLE IF EXISTS `house_data`;
80/*!40101 SET @saved_cs_client = @@character_set_client */;
81/*!40101 SET character_set_client = utf8 */;
82CREATE TABLE `house_data` (
83 `house_number` int(11) NOT NULL,
84 `house_stret_name` varchar(255) NOT NULL,
85 PRIMARY KEY (`house_number`)
86) ENGINE=InnoDB DEFAULT CHARSET=latin1;
87/*!40101 SET character_set_client = @saved_cs_client */;
88
89--
90-- Dumping data for table `house_data`
91--
92
93LOCK TABLES `house_data` WRITE;
94/*!40000 ALTER TABLE `house_data` DISABLE KEYS */;
95/*!40000 ALTER TABLE `house_data` ENABLE KEYS */;
96UNLOCK TABLES;
97
98--
99-- Table structure for table `new_table`
100--
101
102DROP TABLE IF EXISTS `new_table`;
103/*!40101 SET @saved_cs_client = @@character_set_client */;
104/*!40101 SET character_set_client = utf8 */;
105CREATE TABLE `new_table` (
106 `house_number` int(11) NOT NULL,
107 `house_apartament_number` int(11) NOT NULL,
108 `retiree_id` int(11) NOT NULL,
109 PRIMARY KEY (`house_number`)
110) ENGINE=InnoDB DEFAULT CHARSET=latin1;
111/*!40101 SET character_set_client = @saved_cs_client */;
112
113--
114-- Dumping data for table `new_table`
115--
116
117LOCK TABLES `new_table` WRITE;
118/*!40000 ALTER TABLE `new_table` DISABLE KEYS */;
119/*!40000 ALTER TABLE `new_table` ENABLE KEYS */;
120UNLOCK TABLES;
121/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
122
123/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
124/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
125/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
126/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
127/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
128/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
129/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
130
131-- Dump completed on 2020-08-27 15:24:43
132