assets and tier plans revamp

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-08-01 17:44:25 +08:00
parent 39c3c4566b
commit cae958b5d5
41 changed files with 1271 additions and 165 deletions
@@ -0,0 +1,18 @@
'use strict';
// Standalone tier gate for Lessons, mirroring units.subscription (see
// 20270101000012-create-units.js) — null means open (or gated only via an
// attached unit/course). Full parity with the Unit-level gate added for the
// standalone Units/Lessons tier-gating extension.
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('lessons', 'subscription', {
type: Sequelize.STRING(50),
allowNull: true,
});
},
async down(queryInterface) {
await queryInterface.removeColumn('lessons', 'subscription');
},
};