var ReportChatRoom = sequelize.define('ReportChatRoom', {
uniqueid: {
type: DataTypes.STRING,
- unique: true
+ unique: 'uniqueid'
},
websitename: DataTypes.STRING,
websiteaddress: DataTypes.STRING,
}
},
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'
});