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.

The Model panel can be found in the upper left of the AnythingDB.


Figure 1.

Create a Model

  1. In the main panel, click the Models tab.
  2. Click New Model.


  3. Name the Model (without spaces) and click Create.


    Figure 2.
    The Model side panel opens.


    Figure 3.
  4. Enter a title and description (optional) and click Save.
    Tip: If you save your Model without any additional information, you will need to add a new version to start using your Model.
  5. When creating a new Model, a version needs to be created before the Model can be used. To create the version, click New Version.


    Figure 4.
    Note: Versions can NOT been modified or deleted. For that purpose, different versions can be done.
    Tip: If a version already exists, that version will be automatically assigned to the new Model. You can change this after the Model is saved.
    Note: You can also view the schema of an existing version.


    Figure 5.
  6. Enter the data for the new version in the right-hand pane and click Save.
    The Version is created, and the Model is created.
  7. To select a version already created, use the drop-down menu.


    Figure 6.

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 7.
    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 8.
  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 9.