Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (64 sloc) 1.02 KB
{
"name": "Upload",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"admin": {
"defaultProperty": "url",
"listProperties": [
"property",
"url"
]
},
"properties": {
"property": {
"type": "string",
"required": true
},
"type": {
"type": "string"
},
"url": {
"type": "string",
"required": true
},
"filename": {
"type": "string"
},
"bucket": {
"type": "string"
},
"key": {
"type": "string"
},
"imageSet": {
"type": "object"
}
},
"indexes": {
"Upload_uploadableId": {
"keys": {
"uploadableId": 1
}
},
"Upload_uploadableType": {
"keys": {
"uploadableType": 1
}
}
},
"validations": [],
"relations": {
"owner": {
"type": "belongsTo",
"polymorphic": {
"foreignKey": "uploadableId",
"discriminator": "uploadableType"
}
}
},
"acls": [],
"methods": {}
}