Skip to content

Feat: implements sql query and creates a new table for the library_users #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Dlafferty251
Copy link
Contributor

@Dlafferty251 Dlafferty251 commented May 9, 2025

This commit introduces the library_users table to the database schema, designed to store core information for registered library users. Each record includes a UUID-based user ID, first and last name, email address, and a bcrypt-hashed password to support secure authentication.

As part of the homework requirements, this update also adds several SQL reporting queries to the resources/queries directory:

A query that returns a count of media items grouped by type.

A query that calculates the total number of pages currently checked out by all guests.

A query that lists all five library guests along with any associated records from the checked_out_items table using a LEFT JOIN.

@Dlafferty251 Dlafferty251 requested a review from anthonydmays May 10, 2025 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant