2018-07-25 18:47:07 +00:00
|
|
|
{
|
2018-07-27 09:18:27 +00:00
|
|
|
"name": "ClientSample",
|
2023-12-05 06:48:56 +00:00
|
|
|
"base": "VnModel",
|
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
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",
|
2023-01-24 08:04:43 +00:00
|
|
|
"model": "VnUser",
|
2022-05-26 14:14:10 +00:00
|
|
|
"foreignKey": "userFk"
|
2018-07-27 09:18:27 +00:00
|
|
|
},
|
2023-01-24 08:12:26 +00:00
|
|
|
"account": {
|
2018-07-27 09:18:27 +00:00
|
|
|
"type": "belongsTo",
|
2023-01-24 08:04:43 +00:00
|
|
|
"model": "VnUser",
|
2018-07-27 09:18:27 +00:00
|
|
|
"foreignKey": "userFk"
|
|
|
|
},
|
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
|
|
|
"foreignKey": "companyFk"
|
2018-07-25 18:47:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|