{ "name": "Operator", "base": "VnModel", "options": { "mysql": { "table": "operator" } }, "properties": { "workerFk": { "id": true, "type": "number", "required": true }, "numberOfWagons": { "type": "number" }, "trainFk": { "type": "number" }, "itemPackingTypeFk": { "type": "string" }, "warehouseFk": { "type": "number" }, "sectorFk": { "type": "number" }, "labelerFk": { "type": "number" }, "isOnReservationMode": { "type": "boolean", "required": true }, "machineFk": { "type": "number" }, "linesLimit": { "type": "number" }, "volumeLimit": { "type": "number" }, "sizeLimit": { "type": "number" } }, "relations": { "sector": { "type": "belongsTo", "model": "Sector", "foreignKey": "sectorFk" }, "train": { "type": "belongsTo", "model": "Train", "foreignKey": "trainFk" }, "printer": { "type": "belongsTo", "model": "Printer", "foreignKey": "labelerFk" }, "itemPackingType": { "type": "belongsTo", "model": "ItemPackingType", "foreignKey": "itemPackingTypeFk", "primaryKey": "code" }, "machine": { "type": "belongsTo", "model": "Machine", "foreignKey": "machineFk" } } }