Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

user table --- user

user
user
user
user

id(primary)
name
password
email
gender

product table -- product


product
product
product
product
product
product

id(primary)
name(varchar)
price(varchar)
description(varchar)
image path(varchar)
category(varchar)
upload date(date)

order_table - order_id(primary)
product_id
user_id
order_detail_table -- order id(foreign)
product id(foreign)
user id(foreign)
order date (date)
delivery date (date)
order state -- > order expired or delivered.
user table -- admin values will be entered default inside the database.
not null values will be handled on the form validation side.
admin will have a separate page where all the products will be handled specifica
lly. The admin id and password will be handled
in the same table as the user table.
the order, depending on where the product is, (whether it is delivered will be a
ssigned a separate state).

default value 0
(state not assigned yet)
---> incoming order ------- > order --(to be delivered state) ----> product
placed (order terminated) ...
|
(some state will be assigned)
|
|
|
____
-------< order placed
|
|
____
|
|
user can terminate the order, iff the produc
t hasn't been
delivered yet.
If it has been beyond the delivery date. The
request cannot be processed any further. or be assigned
an inconsistent state.
The add to cart option will enable the user to select multiple products at the s
ame time.

The user id will not be unique in this case because multiple products cannot be
handled.
The cart will be emptied as soon as the user logs out of the page. So it is a te
mporary database to hold the options
for the products delivered.
For the orders to be delivered or which are to be delivered, there need to be tw
o separate columns.
This will vary depending on whether the product is assigned a consistent state.
If the order is assigned an inconsistent state, and is well beyond the delivery
date, the order needs to be dumped.
The same procedure applies for the order if cancelled, the order will be wiped a
way from the database.
The add to cart will have the following functionality
---->
add a product to the cart.
---->
remove a product from the cart.
There needs to be a proceed to delivery page which may be accessed from two side
s.

single product ----------> proceed to delivery page <---------- add to c


art.
every single product needs to be assigned a different id.
products needs to be assigned a single order id.

multiple

The delivery page will have the option of different type of payments.
Product Category:===============
Three options :1) product category wise.
2) sort the products based on the price ranges. ---> will be taken care separate
ly.

You might also like