salix/modules/supplier/back/models/supplier.json

154 lines
3.1 KiB
JSON
Raw Normal View History

2019-03-28 10:55:23 +00:00
{
"name": "Supplier",
2020-10-28 08:08:27 +00:00
"base": "Loggable",
"log": {
"model":"SupplierLog"
},
2019-03-28 10:55:23 +00:00
"options": {
"mysql": {
"table": "supplier"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String"
},
"account": {
2020-10-30 14:11:45 +00:00
"type": "String"
2019-03-28 10:55:23 +00:00
},
"countryFk": {
"type": "Number"
},
"nif": {
"type": "String"
},
"isFarmer": {
"type": "Boolean"
},
"phone": {
"type": "Number"
},
"retAccount": {
"type": "Number"
},
2020-09-02 12:08:56 +00:00
"commission": {
2019-03-28 10:55:23 +00:00
"type": "Boolean"
},
"created": {
"type": "Date"
},
2020-09-02 12:08:56 +00:00
"postcodeFk": {
2019-03-28 10:55:23 +00:00
"type": "Number"
},
"isActive": {
"type": "Boolean"
},
2020-10-20 07:44:44 +00:00
"isOfficial": {
"type": "Boolean"
},
2020-11-18 10:47:23 +00:00
"isSerious": {
"type": "Boolean"
},
2020-10-20 07:44:44 +00:00
"note": {
"type": "String"
},
2019-03-28 10:55:23 +00:00
"street": {
"type": "String"
},
"city": {
"type": "String"
},
"provinceFk": {
"type": "Number"
},
"postCode": {
2020-10-30 14:11:45 +00:00
"type": "String"
2019-03-28 10:55:23 +00:00
},
"payMethodFk": {
"type": "Number"
},
"payDemFk": {
"type": "Number"
},
2020-10-20 07:44:44 +00:00
"payDay": {
"type": "Number"
},
2019-03-28 10:55:23 +00:00
"nickname": {
"type": "String"
2020-10-30 14:11:45 +00:00
},
"sageTaxTypeFk": {
"type": "number",
"mysql": {
"columnName": "taxTypeSageFk"
}
},
"sageTransactionTypeFk": {
"type": "number",
"mysql": {
"columnName": "transactionTypeSageFk"
}
},
"sageWithholdingFk": {
"type": "number",
"mysql": {
"columnName": "withholdingSageFk"
}
}
2019-03-28 10:55:23 +00:00
},
2020-10-20 07:44:44 +00:00
"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"
2020-10-22 11:00:11 +00:00
},
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "nif",
"primaryKey": "fi"
2020-11-18 10:47:23 +00:00
},
"sageTaxType": {
"type": "belongsTo",
"model": "SageTaxType",
"foreignKey": "sageTaxTypeFk"
},
"sageTransactionType": {
"type": "belongsTo",
"model": "SageTransactionType",
"foreignKey": "sageTransactionTypeFk"
},
"sageWithholding": {
"type": "belongsTo",
"model": "SageWithholding",
"foreignKey": "sageWithholdingFk"
}
2020-10-20 07:44:44 +00:00
},
2019-03-28 10:55:23 +00:00
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}