You are on page 1of 3

TABLE DESIGN

Primary key: U_id


Table Name : user_detail

Field Type Constraints Description


firstname Text(20) Not null For first name of the user.
lastname Text(20) For last name if the user.
dob varchar(20) For date of birth if the user.
gender Text(5) Not null For gender of the user.
username varchar(20) Not null For user name of user.
password varchar(8) Not null For password of the user.
address varchar(100) For address of the user.
city Text(50) For city of the user.
state Text(50) For state of the user.
country Text(50) For country of the user.
email varchar(50) Not null For e-mail address of the user.
phno Integer(12) For phone number of the user.
mobno Integer(12) Not null For mobile number of the user.
yques varchar(50) Not null For question .
yans varchar(50) Not null For answer.

Table Name : unmpass

Field Type Conatraints Description


id varchar(10) PK For storing unique id.
uname varchar(20) For user nameof the user.
password varchar(20) For password of the user.
yques varchar(50) For question of the user.
yans varchar(100) For answer of the user.
Table Name : user_profile

Field Type Constraints Description


uid varchar(10) For user ID.
firstname Text(20) For first name of the user.
lastname Text(20) For last name if the user.
dob varchar(20) For date of birth if the user.
gender Text(5) For gender of the user.
username varchar(20) For user name of user.
address varchar(100) For address of the user.
city Text(50) For city of the user.
state Text(50) For state of the user.
country Text(50) For country of the user.
email varchar(50) For e-mail address of the user.
phno Number(12) For phone number of the user.
mobno Number (12) For mobile number of the user.

Table Name : company_detail

Field Type Constraints Description


companyid int(6) PK For Company ID.
companyname varchar(50) For Company name.

Table Name : model_detail

Field Type Constraints Description


modelid int(6) PK For Model Id.
modelname varchar(20) For Model name.
Table Name : shopping_cart

Field Type Constraints Description


cart_id varchar(6) For shopping cart ID.
username varchar(20) For user name.
productid varchar(6) For product ID.
qty int(3) For quantity of the product.
price int(10) For price of the product.
date varchar(20) For date of the shopping.

Table Name : cust_account

Field Type Constraints Description


username varchar(20) For user name.
productid int(6) For Product ID.
qty int(3) For quantity of the product.
price int(10) For price of the product.
total int(10) For total price of the product.

Table Name : review

Field Type Constraints Description


username varchar(30) For user name.
review varchar(60) For review of particular product..

Table Name : feedback

Field Type Constraints Description


username varchar(30) For user name.
address varchar(100) For address of the user.
city Text(12) For city of the user.
country Text(12) For country of the user.
gender Text(6) For gender of the user.
phno int(12) For phone number of the user.
review varchar(100) For feedback of the customer.

You might also like