Skip to main content

Command Palette

Search for a command to run...

Erd for peer review

Updated
1 min read

relation constriants

users.id - store.ownerId  // one to one
users.id < orders.costumerId // one to many
users.id < reviews.autherId
users.id < payments.paidBy


store.id < products.soldInStore
store.id  < orders.storeId

products.id < reviews.productId

orders.id < payments.orderId

explanation of some design decisions

  • an order can have multiple payments in case of failures.

  • any user is allowed to make payment for any order therefore it is linked to payment .

still have doubts regarding erd ? can clear via a dm on x . -> link

Erd for peer review