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": {
|
2022-05-12 06:06:30 +00:00
|
|
|
"model": "ClientLog",
|
|
|
|
"relation": "client",
|
|
|
|
"showField": "name"
|
2018-10-22 12:35:21 +00:00
|
|
|
},
|
2018-06-26 07:41:27 +00:00
|
|
|
"options": {
|
2022-05-12 06:06:30 +00:00
|
|
|
"mysql": {
|
|
|
|
"table": "clientContact"
|
|
|
|
}
|
2018-06-26 07:41:27 +00:00
|
|
|
},
|
|
|
|
"validateUpsert": true,
|
|
|
|
"properties": {
|
2022-05-12 06:06:30 +00:00
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2022-05-12 06:06:30 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"phone": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2018-06-26 07:41:27 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
2022-05-12 06:06:30 +00:00
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
}
|
2018-06-26 07:41:27 +00:00
|
|
|
}
|
2022-05-12 06:06:30 +00:00
|
|
|
}
|