What are Data Models? | Aquro Help Center
A data model is a definition of which properties that a data item should have.
If you are used to using classic SQL databases, you may be used to creating a table with a set of columns and then storing the data in different rows. Aquro stores all data in an object database, which is handled slightly differently.
First, you design a model (the columns) and then you add different sets/collections of this model (tables which use those columns as a sort of data template or framework).
In other words, you first create the layout of the data and then you add one or more instances of this layout in your app.
To create a new model in your app, follow these steps:
- Make sure you are in Aquro App Studio and have navigated to the Data Models pane
- Right click on the Models node in the tree view at the left
- Click on Add model
- Enter the name of the new model, eg. MyModel
- Click on OK
To add properties to a model follow these steps:
- Make sure you are in Aquro App Studio and have navigated to the Data Models pane
- Locate the model you want to edit in the treeview on the left side and click on the name of the model.
- Click on ADD
- A new row will be added
- Enter the name of the property, eg MyProperty
- Click on SAVE to save your model
To remove a property from a model, follow these steps:
- Make sure you are in Aquro App Studio and have navigated to the Data Models pane
- Locate the model you want to edit in the treeview on the left side and click on the name of the model.
- Select the row of the property you like to remove by clicking on the row
- Click on REMOVE
- Click on SAVE to save your model
To remove a model, follow these steps:
- Make sure you are in Aquro App Studio and have navigated to the Data Models pane
- Locate the model you like to remove in the treeview on the left side and right click on the name of the model.
- Select the row of the property you want to remove by clicking on the row
- Click on DELETE
- Read the confirmation and click on OK
- The model will now be removed