Exercise: Define the Data Model
Let's follow the same set of steps to put together the data model for our Milestone 2 project. Review the wireframes and the use cases outlined there and attempt to answer the questions below.
- Identify the Domain Objects
- Outline the data you may need
- Structure the data as JSON
- Define any relationships
User stories to keep in mind:
- As an instructor, I can create a class code
- As an instructor, I can view a table of class codes I've created and the date they were created.
- As an instructor, I can view questions that students are asking for a particular class code
- As an instructor, I can remove questions from the list after I've answered them
- As a student, I can ask a question (with my name or anonymously) for a particular class code
- As a student, I can view questions being asked for a particular class code