Erd for peer review
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





