Built motion from commit b33b832.|1.0.17
[motion.git] / server / models / integration.js
index 53aecce..2981977 100644 (file)
@@ -51,8 +51,17 @@ module.exports = function(sequelize, DataTypes) {
     },
     author: DataTypes.STRING,
     logo: DataTypes.STRING,
-    state: DataTypes.STRING,
-    description: DataTypes.STRING
+    state: {
+      type: DataTypes.STRING,
+      unique: 'state'
+    },
+    description: DataTypes.STRING,
+    title: DataTypes.STRING,
+    remoteUri: DataTypes.STRING,
+    link: {
+      type: DataTypes.STRING,
+      defaultValue: '#'
+    }
   }, {
     tableName: 'integrations'
   });