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

  1. Click New Model.


  2. Name the Model (without spaces) and click Create.
    Figure 1.


    The Model side panel opens.
    Figure 2.


  3. Optional: Enter the version information.
  4. Enter a title and description for the Model (optional).
  5. 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.
    Figure 3.


  6. To select a version already created, use the drop-down menu.
    Figure 4.


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:

  1. Choose the Things you want to update.
    Figure 5.


    Tip: You can select multiple Models to update at the same time. Just select the ones to update by clicking their respective checkboxes.
  2. Click Edit.
    The Update Things Model dialog opens.
    Figure 6.


  3. 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.
Figure 7.