overleaf/services/web/app/coffee/models/Doc.coffee
2015-03-04 11:10:59 +00:00

13 lines
301 B
CoffeeScript

mongoose = require 'mongoose'
Settings = require 'settings-sharelatex'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
DocSchema = new Schema
name : {type:String, default:'new doc'}
mongoose.model 'Doc', DocSchema
exports.Doc = mongoose.model 'Doc'
exports.DocSchema = DocSchema