1
0

first alpha

This commit is contained in:
Daniel Tartavel
2021-03-23 20:26:52 +01:00
parent 944e742590
commit fc0c6bdf3f
11 changed files with 145 additions and 61 deletions

1
sql/.htaccess Normal file
View File

@@ -0,0 +1 @@
Options -Indexes

View File

@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- Hôte : db120904.sql-pro.online.net
-- Généré le : sam. 20 mars 2021 à 17:16
-- 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
@@ -29,7 +29,7 @@ SET time_zone = "+00:00";
--
CREATE TABLE `avionpoeme` (
`uid` int(10) UNSIGNED NOT NULL,
`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',
@@ -44,14 +44,14 @@ CREATE TABLE `avionpoeme` (
`destLat` float NOT NULL,
`destLon` float NOT NULL,
`destName` text NOT NULL,
`status` tinyint(1) NOT NULL COMMENT '0 = privé, 1=public, 2=supprimé',
`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` timestamp NOT NULL
`deliveryTimeServer` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
@@ -62,7 +62,8 @@ CREATE TABLE `avionpoeme` (
-- Index pour la table `avionpoeme`
--
ALTER TABLE `avionpoeme`
ADD PRIMARY KEY (`uid`),
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`);
@@ -75,7 +76,7 @@ ALTER TABLE `avionpoeme`
-- AUTO_INCREMENT pour la table `avionpoeme`
--
ALTER TABLE `avionpoeme`
MODIFY `uid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
MODIFY `idAvion` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;