refactor: request changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-05-20 13:10:48 +02:00
parent f4b080243c
commit a043c5d346
4 changed files with 38 additions and 4 deletions

View File

@ -17,11 +17,17 @@
"machineFk": {
"type": "number"
},
"inTimed": {
"type": "date"
"inTime": {
"type": "date",
"mysql": {
"columnName": "inTimed"
}
},
"outTimed": {
"type": "date"
"outTime": {
"type": "date",
"mysql": {
"columnName": "outTimed"
}
}
}
}

View File

@ -20,6 +20,9 @@
"EducationLevel": {
"dataSource": "vn"
},
"Sector": {
"dataSource": "vn"
},
"WorkCenter": {
"dataSource": "vn"
},

View File

@ -0,0 +1,20 @@
{
"name": "Sector",
"base": "VnModel",
"options": {
"mysql": {
"table": "sector"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"description": {
"type": "string",
"required": true
}
}
}

View File

@ -84,6 +84,11 @@
"type": "hasMany",
"model": "WorkerTeamCollegues",
"foreignKey": "workerFk"
},
"sector": {
"type": "belongsTo",
"model": "Sector",
"foreignKey": "sectorFk"
}
}
}