salix/back/models/image.json

49 lines
1.0 KiB
JSON
Raw Normal View History

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,
2021-02-04 17:23:22 +00:00
"default": 1
2020-07-13 09:58:31 +00:00
}
},
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"
}
]
}