{ "name": "ExpeditionScan", "options": { "mysql": { "table": "expeditionScan" } }, "properties": { "id": { "type": "number", "description": "Identifier", "id": true }, "expeditionFk": { "type": "number", "description": "Identifier" }, "palletFk": { "type": "number", "description": "Identifier" }, "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" }] }