wop
This commit is contained in:
parent
e7373af260
commit
df98b1ed3f
17
README.md
17
README.md
@ -1,7 +1,8 @@
|
||||
# Rapport de projet module 106
|
||||
|
||||
## Introduction
|
||||
|
||||
> Ce rapport documente la réalisation du projet du module 106, axé sur l'administration et la gestion de bases de données relationnelles.
|
||||
> L'objectif était de concevoir, implémenter et administrer la base de données de l'aéroport fictif **SkyConnect**.
|
||||
|
||||
## Base de données
|
||||
### Conception de la base de données
|
||||
@ -13,18 +14,30 @@
|
||||
|---|---|
|
||||
|MCD||
|
||||
|MLD||
|
||||
|||
|
||||
|
||||
### Création de la base de données
|
||||
> La base de données a été crée à partir du fichier looping que le professeur nous a donné.
|
||||
> J'ai simplement copié le script LDD généré par looping et je l'ai collé dans le terminal connecté à la base de données.
|
||||
|
||||
### Chargement des données
|
||||
|
||||
|
||||
|
||||
|Requetes|Remarques|
|
||||
| ------------- | ---------- |
|
||||
|LOAD DATA INFILE '/var/lib/mysql-files/t_passager.tsv' |
|
||||
|INTO TABLE t_passager |
|
||||
|FIELDS TERMINATED BY '\t' |
|
||||
|LINES TERMINATED BY '\n' |
|
||||
|IGNORE 1 ROWS; |
|
||||
|-------------- | --------- |
|
||||
|
||||
|
||||
docker cp C:\Users\pn26qvj\Downloads\exports_tsv_final\* /var/lib/mysql-files
|
||||
|
||||
|
||||
|
||||
|
||||
LOAD DATA INFILE '/var/lib/mysql-files/t_passager.tsv'
|
||||
INTO TABLE t_passager
|
||||
FIELDS TERMINATED BY '\t'
|
||||
|
||||
9855
annexes/db/data/t_aeroport.tsv
Normal file
9855
annexes/db/data/t_aeroport.tsv
Normal file
File diff suppressed because it is too large
Load Diff
3951
annexes/db/data/t_avion.tsv
Normal file
3951
annexes/db/data/t_avion.tsv
Normal file
File diff suppressed because it is too large
Load Diff
111
annexes/db/data/t_compagnie.tsv
Normal file
111
annexes/db/data/t_compagnie.tsv
Normal file
@ -0,0 +1,111 @@
|
||||
compagnie_id code_iata nom aeroport_fk
|
||||
1 AF Afghanistan Airlines 850
|
||||
2 AL Albania Airlines 10274
|
||||
3 AM American Samoa Airli 9210
|
||||
4 AN Angola Airlines 190
|
||||
5 AR Argentina Airlines 285
|
||||
6 AU Australia Airlines 73
|
||||
7 AZ Azerbaijan Airlines 1216
|
||||
8 BA Bahamas Airlines 405
|
||||
9 BE Belarus Airlines 1534
|
||||
10 BH Bhutan Airlines 9320
|
||||
11 BO Bolivia Airlines 466
|
||||
12 BR Brazil Airlines 93
|
||||
13 BU Bulgaria Airlines 1674
|
||||
14 CA Caicos Is Airlines 2600
|
||||
16 CH Chad Airlines 27
|
||||
17 CO Colombia Airlines 118
|
||||
18 CR Croatia Airlines 2373
|
||||
19 CU Cuba Airlines 28
|
||||
20 CY Cyprus Airlines 168
|
||||
21 CZ Czech Airlines 5175
|
||||
22 DA Dakhla And Laayoune 2884
|
||||
23 DE Denmark Airlines 7
|
||||
24 DJ Djibouti Airlines 343
|
||||
25 DO Dominica Airlines 1874
|
||||
26 EC Ecuador Airlines 2130
|
||||
27 EG Egypt Airlines 46
|
||||
28 EL El Salvador Airlines 3499
|
||||
29 EQ Equatorial Guinea Ai 965
|
||||
30 ER Eritrea Airlines 613
|
||||
31 ES Estonia Airlines 5940
|
||||
32 ET Ethiopia Airlines 4
|
||||
33 FA Falkland Is Airlines 8303
|
||||
34 FI Fiji Is Airlines 6518
|
||||
35 FR France Airlines 146
|
||||
36 GA Gabon Airlines 1257
|
||||
37 GE Georgia Airlines 6330
|
||||
38 GH Ghana Airlines 6349
|
||||
39 GI Gibraltar Airlines 4345
|
||||
40 GR Greece Airlines 111
|
||||
41 GU Guadeloupe Airlines 794
|
||||
42 HA Haiti Airlines 1894
|
||||
43 HO Honduras Airlines 2047
|
||||
44 HU Hungary Airlines 815
|
||||
45 IC Iceland Airlines 174
|
||||
46 IN India Airlines 103
|
||||
47 IR Iran Airlines 15
|
||||
48 IS Isla De Pascua Airli 7642
|
||||
49 IT Italy Airlines 197
|
||||
50 IV Ivory Coast Airlines 29
|
||||
52 JE Jerusalem Airlines 5686
|
||||
53 JO Johnston Atoll Airli 5737
|
||||
54 KA Kazakhstan Airlines 169
|
||||
55 KE Kenya Airlines 342
|
||||
56 KI Kiribati Airlines 1382
|
||||
57 KO Korea Airlines 5
|
||||
58 KU Kuwait Airlines 6418
|
||||
59 KY Kyrgyzstan Airlines 7396
|
||||
60 LA Laos Airlines 661
|
||||
61 LE Lebanon Airlines 1051
|
||||
62 LI Liberia Airlines 1623
|
||||
63 LU Luxembourg Airlines 7217
|
||||
64 MA Macau Airlines 7243
|
||||
65 ME Melilla Airlines 7809
|
||||
66 MI Micronesia Airlines 730
|
||||
67 MO Moldova Airlines 2327
|
||||
68 MY Myanmar Airlines 771
|
||||
69 NA Namibia Airlines 488
|
||||
70 NE Nepal Airlines 775
|
||||
71 NI Nicaragua Airlines 1307
|
||||
72 NO Northern Mariana Is 10432
|
||||
73 OM Oman Airlines 6116
|
||||
74 PA Pakistan Airlines 261
|
||||
75 PE Peru Airlines 218
|
||||
76 PH Philippines Airlines 744
|
||||
77 PO Poland Airlines 732
|
||||
79 QA Qatar Airlines 3170
|
||||
80 RE Reunion Airlines 4366
|
||||
81 RO Romania Airlines 480
|
||||
82 RU Russia Airlines 17
|
||||
83 RW Rwanda Airlines 1700
|
||||
84 SA San Andres Airlines 4755
|
||||
85 SE Senegal Airlines 804
|
||||
86 SI Sierra Leone Airline 1314
|
||||
87 SL Slovakia Airlines 6338
|
||||
88 SO Solomon Is Airlines 4384
|
||||
89 SP Spain Airlines 1
|
||||
90 SR Sri Lanka Airlines 363
|
||||
91 ST St Kitts Airlines 8646
|
||||
92 SU Sudan Airlines 634
|
||||
93 SW Swaziland Airlines 7649
|
||||
94 SY Syria Airlines 220
|
||||
95 TA Taiwan Airlines 2273
|
||||
96 TH Thailand Airlines 873
|
||||
97 TO Togo Airlines 8683
|
||||
98 TR Trinidad Airlines 2804
|
||||
99 TU Tunisia Airlines 2003
|
||||
100 UG Uganda Airlines 580
|
||||
101 UK Ukraine Airlines 1416
|
||||
102 UN United Arab Emirates 45
|
||||
103 UR Uruguay Airlines 576
|
||||
104 UZ Uzbekistan Airlines 1652
|
||||
105 VA Vanuatu Airlines 987
|
||||
106 VE Venezuela Airlines 202
|
||||
107 VI Vietnam Airlines 1668
|
||||
108 WA Wake I Airlines 12951
|
||||
109 WE Western Samoa Airlin 3729
|
||||
110 YE Yemen Airlines 25
|
||||
111 YU Yugoslavia Airlines 1062
|
||||
112 ZA Zambia Airlines 2319
|
||||
113 ZI Zimbabwe Airlines 1640
|
||||
|
36096
annexes/db/data/t_passager.tsv
Normal file
36096
annexes/db/data/t_passager.tsv
Normal file
File diff suppressed because it is too large
Load Diff
9615
annexes/db/data/t_programme_vol.tsv
Normal file
9615
annexes/db/data/t_programme_vol.tsv
Normal file
File diff suppressed because it is too large
Load Diff
5455884
annexes/db/data/t_reservation.tsv
Normal file
5455884
annexes/db/data/t_reservation.tsv
Normal file
File diff suppressed because it is too large
Load Diff
343
annexes/db/data/t_type_avion.tsv
Normal file
343
annexes/db/data/t_type_avion.tsv
Normal file
File diff suppressed because one or more lines are too long
321912
annexes/db/data/t_vol.tsv
Normal file
321912
annexes/db/data/t_vol.tsv
Normal file
File diff suppressed because it is too large
Load Diff
95
annexes/db/db.sql
Normal file
95
annexes/db/db.sql
Normal file
@ -0,0 +1,95 @@
|
||||
CREATE DATABASE db IF NOT EXIST;
|
||||
|
||||
USE db;
|
||||
|
||||
CREATE TABLE t_aeroport(
|
||||
aeroport_id INT AUTO_INCREMENT,
|
||||
code_iata CHAR(3),
|
||||
code_icao CHAR(4),
|
||||
nom VARCHAR(50),
|
||||
PRIMARY KEY(aeroport_id),
|
||||
UNIQUE(code_icao)
|
||||
);
|
||||
|
||||
CREATE TABLE t_compagnie(
|
||||
compagnie_id INT AUTO_INCREMENT,
|
||||
code_iata CHAR(2),
|
||||
nom VARCHAR(30),
|
||||
aeroport_fk INT NOT NULL,
|
||||
PRIMARY KEY(compagnie_id),
|
||||
FOREIGN KEY(aeroport_fk) REFERENCES t_aeroport(aeroport_id)
|
||||
);
|
||||
|
||||
CREATE TABLE t_type_avion(
|
||||
type_avion_id INT AUTO_INCREMENT,
|
||||
nom VARCHAR(50),
|
||||
description TEXT,
|
||||
PRIMARY KEY(type_avion_id)
|
||||
);
|
||||
|
||||
CREATE TABLE t_avion(
|
||||
avion_id INT AUTO_INCREMENT,
|
||||
capacite INT,
|
||||
compagnie_fk INT NOT NULL,
|
||||
type_avion_fk INT NOT NULL,
|
||||
PRIMARY KEY(avion_id),
|
||||
FOREIGN KEY(compagnie_fk) REFERENCES t_compagnie(compagnie_id),
|
||||
FOREIGN KEY(type_avion_fk) REFERENCES t_type_avion(type_avion_id)
|
||||
);
|
||||
|
||||
CREATE TABLE t_programme_vol(
|
||||
numero_vol CHAR(8),
|
||||
heure_depart TIME,
|
||||
heure_arrivee TIME,
|
||||
lundi TINYINT,
|
||||
mardi TINYINT,
|
||||
mercredi TINYINT,
|
||||
jeudi TINYINT,
|
||||
vendredi TINYINT,
|
||||
samedi TINYINT,
|
||||
dimanche TINYINT,
|
||||
compagnie_fk INT NOT NULL,
|
||||
aeroport_arrivee_fk INT NOT NULL,
|
||||
aeroport_depart_fk INT NOT NULL,
|
||||
PRIMARY KEY(numero_vol),
|
||||
FOREIGN KEY(compagnie_fk) REFERENCES t_compagnie(compagnie_id),
|
||||
FOREIGN KEY(aeroport_arrivee_fk) REFERENCES t_aeroport(aeroport_id),
|
||||
FOREIGN KEY(aeroport_depart_fk) REFERENCES t_aeroport(aeroport_id)
|
||||
);
|
||||
|
||||
CREATE TABLE t_passager(
|
||||
passager_id INT AUTO_INCREMENT,
|
||||
numero_passeport CHAR(9),
|
||||
nom VARCHAR(100),
|
||||
prenom VARCHAR(100),
|
||||
PRIMARY KEY(passager_id),
|
||||
UNIQUE(numero_passeport)
|
||||
);
|
||||
|
||||
CREATE TABLE t_vol(
|
||||
vol_id INT AUTO_INCREMENT,
|
||||
heure_depart TIME,
|
||||
heure_arrivee TIME,
|
||||
avion_fk INT NOT NULL,
|
||||
compagnie_fk INT NOT NULL,
|
||||
aeroport_arrivee_fk INT NOT NULL,
|
||||
aeroport_depart_fk INT NOT NULL,
|
||||
numero_vol_fk CHAR(8) NOT NULL,
|
||||
PRIMARY KEY(vol_id),
|
||||
FOREIGN KEY(avion_fk) REFERENCES t_avion(avion_id),
|
||||
FOREIGN KEY(compagnie_fk) REFERENCES t_compagnie(compagnie_id),
|
||||
FOREIGN KEY(aeroport_arrivee_fk) REFERENCES t_aeroport(aeroport_id),
|
||||
FOREIGN KEY(aeroport_depart_fk) REFERENCES t_aeroport(aeroport_id),
|
||||
FOREIGN KEY(numero_vol_fk) REFERENCES t_programme_vol(numero_vol)
|
||||
);
|
||||
|
||||
CREATE TABLE t_reservation(
|
||||
reservation_id INT AUTO_INCREMENT,
|
||||
siege CHAR(4),
|
||||
prix DECIMAL(10,2),
|
||||
passager_fk INT NOT NULL,
|
||||
vol_fk INT NOT NULL,
|
||||
PRIMARY KEY(reservation_id),
|
||||
FOREIGN KEY(passager_fk) REFERENCES t_passager(passager_id),
|
||||
FOREIGN KEY(vol_fk) REFERENCES t_vol(vol_id)
|
||||
);
|
||||
196
annexes/db/db_dump.sql
Normal file
196
annexes/db/db_dump.sql
Normal file
@ -0,0 +1,196 @@
|
||||
-- MySQL dump 10.13 Distrib 9.4.0, for Linux (x86_64)
|
||||
--
|
||||
-- Host: localhost Database: db
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 9.4.0
|
||||
|
||||
/*!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 */;
|
||||
/*!50503 SET NAMES utf8mb4 */;
|
||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||
|
||||
--
|
||||
-- Table structure for table `t_aeroport`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `t_aeroport`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `t_aeroport` (
|
||||
`aeroport_id` int NOT NULL AUTO_INCREMENT,
|
||||
`code_iata` char(3) DEFAULT NULL,
|
||||
`code_icao` char(4) DEFAULT NULL,
|
||||
`nom` varchar(50) DEFAULT NULL,
|
||||
PRIMARY KEY (`aeroport_id`),
|
||||
UNIQUE KEY `code_icao` (`code_icao`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=13598 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `t_avion`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `t_avion`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `t_avion` (
|
||||
`avion_id` int NOT NULL AUTO_INCREMENT,
|
||||
`capacite` int DEFAULT NULL,
|
||||
`compagnie_fk` int NOT NULL,
|
||||
`type_avion_fk` int NOT NULL,
|
||||
PRIMARY KEY (`avion_id`),
|
||||
KEY `compagnie_fk` (`compagnie_fk`),
|
||||
KEY `type_avion_fk` (`type_avion_fk`),
|
||||
CONSTRAINT `t_avion_ibfk_1` FOREIGN KEY (`compagnie_fk`) REFERENCES `t_compagnie` (`compagnie_id`),
|
||||
CONSTRAINT `t_avion_ibfk_2` FOREIGN KEY (`type_avion_fk`) REFERENCES `t_type_avion` (`type_avion_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=5582 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `t_compagnie`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `t_compagnie`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `t_compagnie` (
|
||||
`compagnie_id` int NOT NULL AUTO_INCREMENT,
|
||||
`code_iata` char(2) DEFAULT NULL,
|
||||
`nom` varchar(30) DEFAULT NULL,
|
||||
`aeroport_fk` int NOT NULL,
|
||||
PRIMARY KEY (`compagnie_id`),
|
||||
KEY `aeroport_fk` (`aeroport_fk`),
|
||||
CONSTRAINT `t_compagnie_ibfk_1` FOREIGN KEY (`aeroport_fk`) REFERENCES `t_aeroport` (`aeroport_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `t_passager`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `t_passager`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `t_passager` (
|
||||
`passager_id` int NOT NULL AUTO_INCREMENT,
|
||||
`numero_passeport` char(9) DEFAULT NULL,
|
||||
`nom` varchar(100) DEFAULT NULL,
|
||||
`prenom` varchar(100) DEFAULT NULL,
|
||||
PRIMARY KEY (`passager_id`),
|
||||
UNIQUE KEY `numero_passeport` (`numero_passeport`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=36100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `t_programme_vol`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `t_programme_vol`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `t_programme_vol` (
|
||||
`numero_vol` char(8) NOT NULL,
|
||||
`heure_depart` time DEFAULT NULL,
|
||||
`heure_arrivee` time DEFAULT NULL,
|
||||
`lundi` tinyint DEFAULT NULL,
|
||||
`mardi` tinyint DEFAULT NULL,
|
||||
`mercredi` tinyint DEFAULT NULL,
|
||||
`jeudi` tinyint DEFAULT NULL,
|
||||
`vendredi` tinyint DEFAULT NULL,
|
||||
`samedi` tinyint DEFAULT NULL,
|
||||
`dimanche` tinyint DEFAULT NULL,
|
||||
`compagnie_fk` int NOT NULL,
|
||||
`aeroport_arrivee_fk` int NOT NULL,
|
||||
`aeroport_depart_fk` int NOT NULL,
|
||||
PRIMARY KEY (`numero_vol`),
|
||||
KEY `compagnie_fk` (`compagnie_fk`),
|
||||
KEY `aeroport_arrivee_fk` (`aeroport_arrivee_fk`),
|
||||
KEY `aeroport_depart_fk` (`aeroport_depart_fk`),
|
||||
CONSTRAINT `t_programme_vol_ibfk_1` FOREIGN KEY (`compagnie_fk`) REFERENCES `t_compagnie` (`compagnie_id`),
|
||||
CONSTRAINT `t_programme_vol_ibfk_2` FOREIGN KEY (`aeroport_arrivee_fk`) REFERENCES `t_aeroport` (`aeroport_id`),
|
||||
CONSTRAINT `t_programme_vol_ibfk_3` FOREIGN KEY (`aeroport_depart_fk`) REFERENCES `t_aeroport` (`aeroport_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `t_reservation`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `t_reservation`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `t_reservation` (
|
||||
`reservation_id` int NOT NULL AUTO_INCREMENT,
|
||||
`siege` char(4) DEFAULT NULL,
|
||||
`prix` decimal(10,2) DEFAULT NULL,
|
||||
`passager_fk` int NOT NULL,
|
||||
`vol_fk` int NOT NULL,
|
||||
PRIMARY KEY (`reservation_id`),
|
||||
KEY `passager_fk` (`passager_fk`),
|
||||
KEY `vol_fk` (`vol_fk`),
|
||||
CONSTRAINT `t_reservation_ibfk_1` FOREIGN KEY (`passager_fk`) REFERENCES `t_passager` (`passager_id`),
|
||||
CONSTRAINT `t_reservation_ibfk_2` FOREIGN KEY (`vol_fk`) REFERENCES `t_vol` (`vol_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=7122275 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `t_type_avion`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `t_type_avion`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `t_type_avion` (
|
||||
`type_avion_id` int NOT NULL AUTO_INCREMENT,
|
||||
`nom` varchar(50) DEFAULT NULL,
|
||||
`description` text,
|
||||
PRIMARY KEY (`type_avion_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=343 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `t_vol`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `t_vol`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `t_vol` (
|
||||
`vol_id` int NOT NULL AUTO_INCREMENT,
|
||||
`heure_depart` time DEFAULT NULL,
|
||||
`heure_arrivee` time DEFAULT NULL,
|
||||
`avion_fk` int NOT NULL,
|
||||
`compagnie_fk` int NOT NULL,
|
||||
`aeroport_arrivee_fk` int NOT NULL,
|
||||
`aeroport_depart_fk` int NOT NULL,
|
||||
`numero_vol_fk` char(8) NOT NULL,
|
||||
PRIMARY KEY (`vol_id`),
|
||||
KEY `avion_fk` (`avion_fk`),
|
||||
KEY `compagnie_fk` (`compagnie_fk`),
|
||||
KEY `aeroport_arrivee_fk` (`aeroport_arrivee_fk`),
|
||||
KEY `aeroport_depart_fk` (`aeroport_depart_fk`),
|
||||
KEY `numero_vol_fk` (`numero_vol_fk`),
|
||||
CONSTRAINT `t_vol_ibfk_1` FOREIGN KEY (`avion_fk`) REFERENCES `t_avion` (`avion_id`),
|
||||
CONSTRAINT `t_vol_ibfk_2` FOREIGN KEY (`compagnie_fk`) REFERENCES `t_compagnie` (`compagnie_id`),
|
||||
CONSTRAINT `t_vol_ibfk_3` FOREIGN KEY (`aeroport_arrivee_fk`) REFERENCES `t_aeroport` (`aeroport_id`),
|
||||
CONSTRAINT `t_vol_ibfk_4` FOREIGN KEY (`aeroport_depart_fk`) REFERENCES `t_aeroport` (`aeroport_id`),
|
||||
CONSTRAINT `t_vol_ibfk_5` FOREIGN KEY (`numero_vol_fk`) REFERENCES `t_programme_vol` (`numero_vol`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=758663 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||
/*!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 */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2025-10-27 14:36:17
|
||||
Loading…
x
Reference in New Issue
Block a user