37 lines
720 B
JSON
37 lines
720 B
JSON
{
|
|
"name": "ClientContact",
|
|
"description": "Client phone contacts",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "ClientLog",
|
|
"relation": "client",
|
|
"changedModelValue": "name"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "clientContact",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"validateUpsert": true,
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
}
|
|
}
|
|
} |