salix/modules/invoiceOut/back/models/invoiceOut.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,
"type": "Number",
"description": "Identifier"
},
"ref": {
"type": "String",
"required": true
},
"serial": {
"type": "String"
},
"issued": {
"type": "date"
},
"amount": {
"type": "Number"
},
"created": {
"type": "date"
},
"dued": {
"type": "date"
},
"booked": {
"type": "date"
},
"hasPdf": {
2019-07-24 10:42:33 +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"
}
}
}