118 lines
2.3 KiB
JSON
118 lines
2.3 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": "Number"
|
|
},
|
|
"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"
|
|
},
|
|
"note": {
|
|
"type": "String"
|
|
},
|
|
"street": {
|
|
"type": "String"
|
|
},
|
|
"city": {
|
|
"type": "String"
|
|
},
|
|
"provinceFk": {
|
|
"type": "Number"
|
|
},
|
|
"postCode": {
|
|
"type": "Number"
|
|
},
|
|
"payMethodFk": {
|
|
"type": "Number"
|
|
},
|
|
"payDemFk": {
|
|
"type": "Number"
|
|
},
|
|
"payDay": {
|
|
"type": "Number"
|
|
},
|
|
"nickname": {
|
|
"type": "String"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
} |