mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
11 lines
343 B
CoffeeScript
11 lines
343 B
CoffeeScript
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
|