Skip to content

ADB-course/BBT3104-Semester-Project-b6

 
 

Repository files navigation

Review Assignment Due Date

BBT3104: Advanced Database Sytems Semester Project

Key Value
Name of Business Chosen for the Case Study VIVO ENERGY
Industry PETROLEUM PETROLEUM
Group Name B6 B6
Semester Duration 19th August - 25th November 2024

Cause-and-Effect Diagram

image

Enhanced Entity Relationship Diagram (EERD)

image

Database Schema

1.Customer Attribute Datatype Constraints Customer_ID INT PRIMARY KEY Name VARCHAR(255) NOT NULL Address VARCHAR(255)

Phone Number VARCHAR(15)

Email VARCHAR(255

Customer_Type ENUM('Individual', 'Corporate') NOT NULL

2.Retail station Attribute Datatype Constraints Station_ID INT PRIMARY KEY Station_Name VARCHAR(255) NOT NULL Location VARCHAR(255)

3.Product Attribute Datatype Constraints Product_ID INT PRIMARY KEY Product_Name VARCHAR(255) NOT NULL Price DECIMAL(10,2) NOT NULL

4.Order Attribute Datatype Constraint Order_ID INT PRIMARY KEY Customer_ID INT FOREIGN KEY REFERENCES Customer(Customer_ID) ON DELETE CASCADE Station_ID INT FOREIGN KEY REFERENCES Retail_Station(Station_ID) ON DELETE SET NULL Order_Date DATE NOT NULL Expected_Delivery_Date DATE

Actual_Delivery_Date DATE

Order_Status ENUM('Cancelled', 'Pending Payment', 'Pending Delivery', 'Delivered') NOT NULL

5.Order_Product(Associative Entity)

Attribute Data type Constraints Order_Product_ID INT PRIMARY KEY Order_ID INT FOREIGN KEY REFERENCES Order(Order_ID) ON DELETE CASCADE Product_ID INT FOREIGN KEY REFERENCES Product(Product_ID) ON DELETE CASCADE

System Architecture

Proposed Architecture We recommend using an N-Tier Client-Server Architecture for scalability, security, and performance. Below is the architecture: Layers and Responsibilities Client Layer: End-user devices (laptops, desktops, or mobile devices) running web browsers or applications for interacting with the system. Web Server Layer: Hosts the web application, processes user requests, and forwards them to the application server. Application Server Layer: Contains business logic and APIs for interacting with the database. Database Server Layer: Stores, retrieves, and manages the database.

image

Justification of the Proposed Architecture Scalability: The N-tier design supports adding more users or functionality without overhauling the system. For example, new APIs or servers can be integrated seamlessly. Security: The database is isolated from the client layer, minimizing the risk of unauthorized access. Performance: Dividing responsibilities across layers ensures efficient processing. The web server handles UI, the application server manages business logic, and the database server focuses solely on data storage and queries. Flexibility: This architecture allows integration with other systems (e.g., APIs) and supports various client devices. Cost Efficiency: While the initial setup cost is significant, the modularity reduces long-term maintenance and upgrade expenses.

About

20240819-20241125-adb-bbit2-2-classroom-semester-project-BBT3104-SemesterProject created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors