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": { "machineFk": {
"type": "number" "type": "number"
}, },
"inTimed": { "inTime": {
"type": "date" "type": "date",
"mysql": {
"columnName": "inTimed"
}
}, },
"outTimed": { "outTime": {
"type": "date" "type": "date",
"mysql": {
"columnName": "outTimed"
}
} }
} }
} }

View File

@ -20,6 +20,9 @@
"EducationLevel": { "EducationLevel": {
"dataSource": "vn" "dataSource": "vn"
}, },
"Sector": {
"dataSource": "vn"
},
"WorkCenter": { "WorkCenter": {
"dataSource": "vn" "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", "type": "hasMany",
"model": "WorkerTeamCollegues", "model": "WorkerTeamCollegues",
"foreignKey": "workerFk" "foreignKey": "workerFk"
},
"sector": {
"type": "belongsTo",
"model": "Sector",
"foreignKey": "sectorFk"
} }
} }
} }