Built motion from commit b33b832.|1.0.17
[motion.git] / server / models / report_chat_room.js
index ec6494d..f69b34f 100644 (file)
@@ -11,7 +11,7 @@ module.exports = function(sequelize, DataTypes) {
   var ReportChatRoom = sequelize.define('ReportChatRoom', {
     uniqueid: {
       type: DataTypes.STRING,
-      unique: true
+      unique: 'uniqueid'
     },
     websitename: DataTypes.STRING,
     websiteaddress: DataTypes.STRING,
@@ -58,7 +58,11 @@ module.exports = function(sequelize, DataTypes) {
       }
     },
     crating: DataTypes.ENUM('good', 'bad'),
-    cratingMessage: DataTypes.TEXT
+    cratingMessage: DataTypes.TEXT,
+    status: {
+      type: DataTypes.ENUM('NEW', 'OPEN', 'CLOSED', 'ABANDON', 'UNMANAGED'),
+      defaultValue: 'NEW'
+    },
   }, {
     tableName: 'report_chat_room'
   });