2019-10-24 10:49:18 +00:00
|
|
|
{
|
|
|
|
"name": "Entry",
|
2020-09-02 12:08:56 +00:00
|
|
|
"base": "Loggable",
|
2020-03-02 08:28:08 +00:00
|
|
|
"log": {
|
2020-09-11 12:51:58 +00:00
|
|
|
"model":"EntryLog"
|
2020-03-02 08:28:08 +00:00
|
|
|
},
|
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"
|
|
|
|
},
|
|
|
|
"ref": {
|
2020-03-11 07:02:58 +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
|
|
|
},
|
|
|
|
"isInventory": {
|
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
|
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"
|
2019-10-24 10:49:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|