Sample Projects
A sample project is a ready-made design that you open from the Welcome Screen. For example, you can explore the database of a music store with 12 tables, before you connect to your own database.
The design, also called the model, is a DbSchema project: the tables, columns and diagrams that you see in DbSchema. The database is where the data is stored. DbSchema offers two samples:
| Sample | What it holds | Database |
|---|---|---|
| SqliteSample | A music store with 12 tables, such as tracks, albums2, artists, playlists, customers and invoices | A small SQLite database file on your computer. DbSchema connects to it when the sample opens. |
| MongoDBSample | A streaming service named StreamFlix, with 15 collections, such as users, movie, reviews and subscriptions | No database. The sample holds only the design, and opens offline. |
Open a sample project
The first time you open a sample, you need an internet connection: DbSchema downloads both samples from dbschema.com. After that, the samples open from your computer. If a design is already open, choose File → Close to get back to the Welcome Screen.
- On the Welcome Screen, choose Start New in the sidebar.
- Choose Sample Projects at the top.
- Click Sqlite or MongoDb.
- Press Open Sample.
You can also open the samples in two other ways:
- On the Learn page of the Welcome Screen, click Sample Projects, then choose SqliteSample or MongoDBSample in the list.
- In a project window, choose Help → SQL Tutorial. It opens SqliteSample and a short SQL course. The exercises of the course use the sample's data.
Explore the SQLite sample
SqliteSample is connected to a small SQLite database that holds data. You can:
- Double-click a table header to see its columns and keys. See Tables, Columns and Indexes.
- Follow the lines between the tables to see the foreign keys.
- Browse the rows of a table with the Data Explorer.
- Write a query in the SQL Editor.
When you change a table, DbSchema changes the design and the SQLite database at once, because the sample is connected. The database is a file on your computer, so nothing else is affected.
Explore the MongoDB sample
MongoDB stores data as documents instead of rows. A collection is a group of documents, like a table. A field is one named value of a document, like a column. MongoDBSample is a design without a database. You can explore the collections, their fields and the lines that link them. There are no documents to browse.
A small arrow next to a field means that the field holds other fields, such as preferences in users.
The lines are virtual foreign keys. DbSchema keeps these links in the design, and MongoDB does not check them.
MongoDB explains how DbSchema shows MongoDB collections.
Common problems
The samples do not download
DbSchema downloads the samples from dbschema.com. Check the internet connection. If your network uses a proxy, set it with Proxy & Settings at the bottom of the Welcome Screen. Set a proxy before you connect explains how.