Skip to content

PLSQL-Capstone-Projects-AUCA-2024/Penguin-thursday-farming-coffe-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coffee Cooperative Management System

"Transforming Coffee Cooperatives Through Digital Innovation"

📝 Project Overview

The Coffee Cooperative Management System is a comprehensive database solution designed to streamline the operations of Rwandan coffee farming cooperatives. This system addresses the challenges in organizing and managing data related to farming activities, cooperative members, resource usage, financial transactions, and buyer relationships.

🎯 Problem Statement

Rwandan coffee farming cooperatives face substantial challenges in:

  • Organizing and managing farming data
  • Tracking cooperative member contributions
  • Maintaining accurate farm records
  • Coordinating cooperative management
  • Processing financial transactions
  • Managing buyer relationships

🎁 Features

Phase 2: Business Process Modeling for Coffee Cooperative Management System

1. Project Scope

This project aims to develop a centralized, structured database system designed to address the specific operational needs of Rwandan coffee cooperatives. The system will:

  • Create a comprehensive database to record and manage critical data
  • Track farmers, cooperatives, cooperative managers, farm plots, sales transactions, and buyers
  • Streamline daily operations
  • Enhance data accuracy
  • Support decision-making processes

2. Objectives of the Database

Primary Objectives:

  1. Efficient Tracking of Farmers and Farm Activities
    • Store comprehensive farmer and farm plot information
    • Support clear production activity tracking
    • Enable tailored farmer support based on profiles and locations
  2. Enhanced Financial Transparency
    • Record all coffee sales transactions
    • Provide clear visibility into cash flow
    • Ensure financial oversight for cooperative members and stakeholders
  3. Streamlined Buyer and Market Interaction
    • Maintain buyer relationship records
    • Track market demand and preferences
    • Foster long-term buyer partnerships
  4. Real-Time Reporting and Data-Driven Decision-Making
    • Generate real-time reports
    • Empower cooperative leaders with actionable insights
    • Improve productivity, coffee quality, and profitability

3. Key Entities

Farmers

  • Role: Primary coffee producers
  • Data Tracked:
    • Farmer_ID
    • Farmer_Name
    • District
    • Sector
    • Plot_Name
    • Cooperative_Name

Cooperatives

  • Role: Organizational structure managing farmer groups
  • Data Tracked:
    • Cooperative_ID
    • Cooperative_Name
    • District
    • Sector
    • Number_of_Members
    • Manager_ID

Cooperative Managers

  • Role: Oversee day-to-day cooperative activities
  • Data Tracked:
    • Manager_ID
    • Manager_Name
    • Cooperative_Name
    • Plot_Name
    • Plot_ID

Farm Records

  • Role: Document specific farm plot details
  • Data Tracked:
    • Plot_ID
    • Plot_Name
    • District
    • Sector

Sales Records

  • Role: Track coffee transactions
  • Data Tracked:
    • Transaction_ID
    • Farmer_ID
    • Farmer_Name
    • Plot_ID
    • Plot_Name
    • Cooperative_ID
    • Cooperative_Name
    • Kilograms_Sold
    • Sales_FRW

Buyers Records

  • Role: Maintain information about coffee purchasers
  • Data Tracked:
    • Buyer_ID
    • Business_Name
    • Owner_Name
    • Date_Purchased
    • Quantity_Purchased_KG
    • Amount_Spent_FRW

4. Project Benefits

  • Centralized data management
  • Improved operational efficiency
  • Enhanced financial transparency
  • Better resource allocation
  • Real-time reporting capabilities

5.BPMN DIAGRAM

Screenshot 2024-12-05 093431

6.BPMN Diagram Explanation

Our business process model is designed to comprehensively manage and integrate critical information within a coffee cooperative ecosystem. The model captures the intricate relationships between key entities to facilitate efficient operations. The business model is structured to manage and integrate critical information within a coffee cooperative. Key entities include Farmers, who provide production data; Cooperatives, which organize and manage groups of farmers; and Cooperative Managers, who oversee daily activities and resource distribution within each cooperative. Farm Records store details about specific farm plots, while Sales Records document all coffee sales transactions, linking each sale to the relevant farmer, plot, and cooperative. Finally, Buyers Records track information about market clients purchasing coffee, helping to maintain buyer relationships and support sales strategies. This model incorporates primary and foreign keys to enforce data integrity and ensure accurate relationships across entities, allowing the cooperative to track production, sales, and buyer interactions effectively. Through this centralized data structure, cooperatives can make data-driven decisions, maintain financial transparency, and efficiently allocate resources to improve overall operations.

