feat: Store image uploads as attachments in database (#1144)

* First pass

* Documentation

* Added optional documentId relationship

* name -> key

* cleanup: No need for separate documentId prop
This commit is contained in:
Tom Moor
2020-01-16 09:42:42 -08:00
committed by GitHub
parent 22230c25e5
commit 8e5a5a57a9
8 changed files with 171 additions and 31 deletions

View File

@ -1,5 +1,6 @@
// @flow
import ApiKey from './ApiKey';
import Attachment from './Attachment';
import Authentication from './Authentication';
import Backlink from './Backlink';
import Collection from './Collection';
@ -18,6 +19,7 @@ import View from './View';
const models = {
ApiKey,
Attachment,
Authentication,
Backlink,
Collection,
@ -44,6 +46,7 @@ Object.keys(models).forEach(modelName => {
export {
ApiKey,
Attachment,
Authentication,
Backlink,
Collection,