{ "name": "Vehicle", "base": "VnModel", "options": { "mysql": { "table": "vehicle" } }, "properties": { "id": { "type": "Number", "id": true, "description": "Identifier" }, "numberPlate": { "type": "String" }, "tradeMark": { "type": "String" }, "model": { "type": "String" }, "m3": { "type": "Number" }, "description": { "type": "String" }, "isActive": { "type": "Number" } }, "relations": { "company": { "type": "belongsTo", "model": "Company", "foreignKey": "companyFk" }, "warehouse": { "type": "belongsTo", "model": "Warehouse", "foreignKey": "warehouseFk" } }, "scope": { "where": { "isActive": true } }, "acls": [ { "accessType": "READ", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" } ] }