Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

TITLE OF THE PROJECT

A Database Layout & ER Diagram for


the RDBMS project of
first trimester in
Master of Computer Applications

by
Saurabh Sherekar
Avadh Pujara
Sayali Tamane
Maharshi Upadhyay

NAME OF THE DEPARTMENT

School of Computer Science,


MIT WORLD PIECE UNIVERSITY, PUNE
ER Diagram

Database layout

1. Table: Customer Information Table


Description: This Table contains all Customers Details

No Data name Data type size description Constraint if any


1 Customer Id Varchar 30 Customer Code Primary key
2 Name Varchar 30 Name of the Customer Not null
3 Email Varchar 30 Email of the Customer Not null
4 Contact No bigint 20 Contact Number of Customer Not null
5 Password Varchar 30 Password Enter by admin Not null
6 Address Varchar 200 Address of a Customer Not null
7 City Varchar 30 City of a Customer Not null
customer_id name email number password address city
Aniket Hadapsar,
C101 abc@gmail.com 9898508591 abc123 Pune
Sharma Pune

Sanchit Kothrud,
C102 bcd@gmail.com 8898508590 bcd123 Pune
Khobragade Pune

Ankush Hinjewadi,
C103 bcd@gmail.com 7798508590 cde123 Pune
Sharma Pune

Rahul Hadapsar,
C104 efg@gmail.com 9845841251 efg123 Pune
Kumar Pune

Shivam Hadapsar,
C105 def@gmail.com 7819290546 def@gmail.com Pune
Ritpurkar Pune

----------------------------------------------------------------------------------------------------------------

2. Table: Company Information Table


Description: This Table contains all Supplier’s Company Details
No Data name Data size description Constraint if
type any
1 Company Id Varchar 30 Company Code Primary key
2 Name Varchar 30 Name of the Company Not null
3 Address Varchar 30 Address of a Company Not null
4 City Varchar 30 City of Company Not null
5 Contact No bigint 20 Contact Number of the Not null
Supplier

company_id sname address city number


S101 Godrej Mahal, Nagpur Nagpur 7798508590

S102 Samsung Civil Lines, Nagpur Nagpur 7869459456

S103 Canon Bardi, Nagpur Nagpur 7798256941


company_id sname address city number
S104 Sony Mahal, Nagpur Nagpur 7995981544

S105 Nikon Rameshwari, Nagpur Nagpur 8808991884

----------------------------------------------------------------------------------------------------------------
3. Table: Category
Description: This Table contains all products categories details.
No Data name Data type size description Constraint if any
1 Category Id Varchar 30 Product’s Category Code Primary Key
2 Category Name Varchar 30 Name of the Product Not null

cat_id cat_name
CT101 Home Appliances

CT102 Cameras

CT103 Gaming Consoles

----------------------------------------------------------------------------------------------------------------

4. Table: Product
Description: This Table contains all Product Details.

No Data name Data type Size description Constraint if any


1 Product Id int 11 Product Code Primary Key
2 Category Id int 11 Category Code Foreign Key
3 Company Id int 11 Company Code Foreign Key
4 Product Name Varchar 30 Name of the Product Not null
5 Quantity int 11 Available Quantity of Not null
Product
4 Reorder Level int 11 Reorder Level of Product Not null
5 Unit Price int 11 Per Unit Price of Product Not null
product_id cat_id company_id pro_name qty reorder_level unit_price
Washing
P101 CT101 S101 100 80 30000
Machine

P102 CT101 S102 Refrigerator 100 70 25000

P103 CT101 S103 AC 50 30 35000

P104 CT102 S104 Canon 30 25 50000

P105 CT103 S105 PS4 200 180 1200

----------------------------------------------------------------------------------------------------------------

5. Table: Purchase Details


Description: This Table contains all Purchases Made by Admin from Supplier’s
Company.

No Data name Data type Size description Constraint if any


1 Purchase Id Varchar 30 Purchase Code Primary Key
2 Product Id Varchar 30 Product Code Foreign key
3 Company Id Varchar 30 Company Code Foreign key
4 Quantity int 11 Quantity of Product Not null
5 Date date 00 Date of Purchase Not null
6 Total Amount Varchar 30 Total Amount of Purchase Not null

purchase_id product_id company_id qty date total_amt


PR101 P101 S101 10 2020-09-01 300000

PR102 P102 S102 10 2020-09-02 250000

PR103 P103 S103 10 2020-09-03 350000

PR104 P104 S104 10 2020-09-04 500000


purchase_id product_id company_id qty date total_amt
PR105 P105 S105 10 2020-09-05 200000

----------------------------------------------------------------------------------------------------------------

6. Table: Price
Description: This Table contains all products price details.

No Data name Data type Size description Constraint if any


1 Product Id Varchar 30 Product Code Foreign Key
2 Price int 11 Price of the Product Not null

product_id unit_price
P101 30000

P102 25000

P103 35000

P104 50000

P105 25000

----------------------------------------------------------------------------------------------------------------

7. Table: Sales Details


Description: This Table contains all Daily Transaction Details as well as all Customers
Transaction Details

No Data name Data type Size description Constraint if any


1 Sales Id Varchar 30 Sales Code Primary key
2 Order Id Varchar 30 Order Code Foreign key
3 Product Id Varchar 30 Product Code Foreign key
4 Quantity int 11 Product’s Quantity Not null
5 Total Amount int 11 Total Purchase Amount Not null
6 Payment Status Varchar 30 Status of Payment Not null
7 Date date 00 Date of the Transaction Not null

sales_id customer_id order_id product_id qty total_amount payment_status date


S101 C101 O101 P101 10 300000 Completed 2020-09-07

S102 C102 O102 P102 5 125000 Completed 2020-09-08

S103 C103 O103 P103 20 700000 Completed 2020-09-10

S104 C104 O104 P104 4 200000 Completed 2020-09-12

S105 C105 O105 P105 5 125000 Completed 2020-09-14

----------------------------------------------------------------------------------------------------------------

8. Table: Order Details


Description: This Table contains all Order Details of Customer.

No Data name Data type Size description Constraint if any


1 Order Id Varchar 30 Order Code Primary Key
2 Product Id Varchar 30 Product Code Foreign key
3 Customer Id Varchar 30 Customer Code Foreign key
4 Status int 11 Status of Product Not null

order_id product_id customer_id status


O101 P101 C101 Under Process

O102 P102 C102 Dispatched

O103 P103 C103 Delivered

O104 P104 C104 Delivered


order_id product_id customer_id status
O105 P105 C105 Deliver Today

----------------------------------------------------------------------------------------------------------------

You might also like