Professional Documents
Culture Documents
System Design
8.1
Database Design
In the design phase the most important process is database design. In database designing different normalized tables are formed then relationship between these normalized tables is described. After studying the existing system it is decided to develop normalized tables for the database design. Before describing the tables it is better to understand the concept of Normalization and the different forms of normalization. There three main forms of normalization these forms have their own definitions. These are stated as follow,
8.2
Normalization:
The purpose of the normalization is to produce a stable set of relation that is faithful model of the operation of the enterprise. By following the principles of normalization we can achieve a design that is highly flexible, allowing the model to be extended when needed to account for new attributes, entity sets and relationships. We can also reduce redundancy in the database and ensure that the design is free of certain update, insertion and deletion anomalies.
60
Chapter No.8
System Design
If there are no composite keys in the tables then so the relations are in second normal form (2NF).
8.3
Normalized Tables:
CREDIT-CARD TABLE Primary Key: Foreign Key: Purpose: Structure: cardid cusid This table stores information about credit cards.
61
Chapter No.8
System Design
USER/ CUSTOMER TABLE Primary Key: Purpose: Structure: U_ID This table store information about the customers & users.
CATEGORY TABLE Primary Key: Purpose: Structure: cat_id This table stores the information about categories.
62
Chapter No.8
System Design
PRODUCT TABLE Primary Key: Purpose: Structure: pd_id This table stores information about products.
COMPLAINTS TABLE Primary Key: Purpose: Structure: C_ID This table stores information about the Complaints of the users or visitors.
63
Chapter No.8
System Design
ORDERS TABLE Primary Key: Foreign Key: Purpose: Structure: oid opid This table stores detailed information about the orders.
64
Chapter No.8
System Design
CART TABLE Primary Key: Foreign Key: Purpose: Structure: cid cid_pid This table stores information about shopping cart.
65