39 lines
586 B
JSON
39 lines
586 B
JSON
{
|
|
"name": "WorkerActivity",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "workerActivity"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"event": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"workerFk": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
},
|
|
"workerActivityTypeFk": {
|
|
"type": "belongsTo",
|
|
"model": "WorkerActivityType",
|
|
"foreignKey": "workerActivityTypeFk"
|
|
}
|
|
}
|
|
} |