3 module.exports = function(sequelize, DataTypes) {
4 var SmsAccount = sequelize.define('SmsAccount', {
12 type: DataTypes.ENUM('twilio', 'skebby')
15 type: DataTypes.ENUM('basic', 'classic', 'classic+')
17 remote: DataTypes.STRING,
19 type: DataTypes.BOOLEAN,
23 type: DataTypes.INTEGER,
27 // type: DataTypes.INTEGER,
29 type: DataTypes.STRING,
36 type: DataTypes.STRING
39 type: DataTypes.STRING
42 type: DataTypes.STRING
45 type: DataTypes.STRING
49 tableName: 'sms_accounts',
50 associate: function(models) {
51 SmsAccount.hasMany(models.SmsRoom);
52 SmsAccount.hasMany(models.SmsApplication, {
55 SmsAccount.hasMany(models.SmsMessage);