283 lines
9.3 KiB
SQL
283 lines
9.3 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 4.1.8
|
|
-- http://www.phpmyadmin.net
|
|
--
|
|
-- Host: localhost
|
|
-- Generation Time: Apr 02, 2014 at 02:59 PM
|
|
-- Server version: 5.5.36-cll
|
|
-- PHP Version: 5.4.23
|
|
|
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
SET time_zone = "+00:00";
|
|
|
|
|
|
/*!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 */;
|
|
|
|
--
|
|
-- Database: `eigenwij_db`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `berichten`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `berichten` (
|
|
`bericht_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`verzend_id` int(11) NOT NULL,
|
|
`ontvang_id` int(11) NOT NULL,
|
|
`onderwerp` text NOT NULL,
|
|
`inhoud` longtext NOT NULL,
|
|
`datum` date NOT NULL,
|
|
`gelezen` tinyint(1) NOT NULL DEFAULT '0',
|
|
`actief` tinyint(1) NOT NULL DEFAULT '1',
|
|
PRIMARY KEY (`bericht_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
|
|
|
|
--
|
|
-- Dumping data for table `berichten`
|
|
--
|
|
|
|
INSERT INTO `berichten` (`bericht_id`, `verzend_id`, `ontvang_id`, `onderwerp`, `inhoud`, `datum`, `gelezen`, `actief`) VALUES
|
|
(1, 1, 4, 'Welkom', 'Beste Charles,\r\n\r\nWelkom bij Eigenwijs Kinderdagverblijf.\r\nWij hopen dat wij u goed van dienst kunnen zijn.\r\n\r\nGroeten,\r\nAdministrator', '2014-04-02', 0, 1),
|
|
(2, 1, 3, 'Welkom', 'Beste Kenneth,\r\n\r\nWelkom bij Eigenwijs Kinderdagverblijf.\r\nWij hopen dat wij u goed van dienst kunnen zijn.\r\n\r\nGroeten,\r\nAdministrator', '2014-04-02', 0, 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `email`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `email` (
|
|
`id` int(11) NOT NULL,
|
|
`email` text NOT NULL,
|
|
`email_nieuw` text NOT NULL,
|
|
`code` text NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
--
|
|
-- Dumping data for table `email`
|
|
--
|
|
|
|
INSERT INTO `email` (`id`, `email`, `email_nieuw`, `code`) VALUES
|
|
(1, 'mail@eigenwijs.serghost.com', '', ''),
|
|
(2, 'mail@eigenwijs.serghost.com', '', ''),
|
|
(3, 'kennyboy@live.nl', '', ''),
|
|
(4, 'charlesde5de@hotmail.com', '', '');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `facturen`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `facturen` (
|
|
`factuur_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`ouder_id` int(11) NOT NULL,
|
|
`bestand` text NOT NULL,
|
|
`datum` date NOT NULL,
|
|
`gelezen` tinyint(1) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`factuur_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
|
|
|
|
--
|
|
-- Dumping data for table `facturen`
|
|
--
|
|
|
|
INSERT INTO `facturen` (`factuur_id`, `ouder_id`, `bestand`, `datum`, `gelezen`) VALUES
|
|
(1, 4, '20140402_Beus4_factuur82647.pdf', '2014-04-02', 0),
|
|
(2, 3, '20140402_Ewijk3_factuur71559.pdf', '2014-04-02', 0);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `foto`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `foto` (
|
|
`foto_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`kind_id` text NOT NULL,
|
|
`bestand` text NOT NULL,
|
|
`datum` date NOT NULL,
|
|
`bijschrift` text NOT NULL,
|
|
PRIMARY KEY (`foto_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
|
|
|
|
--
|
|
-- Dumping data for table `foto`
|
|
--
|
|
|
|
INSERT INTO `foto` (`foto_id`, `kind_id`, `bestand`, `datum`, `bijschrift`) VALUES
|
|
(1, '2,', 'nFhG4Elhv67J0m5ue95g.jpg', '2014-04-02', 'Lekker aan het spelen met de auto''s!'),
|
|
(2, '1,2,3,', 'KgDvH15RLPkAUFUTHcij.jpg', '2014-04-02', 'Gezellig rond de tafel!'),
|
|
(3, '1,', 'HaNn37WucOgbmDHeT2DG.jpg', '2014-04-02', 'Spelen met de blokken'),
|
|
(4, '1,', 'acG9LUDBaaO12g5FJ9sa.jpg', '2014-04-02', 'Frankie speelt met de duplo, is hij niet schattig, in tegenstelling tot zijn vader'),
|
|
(5, '3,', 'ASkIDfuVop2C28GsDaMQ.jpg', '2014-04-02', 'Gezellig met z''n tweetjes aan het spelen!');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `kinderen`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `kinderen` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`ouder_id` int(11) NOT NULL,
|
|
`voornaam` text NOT NULL,
|
|
`tussenvoegsel` text NOT NULL,
|
|
`achternaam` text NOT NULL,
|
|
`roepnaam` text NOT NULL,
|
|
`geslacht` text NOT NULL,
|
|
`geboortedatum` date NOT NULL,
|
|
`kind_foto` text NOT NULL,
|
|
`dov` int(1) NOT NULL DEFAULT '0',
|
|
`tso` int(1) NOT NULL DEFAULT '0',
|
|
`nso` int(1) NOT NULL DEFAULT '0',
|
|
`actief` tinyint(1) NOT NULL DEFAULT '1',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
|
|
|
|
--
|
|
-- Dumping data for table `kinderen`
|
|
--
|
|
|
|
INSERT INTO `kinderen` (`id`, `ouder_id`, `voornaam`, `tussenvoegsel`, `achternaam`, `roepnaam`, `geslacht`, `geboortedatum`, `kind_foto`, `dov`, `tso`, `nso`, `actief`) VALUES
|
|
(1, 4, 'Frank', 'de', 'Beus', 'Frankie', 'M', '2009-12-06', 'Frank_Beus_38854.jpg', 0, 1, 0, 1),
|
|
(2, 3, 'Pieter', 'van', 'Ewijk', 'Pietertje', 'M', '2007-05-14', 'Pieter_Ewijk_93696.jpg', 0, 1, 1, 1),
|
|
(3, 3, 'Sara', 'van', 'Ewijk', 'Saartje', 'V', '2010-05-14', 'Sara_Ewijk_03481.png', 1, 0, 0, 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `login`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `login` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`username` text NOT NULL,
|
|
`password` text NOT NULL,
|
|
`session_id` text NOT NULL,
|
|
`ip` text NOT NULL,
|
|
`last_login` datetime NOT NULL,
|
|
`type` tinyint(1) NOT NULL,
|
|
`forgot` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
|
|
|
|
--
|
|
-- Dumping data for table `login`
|
|
--
|
|
|
|
INSERT INTO `login` (`id`, `username`, `password`, `session_id`, `ip`, `last_login`, `type`, `forgot`) VALUES
|
|
(1, 'admin', '$2y$10$77NixUxMpgyAjyN7AhHYV.PSu2e3q64HywmchUjbNNKkdL3jFP9EO', '', '46.129.41.43', '2014-04-02 20:49:19', 1, 0),
|
|
(2, 'werk', '$2y$10$36egkkfF5W7mNeTpfrPdfehICWxgsMNRH5nDOJfjpywMCZW6MgSLC', '', '46.129.41.43', '2014-04-02 20:12:16', 1, 0),
|
|
(3, 'ouder1', '$2y$10$gdX7i8Ad3m2GIuv8RW5Q5eRYEoDtHYejpGiKpNHqb52yqZgLYws6u', '', '46.129.41.43', '2014-04-02 20:48:52', 0, 0),
|
|
(4, 'ouder2', '$2y$10$VkxBwfwHzhsVI6yWAKO6TOzn03FwGQQ2eDHiNM0ByiKaXIlCyE7/a', '', '46.129.41.43', '2014-04-02 20:24:54', 0, 0);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `nieuws`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `nieuws` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`titel` text NOT NULL,
|
|
`inhoud` text NOT NULL,
|
|
`datum` date NOT NULL,
|
|
`schrijver` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
|
|
|
|
--
|
|
-- Dumping data for table `nieuws`
|
|
--
|
|
|
|
INSERT INTO `nieuws` (`id`, `titel`, `inhoud`, `datum`, `schrijver`) VALUES
|
|
(1, 'Nieuwe Website', 'Welkom op de nieuwe website van Eigenwijs Kinderdagverblijf!', '2014-04-02', 1),
|
|
(2, 'Welkom', 'Wij hopen dat u het naar uw zin heeft!', '2014-04-02', 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `ouders`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `ouders` (
|
|
`id` int(11) NOT NULL,
|
|
`voornaam` text NOT NULL,
|
|
`tussenvoegsel` text NOT NULL,
|
|
`achternaam` text NOT NULL,
|
|
`adres` text NOT NULL,
|
|
`woonplaats` text NOT NULL,
|
|
`telefoonnummer` text NOT NULL,
|
|
`rekeningnummer` text NOT NULL,
|
|
`geverifieerd` tinyint(1) NOT NULL DEFAULT '0',
|
|
`actief` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
--
|
|
-- Dumping data for table `ouders`
|
|
--
|
|
|
|
INSERT INTO `ouders` (`id`, `voornaam`, `tussenvoegsel`, `achternaam`, `adres`, `woonplaats`, `telefoonnummer`, `rekeningnummer`, `geverifieerd`, `actief`) VALUES
|
|
(3, 'Kenneth', 'van', 'Ewijk', 'Molenwiek 1', 'Vessem', '0627430627', '123456789', 1, 1),
|
|
(4, 'Charles', 'de', 'Beus', 'Straat 6', 'Beers', '0612456900', '123456789', 1, 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `verslagen`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `verslagen` (
|
|
`verslag_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`kind_id` int(11) NOT NULL,
|
|
`werk_id` int(11) NOT NULL,
|
|
`datum` date NOT NULL,
|
|
`inhoud` text NOT NULL,
|
|
PRIMARY KEY (`verslag_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
|
|
|
|
--
|
|
-- Dumping data for table `verslagen`
|
|
--
|
|
|
|
INSERT INTO `verslagen` (`verslag_id`, `kind_id`, `werk_id`, `datum`, `inhoud`) VALUES
|
|
(1, 1, 1, '2014-04-02', 'Vandaag wilde Frank alweer zijn eten niet op eten.\r\nHier moet echt iets aan gedaan worden!'),
|
|
(2, 2, 1, '2014-04-02', 'Pietertje was boos en wilde niet meespelen met met de rest \r\nvan de groep. Hij wilde niet vertellen waarom.'),
|
|
(3, 3, 1, '2014-04-02', 'Saartje probeerde vandaag alweer de vingerverf op te eten. Ze \r\nzat helemaal onder! Iemand moet haar echt eens uitleggen dat \r\nje vingerverf niet bedoeld is om op te eten.');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `werknemers`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `werknemers` (
|
|
`id` int(11) NOT NULL,
|
|
`voornaam` text NOT NULL,
|
|
`tussenvoegsel` text NOT NULL,
|
|
`achternaam` text NOT NULL,
|
|
`permissions` int(11) NOT NULL,
|
|
`geverifieerd` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
--
|
|
-- Dumping data for table `werknemers`
|
|
--
|
|
|
|
INSERT INTO `werknemers` (`id`, `voornaam`, `tussenvoegsel`, `achternaam`, `permissions`, `geverifieerd`) VALUES
|
|
(1, 'Administrator', '', ' ', 2, 1),
|
|
(2, 'Werk', '', 'Nemer', 1, 1);
|
|
|
|
/*!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 */;
|