salix/modules/client/back/models/client-sample.json

52 lines
1.1 KiB
JSON

{
"name": "ClientSample",
"base": "Loggable",
"log": {
"model": "ClientLog",
"relation": "client",
"showField": "type"
},
"options": {
"mysql": {
"table": "clientSample"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"created": {
"type": "date"
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"type": {
"type": "belongsTo",
"model": "Sample",
"foreignKey": "typeFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"account": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
}
}
}