How best do I structure my User database?

Mbonu Blessing - Aug 20 '20 - - Dev Community

Hi everyone,

I need help designing my user related database structure. I am building an app with Rails to allow house owners manage their various properties and I want to have different categories of users. There are the admins: they get the dashboard and do analytics etc. Then the main app users are owners themselves. I want the owner to be able to add a tenant to a flat and also add a caretaker to manage a building or more. Do you think I should use the same user table for these 3 with roles?

Any advice you give will be very helpful.

Thank you

. . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player