2020-10-30 10:40:12 +00:00
|
|
|
{
|
|
|
|
"name": "SupplierContact",
|
2023-12-05 06:48:56 +00:00
|
|
|
"base": "VnModel",
|
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
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"
|
|
|
|
}
|
|
|
|
]
|
2023-04-12 10:33:14 +00:00
|
|
|
}
|