Notifications
Clear all

What are model types and model levels?

3 Posts
2 Users
0 Reactions
1,005 Views
0
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,

Marco

This topic was modified 2 years ago by Marco Gouveia
1 Answer
0

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.

Marco Gouveia Topic starter 2022-12-01 14:50:34

@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)

Greg Merrill 2022-12-01 23:20:27

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