Topic: Different user types
I have a website where users should be able to register either as Patients or as Clinics.
(there will also exist site admins)
My first reaction was to have a users table for all types. Patients and Clinics will have different fields but essentially they are all users so in the users table i would have:
However, this approach doesn't sound too good especially since there will be lots of fields.
Another viable option would be to use Polymorphic Associations.
I'd like to hear your suggestions.
P.S. I will be using Devise.