You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
As a part of our University Curriculum, we made this project for Database Management Systems (DBMS). This project contains theoretical as well as implementation in MySQL. If you liked the repo do star it.
Notifications You must be signed in to change notification settings
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go to fileAs a part of our University Curriculum, we made this project for Database Management Systems (DBMS). This project contains theoretical as well as implementation in MySQL. If you liked the repo do star it.
In this modern era of online shopping, no seller wants to be left behind, moreover, due to its simplicity the shift from offline selling model to an online selling model is witnessing a rampant growth.
Therefore, as an engineer, our job is to ease the path of this transition for the seller. Amongst many things that an online site requires the most important is a database system. Hence in this project, I am planning to design a database where small clothing sellers can sell their products online.
Details of tables:
- A.p_details -[FK]payment details, This attribute is common between payment and product master table.
You can directly copy and paste all the commands from the text given here into the SQL console to create and insert values into your table.
1. create table user_login ( user_email_id varchar(20), user_password int(11), primary key(user_email_id) ); 2. create table app_user_one ( user_email_id varchar(20), user_mobile int(11), user_cart varchar(20), user_wishlist varchar(20), primary key(user_email_id) ); 3. create table app_user_two ( user_email_id varchar(20), user_streetno int(11), user_city varchar(20), primary key(user_email_id); ); 4. create table app_user_three( user_email_id varchar(20), user_state varchar(20), user_pincode int(11), primary key(user_email_id) ); 5. create table client_one ( client_no int(11), client_name varchar(20), client_email varchar(20), client_mobile int(11), user_email_id varchar(20), primary key(client_no), foreign key(user_email_id) references app_user_one(user_email_id), foreign key(user_email_id) references app_user_two(user_email_id), foreign key(user_email_id) references app_user_three(user_email_id), foreign key(user_email_id) references app_user_one(user_email_id) ); 6. create table client_two ( client_no int(11), client_streetno int(11), primary key(client_no) ); 7. create table client_three ( client_no int(11), client_pincode int(11) ); 8. create table salesman_master ( salesman_no int(11), salesman_name varchar(20), salesman_phoneno int(11), salesman_pincode int(11), primary key(salesman_no); ); 9. create table sales_order ( order_no int(11), order_date date, salesman_no int(11), client_no int(11), foreign key (order_no) references sales_order_details(order_no), foreign key (client_no) references client_one(client_no), foreign key (salesman_no) references salesman_master(salesman_no), foreign key (order_no) references sales_order_details(order_no) ); 10. create table sales_order_details ( order_no int(11), product_no int(11), quantity_no int(11), primary key(order_no), foreign key (product_no) references product_master_one(product_no), foreign key (product_no) references product_master_two(product_no) ); 11. create table payment_one ( pay_id int(11), pay_amt int(11), pay_date date, pay_customer_id int(11), primary key(pay_id) ); 12. create table payment_two ( pay_id int(11), pay_details_cash varchar(20), pay_details_online varchar(20), primary key(pay_id) ); 13. create table product_master_one ( product_no int(11), pay_id int(11), product_price int(11), quantity_available int(11), primary key(product_no) foreign key (pay_id) REFERENCES payment_one(pay_id), foreign key (pay_id) REFERENCES payment_two(pay_id) ); 14. create table product_master_two ( product_no int(11), product_sizeforcustomer varchar(20), product_colour varchar(20), primary key(product_no) );
These are some demo values. Full data will be updated in future commits