'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'); }, };