salix/modules/client/back/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",
"showField": "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,
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:04:43 +00:00
"VnUser": {
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
}
}
}