mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-25 06:52:21 -05:00
17 lines
No EOL
496 B
CoffeeScript
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
|
|
|