68 lines
1.4 KiB
JSON
68 lines
1.4 KiB
JSON
{
|
|
"name": "InvoiceIn",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "invoiceIn"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number",
|
|
"description": "Identifier"
|
|
},
|
|
"serialNumber": {
|
|
"type": "number"
|
|
},
|
|
"serial": {
|
|
"type": "string"
|
|
},
|
|
"issued": {
|
|
"type": "date"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"isBooked": {
|
|
"type": "boolean"
|
|
},
|
|
"booked": {
|
|
"type": "date"
|
|
},
|
|
"operated": {
|
|
"type": "date"
|
|
},
|
|
"dmsFk": {
|
|
"type": "number",
|
|
"mysql": {
|
|
"columnName": "docFk"
|
|
}
|
|
}
|
|
},
|
|
"relations": {
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
},
|
|
"supplier": {
|
|
"type": "belongsTo",
|
|
"model": "Supplier",
|
|
"foreignKey": "supplierFk"
|
|
},
|
|
"currency": {
|
|
"type": "belongsTo",
|
|
"model": "Currency",
|
|
"foreignKey": "currencyFk"
|
|
},
|
|
"dms": {
|
|
"type": "belongsTo",
|
|
"model": "Dms",
|
|
"foreignKey": "dmsFk"
|
|
}
|
|
}
|
|
}
|
|
|
|
|