codecombat/app/schemas/models/mail_sent.coffee
2014-07-16 12:12:11 -07:00

17 lines
No EOL
496 B
CoffeeScript

c = require './../schemas'
#This will represent transactional emails which have been sent
MailSentSchema = c.object {
title: 'Sent mail'
description: 'Emails which have been sent through the system'
}
_.extend MailSentSchema.properties,
mailTask: c.objectId {}
user: c.objectId links: [{rel: 'extra', href: '/db/user/{($)}'}]
sent: c.date title: 'Sent', readOnly: true
metadata: c.object {}, {}
c.extendBasicProperties MailSentSchema, 'mail.sent'
module.exports = MailSentSchema