Built motion from commit 57474b6.|0.0.99
[motion.git] / server / models / fax_room.js
index a81f9df..ee976b5 100644 (file)
@@ -15,6 +15,15 @@ module.exports = function(sequelize, DataTypes) {
     },
     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',