39 lines
755 B
JSON
39 lines
755 B
JSON
{
|
|
"name": "ClientDms",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model":"ClientLog",
|
|
"relation": "client",
|
|
"showField": "dmsFk"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "clientDms"
|
|
}
|
|
},
|
|
"properties": {
|
|
"dmsFk": {
|
|
"type": "number",
|
|
"id": true,
|
|
"required": true
|
|
},
|
|
"clientFk": {
|
|
"type": "number",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "clientFk"
|
|
},
|
|
"dms": {
|
|
"type": "belongsTo",
|
|
"model": "Dms",
|
|
"foreignKey": "dmsFk"
|
|
}
|
|
}
|
|
}
|
|
|