· 7 years ago · Feb 26, 2019, 08:32 AM
1-- MySQL dump 10.16 Distrib 10.1.30-MariaDB, for Win32 (AMD64)
2--
3-- Host: localhost Database: latihanjpa
4-- ------------------------------------------------------
5-- Server version 10.1.30-MariaDB
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 `contact`
20--
21
22DROP TABLE IF EXISTS `contact`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `contact` (
26 `dtype` varchar(255) DEFAULT NULL,
27 `systemid` int(11) NOT NULL,
28 `firstname` varchar(100) DEFAULT NULL,
29 `lastname` varchar(100) DEFAULT NULL,
30 PRIMARY KEY (`systemid`)
31) ENGINE=InnoDB DEFAULT CHARSET=latin1;
32/*!40101 SET character_set_client = @saved_cs_client */;
33
34--
35-- Dumping data for table `contact`
36--
37
38LOCK TABLES `contact` WRITE;
39/*!40000 ALTER TABLE `contact` DISABLE KEYS */;
40/*!40000 ALTER TABLE `contact` ENABLE KEYS */;
41UNLOCK TABLES;
42
43--
44-- Table structure for table `contactaddress`
45--
46
47DROP TABLE IF EXISTS `contactaddress`;
48/*!40101 SET @saved_cs_client = @@character_set_client */;
49/*!40101 SET character_set_client = utf8 */;
50CREATE TABLE `contactaddress` (
51 `owner` int(11) NOT NULL,
52 `street` varchar(128) NOT NULL,
53 `city` varchar(128) NOT NULL,
54 `zip` varchar(10) NOT NULL,
55 PRIMARY KEY (`owner`,`street`,`city`,`zip`),
56 CONSTRAINT `contactaddress_ibfk_1` FOREIGN KEY (`owner`) REFERENCES `contact` (`systemid`)
57) ENGINE=InnoDB DEFAULT CHARSET=latin1;
58/*!40101 SET character_set_client = @saved_cs_client */;
59
60--
61-- Dumping data for table `contactaddress`
62--
63
64LOCK TABLES `contactaddress` WRITE;
65/*!40000 ALTER TABLE `contactaddress` DISABLE KEYS */;
66/*!40000 ALTER TABLE `contactaddress` ENABLE KEYS */;
67UNLOCK TABLES;
68
69--
70-- Table structure for table `customer`
71--
72
73DROP TABLE IF EXISTS `customer`;
74/*!40101 SET @saved_cs_client = @@character_set_client */;
75/*!40101 SET character_set_client = utf8 */;
76CREATE TABLE `customer` (
77 `systemid` int(11) NOT NULL,
78 `membertype` int(11) DEFAULT NULL,
79 PRIMARY KEY (`systemid`),
80 CONSTRAINT `customer_ibfk_1` FOREIGN KEY (`systemid`) REFERENCES `contact` (`systemid`)
81) ENGINE=InnoDB DEFAULT CHARSET=latin1;
82/*!40101 SET character_set_client = @saved_cs_client */;
83
84--
85-- Dumping data for table `customer`
86--
87
88LOCK TABLES `customer` WRITE;
89/*!40000 ALTER TABLE `customer` DISABLE KEYS */;
90/*!40000 ALTER TABLE `customer` ENABLE KEYS */;
91UNLOCK TABLES;
92/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
93
94/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
95/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
96/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
97/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
98/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
99/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
100/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
101
102-- Dump completed on 2019-02-12 16:09:59