The sample demonstrates how you might use a database to manage your personal book lending library. The database consists of three object stores, also known as tables. One object store contains book titles, the second contains author names, and the third is an (initially empty) object store containing records for each book that has been lent out.

The first step in setting up an IndexedDB is to define the database and create it. This example (the first of 4) creates a new database, defines tables, and applies indexes. This example does not populate the tables with any data.

To delete the database (and any data it contains), press the Delete database button.

Database schema:

- Table: books
  - Key on property: id
  - Index on property: title
- Table: authors
  - Key on property: id
- Table: checkout
  - Key on property: id