Skip to content

[Backend] Subscription Management Module with SuperAdmin Controls #128

@rdodiya

Description

@rdodiya

📌 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_master table for role definitions

  • Introduce 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.


Image

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions