I'm working on a multitenant app right now (not football teams!), but
the plan is for 1000's of tenants. that would result in 1000's of
UserGroups. (they're cheap though as you said).
I guess an easy may to model my domain is to think of it like a
multitenant shopping site. where u can create a new shop and customer
can buy stuff from the shop.
User Types:
Employee (Owner, Manager, Employee). may me a member of any Shop, but
may be a Manager in 1, and a Employee in another.
Customer, may have orders with many shops, the role is implied, i.e.
if i have orders with Shop A then I'm a Customer of shop A.
System, manages the system, shop has paid they're fees, shut them down
etc.
So i'd need Shop A - Manager, Shop B - Manager.
From an app design point of view on an operation like. Product/Add,
i'd build up the role like, role = CurrentShop.Name + " - " Manager
etc.
Do you think RS is a good fit in that situation?
If i go with a custom solution i'd probably have a UserToUserGroups
table with a EntityId also i guess.
On Oct 16, 11:51 am, Ayende Rahien <
aye...@ayende.com> wrote:
> You would have two user groups.
>
> Managers - Team A
> Players - Team B
>
> Groups (both entities & users) are cheap with RS.
>