From 09005adb761f3fff4faec8c32b170d34450d99d1 Mon Sep 17 00:00:00 2001 From: Bonnet Ronan Date: Wed, 30 Nov 2022 16:22:37 +0100 Subject: [PATCH] Create Organise Table --- personnel.sql | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/personnel.sql b/personnel.sql index 9ae8d51..fb4039e 100644 --- a/personnel.sql +++ b/personnel.sql @@ -1,2 +1,11 @@ CREATE TABLE Personnel -(); \ No newline at end of file +(); + + +CREATE TABLE Organise ( + idPortesOuverte INT NOT NULL, + idPersonnel INT NOT NULL, + FOREIGN KEY (idPortesOuverte) REFERENCES Journee_Portes_Ouvertes(idPorte_Ouverte), + FOREIGN KEY (idPersonnel) REFERENCES Personnel(idPersonnel), + PRIMARY KEY(idPortesOuverte, idPersonnel) +); \ No newline at end of file