Arreglado ClientObservation
This commit is contained in:
parent
b7fb0bca98
commit
89f397da2c
|
@ -16,24 +16,21 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Text"
|
"description": "Text"
|
||||||
},
|
},
|
||||||
"employeeFk": {
|
|
||||||
"type": "Number"
|
|
||||||
},
|
|
||||||
"creationTime": {
|
"creationTime": {
|
||||||
"type": "date",
|
"type": "date",
|
||||||
"description": "Creation date and time"
|
"description": "Creation date and time"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
|
"employeeFk": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Employee",
|
||||||
|
"foreignKey": "employeeFk"
|
||||||
|
},
|
||||||
"clientFk": {
|
"clientFk": {
|
||||||
"type": "hasOne",
|
"type": "hasOne",
|
||||||
"model": "Client",
|
"model": "Client",
|
||||||
"foreignKey": "id"
|
"foreignKey": "id"
|
||||||
},
|
|
||||||
"employeeFk": {
|
|
||||||
"type": "hasOne",
|
|
||||||
"model": "Employee",
|
|
||||||
"foreignKey": "id"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [
|
"acls": [
|
||||||
|
@ -43,5 +40,8 @@
|
||||||
"principalId": "$everyone",
|
"principalId": "$everyone",
|
||||||
"permission": "ALLOW"
|
"permission": "ALLOW"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"scope": {
|
||||||
|
"include": "employeeFk"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue