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

13 lines
372 B
CoffeeScript
Raw Normal View History

2014-07-24 12:24:08 +00:00
mongoose = require 'mongoose'
Settings = require 'settings-sharelatex'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
SystemMessageSchema = new Schema
content : type: String, default:''
conn = mongoose.createConnection(Settings.mongo.url, server: poolSize: Settings.mongo.poolSize || 10)
exports.SystemMessage = conn.model('SystemMessage', SystemMessageSchema)