diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..8bf4d45 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,6 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..ba09513 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + mysql.8 + true + com.mysql.cj.jdbc.Driver + jdbc:mysql://192.168.1.106:3306 + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..587dfd6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/rda_task_2_create_indexes.iml b/.idea/rda_task_2_create_indexes.iml new file mode 100644 index 0000000..0399c4b --- /dev/null +++ b/.idea/rda_task_2_create_indexes.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/task.sql b/task.sql index 0c5b574..af86413 100644 --- a/task.sql +++ b/task.sql @@ -1,2 +1,7 @@ -# Write your SQL code for the database creation here. Good luck! -USE ShopDB; +USE ShopDB; + +CREATE INDEX Email ON Customers (Email); +CREATE INDEX Name ON Products (Name); +CREATE INDEX CustomerID ON Orders (CustomerID); +CREATE INDEX OrderID ON OrderItems (OrderID); +CREATE INDEX ProductID ON OrderItems (ProductID); \ No newline at end of file