-
Notifications
You must be signed in to change notification settings - Fork 1
Class diagram
Emil Johnsen edited this page Apr 7, 2024
·
1 revision
-
Alternative:
- Belongs to: MultipleChoiceQuestion
- Represents the possible options for a multiple-choice question.
-
AlternativeRecord:
- Belongs to: MultipleChoiceQuestionAttempt
- Represents a user's selection for a multiple-choice question attempt.
-
Category:
- Has many: Quiz
- Represents a category under which quizzes are grouped.
-
Comment:
- Belongs to: User, Quiz
- Represents a user's comment on a quiz.
-
Feedback:
- Belongs to: User
- Represents feedback provided by a user.
-
MultipleChoiceQuestion:
- Belongs to: Quiz
- Has many: Alternative
- Represents a question with multiple-choice options.
-
MultipleChoiceQuestionAttempt:
- Belongs to: QuizAttempt
- Has many: AlternativeRecord
- Represents a user's attempt at a multiple-choice question.
-
PasswordResetToken:
- Represents a token for resetting a user's password.
-
Question:
- Belongs to: Quiz
- Represents a generic question.
-
QuestionAttempt:
- Belongs to: QuizAttempt
- Represents a user's attempt at a question.
-
Quiz:
- Belongs to many: User
- Has many: Question
- Has many: Tag
- Represents a quiz created by a user.
-
QuizAttempt:
- Belongs to: User, Quiz
- Has many: QuestionAttempt
- Represents a user's attempt at a quiz.
-
Tag:
- Has many: Quiz
- Represents a tag associated with a quiz.
-
TrueOrFalseQuestion:
- Belongs to: Quiz
- Represents a true/false question.
-
TrueOrFalseQuestionAttempt:
- Belongs to: QuizAttempt
- Represents a user's attempt at a true/false question.
-
User:
- Has many: Quiz
- Has many: QuizAttempt
- Represents a user of the application.