Domain Model - knilios/ku-polls GitHub Wiki
Iteration 2 Domain Model
There are 2 classes
- Question class - Represents the poll question.
- Choice class - Represents the questions in the polls.
The Question class can have multiple Choice classes but a Choice can only be in one question.
Iteration 3 Domain Model
The User is the voter of any Choice. A Choice can have several Users voting on it. The User is also a participant in each Question when they vote for each Choice, therefore, a Question can contain multiple Users.