As I can see from your diagram your Item
isn't just entity without attributes. It's a base type for your BAGEL
and DRINK
(you can think of this relationship as inheritance
in OOP languages).
There are some techniques to work with inheritance in database world . So this Item
is not a problem for ER-diagram
.
ITEM
should have at least one attribute - an identifier. A supertype's primary key can be reused as a foreign primary key in its subtypes.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.