I've just read the Redbean Documentation, and it's awesome! But I have some questions before I proceed.
I want to create a User data structure composed in a particular way. On the site I'm working on, I have three types of users:
- The professionist
- The company (with a contact person to represent the company)
- The student
I think the best way to implement this user data structure is to have a person table (that has all the common data), and other three tables for the professionist/company/student unique data.
A user on my site will be then a composition of Person <---> Professionist for example, but this is not a one-to-many relationship (i think).
How can I achieve this in MySQL? Or better in Redbean?