forked from juan/hedera-web
63 lines
1.1 KiB
JSON
63 lines
1.1 KiB
JSON
{
|
|
"name": "AgencyMode",
|
|
"description": "Agency modes",
|
|
"base": "PersistedModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "agencyMode"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"deliveryMethodFk":{
|
|
"type": "number"
|
|
},
|
|
"m3": {
|
|
"type": "Number"
|
|
},
|
|
"inflation": {
|
|
"type": "Number"
|
|
},
|
|
"reportMail": {
|
|
"type": "string"
|
|
},
|
|
"isActive":{
|
|
"type": "boolean"
|
|
},
|
|
"code": {
|
|
"type": "String",
|
|
"required": false
|
|
}
|
|
},
|
|
"relations": {
|
|
"deliveryMethod": {
|
|
"type": "belongsTo",
|
|
"model": "DeliveryMethod",
|
|
"foreignKey": "deliveryMethodFk"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
],
|
|
"scopes" : {
|
|
"isActive" : {
|
|
"where": {"isActive": {"neq": false}}
|
|
}
|
|
}
|
|
} |