Skip to content

Schemas

Sebastian Malton edited this page Jul 28, 2017 · 4 revisions

Schemas

Notes:

  • Date objects are transmitted as ISO8601 format with timezone
  • ObjectId is a 24 character long alphanumeric string

Modifiers:

  • R: read
  • W: write
  • H: hidden (available to server not sent over wire)

Game

{
    name: String, //RW
    description: String, //RW
    signUpDates: [Date], //RW
    signUpLocations: [String], //RW
    startDate: Date, //RW
    endDate: Date, //RW
    moderators: [ObjectId], //R
    moderatorObjs: [User], //R
    zombies: [ObjectId], //R
    zombieObjs: [User], //R
    humans: [ObjectId], //R
    humanObjs: [User], //R
    spectators: [ObjectId], //R
    spectatorObjs: [User], //R
    originalZombies: [ObjectId], //R
    originalZombie: [User], //R
    suppliedValue: Integer, //RW
    railPassValue: Integer, //RW
    minorPassValue: Integer, //RW
    majorPassValue: Integer, //RW
    officerValue: Integer, //RW
    isStarted: Boolean //RW
}

Clone this wiki locally