Models
Models are used to define a template to create new Things easily and quickly. They store a default Thing schema, which can then be applied to new Things in the New Things panel. Multiple versions of a Model can be implemented, to enable you to easily update schemas while defining a project.
The Model panel can be found in the left side of the AnythingDB.
Create a Model
-
Click New Model.
-
Name the Model (without spaces) and click
Create.
The Model side panel opens.
- Optional: Enter the version information.
- Enter a title and description for the Model (optional).
- Optional:
Choose to enable/disable Properties, Events and Actions.
Tip: If you save your Model without any additional information, you will need to add a new version to start using your Model.Note: Versions can NOT been modified or deleted. For that purpose, different versions can be done.Note: You can also view the schema of an existing version.
-
To select a version already created, use the drop-down menu.
Update Things to a Model
To update Things to a Model, a new version must be created before edits are allowed. This lets you keep several versions of the same Model without overwriting previous versions.
To upgrade multiple Things to a Model:
-
Choose the Things you want to update.
Tip: You can select multiple Models to update at the same time. Just select the ones to update by clicking their respective checkboxes.
-
Click Edit.
The Update Things Model dialog opens.
- Select the Version to apply, make the changes as desired and click Update.
Delete a Model
To delete a Model, click the three dots in the Model tile.