Skip to content

Instantly share code, notes, and snippets.

@susiirwin
Forked from rwarbelow/schema_practice.markdown
Created August 30, 2016 12:59
Show Gist options
  • Save susiirwin/03ac1b82925cb87c5b618d1dbbb849ba to your computer and use it in GitHub Desktop.
Save susiirwin/03ac1b82925cb87c5b618d1dbbb849ba to your computer and use it in GitHub Desktop.

Use a Schema Designer to create schemas for the following problems:

  1. City Library System
  • a user can check out books
  • books have one or more authors
  • books belong to a library branch
  • a book can be reserved by a user
  1. Movie Showtimes
  • a movie has many showtimes at various theaters
  • a theater has many showtimes for various movies
  • a user can purchase a ticket for a specific showtime
  1. Flash Cards
  • a deck has many cards
  • a user can play a round
  • a user has a response to each card
  • a user can see his/her score for each round played
  1. Social Media App
  1. Survey App
  • a user can create one or more surveys
  • a survey has many questions
  • each question has many choices
  • a user can take a survey
  • a user can choose a response to a question
@susiirwin
Copy link
Author

screen shot 2016-08-30 at 7 39 38 am

@susiirwin
Copy link
Author

screen shot 2016-08-31 at 8 03 04 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment