2019-10-24 10:49:18 +00:00
|
|
|
{
|
|
|
|
"name": "Entry",
|
2020-09-02 12:08:56 +00:00
|
|
|
"base": "Loggable",
|
2019-10-24 10:49:18 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2021-06-03 14:14:52 +00:00
|
|
|
"table": "entry"
|
2019-10-24 10:49:18 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "number",
|
2019-10-24 10:49:18 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"dated": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
2022-10-26 10:48:48 +00:00
|
|
|
"reference": {
|
2022-11-30 14:24:33 +00:00
|
|
|
"type": "string"
|
2022-10-26 10:48:48 +00:00
|
|
|
},
|
|
|
|
"invoiceNumber": {
|
2022-11-30 14:24:33 +00:00
|
|
|
"type": "string"
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
|
|
|
"isBooked": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "boolean"
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
2022-07-01 07:53:44 +00:00
|
|
|
"isExcludedFromAvailable": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "boolean"
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
|
|
|
"notes": {
|
2021-02-09 06:59:55 +00:00
|
|
|
"type": "string"
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
|
|
|
"isConfirmed": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "boolean"
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
2019-11-13 12:22:39 +00:00
|
|
|
"isVirtual": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "boolean",
|
2019-11-13 12:22:39 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "isRaid"
|
|
|
|
}
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
2020-03-11 07:02:58 +00:00
|
|
|
"isRaid": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2019-10-24 10:49:18 +00:00
|
|
|
"commission": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "number"
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
2020-02-21 11:48:34 +00:00
|
|
|
"isOrdered": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "boolean"
|
2020-02-21 11:48:34 +00:00
|
|
|
},
|
2019-10-24 10:49:18 +00:00
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
2019-12-05 13:20:11 +00:00
|
|
|
"observation": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "string",
|
2019-10-24 10:49:18 +00:00
|
|
|
"mysql": {
|
2019-12-05 13:20:11 +00:00
|
|
|
"columnName": "evaNotes"
|
2019-10-24 10:49:18 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"isBlocked": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "boolean"
|
2019-10-24 10:49:18 +00:00
|
|
|
},
|
|
|
|
"loadPriority": {
|
2020-03-11 07:02:58 +00:00
|
|
|
"type": "number"
|
2020-09-03 06:09:37 +00:00
|
|
|
},
|
|
|
|
"supplierFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"travelFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"companyFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
2022-12-23 08:37:19 +00:00
|
|
|
},
|
|
|
|
"observationEditorFk": {
|
|
|
|
"type": "number"
|
2019-10-24 10:49:18 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"supplier": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Supplier",
|
|
|
|
"foreignKey": "supplierFk"
|
|
|
|
},
|
|
|
|
"travel": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Travel",
|
|
|
|
"foreignKey": "travelFk"
|
|
|
|
},
|
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
|
|
|
"foreignKey": "companyFk"
|
2019-12-05 13:20:11 +00:00
|
|
|
},
|
|
|
|
"currency": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Currency",
|
|
|
|
"foreignKey": "currencyFk"
|
2022-12-23 08:37:19 +00:00
|
|
|
},
|
|
|
|
"observationEditor": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "observationEditorFk"
|
2019-10-24 10:49:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|