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

DESIGN CONSTRAINTS

Design Constraints : – Normalized Database Design and Data Dictionary

Admin :

Table No 1
Table Name Admin
Table Description Admin details

Sr.No. Field Name Data Type Constraint Description


1 Admin_id Int Primary key Admin Id.

2 Admin_username Varchar(30) NOT NULL User Name of Admin.

3 Admin_password Varchar(20) NOT NULL Password of admin for


login purpose.

Customer/user:

Table No 2
Table Name Customer
Table Description Information about exams.

Sr.No. Field Name Data Type Constraint Description


1 cust_id Int Primary key Customer Id

2 Name Varchar(50) NOT NULL Customer name

3 Mob_no Varchar(10) NOT NULL Customer mobile


number.
4 Email Varchar(30) Not Null Customer mail ID

5 Password Varchar(20) Not Null Password for login


purpose
Plants :

Table No 3
Table Name Plants
Table Description Admin can add, delete,
And update the Plants

Sr.No. Field Name Data Type Constraint Description


1 id Int Primary key Plant Id.

2 plant_name Varchar(20) NOT NULL Plant name.

3 plant_desc Varchar(50) NOT NULL Plant Description.

4 Plant_img Varchar(50) NOT NULL Upload the image &


Store the path
5 quantity Int NOT NULL Available quantity

6 Price Double NOT NULL Price per plant.

• Cart :

Table No 4
Table Name Cart
Table Description Cart details

Sr.No. Field Name Data Type Constraint Description


1 Cart_id Int Primary key cart Id.

2 plant_name Varchar(20) Foreign key Plant name

3 price Double NOT NULL Price of product

4 quantity Int NOT NULL Quantity of product


• Order :

Table No 5
Table Name Order
Table Description Order Details

Sr.No. Field Name Data Type Constraint Description


1 order_id Int Primary key Order Id.

2 amount Double NOT NULL Total Price

3 Cart_id Int Foreign key Cart ID

4 Ship_address Varchar(40) Not Null Shipping address

• Payment:

Table No 6
Table Name Payment
Table Description Payment Details

Sr.No. Field Name Data Type Constraint Description


1 Pay_id Int Primary Key Payment Id

2 order_id Int Foreign key Order Id.

3 amount Double NOT NULL Total Price

4 Payment_type Varchar(20) Not Null Payment type

You might also like