{"id":18577229,"url":"https://github.com/deverebor/postgresql-univercity-database-project","last_synced_at":"2026-04-19T04:34:02.640Z","repository":{"id":103725545,"uuid":"546987732","full_name":"deverebor/postgresql-univercity-database-project","owner":"deverebor","description":"Project made as part of the Systems Design course. This repository does not have real data, they are all fictitious","archived":false,"fork":false,"pushed_at":"2022-11-07T00:14:44.000Z","size":2067,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-16T01:33:45.990Z","etag":null,"topics":["covid19-data","database","postgresql","python-script","university-project"],"latest_commit_sha":null,"homepage":"","language":"Python","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/deverebor.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}},"created_at":"2022-10-07T01:04:16.000Z","updated_at":"2023-03-07T02:26:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e4806dc-3079-4614-8b69-cbfb60830a97","html_url":"https://github.com/deverebor/postgresql-univercity-database-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deverebor/postgresql-univercity-database-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Fpostgresql-univercity-database-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Fpostgresql-univercity-database-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Fpostgresql-univercity-database-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Fpostgresql-univercity-database-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deverebor","download_url":"https://codeload.github.com/deverebor/postgresql-univercity-database-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deverebor%2Fpostgresql-univercity-database-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31995085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["covid19-data","database","postgresql","python-script","university-project"],"created_at":"2024-11-06T23:28:25.907Z","updated_at":"2026-04-19T04:34:02.614Z","avatar_url":"https://github.com/deverebor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The post-pandemic and the work model of IT professionals\n\n**THIS DB HAS NO TRUE DATA, THEY ARE ONLY FICTIONAL FOR STUDY.**\n\n![as](https://c.tenor.com/UOlZB9S6Yh8AAAAd/civid19-coronavirus.gif)\n\nModeling made in [Excalidraw](https://excalidraw.com/)\n`modeling available` [here](./.github/img/excalidraw-of-project.png).\n\n\u003e Database created and developed using PostgreSQL, PGAdmin and Docker.\n\n## 📦 Dependencies to run the project\n\n- `Docker version 20.10 or better`\n\n## 🎲 Running the project\n\n```zsh\n# Clone this repository\ngit clone git@github.com:deverebor/postgresql-univercity-database-project.git\n```\n\n```zsh\n# Access the project folder in the / cmd terminal\ncd postgresql-univercity-database-project\n```\n\n```zsh\n# Please have docker installed on your machine\ndocker compose up\n```\n\n```zsh\n# access the pgadmin on https://localhost:5050\n```\n\n## 🛠️ How to populate the database\n\nMake sure you are running the project and have the pgadmin open.\n\n```zsh\n# Access the pgadmin on https://localhost:5050\n```\n\n```zsh\n# Create a new db using the script dump.sql\n# And then copy and past the populate sql script in utils folder\n```\n\n## 📜 About project\n\nThe theme given to our team was the model of work in the post pandemic\nof covid. As a choice of database, we had PostgreSQL + pgAdmin 4. A\ndocker image was created to generate the database and its\ndependencies, aiming at fairness in the environment among all the\nteam.\n\n## 🪄 Storage Procedure and Views\n\nIn addition, Storage Procedures and Views were created to assist in\nthe search for data in the database.\n\n- Storage Procedures:\n  - Respondents who think about changing their work model.\n  - Respondents working on more than one model.\n- Views:\n  - Views to map the most searched countries.\n  - Views to map work time x experience.\n\n---\n\n## 🚀 System project\n\nThe project was created with the aim of showing the impact of the\npandemic on the life of the IT professional.\n\nTo develop this project it was necessary to divide it into 4 parts.\n\n- Which tool to use?\n- What type of bank to use (relational or not)?\n- How to be sure that all people can have the same work environment?\n- How to generate graphs of this data?\n\nAnd for each of these questions an answer was found.\n\n### 👨🏾‍🔬 Answering these doubts\n\n\u003e Which tool to use?\n\nThe tool we decided to work with was PostgreSQL.\n\nToday pgSQL is one of the most used databases in the world. An open\nsource tool that takes with it several collaborators who are daily\nlooking to improve the software.\n\n\u003e What type of bank to use (relational or not)?\n\nSo we decided to go to the relational database. That way we would be\nable to have more control over our tables. Since in a non-relational\ndatabase (Mongo for example) collections are used.\n\n\u003e How to be sure that all people can have the same work environment?\n\nTo solve this problem we decided to use Docker. With it we were able\nto create an image that would have all the dependencies necessary for\nthe project to run.\n\nThis way we could be sure that everyone would have the same\nenvironment.\n\n\u003e How to generate graphs of this data?\n\nThis step was the most difficult. We had to find a way to generate\ngraphs from the data in the database. And we found a way to do it\nusing pgAdmin 4.\n\npgAdmin 4 is a tool that allows you to manage PostgreSQL databases. It\nis a graphical interface that allows you to create, edit and delete\ntables, views, procedures, etc. This tool has an function that allows\nyou to generate graphs from the data in the database.\n\nBut we had find other way to generate graphs. So we decided to use\nPython. With it we were able to generate graphs from the data in the\ndatabase.\n\n### 🔨 Turning the idea into reality\n\nTo turn the idea into reality we had to follow some steps. The first\nstep was create the base project with Excalidraw, this way we could\nhave a better visualization of the project and see where we would have\nto make changes.\n\n![banco](./.github/img/excalidraw-of-project.png)\n\nAfter that the second step was to create the database. To do this we\nused the pgAdmin 4 tool. With it we were able to create the database\nand its tables. We also created the procedures and views.\n\n\u003e 📊 EDR (Entity Relationship Diagram) about the database\n\n![banco](./.github/img/erd-database-diagram.png)\n\nThe third step was to create the docker image. With it we were able to\ncreate the database and its dependencies. This way we could be sure\nthat everyone would have the same environment and would not have any\nproblems when running the project.\n\nThe fourth step was to create the graphs. With pgAdmin 4 we were able\nto generate graphs from the data in the database. But we also had to\ncreate other graphs. So we decided to use Python. With it we were able\nto generate graphs from the data in the database.\n\n## 📌 Useful's links\n\n- Presentation pptx\n  [here](assets/presentation/ANHANGUERA_SYSTEM_PROJECT.pptx)\n- [Brasil.io](https://brasil.io/dataset/covid19/caso/) use as base to\n  create relationships and structure.\n\n## 👨🏾‍🦱 The team\n\n- [Lucas Souza](https://www.linkedin.com/in/lucas-souza-dev/).\n- [Bruno Lucciola](https://www.linkedin.com/in/brunolucciola/).\n- [Davi Miranda](https://www.linkedin.com/in/davi-miranda/).\n- [Gabriel Melo](https://github.com/ArkGM).\n\n---\n\nDevelop with 💜 by - Lucas Souza(@deverebor)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeverebor%2Fpostgresql-univercity-database-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeverebor%2Fpostgresql-univercity-database-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeverebor%2Fpostgresql-univercity-database-project/lists"}