Built motion from commit 137ed438a.|1.0.25
[motion.git] / server / models / int_zendesk_account.js
index e79f383..4744fd7 100644 (file)
@@ -7,17 +7,22 @@ module.exports = function(sequelize, DataTypes) {
     description: DataTypes.STRING,
     username: {
       type: DataTypes.STRING,
-      unique: true
+      unique: 'username'
     },
     password: DataTypes.STRING,
     token: DataTypes.STRING,
     remoteUri: {
       type: DataTypes.STRING,
-      unique: true
+      unique: 'remoteUri'
     },
     authType: {
       type: DataTypes.ENUM('password', 'token'),
       defaultValue: 'password'
+    },
+    serverUrl: DataTypes.STRING,
+    type: {
+      type: DataTypes.ENUM('integrationTab', 'newTab'),
+      defaultValue: 'integrationTab'
     }
   }, {
     tableName: 'int_zendesk_accounts',