salix/modules/worker/back/models/worker-mana.json

26 lines
468 B
JSON

{
"name": "WorkerMana",
"base": "VnModel",
"options": {
"mysql": {
"table": "workerMana"
}
},
"properties": {
"amount": {
"type": "Number"
},
"workerFk": {
"id": true,
"type": "Number"
}
},
"relations": {
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
}
}