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

14 lines
301 B
CoffeeScript
Raw Normal View History

2014-02-12 10:23:40 +00:00
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