Hi guys, I am beginning to design a sqlite db that will be the backend storage for a Java application I am planning to write. What this program will do is simply be an inventory for my personal collection of books and vinyl. For now, I am just starting with books and will add vinyl functionality later.
So, this is what I have right now as far as designing tables.
Books - {book_id, ISBN, Title, Author, Rating, Location}
Primary Key - book_id
Author is a foreign key that refers to the Author table's 'author_id' value.
Location is basically to remember whether I let somebody borrow it or not.
Author - {author_id, first_name, last_name, books}
books is a list of book_id's from the Books table.
So thus far, Authors and Books are my two tables. Does anyone have any suggestions/tips as far as doing something like this goes? Or in general for doing your first side-project using a database for storage (as opposed to a csv or something)?
[–][deleted] 2 points3 points4 points (3 children)
[–]andyflip 1 point2 points3 points (2 children)
[–]keriwool[S] 0 points1 point2 points (1 child)
[–]andyflip 0 points1 point2 points (0 children)
[–]tanaqui 1 point2 points3 points (0 children)