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

53 lines
1003 B
JSON

{
"name": "SupplierContact",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"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"
}
]
}