7.These diagrams show:

  1. Class Diagram: ○ All major classes with attributes and methods ○ Relationships between classes ○ Multiplicity of relationships Screenshot 2024-11-14 124259

8.Activity Diagram:

○ Complete workflow from data recording to strategy planning ○ Decision points and alternative flows ○ Important notes for key activities Screenshot 2024-11-14 124316

9.Sequence Diagram:

○ Temporal flow of interactions between system components ○ Message exchange between different actors ○ Activity timing and dependencies Screenshot 2024-11-14 124333

The diagrams together provide a comprehensive view of:

● System structure (Class Diagram) ● Process flow (Activity Diagram) ● Component interactions (Sequence Diagram)

10.LOGIC MODEL DESIGN

image

11. Creating Pluggable Database

Create the user CREATE USER sun_coffee IDENTIFIED BY coffee@localhost:1521/XEPDB1; -- Grant necessary privileges GRANT CREATE SESSION TO sun_coffee; GRANT CREATE TABLE TO sun_coffee; GRANT CREATE VIEW TO sun_coffee; GRANT CREATE PROCEDURE TO sun_coffee; GRANT CREATE SEQUENCE TO sun_coffee; GRANT UNLIMITED TABLESPACE TO sun_coffee; -- Connect as the new user CONNECT sun_coffee/coffee

Create Tables

CREATE TABLE Farmers (
Farmer_ID INT PRIMARY KEY,
Farmer_Name VARCHAR(100),
District VARCHAR(50),
Cooperative_ID INT,
CONSTRAINT fk_Cooperative FOREIGN KEY (Cooperative_ID) REFERENCES Cooperatives(Cooperative_ID)
);
WhatsApp Image 2024-11-26 at 20 02 46_a142c551 CREATE TABLE Cooperatives (
Cooperative_ID INT PRIMARY KEY,
Cooperative_Name VARCHAR(100),
Location VARCHAR(100),
Number_of_Members INT,
Manager_ID INT,
CONSTRAINT fk_Manager FOREIGN KEY (Manager_ID) REFERENCES Managers(Manager_ID)
);
WhatsApp Image 2024-11-26 at 20 02 43_60e14712 CREATE TABLE Managers (
Manager_ID INT PRIMARY KEY,
Manager_Name VARCHAR(100),
Cooperative_ID INT,
CONSTRAINT fk_Cooperative_Manager FOREIGN KEY (Cooperative_ID) REFERENCES Cooperatives(Cooperative_ID)
);
WhatsApp Image 2024-11-26 at 20 02 46_9842355c -- Creating the SalesRecords table
CREATE TABLE SalesRecords (
Transaction_ID INT PRIMARY KEY,
Farmer_ID INT,
Plot_ID INT,
Cooperative_ID INT,
Quantity_Sold_KG DECIMAL(10, 2),
Sales_Amount_RWF DECIMAL(10, 2),
CONSTRAINT fk_Farmer_Sales FOREIGN KEY (Farmer_ID) REFERENCES Farmers(Farmer_ID),
CONSTRAINT fk_Plot FOREIGN KEY (Plot_ID) REFERENCES FarmRecords(Plot_ID),
CONSTRAINT fk_Cooperative_Sales FOREIGN KEY (Cooperative_ID) REFERENCES Cooperatives(Cooperative_ID)
);
-- Creating the Buyers table
CREATE TABLE Buyers (
Buyer_ID INT PRIMARY KEY,
Buyer_Name VARCHAR(100),
Business_Detail VARCHAR(100),
Purchase_Date DATE,
WhatsApp Image 2024-11-26 at 20 02 43_54cf743c

FILLING THE TABLES

WhatsApp Image 2024-11-26 at 20 02 46_9a81670b

lEFT JOIN

WhatsApp Image 2024-11-26 at 20 02 46_4fe3435e

INNER JOIN

Screenshot 2024-11-21 164003

LEFT OUTER JOIN

Screenshot 2024-11-21 164150

RIGHT OUTER JOIN

Screenshot 2024-11-21 164243

FULL OUTER JOIN

Screenshot 2024-11-21 164446

ENTERPRISE ORACLE MANAGER

WhatsApp Image 2024-11-26 at 20 02 45_244b1662 ⌨️ with ❤️ by Penguin group Penguin Group 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8