salix/back/models/bank.json

50 lines
1.0 KiB
JSON
Raw Permalink Normal View History

2018-10-05 11:04:41 +00:00
{
"name": "Bank",
"base": "VnModel",
"options": {
2020-08-27 06:24:21 +00:00
"mysql": {
"table": "bank"
}
2018-10-05 11:04:41 +00:00
},
"properties": {
2020-08-27 06:24:21 +00:00
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-08-27 06:24:21 +00:00
"id": true,
"description": "Identifier"
},
"bank": {
2022-05-12 07:47:47 +00:00
"type": "string",
2020-08-27 06:24:21 +00:00
"required": true
},
"account": {
2022-05-12 07:47:47 +00:00
"type": "string",
2020-08-27 06:24:21 +00:00
"required": true
},
"accountingTypeFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-08-27 06:24:21 +00:00
"required": true,
"mysql": {
"columnName": "cash"
}
},
"entityFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-08-27 06:24:21 +00:00
"required": true
},
"isActive": {
2022-05-12 07:47:47 +00:00
"type": "boolean",
2020-08-27 06:24:21 +00:00
"required": true
},
"currencyFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-08-27 06:24:21 +00:00
"required": true
}
},
"relations": {
"accountingType": {
"type": "belongsTo",
"model": "AccountingType",
"foreignKey": "accountingTypeFk"
}
2018-10-05 11:04:41 +00:00
}
2020-08-27 06:24:21 +00:00
}