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

102 lines
2.1 KiB
JSON
Raw Normal View History

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": {
"model":"EntryLog"
},
2019-10-24 10:49:18 +00:00
"options": {
"mysql": {
"table": "entry"
}
},
"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": {
2020-03-11 07:02:58 +00:00
"type": "number"
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
},
"isVirtual": {
2020-03-11 07:02:58 +00:00
"type": "boolean",
"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"
},
"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
}
}
}