2018-04-29 11:47:33 +00:00
|
|
|
{
|
|
|
|
"name": "WorkerMana",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "bs.workerMana"
|
2018-04-29 11:47:33 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"amount": {
|
2018-05-03 11:24:35 +00:00
|
|
|
"type": "Number"
|
2018-04-29 11:47:33 +00:00
|
|
|
},
|
|
|
|
"workerFk": {
|
|
|
|
"id": true,
|
2018-05-03 11:24:35 +00:00
|
|
|
"type": "Number"
|
2018-04-29 11:47:33 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|