52 lines
1.1 KiB
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"
|
|
},
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "userFk"
|
|
},
|
|
"account": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "userFk"
|
|
},
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
}
|
|
}
|
|
}
|