Generalize DashboardScrollerComponent and display Latest Added Books

This commit is contained in:
aditya.chandel
2024-12-13 16:58:20 -07:00
parent 033fc95373
commit 96a04621e1
11 changed files with 63 additions and 20 deletions
@@ -13,6 +13,7 @@ CREATE TABLE IF NOT EXISTS book
library_id BIGINT NOT NULL,
path VARCHAR(1000) NOT NULL,
last_read_time TIMESTAMP NULL,
added_on TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT fk_library FOREIGN KEY (library_id) REFERENCES library (id) ON DELETE CASCADE,
CONSTRAINT unique_file_library UNIQUE (file_name, library_id),
INDEX idx_library_id (library_id),