According to GitHub - cuba-platform/multitenancy-addon: Implementation of a single database multi-tenancy support for CUBA applications. it’s possible to have tenant-specific entities screens. Let’s have a look at the multitenancy addon demo (GitHub - cuba-platform/multitenancy-addon-demo) and discuss whether the following would be possible to implement:
- We have a single application the user logs in and decides whether to shop in Walmart or Costco (2 tenants in this example). He can switch between the stores e.g. by selecting the store from a dropdown list and starts shopping.
- The user can return to the main screen and he sees all open orders in one list of both stores (tentants). In this list he clicks on any order in any store to change the delivery date.
- The stores (tenants) may have little differences such as, less fields/tabs in a screens than the other, a different checkout procedure or different screen flows for more complex products.
Would that be possible and if yes how would a CUBA project be structured and how can the user change the tenant at runtime within the application?