2020-07-13 09:58:31 +00:00
|
|
|
{
|
|
|
|
"name": "Image",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "hedera.image"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "The id"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"collectionFk": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"updated": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"nRefs": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true,
|
|
|
|
"default": 0
|
|
|
|
}
|
|
|
|
},
|
2020-11-10 07:39:34 +00:00
|
|
|
"relations": {
|
|
|
|
"collection": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ImageCollection",
|
|
|
|
"foreignKey": "collectionFk",
|
|
|
|
"primaryKey": "name"
|
|
|
|
}
|
|
|
|
},
|
2020-07-13 09:58:31 +00:00
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "employee",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|