diff --git a/src/sql/table.sql b/src/sql/table.sql index acfd959a0992227c9b26052bf997cc03f61be9d9..a5eeaea5b74e993c7ef09f02543417b81ba91d4a 100644 --- a/src/sql/table.sql +++ b/src/sql/table.sql @@ -25,3 +25,15 @@ Create TABLE IF NOT EXISTS Utilisateur dateNais date not null default (current_date) ); + + + +Create TABLE if not EXISTS FilmVue +( + login varchar(20) not null, + tconst varchar(20) not null, + note int default (3), + FOREIGN KEY (login) REFERENCES Utilisateur(login), + FOREIGN KEY (tconst) REFERENCES film(tconst), + PRIMARY KEY (login,tconst) +)