website/models/message_notifications.js
2020-11-24 17:12:07 +11:00

13 lines
422 B
JavaScript

module.exports = (sequelize, DataTypes) => {
let MessageNotification = sequelize.define('MessageNotification', {
message: {
type: DataTypes.TEXT,
default: 'Unknown'
}
})
MessageNotification.associate = function (models) {
MessageNotification.belongsTo(models.User)
MessageNotification.belongsTo(models.Notification)
}
return MessageNotification
}