2019-10-24 10:49:18 +00:00
|
|
|
{
|
|
|
|
"name": "Entry",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "entry"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"dated": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"ref": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"isBooked": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"isInventory": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"notes": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"isConfirmed": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
2019-11-13 12:22:39 +00:00
|
|
|
"isVirtual": {
|
|
|
|
"type": "Boolean",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "isRaid"
|
|
|
|
}
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
|
|
|
"commission": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"evaNotes": {
|
|
|
|
"type": "String",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "observation"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"isBlocked": {
|
|
|
|
"type": "Boolean"
|
|
|
|
},
|
|
|
|
"loadPriority": {
|
|
|
|
"type": "Number"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"supplier": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Supplier",
|
|
|
|
"foreignKey": "supplierFk"
|
|
|
|
},
|
|
|
|
"travel": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Travel",
|
|
|
|
"foreignKey": "travelFk"
|
|
|
|
},
|
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
|
|
|
"foreignKey": "companyFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|