Created DB for shop in task.sql (ShopDB)#200
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your solution is approved because it fully meets the stated schema and constraint requirements for the ShopDB database. You correctly create the ShopDB database and switch to it before defining the tables. All four required tables (Products, Customers, Orders, OrderItems) are present, with the exact column names specified in the task. The data types are limited to INT, DATE, VARCHAR(50), and VARCHAR(100) as required, and each ID column is an INT AUTO_INCREMENT primary key. The foreign keys are set up correctly: Orders.CustomerID references Customers(ID) with ON DELETE SET NULL, and OrderItems.OrderID/ProductID reference Orders(ID)/Products(ID) respectively with ON DELETE SET NULL. There are no structural or functional blockers in your SQL, and it should run successfully on a MySQL server as-is. Nicely done implementing the schema cleanly and precisely according to the specification.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
No description provided.