Update file model

This commit is contained in:
Liam 2022-11-14 00:08:54 +00:00
parent 53d8eb5bcf
commit 511e487516

View File

@ -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);