{"id":27872982,"url":"https://github.com/an4pdm/sales-analytics-model","last_synced_at":"2026-01-24T15:32:29.765Z","repository":{"id":287561735,"uuid":"965117660","full_name":"An4PDM/sales-analytics-model","owner":"An4PDM","description":"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.","archived":false,"fork":false,"pushed_at":"2025-05-10T18:19:41.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T14:52:44.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/An4PDM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-12T13:00:13.000Z","updated_at":"2025-05-10T18:19:44.000Z","dependencies_parsed_at":"2025-05-05T01:02:45.174Z","dependency_job_id":null,"html_url":"https://github.com/An4PDM/sales-analytics-model","commit_stats":null,"previous_names":["an4pdm/sales-analytics-model"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/An4PDM/sales-analytics-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4PDM%2Fsales-analytics-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4PDM%2Fsales-analytics-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4PDM%2Fsales-analytics-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4PDM%2Fsales-analytics-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/An4PDM","download_url":"https://codeload.github.com/An4PDM/sales-analytics-model/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An4PDM%2Fsales-analytics-model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-05T01:02:29.426Z","updated_at":"2026-01-24T15:32:29.727Z","avatar_url":"https://github.com/An4PDM.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sales Analytics Model\n\nSales 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.\n\nThe project uses PostgreSQL as the database system and implements PL/pgSQL for procedural operations such as triggers, functions, and stored procedures.\n\nThrough this model, it's possible to manage products, clients, employees, and sales orders, while also enabling deeper business analysis through views and automated processes.\n\n## Objective\nThis project was built for improve business data management. The functionalities included are:\n\n1. [x] Function/Trigger that calculates the total amount spent by each client;\n2. [ ] Stored procedures for updating, inserting, and deleting tuples;\n3. [ ] Trigger that alerts when stock levels are below the minimum required;\n4. [ ] Views with key insights about the sales scenario.\n\n## Conceptual Model\n![Conceptual Model](img/sales_conceptual_model.png)\n\n## Logical Model\n![Logical Model](img/sales_logic_model.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan4pdm%2Fsales-analytics-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fan4pdm%2Fsales-analytics-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan4pdm%2Fsales-analytics-model/lists"}