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

53 lines
1.0 KiB
JSON
Raw Normal View History

2020-10-30 10:40:12 +00:00
{
"name": "SupplierContact",
2020-11-18 10:47:23 +00:00
"base": "Loggable",
"log": {
"model":"SupplierLog",
"relation": "supplier"
},
2020-10-30 10:40:12 +00:00
"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"
}
]
}