diff --git a/creation_tables.txt b/creation_tables.txt index 1f2a760..f870f80 100644 --- a/creation_tables.txt +++ b/creation_tables.txt @@ -14,7 +14,14 @@ CREATE TABLE adherent ( FOREIGN KEY (club) REFERENCES club(nom) ); - +CREATE TABLE respo ( + club VARCHAR(100) PRIMARY KEY, + president INT, + tresorier INT, + FOREIGN KEY (club) REFERENCES club(nom), + FOREIGN KEY (president) REFERENCES adherent(code), + FOREIGN KEY (tresorier) REFERENCES adherent(code) +); CREATE TABLE competition ( code INT PRIMARY KEY,