codecombat/server/models/MailSent.coffee

14 lines
338 B
CoffeeScript
Raw Normal View History

mongoose = require 'mongoose'
plugins = require '../plugins/plugins'
jsonschema = require '../../app/schemas/models/mail_sent'
MailSent = new mongoose.Schema({
sent:
type: Date
'default': Date.now
}, {strict: false})
MailSent.index({user: 1}, {name: 'User'})
2014-07-16 15:12:54 -04:00
module.exports = MailSent = mongoose.model('mail.sent', MailSent)