Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-07-12 12:39:17 +08:00
parent 82ea9c77c4
commit ea3e82e54c
47 changed files with 1301 additions and 481 deletions
@@ -0,0 +1,24 @@
'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('admin_notifications', 'broadcast_id', {
type: Sequelize.BIGINT,
allowNull: true,
references: { model: 'notification_broadcasts', key: 'broadcast_id' },
onDelete: 'SET NULL',
});
await queryInterface.addColumn('user_notifications', 'broadcast_id', {
type: Sequelize.BIGINT,
allowNull: true,
references: { model: 'notification_broadcasts', key: 'broadcast_id' },
onDelete: 'SET NULL',
});
},
async down(queryInterface) {
await queryInterface.removeColumn('user_notifications', 'broadcast_id');
await queryInterface.removeColumn('admin_notifications', 'broadcast_id');
},
};