Skip to content

Created DB for shop in task.sql (ShopDB)#200

Open
1ntact wants to merge 1 commit into
mate-academy:mainfrom
1ntact:main
Open

Created DB for shop in task.sql (ShopDB)#200
1ntact wants to merge 1 commit into
mate-academy:mainfrom
1ntact:main

Conversation

@1ntact

@1ntact 1ntact commented Jun 23, 2026

Copy link
Copy Markdown

No description provided.

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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! ✨

Footnotes

  1. Rate AI review example

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.

2 participants