-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 23, 2023 at 11:15 PM
-- Server version: 8.0.30
-- PHP Version: 8.1.10

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;

--
-- Database: `unotes`
--

-- --------------------------------------------------------

--
-- Table structure for table `etudiant`
--

CREATE TABLE `etudiant` (
  `ID` int NOT NULL,
  `NOM` varchar(30) NOT NULL,
  `PRENOM` varchar(80) NOT NULL,
  `NAISSANCE` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `LIEU` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `PARCOURS` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `NIVEAU` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `SPECIALITE` varchar(200) NOT NULL,
  `INSCRIT` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `Image` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `etudiant`
--

INSERT INTO `etudiant` (`ID`, `NOM`, `PRENOM`, `NAISSANCE`, `LIEU`, `PARCOURS`, `NIVEAU`, `SPECIALITE`, `INSCRIT`, `Image`) VALUES
(1, 'AHO', 'Kodjo Mathias Abor', '3/03/2003', 'Togo', 'ISTIN', 'Licence 3', 'DA', '10/10/2023', 'C:\\Users\\Mawusi\\source\\repos\\Login_WPF\\Login_WPF\\meliodas.jpg'),
(6, 'AHO', 'JOEL', '4/01/2023', 'Togo', 'ISTIN', 'Mastere 1', 'PHC', '4/01/2023', NULL),
(11, 'AGNEKITOM', 'Mérovée', '14/12/2022', 'Benin', 'ISEG', 'Licence 3', 'DA', '4/01/2023', NULL),
(12, 'ALICE', 'MINAB', '11/01/2023', 'Benin', 'IMETIC', 'Licence 3', 'AUDIS', '4/01/2023', NULL),
(13, 'AHO', 'Daniel', '6/03/2003', 'Togo', 'ISSJ', 'Licence 3', 'MIDA', '4/10/2023', 'file:///C:/Users/Mawusi/Pictures/Images/IMG_20221221_095150_118.jpg'),
(15, 'MALLY', 'Gracio', '12/01/2023', 'Togo', 'ISTIN', 'Licence 3', 'MI', '9/01/2023', 'file:///C:/Users/Mawusi/source/repos/Login_WPF/Login_WPF/AccountCircle.ico'),
(16, 'hhhhh', 'gggggg', '4/01/2023', 'Benin', 'ISEG', 'Licence 3', 'MI', '19/01/2023', 'file:///C:/Users/Mawusi/source/repos/Login_WPF/Login_WPF/AccountCircle.ico'),
(17, 'hhhh', 'hh', '12/01/2023', 'Togo', 'ISEG', 'Lience 2', 'ml', '12/01/2023', 'file:///C:/Users/Mawusi/Pictures/Documents/sauvegarde mes documents12082019/raccourcis dropbox/sauvegarde août/fdgfs/Downloads/ucao-logo.jpg'),
(18, 'DOSSAVI', 'Gracia', '3/01/2023', 'Togo', 'ISTIN', 'Lience 1', 'MI', '11/01/2023', 'file:///C:/Users/Mawusi/Pictures/Documents/sauvegarde mes documents12082019/raccourcis dropbox/sauvegarde août/fdgfs/Downloads/update.png'),
(19, 'SEGNON', 'Charles', '2/03/2004', 'Togo', 'ISTIN', 'Lience 1', 'RIT', '10/01/2022', 'file:///C:/Users/Mawusi/source/repos/Login_WPF/Login_WPF/AccountCircle.ico');

-- --------------------------------------------------------

--
-- Table structure for table `notes`
--

CREATE TABLE `notes` (
  `ID_NOTE` int NOT NULL,
  `DEVOIR` varchar(5) DEFAULT NULL,
  `EXAMEN` varchar(5) DEFAULT NULL,
  `MOYENNE` varchar(5) DEFAULT NULL,
  `ID_ETUDIANT` int NOT NULL,
  `ECUE` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `notes`
--

INSERT INTO `notes` (`ID_NOTE`, `DEVOIR`, `EXAMEN`, `MOYENNE`, `ID_ETUDIANT`, `ECUE`) VALUES
(1, '15.5', '20', '17.75', 1, 'RAD'),
(3, '15', '20', '17,50', 11, 'ANGLAIS'),
(4, '19', '20', '20', 15, 'DROIT DES AFFAIRES'),
(5, '12', '13', '12', 12, 'MANAGEMENT'),
(6, '13,50', '17', '684', 1, 'SECURITE RESEAU'),
(7, '13', '15', '14', 1, ' GESTION DE PROJET'),
(8, '15', '20', '18', 15, 'PROGRAMMATION DISTRIBUE');

-- --------------------------------------------------------

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `Nom` text NOT NULL,
  `CONCTACT` int NOT NULL,
  `ECUE` enum('IHM','-','RAD','WEBMASTERING','APOO') DEFAULT NULL,
  `MENTION` enum('Administrateur','Service Scolarité','Professeur') NOT NULL,
  `ID` int NOT NULL,
  `Images` varchar(1000) NOT NULL,
  `Lettre` char(2) NOT NULL,
  `PASSWORD` varchar(20) NOT NULL,
  `USERNAME` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`Nom`, `CONCTACT`, `ECUE`, `MENTION`, `ID`, `Images`, `Lettre`, `PASSWORD`, `USERNAME`) VALUES
('AHO Kodjo Mathias Abor', 97282958, '-', 'Administrateur', 1, 'C:\\Users\\User\\Pictures\\Mathias.jpg', 'AM', 'Mathias2a', 'Abor');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `etudiant`
--
ALTER TABLE `etudiant`
  ADD PRIMARY KEY (`ID`);

--
-- Indexes for table `notes`
--
ALTER TABLE `notes`
  ADD PRIMARY KEY (`ID_NOTE`),
  ADD KEY `ID_ETUDIANT` (`ID_ETUDIANT`);

--
-- Indexes for table `user`
--
ALTER TABLE `user`
  ADD PRIMARY KEY (`ID`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `etudiant`
--
ALTER TABLE `etudiant`
  MODIFY `ID` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `notes`
--
ALTER TABLE `notes`
  MODIFY `ID_NOTE` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
  MODIFY `ID` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `notes`
--
ALTER TABLE `notes`
  ADD CONSTRAINT `ID_ETUDIANT` FOREIGN KEY (`ID_ETUDIANT`) REFERENCES `etudiant` (`ID`) ON DELETE RESTRICT ON UPDATE RESTRICT;
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 */;
