문제

its about internet shop program. Customer, products, Order, and supplier is involved. How to implement that the customer can be a product supplier in the same system ? How to design it and what is the idea to impelemnt it ?

this is what i have tested but im not sure if i did right.

enter image description here

도움이 되었습니까?

해결책

I believe that you are on the right path. The customer entity is different from the supplier entity. As a result, if a user is both a customer and supplier, he will have both a supplierID and CustID. This is shown in your diagram by the relationship with the User entity. However, the Customer entity will need to have a foreign key to link it to the User table. this will likely be UserID. Same for the Supplier entity.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top