salix/modules/client/back/models/receipt.json

67 lines
1.4 KiB
JSON
Raw Permalink Normal View History

2018-10-16 12:44:48 +00:00
{
"name": "Receipt",
"base": "VnModel",
"options": {
2019-01-15 11:04:34 +00:00
"mysql": {
"table": "receipt"
}
2018-10-19 06:40:32 +00:00
},
"properties": {
2019-01-15 11:04:34 +00:00
"id": {
"id": true,
2020-12-16 07:33:08 +00:00
"type": "number",
2019-01-15 11:04:34 +00:00
"description": "Identifier"
2018-10-19 06:40:32 +00:00
},
"amountPaid": {
2020-12-16 07:33:08 +00:00
"type": "number",
"required": true
2018-10-19 06:40:32 +00:00
},
"payed": {
2020-12-16 07:33:08 +00:00
"type": "date",
"required": true
2018-10-19 06:40:32 +00:00
},
"created": {
"type": "date"
},
"isConciliate": {
"type": "date"
2019-04-25 05:57:26 +00:00
},
"description": {
"type": "string",
"mysql": {
"columnName": "invoiceFk"
2020-12-16 07:33:08 +00:00
},
"required": true
},
"bankFk": {
"type": "number",
"required": true
},
"companyFk": {
"type": "number",
"required": true
2018-10-19 06:40:32 +00:00
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"bank": {
"type": "belongsTo",
"model": "Bank",
"foreignKey": "bankFk"
2019-01-15 11:04:34 +00:00
}
2018-10-19 06:40:32 +00:00
}
2018-10-16 12:44:48 +00:00
}