lab5
lab5
Book Table
Field Name Data Type Description
BookID INT (Primary Key) Unique identifier for each book.
Title VARCHAR(100) Title of the book.
Author VARCHAR(100) Author of the book.
Publisher VARCHAR(100) Publisher of the book.
ISBN VARCHAR(20) Unique book identifier.
Price DECIMAL(8,2) Price of the book.
Number of available copies.
Shelf location of the book in the
Stock INT
shop.
Request table
Inventory Table
Field Name Data Type Description
Unique identifier for inventory
InventoryID INT (Primary Key)
records.
BookID INT Book linked to inventory.
Number of books added to
StockAdded INT
inventory.
SupplierName VARCHAR(100) Name of the supplier.
Date when the stock was
ProcurementDate DATETIME
added.
Threshold alert Table
Field Name Data Type Description
Unique identifier for threshold
AlertID INT (Primary Key)
alert.
BookID INT Book running low on stock.
Current number of books in
CurrentStock INT
stock.
Minimum stock level before
ThresholdValue INT
alert is triggered.
Date when the alert was
AlertDate DATETIME
triggered.