31 lines
634 B
JSON
31 lines
634 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"
|
|
}
|
|
}
|
|
} |