35 lines
640 B
JSON
35 lines
640 B
JSON
|
{
|
||
|
"name": "StockBought",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "stockBought"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "number",
|
||
|
"id": true
|
||
|
},
|
||
|
"workerFk": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"bought": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"reserve": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"dated": {
|
||
|
"type": "date"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"worker": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Worker",
|
||
|
"foreignKey": "workerFk"
|
||
|
}
|
||
|
}
|
||
|
}
|