{ "name": "ExpeditionScan", "options": { "mysql": { "table": "expeditionScan" } }, "properties": { "id": { "type": "number", "description": "Identifier" }, "expeditionFk": { "type": "number", "description": "Identifier", "id": true }, "palletFk": { "type": "number", "description": "Identifier", "id": true }, "scanned": { "type": "date", "default": "$now" } }, "relations": { "expedition": { "type": "belongsTo", "model": "Expedition", "foreignKey": "expeditionFk" }, "pallet": { "type": "belongsTo", "model": "expeditionPallet", "foreignKey": "palletFk" } }, "acls": [{ "accessType": "WRITE", "principalType": "ROLE", "principalId": "production", "permission": "ALLOW" }] }