85 lines
2.7 KiB
SQL
85 lines
2.7 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 4.9.5
|
|
-- https://www.phpmyadmin.net/
|
|
--
|
|
-- Hôte : db120904.sql-pro.online.net
|
|
-- Généré le : lun. 22 mars 2021 à 13:50
|
|
-- Version du serveur : 5.7.19-0ubuntu0.16.04.1
|
|
-- Version de PHP : 7.0.32-0ubuntu0.16.04.1
|
|
|
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
SET AUTOCOMMIT = 0;
|
|
START TRANSACTION;
|
|
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 utf8mb4 */;
|
|
|
|
--
|
|
-- Base de données : `db351634_avionpoeme`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Structure de la table `avionpoeme`
|
|
--
|
|
|
|
CREATE TABLE `avionpoeme` (
|
|
`idAvion` int(10) UNSIGNED NOT NULL,
|
|
`message` text CHARACTER SET utf8mb4 NOT NULL,
|
|
`expeMail` text NOT NULL,
|
|
`expeKnown` tinyint(1) NOT NULL DEFAULT '0' COMMENT ' true/false en fonction de si l''utilisateur choisi de devoiler son addresse mail pour la premiere',
|
|
`expeLang` varchar(3) NOT NULL DEFAULT 'fr' COMMENT ' langue de l''envoyeur format 2 lettres (''en'',''fr'',''ar'')',
|
|
`destLang` varchar(3) NOT NULL COMMENT 'langue du destinataire format 2 lettres (''en'',''fr'',''ar'')',
|
|
`startLat` float NOT NULL,
|
|
`startLon` float NOT NULL,
|
|
`startName` text NOT NULL,
|
|
`startTime` timestamp NOT NULL COMMENT 'unix time en TZ du depart',
|
|
`StartTZ` text CHARACTER SET utf8mb4 NOT NULL,
|
|
`destMail` text NOT NULL,
|
|
`destLat` float NOT NULL,
|
|
`destLon` float NOT NULL,
|
|
`destName` text NOT NULL,
|
|
`status` tinyint(1) NOT NULL COMMENT '0 = public 1=privé, 2=supprimé',
|
|
`color` varchar(7) NOT NULL COMMENT ' le code hexa de la couleur de l''avion aleatoire parmis la liste.',
|
|
`actual_lat` int(11) NOT NULL,
|
|
`actual_lon` int(11) NOT NULL,
|
|
`bearing` smallint(6) NOT NULL,
|
|
`deliveryTime` timestamp NOT NULL,
|
|
`deliveryTZ` text NOT NULL,
|
|
`deliveryTimeServer` datetime NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
--
|
|
-- Index pour les tables déchargées
|
|
--
|
|
|
|
--
|
|
-- Index pour la table `avionpoeme`
|
|
--
|
|
ALTER TABLE `avionpoeme`
|
|
ADD PRIMARY KEY (`idAvion`),
|
|
ADD UNIQUE KEY `status_index` (`idAvion`),
|
|
ADD KEY `expe_mail_index` (`expeMail`(40)),
|
|
ADD KEY `dest_mail_index` (`destMail`(40)),
|
|
ADD KEY `delivery_date_index` (`deliveryTime`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT pour les tables déchargées
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT pour la table `avionpoeme`
|
|
--
|
|
ALTER TABLE `avionpoeme`
|
|
MODIFY `idAvion` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
|
|
COMMIT;
|
|
|
|
/*!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 */;
|