Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rtransat's avatar

Representation of polymorphic relationships with MySQL Workbench

Hi,

I would like to know how to represent the polymorphic structure (many-to-many) with MySQL Workbench.

I think it's a n:m relation.

Table clients, addresses and employees. A client and an employee can have several addresses, so if I choose n:m it's ok but I have 2 tables "employees_has_addresses" and "clients_has_addresses" but with the polymorphic I want only one table addressables with 3 fields.

Thanks.

0 likes
0 replies

Please or to participate in this conversation.