27 lines
504 B
JSON
27 lines
504 B
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|