Warning! You’re now reading a legacy document. Find the updated next-gen version of this document here.
Models and properties form an applications data model. A data model is where an application stores information. It consists of multiple models that are described in terms of properties. |
An application's data is defined in the data model and used for building application elements such as defining workflows using Actions. The data model is the backbone for an application. It describes data in an abstract way and hides unnecessary complexity for increasing speed and flexibility.
The data model is logically split up into multiple models, properties and relations: |
An application's data is defined in the data model and used for building application elements such as defining workflows using Actions. The data model is the backbone for an application. It describes data in an abstract way and hides unnecessary complexity for increasing speed and flexibility.
The data model is logically split up into multiple models, properties and relations: |
ModelsModels represent real-world objects that can be uniquely identified. A model exists either physically (car) or logically ( as a concept.
The name of a model is written as a singular noun. Every new application starts automatically with two models: Role and User.
| PropertiesProperties are the attributes ascribed to a model and are assigned a data type. This defines the property information - data - in terms of, for example, a number, text (string) or price type.
Each new model automatically contains the properties: - created at - updated at - Id. The Id property uniquely identifies every object in a model.
| RelationsModels can be related to one another using relations. Relations are the connections between models. For example, Customers and Orders are related models.
One Customer could have multiple Orders and a single Order is related to one Customer. The relation type indicates the number of related objects in a model. Relations are based on the data connected via models and can be either: - has many, - belongs to and has - belongs to many
|
Within Betty Blocks, you can use the visual interface (Schema view) in the Data model module when building the Data model for your application. You can switch between the different views, table list and visual view for providing flexibility in presenting information. For example, when you build relations between models, the visual interface provides a useful view of the model information with with you are working. |