Datatype aliases in Moon Modeler

Moon Modeler – data modeling tool for noSQL databases – lets you define aliases for data types that you can use instead of the standard ones. The good thing about this data type is that you can add it to a diagram, and the diagram can include a line pointing to the field where the data type alias is used. If you decide to change, for example, a data type validation restrictions, you can do so in only one place.

How to create a datatype alias?

Click the Other button on the main toolbar, choose Add Datatype alias and then click anywhere in the diagram.

Main toolbar and item for adding a new datatype alias to a data model for noSQL created with Moon Modeler software.

Alternate solution: Right click on the diagram canvas and choose Add new object -> Datatype alias. Then click anywhere in the diagram again.

Context menu for diagram area in Moon Modeler

Specify Name for the data type alias and Definition in the side panel.

How to use the newly defined custom data types?

Select the datatype alias from the datatype dropdown. You can also draw lines from the datatype alias graphics to the field.

Validation scripts for MongoDB

The definition specified in the alias datatype will be included in the generated validation script for MongoDB.

Validation script generated for MongoDB

You can customize the resulting diagram to suit your needs and also use Line Layout to automatically arrange objects, which respects the objects and lines created between them.

#

DATA MODELING TOOLS
DRAW Diagrams and
GENERATE Scripts
Download data modeling tools
Blog Categories
Blog by Platforms