37 lines
697 B
JSON
37 lines
697 B
JSON
{
|
|
"name": "ClientDms",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
|