I came across the question in interview, on following diagram.
Is this a one-to-many OR many to many relationship is this. Does arrow indicator makes matter? If no then is that one-to-many ?
I came across the question in interview, on following diagram.
Is this a one-to-many OR many to many relationship is this. Does arrow indicator makes matter? If no then is that one-to-many ?
This is many to many. Each user can have many permissions and each permission can be assigned to many users.
You can ignore the arrows as it does not appear to be any valid UML diagram.
EDIT
This is many to many (P4).
More to this for making many to many then you would need a third table (jumper table) which will references of both the tables (their primary keys).