Data Modelling
Data Modelling on the platform makes use of the Class Designer allowing a user to manage classes, fields, actions and links. It is closely related to the database as well.
Last updated
Data Modelling on the platform makes use of the Class Designer allowing a user to manage classes, fields, actions and links. It is closely related to the database as well.
Last updated
The Class Designer is the central unit to build a new application. It is used to define the classes that model data in an application. A class typically consists of fields, actions and links - each of which can be thoroughly configured using the class designer.
You can edit (by selecting details), delete, clone or export existing classes for use in another application easily from the dropdown menu for your class. More options are available in the toolbar as well.
The class editor can be opened by selecting Details from its dropdown menu.
The class editor allows you to modify the configurations of your class. More details about the different sections and attributes that help you customize you class can be found here.
A class can be deleted simply by selecting the Delete option from its dropdown menu.
Important: The system does not prompt for confirmation during deletion.
A class can be cloned by selecting the Clone option from its dropdown menu. A new class with the same properties as the original class is created in your application.
The - Copy
suffix is added to the class name to prevent conflicts with the original class.
Note that when cloning a class, unique properties such as the Common Key and Mapping Key also retain the same values as the original class, rendering the clone as invalid.
Make sure to modify all unique properties of the class to allow saving your cloned class.
A class diagram can easily be generated and viewed in the class designer itself by selecting your classes from the left panel. Alternately, you can select Show All Classes (from the toolbar) to generate a diagram with all the classes in your application.
By selecting the Align Elements option, you can select to display your class diagram in different layouts. The options include Circle, Square and Columns.
Individual classes can be exported by selecting Export from their dropdown menus.
Alternately, you can choose to click on the general Export option in the toolbar and select all the classes you wish to export. Click on Execute to complete the operation.
Both methods result in a your class definitions compiled to JSON files being downloaded as a ZIP file.
The default file name is classes.zip
.
The generated ZIP file may be password-protected.
Similarly, classes can be imported in an application by selecting Import from the toolbar and selecting your class definition JSON files. Click on Execute to complete the operation.
You can also check the validity of your classes by selecting the Validate option or save your current classes by selecting Save from the bottom menu.
All validation errors are displayed in the collapsible log at the bottom.
In case your class is invalid, the system will not allow the class to be saved.