2018-02-28 14:40:52 +00:00
|
|
|
{
|
|
|
|
"name": "InvoiceOut",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
2019-03-13 13:10:45 +00:00
|
|
|
"mysql": {
|
|
|
|
"table": "invoiceOut"
|
|
|
|
}
|
2018-02-28 14:40:52 +00:00
|
|
|
},
|
|
|
|
"properties": {
|
2019-03-13 13:10:45 +00:00
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"ref": {
|
|
|
|
"id": true,
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"serial": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"issued": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"amount": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"dued": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"booked": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"hasPdf": {
|
|
|
|
"type": "Number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "pdf"
|
|
|
|
}
|
|
|
|
}
|
2018-02-28 14:40:52 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
2019-03-13 13:10:45 +00:00
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
|
|
|
"foreignKey": "companyFk",
|
|
|
|
"required": true
|
|
|
|
}
|
2018-02-28 14:40:52 +00:00
|
|
|
}
|
2019-03-13 13:10:45 +00:00
|
|
|
}
|