I have 3 types of “users”
The last 2 users will have similar attributes such as
and so on
And the Shop user type will have the most contrast between types.
As far as behaviours they will all be quite different,
although Provider and Shop will inherent many of customer behaviours.
It seems the behaviours can be dealt with CanCan as I’ve researched.
I’m now attempting to how I should authenticate these types.
I have looked at the STI model but I couldn’t grasp where I would these
My mental model is as follower:
User is a table and model
The types are abstract models that inherit from this.
So I’m wondering, how do I add attributes such as Business address for
the Shop type?
Or is it that the User Table has a column called Type and that type is
associated with these type tables? And within the type tables are the