43 lines
649 B
JSON
43 lines
649 B
JSON
|
{
|
||
|
"name": "ClientInforma",
|
||
|
"base": "Loggable",
|
||
|
"log": {
|
||
|
"model":"ClientLog",
|
||
|
"relation": "client",
|
||
|
"showField": "clientFk"
|
||
|
},
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "clientInforma"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "number",
|
||
|
"id": true,
|
||
|
"description": "Identifier"
|
||
|
},
|
||
|
"rating": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"recommendedCredit": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"created": {
|
||
|
"type": "date"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"worker": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Worker",
|
||
|
"foreignKey": "workerFk"
|
||
|
},
|
||
|
"client": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Client",
|
||
|
"foreignKey": "clientFk"
|
||
|
}
|
||
|
}
|
||
|
}
|