2020-07-13 09:58:31 +00:00
|
|
|
{
|
|
|
|
"name": "ImageCollection",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "hedera.imageCollection"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"desc": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"maxWidth": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"maxHeight": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"model": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"sizes": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ImageCollectionSize",
|
|
|
|
"foreignKey": "collectionFk",
|
|
|
|
"property": "id"
|
2020-11-10 07:39:34 +00:00
|
|
|
},
|
|
|
|
"readRole": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Role",
|
|
|
|
"foreignKey": "readRoleFk"
|
|
|
|
}
|
2020-07-13 09:58:31 +00:00
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "employee",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|