Built motion from commit 2e74e5e.|0.0.138
[motion.git] / server / models / user.js
index 9b2771d..41bb31e 100644 (file)
@@ -696,7 +696,7 @@ module.exports = function(sequelize, DataTypes) {
     call_limit: {
       type: DataTypes.INTEGER(11),
       allowNull: true,
-      defaultValue: null
+      defaultValue: 10
     },
     registertrying: { //Send a 100 Trying when the device registers.
       type: DataTypes.ENUM('yes', 'no'),
@@ -730,6 +730,12 @@ module.exports = function(sequelize, DataTypes) {
     loginInPause: {
       type: DataTypes.BOOLEAN,
       defaultValue: false
+    },
+    resetPasswordToken: {
+      type: DataTypes.STRING
+    },
+    resetPasswordExpires: {
+      type: DataTypes.DATE
     }
   }, {
     tableName: 'users',