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,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-07-25 18:47:07 +00:00
|
|
|
"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
|
|
|
},
|
2022-05-26 14:14:10 +00:00
|
|
|
"user": {
|
2018-07-25 18:47:07 +00:00
|
|
|
"type": "belongsTo",
|
2022-05-26 14:14:10 +00:00
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "userFk"
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|