salix/modules/worker/back/models/worker-team.json

31 lines
633 B
JSON
Raw Normal View History

2018-10-30 08:43:17 +00:00
{
2019-02-01 08:31:01 +00:00
"name": "WorkerTeam",
"base": "VnModel",
"options": {
"mysql": {
"table": "workerTeam"
}
2018-10-30 08:43:17 +00:00
},
2019-02-01 08:31:01 +00:00
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
2019-02-01 08:31:01 +00:00
"id": true,
"description": "Identifier"
},
"team": {
2022-05-12 07:47:47 +00:00
"type": "number"
2019-02-01 08:31:01 +00:00
}
2018-10-30 08:43:17 +00:00
},
2019-02-01 08:31:01 +00:00
"relations": {
"user": {
"type": "belongsTo",
2023-01-24 08:05:50 +00:00
"model": "VnUser",
2019-02-01 08:31:01 +00:00
"foreignKey": "userFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "Id_Trabajador"
}
2018-10-30 08:43:17 +00:00
}
}