mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
client and some admin new
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -2,7 +2,13 @@
|
||||
* File Name: plan_courses.mdl.js
|
||||
* Type of Program: Model
|
||||
* Description: Junction table — links courses to a specific tier plan.
|
||||
* UNIQUE on course_id enforces one course belongs to one plan only.
|
||||
* Composite UNIQUE on (plan_id, course_id) only prevents adding
|
||||
* the same course twice to the same plan — a course may belong
|
||||
* to many plans simultaneously (Tier Plans v2, silent duplication
|
||||
* across bundles is intentional; see admin/tiers.controller.js).
|
||||
* Bundling/display only, not an access-control mechanism — see
|
||||
* controllers/client/courses.controller.js (hasItemGrant) /
|
||||
* user_tier_grants for entitlement.
|
||||
* Author: Kenneth Obsequio (@lash0000)
|
||||
* Date Created: Jun. 6, 2026
|
||||
***********************************************************************************************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user