27 lines
363 B
JSON
27 lines
363 B
JSON
{
|
|
"name": "RoleRole",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "account.roleRole"
|
|
}
|
|
},
|
|
"properties": {
|
|
"role": {
|
|
"id": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"owner": {
|
|
"type": "belongsTo",
|
|
"model": "Role",
|
|
"foreignKey": "role"
|
|
},
|
|
"inherits": {
|
|
"type": "belongsTo",
|
|
"model": "Role",
|
|
"foreignKey": "inheritsFrom"
|
|
}
|
|
}
|
|
}
|