-- MySQL dump 10.13  Distrib 5.7.12, for Win64 (x86_64)
--
-- Host: localhost    Database: project1
-- ------------------------------------------------------
-- Server version	5.7.17-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 `aquarium`
--

DROP TABLE IF EXISTS `aquarium`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aquarium` (
  `AquariumID` int(11) NOT NULL AUTO_INCREMENT,
  `GewensteTemperatuur` float DEFAULT NULL,
  `Kleur` varchar(7) DEFAULT NULL,
  `Filter` int(1) DEFAULT NULL,
  `Verlichting` int(1) DEFAULT NULL,
  `AquariumNaam` varchar(45) DEFAULT NULL,
  `HuidigeTemperatuur` float DEFAULT NULL,
  PRIMARY KEY (`AquariumID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `aquarium`
--

LOCK TABLES `aquarium` WRITE;
/*!40000 ALTER TABLE `aquarium` DISABLE KEYS */;
INSERT INTO `aquarium` VALUES (1,22,'#ff0080',1,1,'Tropical',22);
/*!40000 ALTER TABLE `aquarium` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `gebruiker`
--

DROP TABLE IF EXISTS `gebruiker`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gebruiker` (
  `GebruikersID` int(11) NOT NULL AUTO_INCREMENT,
  `Voornaam` varchar(45) NOT NULL,
  `Naam` varchar(45) NOT NULL,
  `mail` varchar(45) NOT NULL,
  `Hash` varchar(150) NOT NULL,
  `Prioriteit` int(1) DEFAULT NULL,
  PRIMARY KEY (`GebruikersID`),
  UNIQUE KEY `E-mail_UNIQUE` (`mail`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `gebruiker`
--

LOCK TABLES `gebruiker` WRITE;
/*!40000 ALTER TABLE `gebruiker` DISABLE KEYS */;
/*!40000 ALTER TABLE `gebruiker` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `gebruiker_has_aquarium`
--

DROP TABLE IF EXISTS `gebruiker_has_aquarium`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gebruiker_has_aquarium` (
  `gebruiker_GebruikersID` int(11) NOT NULL,
  `aquarium_AquariumID` int(11) NOT NULL,
  `GebruikersIndex` int(1) DEFAULT NULL,
  `NaamAquarium` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`gebruiker_GebruikersID`,`aquarium_AquariumID`),
  KEY `fk_gebruiker_has_aquarium_aquarium1_idx` (`aquarium_AquariumID`),
  KEY `fk_gebruiker_has_aquarium_gebruiker1_idx` (`gebruiker_GebruikersID`),
  CONSTRAINT `fk_gebruiker_has_aquarium_aquarium1` FOREIGN KEY (`aquarium_AquariumID`) REFERENCES `aquarium` (`AquariumID`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_gebruiker_has_aquarium_gebruiker1` FOREIGN KEY (`gebruiker_GebruikersID`) REFERENCES `gebruiker` (`GebruikersID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `gebruiker_has_aquarium`
--

LOCK TABLES `gebruiker_has_aquarium` WRITE;
/*!40000 ALTER TABLE `gebruiker_has_aquarium` DISABLE KEYS */;
/*!40000 ALTER TABLE `gebruiker_has_aquarium` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `temperatuur`
--

DROP TABLE IF EXISTS `temperatuur`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `temperatuur` (
  `TemperatuurID` int(11) NOT NULL AUTO_INCREMENT,
  `Temperatuur` varchar(45) DEFAULT NULL,
  `DateTime` datetime DEFAULT NULL,
  `aquarium_AquariumID` int(11) NOT NULL,
  `Heater` int(1) DEFAULT NULL,
  PRIMARY KEY (`TemperatuurID`,`aquarium_AquariumID`),
  KEY `fk_temperatuur_aquarium1_idx` (`aquarium_AquariumID`),
  CONSTRAINT `fk_temperatuur_aquarium1` FOREIGN KEY (`aquarium_AquariumID`) REFERENCES `aquarium` (`AquariumID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `temperatuur`
--

LOCK TABLES `temperatuur` WRITE;
/*!40000 ALTER TABLE `temperatuur` DISABLE KEYS */;
/*!40000 ALTER TABLE `temperatuur` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `vis`
--

DROP TABLE IF EXISTS `vis`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vis` (
  `VisID` int(11) NOT NULL AUTO_INCREMENT,
  `Naam` varchar(45) NOT NULL,
  `Soort` varchar(45) NOT NULL,
  `aquarium_AquariumID` int(11) NOT NULL,
  PRIMARY KEY (`VisID`,`aquarium_AquariumID`),
  KEY `fk_vis_aquarium1_idx` (`aquarium_AquariumID`),
  CONSTRAINT `fk_vis_aquarium1` FOREIGN KEY (`aquarium_AquariumID`) REFERENCES `aquarium` (`AquariumID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `vis`
--

LOCK TABLES `vis` WRITE;
/*!40000 ALTER TABLE `vis` DISABLE KEYS */;
/*!40000 ALTER TABLE `vis` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping events for database 'project1'
--

--
-- Dumping routines for database 'project1'
--
/*!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 2017-06-19  0:08:01
