49 lines
853 B
JSON
49 lines
853 B
JSON
{
|
|
"name": "AgencyService",
|
|
"base": "PersistedModel",
|
|
"validateUpsert": true,
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"m3": {
|
|
"type": "Number"
|
|
},
|
|
"inflation": {
|
|
"type": "Number"
|
|
},
|
|
"sendMailTo": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"agency": {
|
|
"type": "belongsTo",
|
|
"model": "Agency",
|
|
"foreignKey": "agencyFk"
|
|
},
|
|
"agencyType": {
|
|
"type": "belongsTo",
|
|
"model": "AgencyType",
|
|
"foreignKey": "agencyTypeFk"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "*",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
}
|