I was creating a system for its purchases and transactions and initially thought the db would needed to be look like this.
But after getting into the system
So I changed the db to this way.
I'm still figuring out is this the best approach. And also is the product_purchase and order_products tables are many to many tables?
I suggest you to study about entity relationship model and all the phases of a database design (requirements, conceptual, logic, implementation). A wrong database design will influence negatively all the software that will be based on it in terms of performance and architecture.
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.