154 lines
3.1 KiB
JSON
154 lines
3.1 KiB
JSON
{
|
|
"name": "Supplier",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model":"SupplierLog"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "supplier"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "String"
|
|
},
|
|
"account": {
|
|
"type": "String"
|
|
},
|
|
"countryFk": {
|
|
"type": "Number"
|
|
},
|
|
"nif": {
|
|
"type": "String"
|
|
},
|
|
"isFarmer": {
|
|
"type": "Boolean"
|
|
},
|
|
"phone": {
|
|
"type": "Number"
|
|
},
|
|
"retAccount": {
|
|
"type": "Number"
|
|
},
|
|
"commission": {
|
|
"type": "Boolean"
|
|
},
|
|
"created": {
|
|
"type": "Date"
|
|
},
|
|
"postcodeFk": {
|
|
"type": "Number"
|
|
},
|
|
"isActive": {
|
|
"type": "Boolean"
|
|
},
|
|
"isOfficial": {
|
|
"type": "Boolean"
|
|
},
|
|
"isSerious": {
|
|
"type": "Boolean"
|
|
},
|
|
"note": {
|
|
"type": "String"
|
|
},
|
|
"street": {
|
|
"type": "String"
|
|
},
|
|
"city": {
|
|
"type": "String"
|
|
},
|
|
"provinceFk": {
|
|
"type": "Number"
|
|
},
|
|
"postCode": {
|
|
"type": "String"
|
|
},
|
|
"payMethodFk": {
|
|
"type": "Number"
|
|
},
|
|
"payDemFk": {
|
|
"type": "Number"
|
|
},
|
|
"payDay": {
|
|
"type": "Number"
|
|
},
|
|
"nickname": {
|
|
"type": "String"
|
|
},
|
|
"sageTaxTypeFk": {
|
|
"type": "number",
|
|
"mysql": {
|
|
"columnName": "taxTypeSageFk"
|
|
}
|
|
},
|
|
"sageTransactionTypeFk": {
|
|
"type": "number",
|
|
"mysql": {
|
|
"columnName": "transactionTypeSageFk"
|
|
}
|
|
},
|
|
"sageWithholdingFk": {
|
|
"type": "number",
|
|
"mysql": {
|
|
"columnName": "withholdingSageFk"
|
|
}
|
|
}
|
|
},
|
|
"relations": {
|
|
"payMethod": {
|
|
"type": "belongsTo",
|
|
"model": "PayMethod",
|
|
"foreignKey": "payMethodFk"
|
|
},
|
|
"payDem": {
|
|
"type": "belongsTo",
|
|
"model": "PayDem",
|
|
"foreignKey": "payDemFk"
|
|
},
|
|
"province": {
|
|
"type": "belongsTo",
|
|
"model": "Province",
|
|
"foreignKey": "provinceFk"
|
|
},
|
|
"country": {
|
|
"type": "belongsTo",
|
|
"model": "Country",
|
|
"foreignKey": "countryFk"
|
|
},
|
|
"client": {
|
|
"type": "belongsTo",
|
|
"model": "Client",
|
|
"foreignKey": "nif",
|
|
"primaryKey": "fi"
|
|
},
|
|
"sageTaxType": {
|
|
"type": "belongsTo",
|
|
"model": "SageTaxType",
|
|
"foreignKey": "sageTaxTypeFk"
|
|
},
|
|
"sageTransactionType": {
|
|
"type": "belongsTo",
|
|
"model": "SageTransactionType",
|
|
"foreignKey": "sageTransactionTypeFk"
|
|
},
|
|
"sageWithholding": {
|
|
"type": "belongsTo",
|
|
"model": "SageWithholding",
|
|
"foreignKey": "sageWithholdingFk"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
} |