forked from UKSOURCE/cms.hailearning.edu.vn
upload pdf
This commit is contained in:
@@ -25,8 +25,8 @@ const certificateSchema = new mongoose.Schema({
|
||||
// Optional personal info
|
||||
passport_number: { type: String, trim: true },
|
||||
address: { type: String, trim: true },
|
||||
// Document image
|
||||
certificate_image: { type: String }
|
||||
// Document images (array of filenames)
|
||||
certificate_image: { type: [String], default: [] }
|
||||
}, { timestamps: true });
|
||||
|
||||
module.exports = mongoose.model('Certificate', certificateSchema);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user