37 lines
731 B
JSON
37 lines
731 B
JSON
{
|
|
"name": "WorkerTimeControl",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "workerTimeControl"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number"
|
|
},
|
|
"timed": {
|
|
"type": "Date"
|
|
},
|
|
"manual": {
|
|
"type": "Boolean"
|
|
},
|
|
"order": {
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "Account",
|
|
"foreignKey": "userFk"
|
|
},
|
|
"warehouse": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseFk"
|
|
}
|
|
}
|
|
}
|