Media
responsible: Klaas Andries de Graaf
media =
property | type | required | format checking | state of implementation | Comment |
---|---|---|---|---|---|
_id | Mongo ObjectID | no | Mongo ObjectID | implemented | Will not be publicly referenced by this id, thus this format is the better choice |
title | string | no | string | implemented | May be used as caption and alt text for images |
owner | incrementedObjectID | yes | incrementedObjectID | implemented | from JWT |
type | string from enum (Mime-Types for images, video, audio) | yes | string from enum | implemented | |
fileName | string - sha256 + fileextension | yes | string | implemented | |
thumbnailName | string - sha256 + fileextension | no | string | implemented | |
license | string | yes | string | implemented | Introduce an enum or not? |
slidewikiCopyright | string | yes | string | implemented | License specifics and copyright holder, autogenerated if not specified |
originalCopyright | string | yes | string | implemented | License specifics and copyright holder from the file, empty string in case of nonexistence |
metadata | string (produced by e.g. `identify -verbose file` for images) | yes | string | implemented | |
timestamp | timestamp | no | timestamp | not implemented | According to Kurt, this is already encoded in a Mongo ObjectID |