31 lines
440 B
JSON
31 lines
440 B
JSON
{
|
|
"name": "RoleInherit",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "account.roleInherit"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"owner": {
|
|
"type": "belongsTo",
|
|
"model": "VnRole",
|
|
"foreignKey": "role"
|
|
},
|
|
"inherits": {
|
|
"type": "belongsTo",
|
|
"model": "VnRole",
|
|
"foreignKey": "inheritsFrom"
|
|
}
|
|
}
|
|
}
|