ajout table wifi

This commit is contained in:
Jérôme Bousquié 2016-12-13 15:38:19 +01:00
parent fa5683a51a
commit b74bdf39bd

View File

@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Ven 02 Décembre 2016 à 10:30
-- Généré le : Mar 13 Décembre 2016 à 15:35
-- Version du serveur : 5.5.53-0+deb8u1
-- Version de PHP : 5.6.27-0+deb8u1
@ -28,10 +28,10 @@ SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `comptes` (
`compte_id` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`prenom` varchar(25) NOT NULL,
`nom` varchar(30) NOT NULL,
`groupe` varchar(25) DEFAULT NULL
`username` varchar(25) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`prenom` varchar(25) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`nom` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`groupe` varchar(25) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=MyISAM AUTO_INCREMENT=890 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
@ -49,7 +49,7 @@ CREATE TABLE IF NOT EXISTS `connexions` (
`debut_con` timestamp NULL DEFAULT '0000-00-00 00:00:00',
`close` tinyint(1) NOT NULL DEFAULT '1',
`archivable` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=MyISAM AUTO_INCREMENT=33428 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=MyISAM AUTO_INCREMENT=38044 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
@ -110,10 +110,25 @@ CREATE TABLE IF NOT EXISTS `total_connexions` (
`username` varchar(30) COLLATE utf8_unicode_ci NOT NULL COMMENT 'login windows',
`hote` varchar(15) COLLATE utf8_unicode_ci NOT NULL COMMENT 'nom machine',
`ip` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`fin_con` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`fin_con` timestamp NULL DEFAULT '0000-00-00 00:00:00',
`debut_con` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `wifi`
--
CREATE TABLE IF NOT EXISTS `wifi` (
`wifi_id` bigint(20) NOT NULL,
`wifi_username` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`wifi_ip` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`wifi_browser` varchar(160) COLLATE utf8_unicode_ci NOT NULL,
`wifi_deb_conn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`close` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=MyISAM AUTO_INCREMENT=316 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Index pour les tables exportées
--
@ -148,6 +163,12 @@ ALTER TABLE `salles`
ALTER TABLE `total_connexions`
ADD PRIMARY KEY (`con_id`), ADD KEY `username` (`username`), ADD KEY `hote` (`hote`), ADD KEY `ip` (`ip`);
--
-- Index pour la table `wifi`
--
ALTER TABLE `wifi`
ADD PRIMARY KEY (`wifi_id`), ADD KEY `wifi_username` (`wifi_username`), ADD KEY `wifi_deb_conn` (`wifi_deb_conn`), ADD KEY `close` (`close`);
--
-- AUTO_INCREMENT pour les tables exportées
--
@ -161,7 +182,12 @@ MODIFY `compte_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=890;
-- AUTO_INCREMENT pour la table `connexions`
--
ALTER TABLE `connexions`
MODIFY `con_id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=33428;
MODIFY `con_id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=38044;
--
-- AUTO_INCREMENT pour la table `wifi`
--
ALTER TABLE `wifi`
MODIFY `wifi_id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=316;
/*!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 */;