Skip to content
Snippets Groups Projects
Commit d5909c0f authored by Ashwanth K's avatar Ashwanth K
Browse files

Upload New File

parent 0728bd9b
Branches
No related tags found
No related merge requests found
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const borrowerSchema = new Schema({
_id: { type: String, required: true },
book_id: { type: String, required: true },
user_name: { type: String, required: true },
}, {
timestamps: true,
});
const Borrower = mongoose.model('Borrower', borrowerSchema);
module.exports = Borrower;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment