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 SqliteSample project open in DbSchema, with the tables playlist_track, tracks, playlists, media_types, genres, artists and albums2 on the Main Diagram

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:

SampleWhat it holdsDatabase
SqliteSampleA music store with 12 tables, such as tracks, albums2, artists, playlists, customers and invoicesA small SQLite database file on your computer. DbSchema connects to it when the sample opens.
MongoDBSampleA streaming service named StreamFlix, with 15 collections, such as users, movie, reviews and subscriptionsNo 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.

  1. On the Welcome Screen, choose Start New in the sidebar.
  2. Choose Sample Projects at the top.
  3. Click Sqlite or MongoDb.
  4. Press Open Sample.
The Start New page of the DbSchema Welcome Screen with Sample Projects chosen, the Sqlite and MongoDb tiles and the Open Sample button

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:

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.

The MongoDBSample project in DbSchema with the collections watch_history, users, movie, reviews, subscriptions and genres, and the lines between users, movie and reviews

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.

Next steps