1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__avion-poeme/sql/table_avionpoeme.sql

85 lines
2.7 KiB
MySQL
Raw Normal View History

2021-03-22 12:20:39 +01:00
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Hôte : db120904.sql-pro.online.net
2021-03-23 20:26:52 +01:00
-- Généré le : lun. 22 mars 2021 à 13:50
2021-03-22 12:20:39 +01:00
-- 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` (
2021-03-23 20:26:52 +01:00
`idAvion` int(10) UNSIGNED NOT NULL,
2021-03-22 12:20:39 +01:00
`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,
2021-03-23 20:26:52 +01:00
`status` tinyint(1) NOT NULL COMMENT '0 = public 1=privé, 2=supprimé',
2021-03-22 12:20:39 +01:00
`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,
2021-03-23 20:26:52 +01:00
`deliveryTimeServer` datetime NOT NULL
2021-03-22 12:20:39 +01:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `avionpoeme`
--
ALTER TABLE `avionpoeme`
2021-03-23 20:26:52 +01:00
ADD PRIMARY KEY (`idAvion`),
ADD UNIQUE KEY `status_index` (`idAvion`),
2021-03-22 12:20:39 +01:00
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`
2021-03-23 20:26:52 +01:00
MODIFY `idAvion` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
2021-03-22 12:20:39 +01:00
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 */;