📌 Description
We need to introduce a Subscription Management System for RestroHub to control feature access based on restaurant plans.
Currently, there are 4 subscription plans:
This module will allow a SuperAdmin role to manage subscription plans and assign them to restaurants dynamically.
🎯 Objective
Build a backend-driven subscription system that controls feature access per restaurant based on assigned plan.
🛠️ Scope of Work
🔐 Roles & Access Control
📦 Subscription Module (Backend CRUD)
Create a complete subscription module with APIs:
Subscription Plan APIs
Create subscription plan
Update subscription plan
Delete subscription plan
Fetch all plans
Fetch plan by ID
Restaurant Subscription APIs
Assign subscription to restaurant
Update restaurant subscription
Fetch current subscription of restaurant
🏪 Restaurant Plan Mapping
Each restaurant will be mapped with a subscription plan.
📌 Description
We need to introduce a Subscription Management System for RestroHub to control feature access based on restaurant plans.
Currently, there are 4 subscription plans:
Free
Basic
Pro
Custom
This module will allow a SuperAdmin role to manage subscription plans and assign them to restaurants dynamically.
🎯 Objective
Build a backend-driven subscription system that controls feature access per restaurant based on assigned plan.
🛠️ Scope of Work
🔐 Roles & Access Control
Use
t_role_mastertable for role definitionsIntroduce SuperAdmin role
Only SuperAdmin can:
Create/update/delete subscription plans
Assign subscription plan to restaurants
📦 Subscription Module (Backend CRUD)
Create a complete subscription module with APIs:
Subscription Plan APIs
Create subscription plan
Update subscription plan
Delete subscription plan
Fetch all plans
Fetch plan by ID
Restaurant Subscription APIs
Assign subscription to restaurant
Update restaurant subscription
Fetch current subscription of restaurant
🏪 Restaurant Plan Mapping
Each restaurant will be mapped with a subscription plan.