overleaf/services/web/app/coffee/models/File.coffee
Shane Kilkelly 01ee104f77 Revert "update to newest mongoose"
This reverts commit 7b05891ba0e87e4cf00fd6b1ea87d7406dc70989.
2017-05-10 15:31:17 +01:00

14 lines
394 B
CoffeeScript

mongoose = require 'mongoose'
Settings = require 'settings-sharelatex'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
FileSchema = new Schema
name : type:String, default:''
created : type:Date, default: () -> new Date()
rev : {type:Number, default:0}
mongoose.model 'File', FileSchema
exports.File = mongoose.model 'File'
exports.FileSchema = FileSchema