From 5604d9843c9879394cd88528aac0ed485c7a9d37 Mon Sep 17 00:00:00 2001 From: visoulier Date: Sun, 31 Mar 2024 19:20:04 +0200 Subject: [PATCH] =?UTF-8?q?suppression=20attribut=20jeu=20inutilis=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/fr/iut/sciencequest/sae/dto/partie/PartieDTO.java | 2 -- .../iut/sciencequest/sae/dto/partieKahoot/PartieKahootDTO.java | 2 -- SpringBootProject/src/main/resources/schema.sql | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/dto/partie/PartieDTO.java b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/dto/partie/PartieDTO.java index e80811f..8f526a2 100644 --- a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/dto/partie/PartieDTO.java +++ b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/dto/partie/PartieDTO.java @@ -27,8 +27,6 @@ public class PartieDTO extends RepresentationModel { private String codeInvitation; @NotEmpty private List joueurs; - @NotNull - private JeuDTO jeu; @NotEmpty private List thematiques; @NotNull diff --git a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/dto/partieKahoot/PartieKahootDTO.java b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/dto/partieKahoot/PartieKahootDTO.java index 2dd53a8..e580a75 100644 --- a/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/dto/partieKahoot/PartieKahootDTO.java +++ b/SpringBootProject/src/main/java/fr/iut/sciencequest/sae/dto/partieKahoot/PartieKahootDTO.java @@ -28,8 +28,6 @@ public class PartieKahootDTO extends RepresentationModel { private String codeInvitation; @NotEmpty private List joueurs; - @NotNull - private JeuDTO jeu; @NotEmpty private List thematiques; @NotNull diff --git a/SpringBootProject/src/main/resources/schema.sql b/SpringBootProject/src/main/resources/schema.sql index b0cf062..cc3c95b 100644 --- a/SpringBootProject/src/main/resources/schema.sql +++ b/SpringBootProject/src/main/resources/schema.sql @@ -118,7 +118,6 @@ CREATE OR REPLACE FUNCTION make_uid() RETURNS text AS CREATE TABLE Partie( id SERIAL PRIMARY KEY, codeInvitation varchar(5) UNIQUE DEFAULT make_uid(), - idJeu integer REFERENCES Jeu(id), idDifficulte integer REFERENCES Difficulte(id) NOT NULL, status varchar(128), dateCreation timestamp DEFAULT CURRENT_TIMESTAMP @@ -266,7 +265,7 @@ VALUES -- Partie -INSERT INTO Partie(codeInvitation, idJeu, idDifficulte, status) VALUES ('abcde', 1, 2, 'Pending'); +INSERT INTO Partie(codeInvitation, idDifficulte, status) VALUES ('abcde', 2, 'Pending'); INSERT INTO PartieKahoot(idPartie) VALUES (1); -- Utilisateurs