personal_website/models/movieModel.js
Nikola Petrov f240d4e7c5 format
2023-08-02 14:27:35 +02:00

11 lines
245 B
JavaScript

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var movieSchema = new Schema({
'title': String,
'released': String,
'webImg': String,
'code': String
});
module.exports = mongoose.model('movie', movieSchema);