overleaf/services/web/app/coffee/models/Institution.coffee

12 lines
343 B
CoffeeScript
Raw Normal View History

2018-09-25 09:10:06 -04:00
mongoose = require 'mongoose'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
InstitutionSchema = new Schema
v1Id: { type: Number, required: true }
managerIds: [ type:ObjectId, ref:'User' ]
mongoose.model 'Institution', InstitutionSchema
exports.Institution = mongoose.model 'Institution'
exports.InstitutionSchema = InstitutionSchema