Commit Graph

5 Commits

Author SHA1 Message Date
Robert Putt 1a4d5d3af1 Add MIME type detection upon upload
Change-Id: Ia2f080b9fa7c7b12fe06166caecf089ded3cb16a
2017-12-15 07:18:39 +00:00
Robert Putt a4ab2d89ca Allow file upload and hash calculation.
Allow users to upload file for analysis and calculate hash for file.
Later we probably need to send this to some shared storage (Swift)
and then pass the file_id to a queue so the workers can pick it up
and process it accordingly.

Change-Id: Ie45adb5154c1c17f61c6d0cdddeaa2191d05f91e
2017-12-02 20:24:51 +00:00
Robert Putt 630bacb57c Generate alembic migration scripts for new models.
Generate alembic migration scripts for new database models.

Change-Id: Ifed2bf405a620cf8201a28fe8400bc6b1a30b1e4
2017-11-30 22:04:59 +00:00
Robert Putt 1836ccbc6b Add basic database model
Adds basic database model to get us started. This will need to be
extended drastically for basic functionality but should allow
us to make a simple worker that simply adds hashes to the DB.

Long term maybe MySQL isnt even a good idea, but it'll get a
basic proof of concept sorted for now.

Change-Id: Ifdcd2309fa2ad6a9a27dd6c3ba61dd8db0dcb854
2017-11-30 20:36:52 +00:00
Robert Putt 29fdc7e58c Add alembic for database migrations.
Add alembic to repository for database migrations
once the models have been created.

Change-Id: I67ab87abe09808eba6ce62dddf8fcc0aeb3e26d2
2017-11-30 19:05:02 +00:00