salix/back/models/worker-team.json

31 lines
512 B
JSON

{
"name": "WorkerTeam",
"base": "VnModel",
"options": {
"mysql": {
"table": "workerTeam"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"team": {
"type": "Number"
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "Id_Trabajador"
}
}
}