Dodal mongoDb in photoController

This commit is contained in:
Nikola Petrov
2023-06-25 00:46:46 +02:00
parent 7ac96e6036
commit 845a74dd49
9 changed files with 734 additions and 3 deletions

9
models/photoModel.js Normal file
View File

@@ -0,0 +1,9 @@
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var photoSchema = new Schema({
'name' : String,
'path' : String
});
module.exports = mongoose.model('photo', photoSchema);