dragonroll/backend/models/Book.js
BinarySandia04 73d10a7846
Some checks failed
test / run-tests-client (push) Successful in 43s
test / run-tests-backend (push) Failing after 14s
More item types
2024-10-18 15:11:08 +02:00

12 lines
344 B
JavaScript

const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const BookSchema = new Schema({
title: {type: String, required: true},
authors: { type: [String] },
description: { type: String },
system: {type: String, required: true},
image: { type: String },
});
module.exports = mongoose.model('Book', BookSchema);