salix/back/models/starred-module.json

39 lines
653 B
JSON
Raw Normal View History

{
"name": "StarredModule",
"base": "VnModel",
"options": {
"mysql": {
"table": "vn.starredModule"
}
},
"properties": {
"id": {
"type": "number",
"id": true
},
"workerFk": {
"type": "number",
"required": true
},
"moduleFk": {
"type": "string",
"required": true
2021-06-01 20:18:13 +00:00
},
"position": {
"type": "number",
"required": true
}
},
"relations": {
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"module": {
"type": "belongsTo",
"model": "Module",
"foreignKey": "moduleFk"
}
2021-03-02 09:33:35 +00:00
}
2021-03-01 15:13:47 +00:00
}