Institution.coffee 343 B

1234567891011
  1. mongoose = require 'mongoose'
  2. Schema = mongoose.Schema
  3. ObjectId = Schema.ObjectId
  4. InstitutionSchema = new Schema
  5. v1Id: { type: Number, required: true }
  6. managerIds: [ type:ObjectId, ref:'User' ]
  7. mongoose.model 'Institution', InstitutionSchema
  8. exports.Institution = mongoose.model 'Institution'
  9. exports.InstitutionSchema = InstitutionSchema