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

118 lines
2.3 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": {
"type": "Number"
},
"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"
},
"note": {
"type": "String"
},
2019-03-28 10:55:23 +00:00
"street": {
"type": "String"
},
"city": {
"type": "String"
},
"provinceFk": {
"type": "Number"
},
"postCode": {
"type": "Number"
},
"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-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-10-22 11:00:11 +00:00
}
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"
}
]
}