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

64 lines
1.0 KiB
JSON
Raw Normal View History

2020-12-16 07:33:08 +00:00
{
"name": "Till",
"base": "VnModel",
"options": {
"mysql": {
"table": "till"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"dated": {
"type": "date",
"required": true
},
2023-01-24 08:12:26 +00:00
"isAccountable": {
2020-12-16 07:33:08 +00:00
"type": "boolean"
},
"serie": {
"type": "string",
"required": true
},
"number": {
"type": "number"
},
"concept": {
"type": "string",
"required": true
},
"in": {
"type": "number"
},
"out": {
"type": "number"
},
"created": {
"type": "date"
},
2021-01-11 07:01:57 +00:00
"isConciliate": {
2020-12-16 07:33:08 +00:00
"type": "boolean"
}
},
"relations": {
"bank": {
"type": "belongsTo",
2024-03-14 07:36:19 +00:00
"model": "Accounting",
2021-01-11 15:30:14 +00:00
"foreignKey": "bankFk"
2020-12-16 07:33:08 +00:00
},
2021-01-11 15:30:14 +00:00
"worker": {
2020-12-16 07:33:08 +00:00
"type": "belongsTo",
2023-01-24 08:04:43 +00:00
"model": "VnUser",
2021-01-11 15:30:14 +00:00
"foreignKey": "workerFk"
2020-12-16 07:33:08 +00:00
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
}
}
}