GET /questions: retrieves the list of all the Questions with their AnswersGET /questions/:questionId: retrieves a single questionDELETE /questions/:questionId: deletes a questionPOST /questions/import: imports (from a CSV) some questions (with their answers)GET /rooms/active: retrieves the active Room, along with some info (?)
/rooms-{roomId}: everything concernig the particular{roomId}room- FE -> BE
start quiz: starts the quiz - BE -> FE
question: prompts the next question + answers - FE -> BE
answer { questionId, answerId }: answers to a question - BE -> FE
score: sends the results of the quiz - BE -> FE
invalid room id: ERROR, the room id provided isn't valid - BE -> FE
invalid admin user: ERROR, you are trying to access the admin socket via a non-admin user - BE -> FE
invalid question id: ERROR, the question id provided isn't valid - BE -> FE
invalid answer id: ERROR, the answer id provided isn't valid
- FE -> BE
id: UUIDtext: Stringcorrect: BooleancreatedAt: DateupdatedAt: Date
- belongs to
Question - belongs to many
RoomUserthroughRoomUserAnswer
id: UUIDtext: StringcreatedAt: DateupdatedAt: Date
- has many
Answer - belongs to many
RoomthroughRoomQuestion
id: UUIDstartedAt: DatecreatedAt: DateupdatedAt: Date
- belongs to many
QuestionthroughRoomQuestion - belongs to many
UserthroughRoomUser
id: UUIDorder: NumberstartedAt: DatecreatedAt: DateupdatedAt: Date
id: UUIDscore: DoublecreatedAt: DateupdatedAt: Date
- belongs to many
AnswerthroughRoomUserAnswer
id: UUIDansweredAfter: DoublecreatedAt: DateupdatedAt: Date
id: UUIDname: Stringemail: Stringpicture: Stringadmin: BooleancreatedAt: DateupdatedAt: Date
- belongs to many
RoomthroughRoomUser