hedera-web/back/common/models/image-collection.json

48 lines
1.0 KiB
JSON
Raw Normal View History

2019-07-22 11:46:10 +00:00
{
"name": "ImageCollection",
"base": "PersistedModel",
"options": {
"mysql": {
"table": "hedera.imageCollection"
}
},
"properties": {
"id": {
"type": "Number",
2019-08-01 13:39:39 +00:00
"id": true,
2019-07-22 11:46:10 +00:00
"description": "Identifier"
},
"name": {
"type": "String",
"required": true
},
"desc": {
"type": "String",
"required": true
},
"maxWidth": {
"type": "Number",
"required": true
},
"maxHeight": {
"type": "Number",
"required": true
},
2019-08-01 13:39:39 +00:00
"model": {
2019-07-22 11:46:10 +00:00
"type": "String",
"required": true
},
2019-08-01 13:39:39 +00:00
"property": {
2019-07-22 11:46:10 +00:00
"type": "String",
"required": true
}
2019-08-01 13:39:39 +00:00
},
"relations": {
"sizes": {
"type": "hasMany",
"model": "ImageCollectionSize",
"foreignKey": "collectionFk",
"property": "id"
}
2019-07-22 11:46:10 +00:00
}
2019-08-01 13:39:39 +00:00
}