omzmarlon / ManagementApp

0 stars 0 forks source link

Change database schema in Quizes.scala #31

Open omzmarlon opened 7 years ago

omzmarlon commented 7 years ago

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)

omzmarlon commented 7 years ago

And btw change Quizes to Quizzes if possible 😂