-- MySQL dump 10.13  Distrib 5.1.73, for debian-linux-gnu (x86_64)
--
-- Host: 87.233.176.104    Database: sec_main
-- ------------------------------------------------------
-- Server version	5.1.73-1+deb6u1-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 `alarmering_email`
--

DROP TABLE IF EXISTS `alarmering_email`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alarmering_email` (
  `id` int(10) unsigned NOT NULL,
  `email` varchar(255) NOT NULL,
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `alarmering_sms`
--

DROP TABLE IF EXISTS `alarmering_sms`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alarmering_sms` (
  `id` int(10) unsigned NOT NULL,
  `telefoonnr` varchar(16) NOT NULL,
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `gebruikers`
--

DROP TABLE IF EXISTS `gebruikers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gebruikers` (
  `id` int(10) unsigned NOT NULL,
  `gebruiker` int(10) unsigned NOT NULL,
  `gebruikersnaam` varchar(32) NOT NULL,
  `i18n` varchar(16) NOT NULL,
  `tz` varchar(64) NOT NULL,
  `verificatie` enum('sms','pin') DEFAULT NULL,
  `verificatiecode` binary(20) DEFAULT NULL,
  `vgeldig` datetime DEFAULT NULL,
  `telefoonnr` varchar(16) DEFAULT NULL,
  `poging` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `geblokkeerd` datetime DEFAULT NULL,
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `materieel`
--

DROP TABLE IF EXISTS `materieel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `materieel` (
  `id` int(10) unsigned NOT NULL,
  `zkl` int(10) unsigned NOT NULL,
  `schakelbaar` tinyint(3) unsigned NOT NULL,
  `imei` varchar(16) NOT NULL,
  `serienr` varchar(12) NOT NULL,
  `idcode` varchar(32) NOT NULL,
  `rs3000` binary(20) DEFAULT NULL,
  `tcp_server` varchar(255) NOT NULL,
  `latitude` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  `longitude` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  `fix` tinyint(1) NOT NULL DEFAULT '0',
  `hdop` decimal(5,1) unsigned DEFAULT NULL,
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `werkinstructie`
--

DROP TABLE IF EXISTS `werkinstructie`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `werkinstructie` (
  `id` int(10) unsigned NOT NULL,
  `naam` varchar(64) NOT NULL,
  `ostatus` enum('concept','gereed','geverifieerd','gevalideerd') NOT NULL DEFAULT 'concept',
  `pstatus` enum('concept','gereed','geverifieerd','gevalideerd') NOT NULL DEFAULT 'concept',
  `sstatus` enum('niet vrijgegeven','vrijgegeven','verzoek tot inschakelen','verzoek tot uitschakelen') NOT NULL DEFAULT 'niet vrijgegeven',
  `sgebruiker` int(10) unsigned DEFAULT NULL,
  `sgeldig` datetime DEFAULT NULL,
  `signature` binary(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 2016-10-10 14:01:05
