Skip to content

Commit

Permalink
Update Foreign Key.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Internshala-Online-Trainings authored Jun 26, 2019
1 parent c8747f8 commit 73f9457
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
The queries used in the lesson.

CREATE table products query;
CREATE table users_products query;
CREATE TABLE ecommerce.products(`id` INT(11) AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(30), `category` enum('book','stationery','other'))
CREATE TABLE ecommerce.users_products(`id` INT(11) AUTO_INCREMENT PRIMARY KEY, `user_id` INT(11), `products_id` INT(11))
CREATE TABLE ecommerce.products(`id` INT(11) AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(30), `category` enum('book','stationery','other'));
CREATE TABLE ecommerce.users_products(`id` INT(11) AUTO_INCREMENT PRIMARY KEY, `user_id` INT(11), `products_id` INT(11));

0 comments on commit 73f9457

Please sign in to comment.