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

69 lines
1.4 KiB
JSON
Raw Normal View History

2019-03-28 10:55:23 +00:00
{
"name": "InvoiceOut",
"base": "VnModel",
"options": {
"mysql": {
"table": "invoiceOut"
}
},
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
2019-03-28 10:55:23 +00:00
"description": "Identifier"
},
"ref": {
2022-05-12 07:47:47 +00:00
"type": "string",
2019-03-28 10:55:23 +00:00
"required": true
},
"serial": {
2022-05-12 07:47:47 +00:00
"type": "string"
2019-03-28 10:55:23 +00:00
},
"issued": {
"type": "date"
},
"amount": {
2022-05-12 07:47:47 +00:00
"type": "number"
2019-03-28 10:55:23 +00:00
},
"created": {
"type": "date"
},
"dued": {
"type": "date"
},
"booked": {
"type": "date"
},
"hasPdf": {
2022-05-12 07:47:47 +00:00
"type": "boolean"
2019-03-28 10:55:23 +00:00
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk",
"required": true
},
"supplier": {
"type": "belongsTo",
"model": "Supplier",
"foreignKey": "companyFk",
"required": true
},
"tickets": {
"type": "hasMany",
"model": "Ticket",
"foreignKey": "refFk",
"primaryKey": "ref"
}
}
}