Chat report table working

This commit is contained in:
2021-03-28 07:57:56 +11:00
parent f83ef938ab
commit ab0bad4f73
6 changed files with 92 additions and 0 deletions
+1
View File
@@ -19,5 +19,6 @@ const reports = sequelize.define('reports', {
});
chatlog.hasMany(reports, { foreignKey: 'chatlogId', foreignKeyConstraint: true });
reports.belongsTo(chatlog, { foreignKey: 'chatlogId' });
module.exports = reports;