salix/back/models/image-collection.json

67 lines
1.5 KiB
JSON
Raw Permalink Normal View History

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