2019-03-28 10:55:23 +00:00
|
|
|
{
|
|
|
|
"name": "Supplier",
|
|
|
|
"base": "VnModel",
|
|
|
|
"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",
|
2020-10-26 07:38:43 +00:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|