salix/back/models/accounting.json

47 lines
991 B
JSON

{
"name": "Accounting",
"base": "VnModel",
"options": {
"mysql": {
"table": "accounting"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"bank": {
"type": "string",
"required": true
},
"account": {
"type": "string",
"required": true
},
"accountingTypeFk": {
"type": "number",
"required": true
},
"entityFk": {
"type": "number",
"required": true
},
"isActive": {
"type": "boolean",
"required": true
},
"currencyFk": {
"type": "number",
"required": true
}
},
"relations": {
"accountingType": {
"type": "belongsTo",
"model": "AccountingType",
"foreignKey": "accountingTypeFk"
}
}
}