salix/modules/client/back/models/invoice-out.json

59 lines
854 B
JSON
Raw Normal View History

{
"name": "InvoiceOut",
"base": "VnModel",
"options": {
2019-03-13 13:10:45 +00:00
"mysql": {
"table": "invoiceOut"
}
},
"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"
}
}
},
"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
}
}
2019-03-13 13:10:45 +00:00
}