3 module.exports = function(sequelize, DataTypes) {
5 var FaxApplication = sequelize.define('FaxApplication', {
7 type: DataTypes.ENUM('queue', 'agent', 'sendMail', 'sendSms')
10 type: DataTypes.INTEGER
13 type: DataTypes.INTEGER,
19 type: DataTypes.STRING
22 type: DataTypes.STRING
25 type: DataTypes.STRING
28 type: DataTypes.STRING
31 type: DataTypes.STRING
34 type: DataTypes.STRING
37 type: DataTypes.STRING
43 type: DataTypes.INTEGER
46 type: DataTypes.INTEGER
49 type: DataTypes.INTEGER
52 tableName: 'fax_applications',
53 associate: function(models) {
55 FaxApplication.belongsTo(models.FaxAccount, {
58 FaxApplication.belongsTo(models.FaxQueue, {
61 FaxApplication.belongsTo(models.User, {
64 FaxApplication.belongsTo(models.Interval);
68 return FaxApplication;