-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Temps de generació: 28-06-2016 a les 18:43:04
-- Versió del servidor: 5.5.49-0ubuntu0.14.04.1
-- Versió de PHP: 5.6.22-1+donate.sury.org~trusty+1

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 */;

--
-- Base de dades: `presentacioAjSanllo`
--

-- --------------------------------------------------------

--
-- Estructura de la taula `cotxe_autoritzat`
--

CREATE TABLE IF NOT EXISTS `cotxe_autoritzat` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `matricula` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `marca` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `model` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `data_alta` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `cotxe_autoritzat_data_alta_index` (`data_alta`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;

--
-- Bolcant dades de la taula `cotxe_autoritzat`
--

INSERT INTO `cotxe_autoritzat` (`id`, `matricula`, `marca`, `model`, `data_alta`) VALUES
(2, '3482CMY', '', '', '2016-06-28 16:41:11');

-- --------------------------------------------------------

--
-- Estructura de la taula `dates_festius`
--

CREATE TABLE IF NOT EXISTS `dates_festius` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `descripcio` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `data_alta` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `data_inici` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `data_fi` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;

--
-- Bolcant dades de la taula `dates_festius`
--

INSERT INTO `dates_festius` (`id`, `descripcio`, `data_alta`, `data_inici`, `data_fi`) VALUES
(1, 'Pont 1 de maig', '2016-06-17 15:22:17', '2016-04-30 22:00:00', '2016-06-22 22:00:00');

-- --------------------------------------------------------

--
-- Estructura de la taula `migrations`
--

CREATE TABLE IF NOT EXISTS `migrations` (
  `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de la taula `password_resets`
--

CREATE TABLE IF NOT EXISTS `password_resets` (
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  KEY `password_resets_email_index` (`email`),
  KEY `password_resets_token_index` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Estructura de la taula `registre_acces`
--

CREATE TABLE IF NOT EXISTS `registre_acces` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `matricula` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `portal` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `acces_autoritzat` tinyint(1) NOT NULL,
  `data_actualitzacio` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `path_imatge` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `lectura_matricula` tinyint(1) NOT NULL,
  `confidence` decimal(5,2) NOT NULL,
  `data_acces` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `camera` int(11) NOT NULL,
  `sancionat` tinyint(1) NOT NULL DEFAULT '0',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=113 ;

--
-- Bolcant dades de la taula `registre_acces`
--

INSERT INTO `registre_acces` (`id`, `matricula`, `portal`, `acces_autoritzat`, `data_actualitzacio`, `path_imatge`, `lectura_matricula`, `confidence`, `data_acces`, `camera`, `sancionat`, `deleted_at`) VALUES
(79, '9875CXP', '1', 0, '2016-06-17 15:22:20', 'acces-cam1-1465842425990.jpg', 1, 89.36, '2016-06-13 18:27:04', 1, 0, NULL),
(80, '9875CXP', '1', 0, '2016-06-17 15:22:20', 'acces-cam1-1465842462451.jpg', 1, 88.36, '2016-06-13 18:27:40', 1, 0, NULL),
(81, '9875CXP', '1', 0, '2016-06-17 15:22:20', 'acces-cam1-1465842477315.jpg', 1, 83.50, '2016-06-13 18:27:55', 1, 0, NULL),
(85, '3482CMY', '1', 0, '2016-06-17 15:22:21', 'acces-cam1-1465843720080.jpg', 1, 86.03, '2016-06-13 18:48:37', 1, 0, NULL),
(86, '3482CM', '1', 0, '2016-06-28 16:42:39', 'acces-cam1-1465843721594.jpg', 0, 100.00, '2016-06-13 18:48:41', 1, 0, NULL),
(87, 'H3404', '1', 0, '2016-06-17 15:22:21', 'acces-cam1-1465843727631.jpg', 1, 76.88, '2016-06-13 18:48:46', 1, 0, NULL),
(89, '9875CXP', '1', 0, '2016-06-17 15:22:21', 'acces-cam1-1465844502503.jpg', 1, 84.73, '2016-06-13 19:01:41', 1, 0, NULL),
(90, '9575CXP', '1', 1, '2016-06-25 11:45:59', 'acces-cam1-1465844533374.jpg', 1, 84.00, '2016-06-13 19:02:13', 1, 0, NULL),
(96, '9875CXP', '1', 0, '2016-06-17 15:22:21', 'acces-cam1-1465848459311.jpg', 1, 88.64, '2016-06-13 20:07:37', 1, 0, NULL),
(97, '987CX', '1', 0, '2016-06-17 15:22:21', 'acces-cam1-1465848461501.jpg', 0, 82.84, '2016-06-13 20:07:41', 1, 0, NULL),
(107, '9875CXP', '1', 0, '2016-06-28 16:40:11', 'acces-cam1-1465848537041.jpg', 1, 85.80, '2016-06-13 20:08:54', 1, 0, NULL),
(108, '5E5E3', '1', 0, '2016-06-28 16:40:16', 'acces-cam1-1465849023774.jpg', 0, 77.57, '2016-06-13 20:17:03', 1, 0, NULL);

-- --------------------------------------------------------

--
-- Estructura de la taula `sancio`
--

CREATE TABLE IF NOT EXISTS `sancio` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `matricula` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `id_acces` int(11) NOT NULL,
  `data_tramit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `sancio_id_acces_unique` (`id_acces`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;

-- --------------------------------------------------------

--
-- Estructura de la taula `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ;

--
-- Bolcant dades de la taula `users`
--

INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES
(6, 'prova', 'prova@gmail.com', '$2y$10$hogB2L6PuGYdEFp4Vs2jWeBKsliu.9HsVYk5JnRm4BraDoWhyrYoq', NULL, '2016-06-25 11:47:34', '2016-06-25 11:47:34', NULL);

/*!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 */;
