36 lines
746 B
JSON
36 lines
746 B
JSON
{
|
|
"name": "ClientContact",
|
|
"description": "Client phone contacts",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "ClientLog",
|
|
"relation": "client",
|
|
"showField": "name"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "clientContact"
|
|
}
|
|
},
|
|
"validateUpsert": true,
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
}
|
|
}
|
|
} |