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