salix/modules/client/back/models/client-dms.json

38 lines
781 B
JSON
Raw Normal View History

2019-05-23 07:30:29 +00:00
{
"name": "ClientDms",
"base": "Loggable",
"log": {
"model": "ClientLog",
"relation": "ticket",
"showField": "dmsFk"
},
"options": {
"mysql": {
"table": "clientDms"
}
},
"properties": {
"clientFk": {
"type": "Number",
"id": true,
"required": true
},
"dmsFk": {
"type": "Number",
"id": true,
"required": true
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"dms": {
"type": "belongsTo",
"model": "Dms",
"foreignKey": "dmsFk"
}
}
}