upload pdf

This commit is contained in:
2026-04-15 16:55:32 +07:00
parent 50332f2548
commit 43bfc117bf
9 changed files with 65 additions and 37 deletions

View File

@@ -28,8 +28,8 @@ const qualificationSchema = new mongoose.Schema({
// PhD fields — presence of topic_name signals PhD view on frontend
topic_name: { type: String, trim: true },
topic_short_desc: { type: String, trim: true },
// Document image
degree_image: { type: String }
// Document images (array of filenames)
degree_image: { type: [String], default: [] }
}, { timestamps: true });
module.exports = mongoose.model('Qualification', qualificationSchema);