How does a relational database differ from a document database?
A relational database stores data in linked tables: customers, orders, payments. It strictly enforces consistency and suits accounting, money and complex reports, but the structure must be planned in advance and changed through migrations. A document database stores records as documents with flexible fields and suits varied data. Business applications more often use a relational database.
More in our guide on the web app database.