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

84 lines
1.7 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"
},
"isVirtual": {
"type": "Boolean",
"mysql": {
"columnName": "isRaid"
}
2019-10-24 10:49:18 +00:00
},
"commission": {
"type": "Number"
},
2020-02-21 11:48:34 +00:00
"isOrdered": {
"type": "Boolean"
},
2019-10-24 10:49:18 +00:00
"created": {
"type": "date"
},
2019-12-05 13:20:11 +00:00
"observation": {
2019-10-24 10:49:18 +00:00
"type": "String",
"mysql": {
2019-12-05 13:20:11 +00:00
"columnName": "evaNotes"
2019-10-24 10:49:18 +00:00
}
},
"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"
2019-12-05 13:20:11 +00:00
},
"currency": {
"type": "belongsTo",
"model": "Currency",
"foreignKey": "currencyFk"
2019-10-24 10:49:18 +00:00
}
}
}