Blame view
node_modules/loopback/common/models/role-mapping.json
504 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
{ "name": "RoleMapping", "description": "Map principals to roles", "properties": { "id": { "type": "string", "id": true, "generated": true }, "principalType": { "type": "string", "description": "The principal type, such as user, application, or role" }, "principalId": { "type": "string", "index": true } }, "relations": { "role": { "type": "belongsTo", "model": "Role", "foreignKey": "roleId" } } } |