mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
13 lines
338 B
CoffeeScript
13 lines
338 B
CoffeeScript
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'})
|
|
|
|
module.exports = MailSent = mongoose.model('mail.sent', MailSent)
|