47 lines
1019 B
JSON
47 lines
1019 B
JSON
{
|
|
"name": "ClientSample",
|
|
"base": "Loggable",
|
|
"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": "VnUser",
|
|
"foreignKey": "userFk"
|
|
},
|
|
"account": {
|
|
"type": "belongsTo",
|
|
"model": "VnUser",
|
|
"foreignKey": "userFk"
|
|
},
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
}
|
|
}
|
|
}
|