Built motion from commit 654a660.|0.0.150
[motion.git] / server / models / int_sugarcrm_field.js
index 635771c..dd23ed5 100644 (file)
@@ -3,16 +3,17 @@
 module.exports = function(sequelize, DataTypes) {
   return sequelize.define('SugarcrmField', {
     type: {
-      type: DataTypes.ENUM('string', 'variable', 'key_value'),
+      type: DataTypes.ENUM('string', 'variable', 'customVariable', 'keyValue'),
       defaultValue: 'string'
     },
     content: DataTypes.STRING,
     key: DataTypes.STRING,
     keyType: {
-      type: DataTypes.ENUM('string', 'variable')
+      type: DataTypes.ENUM('string', 'variable', 'customVariable')
     },
     keyContent: DataTypes.STRING,
-    idField: DataTypes.STRING
+    idField: DataTypes.STRING,
+    variableName: DataTypes.STRING
   }, {
     tableName: 'int_sugarcrm_fields',
     associate: function(models) {