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

81 lines
1.6 KiB
JSON

{
"name": "Entry",
"base": "VnModel",
"options": {
"mysql": {
"table": "entry"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"dated": {
"type": "date"
},
"ref": {
"type": "String"
},
"isBooked": {
"type": "Boolean"
},
"isInventory": {
"type": "Boolean"
},
"notes": {
"type": "Number"
},
"isConfirmed": {
"type": "Boolean"
},
"isVirtual": {
"type": "Boolean",
"mysql": {
"columnName": "isRaid"
}
},
"commission": {
"type": "Number"
},
"created": {
"type": "date"
},
"observation": {
"type": "String",
"mysql": {
"columnName": "evaNotes"
}
},
"isBlocked": {
"type": "Boolean"
},
"loadPriority": {
"type": "Number"
}
},
"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"
}
}
}