DEV Community

Discussion on: eCommerce Database Design

Collapse
 
kwnaidoo profile image
Kevin Naidoo

This is great! I like the dbdiagram.io tool you using to declare SQL and generate a diagram - pretty cool.

I have just one suggestion, your payment_details table. I would have a second table or a few extra columns just to catch more meta information from the payment gateway provider.

Depending on the provider, if a payment fails - they tend to give you some additional log information which is important to store for later recon. Even with success payments, the recon information can be useful for generating reports.

Collapse
 
ezzdinatef profile image
Ezzdin Atef

I’m glad that you find the dbdiagram.io tool helpful to you and appreciate your suggestion about the payment_details table, it’s nice suggestion I will keep in mind next time πŸ˜€