chore: relocate backend into apps/api ahead of monorepo merge

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-24 12:20:40 +08:00
co-authored by Claude Sonnet 5
parent af44598df6
commit eaa6d2276a
388 changed files with 0 additions and 13998 deletions
@@ -0,0 +1,27 @@
'use strict';
// Per-alert layout image, replacing the old shared sticky_banner_settings
// singleton (see 20270101000066-create-sticky-banner-settings.js) — each
// notification_broadcasts row now carries its own optional image, copied
// onto admin_notifications/user_notifications at send time the same way
// color/show_in_sticky already are.
const TABLES = ['notification_broadcasts', 'admin_notifications', 'user_notifications'];
module.exports = {
async up(queryInterface, Sequelize) {
for (const table of TABLES) {
await queryInterface.addColumn(table, 'image_asset_id', {
type: Sequelize.BIGINT,
allowNull: true,
references: { model: 'assets', key: 'asset_id' },
onDelete: 'SET NULL',
});
}
},
async down(queryInterface) {
for (const table of TABLES) {
await queryInterface.removeColumn(table, 'image_asset_id');
}
},
};