An open API service indexing awesome lists of open source software.

https://github.com/an4pdm/sales-analytics-model

This project aims to model a database to manage sales processes and analyze key aspects of the business. The structure was designed with a focus on data persistence, data quality, and high-performance queries.
https://github.com/an4pdm/sales-analytics-model

Last synced: 4 months ago
JSON representation

This project aims to model a database to manage sales processes and analyze key aspects of the business. The structure was designed with a focus on data persistence, data quality, and high-performance queries.

Awesome Lists containing this project

README

          

# Sales Analytics Model

Sales Analytics Model is a database project that simulates the management of a retail sales environment. It was designed to ensure data persistence, maintain data quality, and support high-performance queries.

The project uses PostgreSQL as the database system and implements PL/pgSQL for procedural operations such as triggers, functions, and stored procedures.

Through this model, it's possible to manage products, clients, employees, and sales orders, while also enabling deeper business analysis through views and automated processes.

## Objective
This project was built for improve business data management. The functionalities included are:

1. [x] Function/Trigger that calculates the total amount spent by each client;
2. [ ] Stored procedures for updating, inserting, and deleting tuples;
3. [ ] Trigger that alerts when stock levels are below the minimum required;
4. [ ] Views with key insights about the sales scenario.

## Conceptual Model
![Conceptual Model](img/sales_conceptual_model.png)

## Logical Model
![Logical Model](img/sales_logic_model.png)