A database document is a flexible collection of key/value fields that represents a record together with related information. Documents are stored in NoSQL collections rather than fixed-schema SQL tables. section 4.1.1
Documents shape relationships and schema design in several practical ways:
- Embed parent-child data—such as comments inside a board-game document—to reduce the need for separate collections. section 4.1.1
- Keep shared entities, such as users, addressable through key-based relationships when multiple documents need to reference them. section 4.1.1
- Favor loosely structured and denormalized schemas, trading fixed organization for flexible records that often contain related data. section 4.1.1
Board-game data
A board-game document can contain the game’s fields and its related comments, while a user remains separately referenceable when used across documents. section 4.1.1
Compare the document-oriented database schema with the table-oriented alternative. section 4.1.1







