salix/back/models/image-collection.json

67 lines
1.5 KiB
JSON

{
"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"
},
"readRole": {
"type": "belongsTo",
"model": "VnRole",
"foreignKey": "readRoleFk"
},
"writeRole": {
"type": "belongsTo",
"model": "VnRole",
"foreignKey": "writeRoleFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "employee",
"permission": "ALLOW"
}
]
}