218cb9ca3847b0cb4aa7d38600a73042e34a4732
[motion.git] / server / models / mail_automation.js
1 /**
2  * User Model
3  */
4
5 var crypto = require('crypto');
6
7 module.exports = function(sequelize, DataTypes) {
8
9   var MailAutomation = sequelize.define('MailAutomation', {
10     name: DataTypes.STRING,
11     description: DataTypes.STRING,
12     conditions: DataTypes.TEXT,
13     actions: DataTypes.TEXT,
14     status: {
15       type: DataTypes.BOOLEAN,
16       defaultValue: false
17     }
18   }, {
19     tableName: 'mail_automations'
20   });
21
22   return MailAutomation;
23 };