diff --git a/mydb.sql b/mydb.sql index 002b87b69f2862d510674de9a25aa7f08124f7b8..03c1d52e099781b9571816f3f34d82b7cf2d4263 100644 --- a/mydb.sql +++ b/mydb.sql @@ -3,7 +3,7 @@ -- http://www.phpmyadmin.net -- -- Client : localhost --- Généré le : Mer 27 Décembre 2023 à 22:09 +-- Généré le : Sam 06 Janvier 2024 à 17:05 -- Version du serveur : 5.7.11 -- Version de PHP : 5.6.18 @@ -28,6 +28,7 @@ USE `mydb`; -- Structure de la table `adherentsemail` -- +DROP TABLE IF EXISTS `adherentsemail`; CREATE TABLE IF NOT EXISTS `adherentsemail` ( `AdherentID` int(11) NOT NULL DEFAULT '0', `Nom` varchar(255) DEFAULT NULL, @@ -57,6 +58,7 @@ INSERT INTO `adherentsemail` (`AdherentID`, `Nom`, `Prenom`, `AdresseMail`, `Age -- Structure de la table `adherentstel` -- +DROP TABLE IF EXISTS `adherentstel`; CREATE TABLE IF NOT EXISTS `adherentstel` ( `AdherentID` int(11) NOT NULL DEFAULT '0', `Nom` varchar(255) DEFAULT NULL, @@ -82,6 +84,7 @@ INSERT INTO `adherentstel` (`AdherentID`, `Nom`, `Prenom`, `NumeroTelephone`, `A -- Structure de la table `associationsportive` -- +DROP TABLE IF EXISTS `associationsportive`; CREATE TABLE IF NOT EXISTS `associationsportive` ( `idAssociationSportive` int(11) NOT NULL, `nom` varchar(45) DEFAULT NULL, @@ -104,6 +107,7 @@ INSERT INTO `associationsportive` (`idAssociationSportive`, `nom`, `adresse`, `t -- Structure de la table `competitions` -- +DROP TABLE IF EXISTS `competitions`; CREATE TABLE IF NOT EXISTS `competitions` ( `CompetitionID` int(11) NOT NULL, `Lieu` varchar(255) DEFAULT NULL, @@ -132,6 +136,7 @@ INSERT INTO `competitions` (`CompetitionID`, `Lieu`, `Horaire`, `PlacesDisponibl -- Structure de la table `documentsadministratifs` -- +DROP TABLE IF EXISTS `documentsadministratifs`; CREATE TABLE IF NOT EXISTS `documentsadministratifs` ( `DocumentID` int(11) NOT NULL, `AdherentID` int(11) NOT NULL, @@ -141,10 +146,34 @@ CREATE TABLE IF NOT EXISTS `documentsadministratifs` ( -- -------------------------------------------------------- +-- +-- Structure de la table `dossier_inscription` +-- + +DROP TABLE IF EXISTS `dossier_inscription`; +CREATE TABLE IF NOT EXISTS `dossier_inscription` ( + `ID` int(11) NOT NULL AUTO_INCREMENT, + `Nom` varchar(50) NOT NULL, + `Prenom` varchar(50) NOT NULL, + `DateNaissance` date NOT NULL, + `Adresse` varchar(255) NOT NULL, + `Email` varchar(100) NOT NULL, + `NumeroTel` varchar(15) NOT NULL, + `PostePrefere` varchar(50) DEFAULT NULL, + `NiveauExperience` varchar(50) DEFAULT NULL, + `CertificatMedical` tinyint(1) NOT NULL, + `AutorisationParentale` tinyint(1) NOT NULL, + `DateInscription` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + -- -- Structure de la table `inscriptionscompetitions` -- +DROP TABLE IF EXISTS `inscriptionscompetitions`; CREATE TABLE IF NOT EXISTS `inscriptionscompetitions` ( `InscriptionID` int(11) NOT NULL, `AdherentID` int(11) NOT NULL, @@ -173,6 +202,7 @@ INSERT INTO `inscriptionscompetitions` (`InscriptionID`, `AdherentID`, `Competit -- Structure de la table `members` -- +DROP TABLE IF EXISTS `members`; CREATE TABLE IF NOT EXISTS `members` ( `MemberID` int(11) NOT NULL AUTO_INCREMENT, `password` varchar(255) DEFAULT NULL, @@ -196,6 +226,7 @@ INSERT INTO `members` (`MemberID`, `password`, `login`) VALUES -- Structure de la table `planificationmatchs` -- +DROP TABLE IF EXISTS `planificationmatchs`; CREATE TABLE IF NOT EXISTS `planificationmatchs` ( `MatchID` int(11) NOT NULL DEFAULT '0', `CompetitionID` int(11) NOT NULL DEFAULT '0', @@ -228,6 +259,7 @@ INSERT INTO `planificationmatchs` (`MatchID`, `CompetitionID`, `Court`, `Horaire -- Structure de la table `programme` -- +DROP TABLE IF EXISTS `programme`; CREATE TABLE IF NOT EXISTS `programme` ( `ProgrammeID` int(11) NOT NULL AUTO_INCREMENT, `Nom` varchar(255) NOT NULL, @@ -255,6 +287,7 @@ INSERT INTO `programme` (`ProgrammeID`, `Nom`, `Description`, `DateDebut`, `Date -- Structure de la table `reservationscourts` -- +DROP TABLE IF EXISTS `reservationscourts`; CREATE TABLE IF NOT EXISTS `reservationscourts` ( `ReservationID` int(11) NOT NULL, `AdherentID` int(11) NOT NULL, @@ -281,6 +314,7 @@ INSERT INTO `reservationscourts` (`ReservationID`, `AdherentID`, `HoraireReserva -- Structure de la table `resultats` -- +DROP TABLE IF EXISTS `resultats`; CREATE TABLE IF NOT EXISTS `resultats` ( `ResultatID` int(11) NOT NULL, `CompetitionID` int(11) NOT NULL, @@ -308,6 +342,7 @@ INSERT INTO `resultats` (`ResultatID`, `CompetitionID`, `Gagnant`, `Score`) VALU -- Structure de la table `sponsors` -- +DROP TABLE IF EXISTS `sponsors`; CREATE TABLE IF NOT EXISTS `sponsors` ( `idsponsors` int(11) NOT NULL, `nom` varchar(45) DEFAULT NULL @@ -333,6 +368,7 @@ INSERT INTO `sponsors` (`idsponsors`, `nom`) VALUES -- Structure de la table `telechargeable` -- +DROP TABLE IF EXISTS `telechargeable`; CREATE TABLE IF NOT EXISTS `telechargeable` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom_dossier` varchar(255) NOT NULL, @@ -353,18 +389,3 @@ INSERT INTO `telechargeable` (`id`, `nom_dossier`, `type_document`, `fichier_pat /*!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 */; - -CREATE TABLE IF NOT EXISTS `dossier_inscription` ( - `ID` INT AUTO_INCREMENT PRIMARY KEY, - `Nom` VARCHAR(50) NOT NULL, - `Prenom` VARCHAR(50) NOT NULL, - `DateNaissance` DATE NOT NULL, - `Adresse` VARCHAR(255) NOT NULL, - `Email` VARCHAR(100) NOT NULL, - `NumeroTel` VARCHAR(15) NOT NULL, - `PostePrefere` VARCHAR(50), - `NiveauExperience` VARCHAR(50), - `CertificatMedical` BOOLEAN NOT NULL, - `AutorisationParentale` BOOLEAN NOT NULL, - `DateInscription` TIMESTAMP DEFAULT CURRENT_TIMESTAMP -);