2018-07-25 18:47:07 +00:00
|
|
|
{
|
2018-07-27 09:18:27 +00:00
|
|
|
"name": "ClientSample",
|
2018-10-22 12:35:21 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "ClientLog",
|
|
|
|
"relation": "client",
|
2019-03-29 06:36:26 +00:00
|
|
|
"showField": "type"
|
2018-10-22 12:35:21 +00:00
|
|
|
},
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|