Update file model
This commit is contained in:
parent
53d8eb5bcf
commit
511e487516
@ -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);
|
||||
|
Reference in New Issue
Block a user