salix/services/loopback/common/models/worker-team.json

31 lines
512 B
JSON
Raw Normal View History

2018-10-30 08:43:17 +00:00
{
"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"
}
}
}