Right now we use:
case class Quizes (id: Long, quizName: String, score: Int, startAt: Long, endAt: Long)
However, Quizzes should not contain any information about the assignment and usage of this quiz, that is, we should move startAt and endAt to case class QuizesAssignToGroups.
(Btw, Front-end will have a page for tutor to solely manage Quiz content, and a page for tutor to solely mange quiz-to-group assignment)
And we can add more fields like createdAt and createdBy to the Quizes case class.
So I propose that these two case classes should be:
case class Quizes (id: Long, quizName: String, score: Int, createdAt: Long, createdBy: Long) case class QuizesAssignToGroups (groupId: Long, quizId: Long, assignAt: Long, startAt: Long, endAt: Long)
Right now we use:
case class Quizes (id: Long, quizName: String, score: Int, startAt: Long, endAt: Long)
However, Quizzes should not contain any information about the assignment and usage of this quiz, that is, we should move startAt and endAt to case class QuizesAssignToGroups. (Btw, Front-end will have a page for tutor to solely manage Quiz content, and a page for tutor to solely mange quiz-to-group assignment) And we can add more fields like createdAt and createdBy to the Quizes case class.So I propose that these two case classes should be:
case class Quizes (id: Long, quizName: String, score: Int, createdAt: Long, createdBy: Long)
case class QuizesAssignToGroups (groupId: Long, quizId: Long, assignAt: Long, startAt: Long, endAt: Long)