You are on page 1of 3

TABLE DESIGN

Table Name: purchase_Detail

Description: To store the Purchase Details

Primary key: p_id

Name Data Type Size Constrains Description


pur_id varchar 10 primary key The unique id
purdate Date - not null Purchase date
Sp_name varchar 20 not null Supplier name
Sp_ph varchar 13 not null Supplier phone number
Sup_add Text 50 not null Supplier address
p_name varchar 20 not null Product name
P_type varchar 20 not null Product type
P_wt Int 05 not null Product weight
rate Int 10 not null Product rate
qty Int 05 not null Quantity
dis varchar 50 not null Description
amt Int 10 not null Total amount

Table Name: production_Detail

Description: To store the Production Details

1
Primary key: pur_id

Name Data Type Size Constrains Description


pur_nam varchar 20 not null Production Product name
e
P_type varchar 20 not null Production Product type
P_wt Int 05 not null Production Product weight
rate Int 10 not null Production Product rate
qty Int 05 not null Quantity
dis varchar 50 not null Description
amt Int 10 not null Total amount

Table Name: stock_Detail

Description: To store the stock Details

Name Data Type Size Constrains Description


pur_id varchar 10 primary key The unique id
p_nam varchar 20 not null Product name
e
P_type varchar 20 not null Product type
P_wt Int 05 not null Product weight
rate Int 10 not null Product rate
qty Int 05 not null Quantity

Table Name: Employee_Registration

Description: To store the employee register Details

Primary key: emp_id


Name Data Type Size Constrains Description
emp_id varchar 10 primary key The unique id

2
name nchar 30 not null Employee full name
gender nchar 7 not null Employee gender
d_of_b date not null Employee date of birth
ph_no varchar 12 not null Employee mobile number
address varchar 140 not null Employee address
des varchar 20 not null Employee designation

Table Name: sales_Details

Description: To store the sales Details

Primary key: s_id

Name Data Type Size Constrains Description


s_id varchar 10 primery key Billing product number
s_date nchar 5 not null Product unique id
c_name nchar 20 not null Product name
c_ph int 5 not null Purchase product quantity
c_address int 6 not null Product rate
pur_id varchar 10 Secondary key The unique id
p_name varchar 20 not null Product name
p_type varchar 20 not null Product type
p_wt Int 05 not null Product weight
rate Int 10 not null Product rate
qty Int 05 not null Quantity

You might also like