2021-02-26 08:08:31 +00:00
|
|
|
{
|
|
|
|
"name": "StarredModule",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2021-03-01 11:15:13 +00:00
|
|
|
"table": "vn.starredModule"
|
2021-02-26 08:08:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true
|
|
|
|
},
|
|
|
|
"workerFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"moduleFk": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"module": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Module",
|
|
|
|
"foreignKey": "moduleFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|