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