Dodal movie data

This commit is contained in:
Nikola Petrov
2023-06-25 01:48:32 +02:00
parent 845a74dd49
commit 0d6c2d0aa8
8 changed files with 164 additions and 3 deletions

12
models/movieModel.js Normal file
View File

@@ -0,0 +1,12 @@
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var movieSchema = new Schema({
'title' : String,
'released' : String,
'webImg' : String,
'genre' : String,
'code' : String
});
module.exports = mongoose.model('movie', movieSchema);