-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Client :  127.0.0.1
-- Généré le :  Ven 05 Mars 2021 à 16:47
-- Version du serveur :  5.6.17
-- Version de PHP :  5.5.12

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 données :  `photocabine`
--

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

--
-- Structure de la table `phocabine_photos`
--

CREATE TABLE IF NOT EXISTS `phocabine_photos` (
  `id_photo` int(11) NOT NULL AUTO_INCREMENT,
  `device` int(11) DEFAULT NULL,
  `config` varchar(100) NOT NULL,
  `lang` char(2) NOT NULL,
  `email` varchar(300) DEFAULT NULL,
  `notif` tinyint(4) DEFAULT NULL,
  `notif2` tinyint(4) DEFAULT NULL,
  `notif3` tinyint(4) DEFAULT NULL,
  `file` varchar(100) NOT NULL,
  `format` varchar(16) DEFAULT NULL,
  `habillage` varchar(16) DEFAULT NULL,
  `file_gif` varchar(100) DEFAULT NULL,
  `id_winner` int(11) DEFAULT NULL,
  `winner_gain` tinyint(4) DEFAULT NULL,
  `video` varchar(100) DEFAULT NULL,
  `video_question` int(11) NOT NULL,
  `form` text,
  `date` datetime NOT NULL,
  `print` tinyint(4) DEFAULT NULL,
  `sent` tinyint(4) DEFAULT NULL,
  `tiny_url` varchar(50) DEFAULT NULL,
  `sync` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`id_photo`),
  KEY `file` (`file`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Structure de la table `photocabine_lots`
--

CREATE TABLE IF NOT EXISTS `photocabine_lots` (
  `id_lot` int(11) NOT NULL AUTO_INCREMENT,
  `config` varchar(100) NOT NULL,
  `date` datetime NOT NULL,
  `gain` tinyint(4) DEFAULT NULL,
  `id` varchar(300) DEFAULT NULL,
  `sync` tinyint(4) DEFAULT NULL,
  `won` tinyint(4) DEFAULT NULL,
  `auto` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`id_lot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

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

--
-- Structure de la table `photocabine_softstats`
--

CREATE TABLE IF NOT EXISTS `photocabine_softstats` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `config` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
  `stat` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=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 */;
