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

50 lines
956 B
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",
2020-10-30 10:40:12 +00:00
"options": {
"mysql": {
"table": "supplierContact"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-10-30 10:40:12 +00:00
"id": true,
"description": "Identifier"
},
"supplierFk": {
2022-05-12 07:47:47 +00:00
"type": "string"
2020-10-30 10:40:12 +00:00
},
"phone": {
2022-05-12 07:47:47 +00:00
"type": "string"
2020-10-30 10:40:12 +00:00
},
"mobile": {
2022-05-12 07:47:47 +00:00
"type": "string"
2020-10-30 10:40:12 +00:00
},
"email": {
2022-05-12 07:47:47 +00:00
"type": "string"
2020-10-30 10:40:12 +00:00
},
"observation": {
2022-05-12 07:47:47 +00:00
"type": "string"
2020-10-30 10:40:12 +00:00
},
"name": {
2022-05-12 07:47:47 +00:00
"type": "string"
2020-10-30 10:40:12 +00:00
}
},
"relations": {
"supplier": {
"type": "belongsTo",
"model": "Supplier",
"foreignKey": "supplierFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}