0% found this document useful (0 votes)
20 views

Computer Store Project PP

Uploaded by

ly.leapheng49
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Computer Store Project PP

Uploaded by

ly.leapheng49
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Computer Store

Lecture : Sum Chanthou

Subject : ADV Python II

Group : SS30

Members :

1. Say Sokhea ( Leader )


2. Chhorm Chhakklyta
3. Oeng Lymeng
4. Path Sotheayuth
5. Thy Seyhak
6. Vichet sereirathnak
SS30 SETEC INSTITUTE

Contents
I. Introduction ………………………………………………………………… 2
II. System Requirement ……………………………………………………. 2

• Functional Requirements:

1. User Management ……………………………………………...


2. Products Management ……………………………………….
3. Order Management ……………………………………………
4. Payments Processing …………………………………………
5. Reporting and Analytics …………………………………….

• Non-Functional Requirements:

1. Performance Requirements ………………………………


2. Security and Privacy ………………………………………….
3. Usability ……………………………………………………………

III. Data Dictionary …………………………………………………………… 3


IV. Entity-Relationships Diaram (ERD) ……………………………… 5
V. User Interface ……………………………………………………………… 6

Page 1
SS30 SETEC INSTITUTE

I. Introduction
The goal of this project is to develop a comprehensive online platform for a computer
store. The application will allow users to browse and purchase computer products and
easily for customers check, search an information about Computer, Accessories and Spare
Part they want.

II. System Requirements


- Functional Requirements:

1. User Management:

• Users can view, and check products detail on website


• Users can register, log in, and log out.
• Admin users can manage product listings, categories, and orders.

2. Product Management:

• Admins can add, update, or delete product information.


• Users can view product details, including descriptions, prices, and stock
availability.

3. Order Management:

• Users can order by online.


• Admins can manage orders, including updating order statuses.

4. Payment Processing

• Users can securely process payments for their orders.


• The system integrates with payment gateways (optional for this scope).

5. Reporting and Analytics

• Admins can view sales reports and user activity analytics (optional for this
scope).

Page 2
SS30 SETEC INSTITUTE

- Non-Function Requirement

1. Performance Requirements

• The user interface should be intuitive and user-friendly, especially for non-
technical users.
• The system should be accessible on various devices, including desktops,
tablets, and smartphones.

2. Security and Privacy

• The system should protect user data using encryption and secure
authentication mechanisms.

• The system should prevent unauthorized access to admin functionalities and


sensitive data.

3. Usability

• The user interface should be intuitive and user-friendly, especially for non-
technical users.

• The system should be accessible on various devices, including desktops,


tablets, and smartphones.

III. Data Dictionary


Tabe: Products

Column Data Type Description Constraint


PRODUCT_ID SERIAL UNIQUE FOR PRODUCT PK
PRODUCT_NAME VARCHAR(100) FULL NAME OF PRODUCT NOT NULL
DESCRIPTION VARCHAR(255) NOTE ABOUT PRODUCT NOT NULL
CATEGORY_ID INTEGER FOREIGN KEY REFERENCES FK
DISCOUNT VARCHAR(255) DISCOUNT PRICE FOR PRODUCT NOT NULL
PHOTO IMAGE PHOTO FOR PRODUCT NOT NULL
ADD_STOCK VARCHAR(255) ADD PRODUCT IN STOCK NOT NULL

Page 3
SS30 SETEC INSTITUTE

QUANTITY VARCHAR(255) PRODUCT IN HAVE IN STOCK NOT NULL


COST_PRICE FLOAT PRICE FOR SALE NOT NULL
UNIT_PRICE FLOAT INCOME PICE NOT NULL
ADD_DATE DATETIME DATETIME TO ADD PRODUCT IN STOCK NOT NULL
STATUS BOOLEAN SHOW PRODUCT AVAILABLE OR NOT NOT NULL
CREATE DATETIME TIME TO CREATE NOT NULL

Tabe: Payments

Column Data Type Description Constraint


PAYMENT_ID SERIAL UNIQUE FOR PATMENT PK
USER_ID INTEGER UNIQUE FOR USER NOT NULL
TOTAL PRICE FOR
TOTAL_PRICE DECIMAL(255,2) NOT NULL
PAYMENT
USER_ID INTEGER UNIQUE FOR PAYMENT FK

Table: Orders

Column Data Type Description Constraint


ORDER_ID SERIAL UNIQUE FOR ORDER PK
ORDER_DATE DATE UNIQUE FOR ORDER NOT NULL
USER_ID INTEGER FOREIGN KEY REFERENCES FK
PAYMENT_ID INTEGER UNIQUE FOR ORDER NOT NULL
AMOUNT NUMERIC(255,2) PRICE FOR PRODUCT NOT NULL

Table: Order_Details

Column Data Type Description Constraint


ORDER_DETAIL SERIAL FOREIGN KEY REFERENCES PK
PRODUCT_ID INTEGER DATE OF ORDER FOR TBL ORDER FK
AMOUNT DECIMAL(255,2) PRICE FOR PRODUCT NOT NULL
QUANTITY VARCHAR(255) PRODUCT IN HAVE IN STOCK NOT NULL
ORDER_ID INTEGER UNIQUE FOR ORDER_DETAIL NOT NULL

Page 4
SS30 SETEC INSTITUTE

Table: Category

Column Data Type Description Constraint


CATEGORY_ID SERIAL UNIQUE FOR CUSTOMER PK
CATEGORY_NAME VARCHAR(255) FULL CATEGORY NAME NOT NULL
STATUS BOOLEAN SHOW PRODUCT AVAILABLE OR NOT NOT NULL

Table: Users

Column Data Type Description Constraint


USER_ID SERIAL UNIQUE FOR CUSTOMER PK
FIRST_NAME INTEGER FIRST NAME USER NOT NULL
LAST_NAME VARCHAR(255) LAST NAME USER NOT NULL
PASSWORK_USER VARCHAR(255) PASSWORD LOGIN NOT NULL
ADDRESS VARCHAR(255) REAL PLACE USER NOT NULL
EMAIL VARCHAR(255) REAL EMAIL ADDRESS NOT NULL
PHONE VARCHAR(255) PHONE NUMBER NOT NULL
ROLE_ID INTEGER ROLE USERID NOT NULL

Table: Role

Column Data Type Description Constraint


ROLE_ID INTEGER ROLE USERID PK
ROLE_NAME VARCHAR PERMISSITON USER NOT NULL

Page 5
SS30 SETEC INSTITUTE

IV. Entity-Relationships Diaram (ERD)

Page 6
SS30 SETEC INSTITUTE

V. User Interface

Page 7
SS30 SETEC INSTITUTE

Page 8
SS30 SETEC INSTITUTE

Page 9
SS30 SETEC INSTITUTE

Page 10

You might also like