suppression attribut jeu inutilisé

Springboot
Victor SOULIER 1 year ago
parent 567be9b94f
commit 5604d9843c

@ -27,8 +27,6 @@ public class PartieDTO extends RepresentationModel<PartieDTO> {
private String codeInvitation;
@NotEmpty
private List<JoueurSimpleDTO> joueurs;
@NotNull
private JeuDTO jeu;
@NotEmpty
private List<ThematiqueSimpleDTO> thematiques;
@NotNull

@ -28,8 +28,6 @@ public class PartieKahootDTO extends RepresentationModel<PartieKahootDTO> {
private String codeInvitation;
@NotEmpty
private List<JoueurSimpleDTO> joueurs;
@NotNull
private JeuDTO jeu;
@NotEmpty
private List<ThematiqueSimpleDTO> thematiques;
@NotNull

@ -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

Loading…
Cancel
Save