overleaf/services/web/app/coffee/models/File.coffee
2017-05-08 16:09:59 +01:00

14 lines
412 B
CoffeeScript

mongoose = require '../infrastructure/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