units,lesson as standalone

This commit is contained in:
2026-07-10 11:44:46 +08:00
parent 86fba50b95
commit e1ffdab190
46 changed files with 1463 additions and 197 deletions
@@ -0,0 +1,19 @@
'use strict';
// Part 2A — admin-authored bullet list ("what's included") per plan, replacing
// the client's hardcoded 4-item static perks list. Same JSONB-array-of-objects
// pattern already used for plan_policies.access_rules / payment_policies.promo_rules.
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('tier_plans', 'features', {
type: Sequelize.JSONB,
allowNull: true,
after: 'description',
});
},
async down(queryInterface) {
await queryInterface.removeColumn('tier_plans', 'features');
},
};