26 lines
471 B
JSON
26 lines
471 B
JSON
{
|
|
"name": "WorkerMana",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "bs.workerMana"
|
|
}
|
|
},
|
|
"properties": {
|
|
"amount": {
|
|
"type": "Number"
|
|
},
|
|
"workerFk": {
|
|
"id": true,
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worker",
|
|
"foreignKey": "workerFk"
|
|
}
|
|
}
|
|
}
|