From 2bf6a0d5ae6f9822bb4618bf5bc1f32fe81f31fa Mon Sep 17 00:00:00 2001
From: Thibault Ducruet <thibault.ducruet@etu.univ-lyon1.fr>
Date: Thu, 26 Oct 2023 12:26:27 +0200
Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20table=20filmVue?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/sql/table.sql | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/sql/table.sql b/src/sql/table.sql
index acfd959..a5eeaea 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)
+)
-- 
GitLab