loopback/lib/models/email.js

25 lines
468 B
JavaScript
Raw Normal View History

2013-07-03 05:37:31 +00:00
/**
* Module Dependencies.
*/
2013-07-16 17:49:25 +00:00
var Model = require('../loopback').Model
, loopback = require('../loopback');
2013-07-03 05:37:31 +00:00
/**
* Default Email properties.
*/
var properties = {
to: {type: String, required: true},
from: {type: String, required: true},
subject: {type: String, required: true},
text: {type: String},
html: {type: String}
};
/**
2013-07-16 17:49:25 +00:00
* Extends from the built in `loopback.Model` type.
2013-07-03 05:37:31 +00:00
*/
var Email = module.exports = Model.extend('email', properties);