50 lines
1.0 KiB
JSON
50 lines
1.0 KiB
JSON
{
|
|
"name": "Bank",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "bank"
|
|
}
|
|
},
|
|
"properties": {
|
|
"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"
|
|
}
|
|
}
|
|
} |