Built motion from commit d3a776a.|0.0.126
[motion.git] / server / models / settings.js
index 3599ea7..58e29a4 100644 (file)
@@ -3,46 +3,46 @@
 module.exports = function(sequelize, DataTypes) {
 
   var Settings = sequelize.define('Settings', {
-    license: DataTypes.TEXT,
-    mac: {
-      type: DataTypes.STRING(17),
-      allowNull: false,
-      validate: {
-        notEmpty: true,
-        // isMac: function(value) {
-        //   if (!getmac.isMac(value)) {
-        //     throw new Error('Invalid Mac!');
-        //   }
-        // }
-      }
-    },
-    netmask: {
-      type: DataTypes.STRING(15),
-      allowNull: false,
-      validate: {
-        notEmpty: true,
-        isIP: true
-      }
-    },
-    address: {
-      type: DataTypes.STRING(15),
-      allowNull: false,
-      validate: {
-        notEmpty: true,
-        isIP: true
-      }
-    },
     min_internal: {
       type: DataTypes.INTEGER(11),
-      unique: true
+      unique: true,
+      defaultValue: 1000
     },
-    agi_port: {
-      type: DataTypes.INTEGER(11)
+    min_mailbox: {
+      type: DataTypes.INTEGER(11),
+      unique: true,
+      defaultValue: 1000
     },
-    automation_timeout: {
+    agi_port: {
       type: DataTypes.INTEGER(11),
-      defaultValue: 3600
+      defaultValue: 4573
+    },
+    soundPath: {
+      type: DataTypes.STRING,
+      defaultValue: '/var/opt/motion/server/files/sounds/converted'
+    },
+    logo: {
+      type: DataTypes.STRING
+    },
+    defaultLogo: {
+      type: DataTypes.BOOLEAN,
+      defaultValue: true
+    },
+    loginLogo: {
+      type: DataTypes.STRING
+    },
+    defaultLoginLogo: {
+      type: DataTypes.BOOLEAN,
+      defaultValue: true
+    },
+    footerWhiteLabel: {
+      type: DataTypes.STRING
+    },
+    defaultFooterWhiteLabel: {
+      type: DataTypes.BOOLEAN,
+      defaultValue: true
     }
+
   }, {
     tableName: 'settings'
   });