// Members
db.Members.insertMany([
{ member_id: 1, first_name: "Joanna", last_name: "Brown", email: "Joanna@gmail.com", phone: "1234567890" },
{ member_id: 2, first_name: "Ryan", last_name: "Green" }
]);
// Authors
db.Authors.insertMany([
{ author_id: 1, first_name: "Johnny", last_name: "Smith" },
{ author_id: 2, first_name: "Mari-lee", last_name: "Jones" }
]);
// Books
db.Books.insertMany([
{ ISBN: "977-1911", title: "Political Systems", pub_year: 2026, author_id: 1, available: true, quantity: 5 },
{ ISBN: "977-2422", title: "Information Basics", pub_year: 2025, author_id: 2, available: false, quantity: 0 }
]);
// Borrowing
db.Borrowing.insertMany([
{ member_id: 1, ISBN: "977-1911", date_borrowed: "2026-07-01", due_date: "2026-07-15", return_date: null, fine_amount: 50 },
{ member_id: 2, ISBN: "978-2422", date_borrowed: "2026-06-20", due_date: "2026-07-05", return_date: "2026-07-04", fine_amount: 0 }
]);
// Payments
db.Payments.insertMany([
{ member_id: 1, amount: 50, status: "unpaid" },
{ member_id: 2, amount: 0, status: "paid" }
]);
To embed this project on your website, copy the following code and paste it into your website's HTML: