

INSERT INTO Book (BookId, Title, Author, Language, ImageURL)
VALUES (01, 'The First Fifteen Lives of Harry August', 'Claire North', 'English', 'https://www.google.mk/books/edition/The_First_Fifteen_Lives_of_Harry_August/AZShAQAAQBAJ?hl=en'),
(2, 'Tomorrow, and Tomorrow, and Tomorrow', 'Gabrielle Zevin', 'English', 'https://www.google.mk/books/edition/Tomorrow_and_Tomorrow_and_Tomorrow/JrpHEAAAQBAJ?hl=en'),
(3, 'The Midnight Library', 'Matt Haig', 'Spanish', 'https://www.google.mk/books/edition/The_Midnight_Library/exTZzQEACAAJ?hl=en'),
(4, 'Daisy Jones & The Six', 'Taylor Jenkins Reid', 'French', NULL),
(5, 'The Seven Husbands of Evelyn Hugo', 'Taylor Jenkins Reid', 'English', 'https://www.google.mk/books/edition/The_Seven_Husbands_of_Evelyn_Hugo/NdAmDwAAQBAJ?hl=en&gbpv=1&dq=The+Seven+Husbands+of+Evelyn+Hugo&printsec=frontcover');

INSERT INTO BookISBN (BookId, ISBN)
VALUES (1, '0-356-50257-0'),
(2, '0-356-50257-0'),
(3, '978-0593321201'),
(4, '0-323-12333-2'),
(5, '0-116-5577-1');

INSERT INTO Genre (BookId, Genre)
VALUES (1, 'Historical Fiction'),
(2, 'Adventure fiction'),
(3, 'Science fiction'),
(4, 'Historical Fiction'),
(5, 'Historical Fiction');

INSERT INTO Library (InventoryId, UserId, Availability, Condition)
VALUES (1, 1, 'Not Available', 'New'),
(2, 3, 'Available', 'Like New'),
(3, 3, 'Reserved', 'Poor'),
(4, 5, 'Not Available', 'Good'),
(5, 5, 'Available', 'Like New');

INSERT INTO LibraryBook(LibraryBookId, InventoryId, BookId)
VALUES(1,1,1),
(2,2,2),
(3,3,3),
(4,4,4),
(5,5,5);

INSERT INTO Wishlist (WishId, UserId, Priority)
VALUES (1, 1, 'High'),
(2, 2, NULL),
(3, 3, NULL),
(4, 4, 'Medium'),
(5, 5, 'Low');

INSERT INTO WishlistBook(WishlistBookId, WishId, BookId)
VALUES(1,1,1),
(2,2,2),
(3,3,3),
(4,4,4),
(5,5,5);

INSERT INTO BookRequest(RequestId, RequesterId, OwnerId, BookId, InventoryId, RequestStatus, RequestDate) 
VALUES (1, 1, 2, 1, 1, 'Approved', '2024-04-15'),
(2, 1, 4, 3, 2, 'Pending', '2024-06-23'),
(3, 3, 2, 2, 4, 'Approved', '2024-03-11'),
(4, 2, 5, 3, 1, 'Pending', '2024-02-16'),
(5, 3, 3, 4, 5, 'Declined', '2024-01-09');

INSERT INTO Transaction (TransactionId, RequestId, BorrowerId, LenderId, InventoryId, BorrowDate, ReturnDate, BorrowDuration)
VALUES (1, 1, 2, 3, 1, '2024-04-15', '2024-04-25', 10),
(2, 2, 3, 2, 2, '2024-06-23', '2024-06-28', 5),
(3, 3, 2, 1, 3, '2024-06-23', '2024-06-28', 5),
(4, 4, 1, 2, 4, '2024-02-16', '2024-02-26', 10),
(5, 5, 4, 5, 5, '2024-02-16', '2024-02-26', 10);

INSERT INTO SwapTransaction(SwapTransactionId, TransactionId1, TransactionId2)
VALUES(1, 2,3);

INSERT INTO TransactionBook ( TransactionBookId, TransactionId, BookId)
VALUES (1, 1, 1),
(2, 2, 2),
(3, 3, 3),
(4, 4, 4),
(5, 5, 5);


INSERT INTO Review (ReviewId, TransactionId, ReceiverId, GiverId, Rating, ReviewerComment, Date)
VALUES (1, 1, 2, 1, 5, 'They were great!', '2025-10-10'),
(2, 2, 3, 2, 4, 'Returned my book on time!', '2025-02-22'),
(3, 3, 4, 1, 5, NULL, '2025-11-12'),
(4, 4, 2, 2, 1, 'Destoryed my book!', '2025-04-25'),
(5, 5, 5, 4, 5, NULL, '2025-02-01');

INSERT INTO Message (MessageId, SenderId, ReceiverId, Time, Date, MessageContent)
VALUES ( 1, 1, 2, '14:34:54', '2024-05-01' , 'Hi! I finished the book early!'),
( 2, 2, 1, '22:14:47', '2024-03-08' , 'Did you like Daisy Jones?'),
( 3, 3, 2, '12:02:04', '2024-05-01' , 'I did not get to read it yet.'),
( 4, 4, 2, '11:53:11', '2024-05-21' , 'Would you consider buying the hardcover?'),
( 5, 5, 4, '23:34:32', '2024-05-07' , 'I love this book!');


INSERT INTO FriendRequest (FriendshipId, SenderId, ReceiverId, DateCreated, Status)
VALUES (1, 2, 1, '2025-01-01', 'Accepted'),
(2, 2, 3, '2025-02-04', 'Accepted'),
(3, 3, 4, '2025-03-05', 'Declined'), 
(4, 1, 4, '2025-04-09', 'Blocked'),
(5, 5, 2, '2025-04-11', 'Pending');

INSERT INTO Report (ReportId, ReportedUserId, ReportingUserId, ReportType, ReportDate, Details, ReportStatus, ReportedEntity)
VALUES (1, 2, 1, 'Harassment', '2025-01-05', NULL, 'Accepted', 'Message'),
(2, 3, 2, 'Harassment', '2025-02-04', NULL, 'Pending', 'Rating'),
(3, 1, 5, 'Bullying', '2025-03-08', NULL, 'Rejected', 'Profile'),
(4, 4, 2, 'Hate speech', '2025-05-09', 'Example text', 'Resolved', 'Message'),
(5, 5, 3, 'Spamming', '2025-06-21',  'Example text', 'Pending', 'Library');

INSERT INTO Notification (NotificationId, TransactionId, MessageId, FriendRequestId, BookRequestId, Type, Time, Date, Description, Status)
VALUES (1, 1, NULL, NULL, NULL, 'Transaction', '14:34:54', '2025-01-02', 'Ongoing Transaction!', 'Unread'),
(2, NULL, NULL, NULL, NULL, 'System Update', '22:14:47', '2025-02-03',  'System update!', 'Dismissed'),
(3, NULL, 2, NULL, NULL, 'Message', '12:02:04', '2025-03-04',  'Anya sent you a message!', 'Unread'),
(4, NULL, NULL, 3, NULL, 'Friend Request', '11:53:11', '2025-04-01',  'Sonny sent you a friend request!', 'Read'),
(5, NULL, NULL, NULL, 4, 'Book Request', '23:34:32', '2025-07-27', 'Elena sent you a book request!', 'Unread');

INSERT INTO UserNotification (UserNotificationId, UserId, NotificationId)
VALUES (1, 1, 1),
(2, 2, 2),
(3, 3, 3),
(4, 4, 4),
(5, 5, 5);

