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

73 lines
1.5 KiB
JSON
Raw Normal View History

2019-10-24 10:49:18 +00:00
{
"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"
},
"isRaid": {
"type": "Boolean"
},
"commission": {
"type": "Number"
},
"created": {
"type": "date"
},
"evaNotes": {
"type": "String",
"mysql": {
"columnName": "observation"
}
},
"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"
}
}
}