forked from kaverti/website
18 lines
521 B
JavaScript
18 lines
521 B
JavaScript
module.exports = (sequelize, DataTypes) => {
|
|
let PostNotification = sequelize.define('PostNotification', {}, {
|
|
classMethods: {
|
|
associate (models) {
|
|
PostNotification.belongsTo(models.User)
|
|
PostNotification.belongsTo(models.Post)
|
|
PostNotification.belongsTo(models.Notification)
|
|
}
|
|
}
|
|
})
|
|
PostNotification.associate = function (models) {
|
|
PostNotification.belongsTo(models.User)
|
|
PostNotification.belongsTo(models.Post)
|
|
PostNotification.belongsTo(models.Notification)
|
|
}
|
|
return PostNotification
|
|
}
|