salix/modules/entry/back/models/entry.json

107 lines
2.4 KiB
JSON
Raw Permalink Normal View History

2019-10-24 10:49:18 +00:00
{
"name": "Entry",
"base": "VnModel",
"mixins": {
"Loggable": true
},
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
},
"isConfirmed": {
2020-03-11 07:02:58 +00:00
"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",
2024-05-30 16:06:35 +00:00
"mysql": {
"columnName": "evaNotes"
}
2019-10-24 10:49:18 +00:00
},
"loadPriority": {
2020-03-11 07:02:58 +00:00
"type": "number"
},
"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"
2024-08-30 10:10:33 +00:00
},
"invoiceAmount": {
"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",
"daysInForward": "daysInForward"
2019-10-24 10:49:18 +00:00
},
"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"
2024-05-30 16:06:35 +00:00
},
"entryType": {
"type": "belongsTo",
"model": "EntryType",
"foreignKey": "typeFk"
2019-10-24 10:49:18 +00:00
}
}
2024-08-30 10:10:33 +00:00
}