111 lines
2.3 KiB
JSON
111 lines
2.3 KiB
JSON
{
|
|
"name": "Entry",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model":"EntryLog"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "entry"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"dated": {
|
|
"type": "date"
|
|
},
|
|
"reference": {
|
|
"type": "string",
|
|
"mysql": {
|
|
"columnName": "ref"
|
|
}
|
|
},
|
|
"invoiceNumber": {
|
|
"type": "string",
|
|
"mysql": {
|
|
"columnName": "ref"
|
|
}
|
|
},
|
|
"isBooked": {
|
|
"type": "boolean"
|
|
},
|
|
"isExcludedFromAvailable": {
|
|
"type": "boolean"
|
|
},
|
|
"notes": {
|
|
"type": "string"
|
|
},
|
|
"isConfirmed": {
|
|
"type": "boolean"
|
|
},
|
|
"isVirtual": {
|
|
"type": "boolean",
|
|
"mysql": {
|
|
"columnName": "isRaid"
|
|
}
|
|
},
|
|
"isRaid": {
|
|
"type": "boolean"
|
|
},
|
|
"commission": {
|
|
"type": "number"
|
|
},
|
|
"isOrdered": {
|
|
"type": "boolean"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"observation": {
|
|
"type": "string",
|
|
"mysql": {
|
|
"columnName": "evaNotes"
|
|
}
|
|
},
|
|
"isBlocked": {
|
|
"type": "boolean"
|
|
},
|
|
"loadPriority": {
|
|
"type": "number"
|
|
},
|
|
"supplierFk": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"travelFk": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"companyFk": {
|
|
"type": "number",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"supplier": {
|
|
"type": "belongsTo",
|
|
"model": "Supplier",
|
|
"foreignKey": "supplierFk"
|
|
},
|
|
"travel": {
|
|
"type": "belongsTo",
|
|
"model": "Travel",
|
|
"foreignKey": "travelFk"
|
|
},
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
},
|
|
"currency": {
|
|
"type": "belongsTo",
|
|
"model": "Currency",
|
|
"foreignKey": "currencyFk"
|
|
}
|
|
}
|
|
}
|