Clear all

What are model types and model levels?


Topic starter

Could someone explain (preferably with examples) the concept of model type and model level and how they relate to the models themselves? 


Thank you,


This topic was modified 2 months ago by Marco Gouveia
1 Answer

When you create a model file in studio, you are creating a ModelType.  An example would be "Shipment".

A single model can have multiple "levels", which are ModelLevelTypes.  For example, in the Shipment model, we have the Shipment "header" as one level (contains the ship from location, ship to location, etc) and another level for Shipment Line (where you can have multiple deliveries, e.g. computer, monitor, keyboard, mouse as different lines).


So in this case, you have Shipment as a model type, and you have the Shipment header as a model level and the Shipment Line as a model level.


Each model level always corresponds to one table.  A model contains 1 or more model levels, and thus implicitly means multiple tables.

@gmerrill Thank you for the clear response.
Will this be a 2 level (ModelType/ModelLevelType) hierarchy or could we have a higher depth (ModelType/ModelLevelType/ModelLevelType/...)? For instance, could a Shipment Line have contain multiple Product codes (for example, the book "Emotional Intelligence 2.0" has ISBN-10=0974320625 and ISBN-13=978-0974320625)

Yes, we support N-depth. For example, SCC.EnhancedOrder has 4 levels.

© 2020 One Network Enterprises. All rights reserved. Privacy Policy