2014-10-13 09:20:04 +00:00
|
|
|
{
|
|
|
|
"name": "RoleMapping",
|
|
|
|
"description": "Map principals to roles",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string",
|
|
|
|
"id": true,
|
|
|
|
"generated": true
|
|
|
|
},
|
|
|
|
"principalType": {
|
|
|
|
"type": "string",
|
2016-11-21 20:51:43 +00:00
|
|
|
"description": "The principal type, such as USER, APPLICATION, ROLE, or user model name in case of multiple user models"
|
2014-10-13 09:20:04 +00:00
|
|
|
},
|
2016-10-21 23:13:16 +00:00
|
|
|
"principalId": {
|
|
|
|
"type": "string",
|
|
|
|
"index": true
|
|
|
|
}
|
2014-10-13 09:20:04 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"role": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Role",
|
|
|
|
"foreignKey": "roleId"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|