Dodal mongoDb in photoController
This commit is contained in:
9
models/photoModel.js
Normal file
9
models/photoModel.js
Normal 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);
|
Reference in New Issue
Block a user