PostgreSQL
Relational database with transactions, constraints, SQL and JSONB for flexible fields.
Strengths
- Constraints and foreign keys enforce integrity in the database.
- Ad-hoc reporting with SQL joins across orders, customers and stock.
- JSONB columns hold variable product attributes without a new table.[3] PostgreSQL: JSON Types, Primary, Not yet verified by an editor
Weaknesses
- Schema changes on large, busy tables need careful migrations.
Choose it when
- Cross-entity invariants (stock, payments) and SQL reporting on live data.
Limitations
- One primary handles writes; horizontal write scaling is extra work.