1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2024-12-04 03:26:43 -05:00
overleaf/services/web/app/coffee/models/SystemMessage.coffee

17 lines
408 B
CoffeeScript
Raw Normal View History

mongoose = require 'mongoose'
2014-07-24 08:24:08 -04:00
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},
config: {autoIndex: false}
})
2014-07-24 08:24:08 -04:00
exports.SystemMessage = conn.model('SystemMessage', SystemMessageSchema)