salix/services/loopback/common/models/worker-mana.json

26 lines
440 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"
}
}
}