System Permission and Permission Sets

Hi everyone,

I am developing a SaaS app using Xano and WeWeb. I want to know what the best practice is for establishing a module-based permission system. From a business perspective, customers will be able to choose different package options (basic, full, premium), and each of these packages will have different modules and submodules. Customers should also be able to customize their package by adding or removing modules and submodules. I would like to know if anyone has developed something similar and what would be a good practice for doing this while maintaining flexibility when enabling or disabling these submodules and modules for customers.

Do you have a design/example on how is this supposed to be done? Your diagram can be made via relationships in Xano/Supabase