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

16 lines
440 B
CoffeeScript
Raw Normal View History

mongoose = require 'mongoose'
2014-02-12 10:23:40 +00:00
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}
2018-02-14 15:12:46 +00:00
linkedFileData: { type: Schema.Types.Mixed }
2014-02-12 10:23:40 +00:00
mongoose.model 'File', FileSchema
exports.File = mongoose.model 'File'
exports.FileSchema = FileSchema