salix/services/client/common/models/client-sample.json

52 lines
1.1 KiB
JSON
Raw Normal View History

2018-07-25 18:47:07 +00:00
{
2018-07-27 09:18:27 +00:00
"name": "ClientSample",
"base": "Loggable",
"log": {
"model": "ClientLog",
"relation": "client",
"changedModelValue": "type"
},
2018-07-25 18:47:07 +00:00
"options": {
"mysql": {
2018-07-27 09:18:27 +00:00
"table": "clientSample"
2018-07-25 18:47:07 +00:00
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"created": {
"type": "date"
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
2018-07-27 09:18:27 +00:00
"type": {
2018-07-25 18:47:07 +00:00
"type": "belongsTo",
2018-07-27 09:18:27 +00:00
"model": "Sample",
"foreignKey": "typeFk"
2018-07-25 18:47:07 +00:00
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
2018-07-27 09:18:27 +00:00
},
"account": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
2018-07-25 18:47:07 +00:00
}
}
}