},
lastEvent: {
type: DataTypes.ENUM('SENT', 'SENDING', 'RECEIVED', 'FAILED', 'NOTE')
+ },
+ tags: {
+ type: DataTypes.TEXT,
+ get: function() {
+ return this.getDataValue('tags') ? this.getDataValue('tags').split(';') : [];
+ },
+ set: function(val) {
+ this.setDataValue('tags', val.join(';'));
+ }
}
}, {
tableName: 'fax_rooms',