loopback/common/models/role.json

31 lines
458 B
JSON
Raw Normal View History

{
"name": "Role",
"properties": {
"id": {
"type": "string",
"id": true,
"generated": true
},
"name": {
"type": "string",
"required": true
},
"description": "string",
"created": {
"defaultFn": "now"
},
"modified": {
"defaultFn": "now"
}
},
"relations": {
"principals": {
"type": "hasMany",
"model": "RoleMapping",
"foreignKey": "roleId"
}
}
}