package
0.0.0-20250125224919-456cd2e54c8e
Repository: https://github.com/madalinpopa/go-bookreview.git
Documentation: pkg.go.dev

# Functions

NewModels initializes and returns a Models instance with the provided database connection.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrDuplicateEmail indicates that the provided email address already exists in the system and cannot be used again.
ErrDuplicateIsbn indicates that the provided ISBN already exists in the system and cannot be used again.
ErrDuplicateUsername indicates that the provided username already exists in the system and cannot be used again.
ErrInvalidCredentials indicates that the provided credentials are invalid or do not match any existing records.
ErrNoRecord indicates that no matching record was found in the database or data source.

# Structs

Base represents a common structure containing fields for ID and timestamps to be embedded in other types.
Book represents a literary work with details such as title, author, ISBN, and publication year.
BookModel represents the data structure for accessing book-related data in the database.
Models aggregates different data models to provide centralized access within the application.
Note represents a user's note on a specific page of a book with associated user and book identifiers.
NoteModel wraps a database connection pool for managing operations related to notes.
PaginatedBooks represents a paginated collection of books with metadata such as total count and pagination details.
Review represents a user's review of a book, including their rating, user ID, book ID, and optional review text.
ReviewModel provides methods to interact with the reviews data in the database.
User represents an application user including identification, authentication, and contact information.
UserModel provides methods to interact with the users table in the database.

# Type aliases

LookupField represents an enumeration used to specify fields for lookup operations in user-related database queries.