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.
- Host: GitHub
- URL: https://github.com/an4pdm/sales-analytics-model
- Owner: An4PDM
- Created: 2025-04-12T13:00:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-10T18:19:41.000Z (about 1 year ago)
- Last Synced: 2025-06-08T14:52:44.467Z (12 months ago)
- Language: PLpgSQL
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

## Logical Model
