mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 15:00:48 +00:00
16 lines
366 B
CoffeeScript
16 lines
366 B
CoffeeScript
|
mongoose = require 'mongoose'
|
||
|
Settings = require 'settings-sharelatex'
|
||
|
|
||
|
Schema = mongoose.Schema
|
||
|
ObjectId = Schema.ObjectId
|
||
|
|
||
|
DocSchema = new Schema
|
||
|
name : {type:String, default:'new doc'}
|
||
|
lines : [{}]
|
||
|
rev : {type:Number, default:0}
|
||
|
|
||
|
|
||
|
mongoose.model 'Doc', DocSchema
|
||
|
exports.Doc = mongoose.model 'Doc'
|
||
|
exports.DocSchema = DocSchema
|