{"id":32789462,"url":"https://github.com/panoschron97/company_project_pl_pg_sql","last_synced_at":"2025-11-05T10:02:05.398Z","repository":{"id":280140346,"uuid":"941103179","full_name":"panoschron97/Company_Project_PL_pg_SQL","owner":"panoschron97","description":"A company management system with PL/pgSQL.","archived":false,"fork":false,"pushed_at":"2025-10-22T17:49:30.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T18:25:23.753Z","etag":null,"topics":["pgadmin4","plpgsql","postgresql","sql"],"latest_commit_sha":null,"homepage":"","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/panoschron97.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":"2025-03-01T13:51:30.000Z","updated_at":"2025-10-22T17:49:33.000Z","dependencies_parsed_at":"2025-03-01T14:46:31.759Z","dependency_job_id":null,"html_url":"https://github.com/panoschron97/Company_Project_PL_pg_SQL","commit_stats":null,"previous_names":["panoschron97/company_project_pl_pg_sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/panoschron97/Company_Project_PL_pg_SQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoschron97%2FCompany_Project_PL_pg_SQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoschron97%2FCompany_Project_PL_pg_SQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoschron97%2FCompany_Project_PL_pg_SQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoschron97%2FCompany_Project_PL_pg_SQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panoschron97","download_url":"https://codeload.github.com/panoschron97/Company_Project_PL_pg_SQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoschron97%2FCompany_Project_PL_pg_SQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282799915,"owners_count":26729199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-05T02:00:05.946Z","response_time":58,"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":["pgadmin4","plpgsql","postgresql","sql"],"created_at":"2025-11-05T10:02:01.372Z","updated_at":"2025-11-05T10:02:05.393Z","avatar_url":"https://github.com/panoschron97.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Company project PL/pgSQL\n\nThis repository contains PL/pgSQL code for a company project. It provides a structured database schema and sample data for managing companies, locations, departments, projects and employees along with logging and access control mechanisms.\n\n## Features\n\n-   Database schema creation for `Companies`, `Locations`, `Departments`, `Projects` and `Employees`.\n-   Logging tables and triggers to track data manipulation statements.\n-   Functions and procedures for data retrieval and manipulation.\n-   User roles and access control using views and grants.\n-   Sample data insertion for demonstration purposes.\n\n## Table of Contents\n\n-   [Installation](#installation)\n-   [Usage](#usage)\n-   [Dependencies](#dependencies)\n  \n## Installation\n\nTo set up the project, follow these steps:\n\n1.  Clone the repository:\n\n    ```bash\n    git clone https://github.com/panoschron97/Company_Project_PL_pg_SQL.git\n    cd Company_Project_PL_pg_SQL\n    ```\n\n2.  Install PostgreSQL:\n\n    Ensure you have PostgreSQL installed and configured on your system.\n\n3.  Create the database and users:\n\n    Run the SQL script `Company_Project_PL_pg_SQL.sql` in a PostgreSQL environment to create the database, users and tables.\n\n    ```bash\n    psql -U postgres -f Company_Project_PL_pg_SQL.sql\n    ```\n\n## Usage\n\nAfter installation connect to the `Company_Project_PL_pg_SQL` database with the appropriate user credentials to execute queries and manage the data.\n\nExample queries:\n\n```sql\n-- Select all companies\nSELECT * FROM Companies;\n\n-- Select all employees\nSELECT * FROM Employees;\n\n-- Call a procedure to increase salaries\nCALL IncreaseSalaries(100.00);\n```\n\n## Dependencies\n\n-   **PostgreSQL:** A powerful open-source relational database system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanoschron97%2Fcompany_project_pl_pg_sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanoschron97%2Fcompany_project_pl_pg_sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanoschron97%2Fcompany_project_pl_pg_sql/lists"}