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": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"bank": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"account": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"accountingTypeFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "cash"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"entityFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"isActive": {
|
|
|
|
"type": "Boolean",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"currencyFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"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
|
|
|
}
|