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

15 lines
412 B
CoffeeScript
Raw Normal View History

2017-05-08 11:09:59 -04:00
mongoose = require '../infrastructure/Mongoose'
2014-02-12 05:23:40 -05: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}
mongoose.model 'File', FileSchema
exports.File = mongoose.model 'File'
exports.FileSchema = FileSchema