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

53 lines
1.0 KiB
JSON

{
"name": "SupplierContact",
"base": "Loggable",
"log": {
"model":"SupplierLog",
"relation": "supplier"
},
"options": {
"mysql": {
"table": "supplierContact"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"supplierFk": {
"type": "string"
},
"phone": {
"type": "string"
},
"mobile": {
"type": "string"
},
"email": {
"type": "string"
},
"observation": {
"type": "string"
},
"name": {
"type": "string"
}
},
"relations": {
"supplier": {
"type": "belongsTo",
"model": "Supplier",
"foreignKey": "supplierFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}