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

14 lines
355 B
CoffeeScript
Raw Normal View History

2014-02-12 05:23:40 -05:00
mongoose = require 'mongoose'
Settings = require 'settings-sharelatex'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
QuoteSchema = new Schema
author : {type:String, default:'new quote'}
quote : {type:String}
mongoose.model 'Quote', QuoteSchema
exports.Quote = mongoose.model 'Quote'
exports.QuoteSchema = QuoteSchema