Built motion from commit 0dbf6b8.|0.0.131
[motion.git] / server / models / openchannel_account.js
index b9faa79..c630854 100644 (file)
@@ -17,15 +17,6 @@ module.exports = function(sequelize, DataTypes) {
       type: DataTypes.INTEGER,
       defaultValue: 0
     },
-    // phone: {
-    //   // type: DataTypes.INTEGER,
-    //   // unique: true
-    //   type: DataTypes.STRING,
-    //   unique: true,
-    //   validate: {
-    //     is: /^[0-9]+$/
-    //   }
-    // },
     acceptUrl: {
       type: DataTypes.STRING
     },
@@ -44,6 +35,12 @@ module.exports = function(sequelize, DataTypes) {
     replyMethod: {
       type: DataTypes.ENUM('GET', 'POST')
     },
+    closeUrl: {
+      type: DataTypes.STRING
+    },
+    closeMethod: {
+      type: DataTypes.ENUM('GET', 'POST')
+    },
     actions: {
       type: DataTypes.STRING,
       get: function() {
@@ -52,10 +49,6 @@ module.exports = function(sequelize, DataTypes) {
       set: function(val) {
         return this.setDataValue('actions', JSON.stringify(val));
       }
-    },
-    reply: {
-      type: DataTypes.BOOLEAN,
-      defaultValue: false
     }
   }, {
     tableName: 'openchannel_accounts',