i drew this layout scheme, but now i need to convert for a “mysql layout”. So the generalization must use two junction tables, correct? (one for student and other for worker)
An about the multiplicity, users can be workers or students, but one user only can be one worker and one worker only can be an user? this does not make much sense…?
basically, how i can convert this generalization for something that can be executable for mysql code.
thanks

One way to handle this is to define three tables: users, workers, and students. The workers and students tables each has a user_id field that is a foreign key tied to the same field in the users table.