2020-03-09 08:00:03 +00:00
|
|
|
{
|
|
|
|
"name": "RoleInherit",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "account.roleInherit"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"owner": {
|
|
|
|
"type": "belongsTo",
|
2023-11-28 07:12:16 +00:00
|
|
|
"model": "VnRole",
|
2020-03-09 08:00:03 +00:00
|
|
|
"foreignKey": "role"
|
|
|
|
},
|
|
|
|
"inherits": {
|
|
|
|
"type": "belongsTo",
|
2023-11-28 07:12:16 +00:00
|
|
|
"model": "VnRole",
|
2020-03-09 08:00:03 +00:00
|
|
|
"foreignKey": "inheritsFrom"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|