# new UBModel (cfg: object, modelCode: string)
Members
# clientRequirePath : string instance
The path for retrieve a model public accessible files (using clientRequire endpoint)
# description : string instance
Model description as specified in description
key of model package.json
If package.json not found description is empty.
Introduced in ub server@5.24.21
# moduleName : string instance
Module name for require
# name : string instance
Model name as specified in application config
# needInit : boolean instance
initModel.js
script is available in the public folder (should be injected by client)
# needLocalize : boolean instance
locale-Lang.js
script is available in the public folder (should be injected by client)
# order : number instance
An order of model initialization (as it is provided in server domain config)
# realPath : string instance
Server-side domain only - the full path to model folder
# realPublicPath : string instance
Server-side domain only - full path to the model public folder (if any) including trailer /
# version : string instance
Model version as specified in version
key of model package.json
If package.json not found version is empty.
Introduced in ub server@5.4.2