From 511e4875161abe8e3b90a00077c8408830cd23bb Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Mon, 14 Nov 2022 00:08:54 +0000 Subject: [PATCH] Update file model --- src/models/FileModel.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/models/FileModel.js b/src/models/FileModel.js index d8e225f..2740a73 100644 --- a/src/models/FileModel.js +++ b/src/models/FileModel.js @@ -5,6 +5,11 @@ const schema = new Schema({ fileId: String, uploadDate: Date, contentType: String, + ext: String, + + // Image/Video specific properties + width: Number, // The width of the image/video in pixels + height: Number, // The height of the image/video in pixels }); export default mongoose.models.File || mongoose.model("File", schema);