Skip to content
shan-du edited this page Dec 15, 2014 · 3 revisions

Location

/models/[MODEL_NAME].js

Employee

  • Firstname
  • Lastname
  • Email
  • Slug
  • Phone
  • Job Title
  • Clients
  • Spotlight URL
  • Availability
  • Vacation Status
  • POI
  • Laptop Model
  • Laptop Number

{ firstName: String, lastName: String, jobTitle: String, phoneExtension: String, emailAddress: String, spotlightUrl: String, slug: { type: String, unique: true }, location: { type: mongoose.Schema.ObjectId, ref: 'poi'} }

POI (location)

  • Type
  • Coordinates

{ type: String, coordinates: String }

Clone this wiki locally