2018-06-26 07:41:27 +00:00
|
|
|
{
|
|
|
|
"name": "ClientContact",
|
|
|
|
"description": "Client phone contacts",
|
2018-10-22 12:35:21 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "ClientLog",
|
|
|
|
"relation": "client",
|
2019-04-04 10:38:54 +00:00
|
|
|
"showField": "name"
|
2018-10-22 12:35:21 +00:00
|
|
|
},
|
2018-06-26 07:41:27 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "clientContact"
|
2018-06-26 07:41:27 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"validateUpsert": true,
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"phone": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|