CREATE DATABASE  IF NOT EXISTS `snapguard` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `snapguard`;
-- MySQL dump 10.13  Distrib 5.7.12, for Win64 (x86_64)
--
-- Host: localhost    Database: snapguard
-- ------------------------------------------------------
-- 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 `tblcamera`
--

DROP TABLE IF EXISTS `tblcamera`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tblcamera` (
  `CameraID` int(11) NOT NULL AUTO_INCREMENT,
  `Resolutie` varchar(45) DEFAULT NULL,
  `Plaats` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`CameraID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tblcamera`
--

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

--
-- Table structure for table `tblfoto`
--

DROP TABLE IF EXISTS `tblfoto`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tblfoto` (
  `FotoID` int(11) NOT NULL AUTO_INCREMENT,
  `Naam` varchar(45) DEFAULT NULL,
  `Datumtijd` datetime DEFAULT NULL,
  `CameraID` int(11) NOT NULL,
  PRIMARY KEY (`FotoID`,`CameraID`),
  KEY `fk_tblFoto_tblCamera1_idx` (`CameraID`),
  CONSTRAINT `fk_tblFoto_tblCamera1` FOREIGN KEY (`CameraID`) REFERENCES `tblcamera` (`CameraID`) 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 `tblfoto`
--

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

--
-- Table structure for table `tblgebruiker`
--

DROP TABLE IF EXISTS `tblgebruiker`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tblgebruiker` (
  `GebruikerID` int(11) NOT NULL AUTO_INCREMENT,
  `Naam` varchar(45) DEFAULT NULL,
  `Voornaam` varchar(45) DEFAULT NULL,
  `Email` varchar(150) DEFAULT NULL,
  `Password` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`GebruikerID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tblgebruiker`
--

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

--
-- Table structure for table `tblgebruikercamera`
--

DROP TABLE IF EXISTS `tblgebruikercamera`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tblgebruikercamera` (
  `tblGebruiker_GebruikerID` int(11) NOT NULL,
  `tblCamera_CameraID` int(11) NOT NULL,
  PRIMARY KEY (`tblGebruiker_GebruikerID`,`tblCamera_CameraID`),
  KEY `fk_tblGebruikerCamera_tblCamera1_idx` (`tblCamera_CameraID`),
  CONSTRAINT `fk_tblGebruikerCamera_tblCamera1` FOREIGN KEY (`tblCamera_CameraID`) REFERENCES `tblcamera` (`CameraID`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_tblGebruikerCamera_tblGebruiker` FOREIGN KEY (`tblGebruiker_GebruikerID`) REFERENCES `tblgebruiker` (`GebruikerID`) 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 `tblgebruikercamera`
--

LOCK TABLES `tblgebruikercamera` WRITE;
/*!40000 ALTER TABLE `tblgebruikercamera` DISABLE KEYS */;
/*!40000 ALTER TABLE `tblgebruikercamera` 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 2017-06-02 13:48:34
