upload/deploy/File.model.js

/**
 * @module flitter-upload/deploy/File
 */

/**
 * Schema for the File model. This is used to track uploaded files.
 * Deployed to "upload/File.model.js" w/in the models folder. Has canonical name: 'upload:File'.
 * 
 * @type {Object}
 * @property {StringConstructor} [original_name = String] - The original name of the file.
 * @property {StringConstructor} [new_name = String] - The new name of the file. Usually a UUID.
 * @property {StringConstructor} [mime = String] - The file's MIME type.
 * @property {StringConstructor} [type = String] - The file's type categorization.
 */
module.exports = exports = {
    original_name: String,
    new_name: String,
    mime: String,
    type: String,
}