3870-models #975
|
@ -17,11 +17,17 @@
|
|||
"machineFk": {
|
||||
"type": "number"
|
||||
},
|
||||
"inTimed": {
|
||||
"type": "date"
|
||||
"inTime": {
|
||||
vicent marked this conversation as resolved
Outdated
|
||||
"type": "date",
|
||||
"mysql": {
|
||||
"columnName": "inTimed"
|
||||
vicent marked this conversation as resolved
Outdated
carlosjr
commented
outTimed doesn't make sense, may be outTime or timeOut is what you are looking for. outTimed doesn't make sense, may be outTime or timeOut is what you are looking for.
|
||||
}
|
||||
},
|
||||
"outTimed": {
|
||||
"type": "date"
|
||||
"outTime": {
|
||||
"type": "date",
|
||||
"mysql": {
|
||||
"columnName": "outTimed"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
"EducationLevel": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"Sector": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"WorkCenter": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
|
@ -84,6 +84,11 @@
|
|||
"type": "hasMany",
|
||||
"model": "WorkerTeamCollegues",
|
||||
"foreignKey": "workerFk"
|
||||
},
|
||||
"sector": {
|
||||
"type": "belongsTo",
|
||||
"model": "Sector",
|
||||
"foreignKey": "sectorFk"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
in timed, doesn't make sense, inTime can be what you are looking for.