Database Management System

Inventory & Orders DBMS with RBAC, audit logs, low-stock alerts, and revenue reports.

Project Overview

This project implements a robust database management system for handling suppliers, products, customers, orders, and stock movements. It provides role-based access control (RBAC), audit logging for sensitive operations, and pre-built views for low-stock alerts and revenue tracking.

Database Schema

The schema is designed in PostgreSQL with referential integrity and validation checks. Below is a simplified ER diagram:

Entity-Relationship diagram of the DBMS

Key entities include Products, Orders, and Stock Movements to ensure traceability of inventory changes.

Implementation Highlights

Dashboards & Reports

Below are examples of analytics generated directly from the database:

Low Stock Report screenshot Monthly Revenue Analysis screenshot

Results & Business Value

How to Run

  1. Create database: createdb arc_dbms
  2. Apply schema: psql arc_dbms -f 01_scheman.sql
  3. Seed data: psql arc_dbms -f 02_seed.sql
  4. Optional queries: psql arc_dbms -f 03_queries.sql
  5. Load CSVs (optional ETL):
    python load_csv.py --db postgresql://user:pass@localhost/arc_dbms