Skip to content
Breanna Nery edited this page Jan 26, 2018 · 2 revisions

Our model definitions based on Sequelize and the available Postgres types.

User

  • ID
    • Type: Integer
  • Email
    • Type: String
  • Password
    • Type: String
  • Verified
    • Type: Boolean
  • Name
    • Type: String
  • DJ Name
    • Type: String
  • Bio
    • Type: String
  • Image
    • Type: String
  • Show IDs:
    • Type: Integer Array
  • Is Manager:
    • Type: Boolean
  • Is Admin:
    • Type: Boolean
  • Is DJ:
    • Type: Boolean

Shows

  • ID
    • Type: Integer
  • Name
    • Type: String
  • User IDs
    • Type: Integer Array
  • Description
    • Type: String
  • Genre
    • Type: String
  • Image
    • Type: String
  • Start Time
    • Type: Time
  • End Time
    • Type: Time

Show Social Links

  • ID
    • Type: Integer
  • Show ID
    • Type: Integer
    • Default: null
  • URL
    • Type: String
  • Social
    • Type: Enum

Pages Link

  • ID
    • Type: Integer
  • Name
    • Type: String
  • Description
    • Type: String
  • URL
    • Type: String
  • Image
    • Type: String
Clone this wiki locally