feat: adds Trinitie's lesson_25 homework on Introduction to Databases (SQL) #785
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is my Lesson_25 homework on Introduction to Databases (SQL).
This update adds a new SQL script (trinitiejackson.sql) in the resources/queries directory containing queries that return counts of media items by type, the total pages checked out by guests, and a full list of all five guests with their checked-out items. It also introduces a new library_users table to the SQLite database for storing user information (UUID, email, first name, last name, and bcrypt-encoded password). Corresponding model (LibraryUserModel) and repository (LibraryUserRepository) classes were created and integrated into LibraryDataModel to load user data. The database was populated with sample users to verify functionality.
For this homework, I enjoyed it as it was straightforward, and I was able to catch on quicker than in other subjects. The only thing is thinking the logic all the way through, especially when connecting two tables. Kerry was able to help me with a lot of the homework (the three selects and the table), so I was able to go in the right direction for the rest of the homework. I was only really confused about the model and repository part, as I wasn't sure if we needed to create a new file since our SQL is unique, but these files won't really be unique. However, I followed the examples. I also had a bit of a hard time figuring out how to work the terminal for all this, but I figured it out.