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

39 lines
752 B
JSON
Raw Normal View History

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