What are models?

Robert van Boesschoten

Published: 20-08-2019

Last updated: 27-08-2020

The data model is where the application stores all the information. A single model represents a part of this. The data model in your application is a visual tool with an intuitive interface. It has the following elements: models, properties, and relations.

What is the data model used for?

The application's data is defined and stored in the data model so we can use it for other application elements, as for application actions. It is the backbone of all application types you can build with the Betty Blocks platform. It describes all the data in an abstract way and hides unnecessary complexity to increase speed and flexibility. No technical knowledge of databases is needed as writing queries. The data model is visually built (drag and drop). We are taking care of the underlying database. 
The data model is logically split up into multiple models, properties and relations:


Models are shown as containers in the datamodel. They represent real-world objects that are included in the application. For a webshop, for instance, a product model will be necessary to store the data of all the products, your customers, and their orders. The name of a model is written as a singular noun, so the name for a products model will be product. Every new application starts with 2 models: Role and User. These models are for the Betty Blocks users that can log in to the application so it is not advised to make changes to them.

HowTo create a model?

  1. Go to the Datamodel by clicking on the Datamodel tab on the Builder Bar.
  2. Notice that every application starts automatically with two models: User and Role. These two are set by default.
  3. Click on + New to create new models at the top left.
  4. The model settings appear. Name your model and give it a helptext.
  5. Ready? Click Save and your model is created.
  6. Notice that you can change the way models are shown. With the icons at the top right you change between a visual editor and list view option.

Now you can start adding Properties to your model!


Not sure where to start?

Click here to register and start learning