{"id":18792772,"url":"https://github.com/phenomsg/companymanagementdb","last_synced_at":"2026-05-05T22:41:42.264Z","repository":{"id":173439792,"uuid":"650775806","full_name":"PhenomSG/CompanyManagementDB","owner":"PhenomSG","description":"This system manages employee records, departments, projects, salary details and generates payslips of employees.","archived":false,"fork":false,"pushed_at":"2024-08-13T05:36:45.000Z","size":1496,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T15:29:05.150Z","etag":null,"topics":["dbms","dbms-project","mysql-database","python3","sql-server","tabulate"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhenomSG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-06-07T19:30:46.000Z","updated_at":"2024-08-13T05:36:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"690e51d5-4a00-4be8-9b6e-65bd3bdf0deb","html_url":"https://github.com/PhenomSG/CompanyManagementDB","commit_stats":null,"previous_names":["sahajg009/payroll-management-system","phenomsg/companymanagementdb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhenomSG%2FCompanyManagementDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhenomSG%2FCompanyManagementDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhenomSG%2FCompanyManagementDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhenomSG%2FCompanyManagementDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhenomSG","download_url":"https://codeload.github.com/PhenomSG/CompanyManagementDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718375,"owners_count":19685725,"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","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":["dbms","dbms-project","mysql-database","python3","sql-server","tabulate"],"created_at":"2024-11-07T21:21:42.112Z","updated_at":"2025-12-28T14:30:18.281Z","avatar_url":"https://github.com/PhenomSG.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payroll Management System\n\nA comprehensive payroll management system built with Python, Streamlit, and MySQL. The system manages employee records, departments, projects, and salary details.\n\n## Database Schema\n\n### 1. Employees Table\n- `emp_no`: INT (Primary Key)\n- `first_name`: VARCHAR\n- `last_name`: VARCHAR\n- `job_title`: VARCHAR\n- `basic_salary`: DECIMAL\n- `department_id`: INT (Foreign Key)\n\n### 2. Departments Table\n- `department_id`: INT (Primary Key)\n- `department_name`: VARCHAR\n- `manager_id`: INT (Foreign Key to Employees)\n\n### 3. Projects Table\n- `project_id`: INT (Primary Key)\n- `project_name`: VARCHAR\n- `start_date`: DATE\n- `end_date`: DATE\n- `department_id`: INT (Foreign Key to Departments)\n\n### 4. Employee_Project Table (Many-to-Many Relationship)\n- `emp_no`: INT (Foreign Key to Employees)\n- `project_id`: INT (Foreign Key to Projects)\n- `hours_worked`: DECIMAL\n\n### 5. Salaries Table\n- `emp_no`: INT (Foreign Key to Employees)\n- `salary_date`: DATE\n- `basic_salary`: DECIMAL\n- `da`: DECIMAL\n- `hra`: DECIMAL\n- `gross_salary`: DECIMAL\n- `tax`: DECIMAL\n- `net_salary`: DECIMAL\n\n## Features\n\n### Database Connectivity and Setup\n\n- Establishes connection to the MySQL database.\n- Selects the `CompanyManagementDB` database for operations.\n- Lists available tables (`employees`, `departments`, `projects`, `employee_project`, `salaries`).\n\n### Data Manipulation Functions\n\n- **Insert Data into Tables**\n  - Allows insertion of records into tables such as `employees`, `departments`, `projects`, `employee_project`, and `salaries`.\n  - Automatically calculates DA, HRA, gross salary, tax, and net salary based on predefined formulas for salary insertions.\n\n- **Update Data in Tables**\n  - Provides functionality to update existing records in tables like `employees`, `departments`, `projects`, `employee_project`, and `salaries`.\n  - Allows updating specific columns identified by the user.\n\n- **Delete Data from Tables**\n  - Enables deletion of records from tables such as `employees`, `departments`, `projects`, `employee_project`, and `salaries`.\n  - Prompts for identification using primary keys (`emp_no`, `department_id`, `project_id`, etc.).\n\n### Payslip Generation\n\n- **Generate Payslip**\n  - Fetches and displays payslip details for a specific employee and salary date.\n  - Calculates and displays components like basic salary, DA, HRA, gross salary, tax, and net salary in a formatted table using the `tabulate` library.\n\n### User Interface\n\n- **Streamlit Application**\n  - Provides a user-friendly web interface with options to insert, update, delete data, generate payslips, and view other functionalities.\n  - Ensures intuitive navigation through the system functionalities.\n\n## Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/PhenomSG/Payroll-Management-System.git\n    ```\n\n2. Navigate to the project directory:\n    ```sh\n    cd Payroll-Management-System\n    ```\n\n3. Install the required packages:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n4. Configure the MySQL database connection in the script.\n\n## Usage\n\n1. Run the Streamlit application:\n    ```sh\n    streamlit run streamlit_app.py\n    ```\n\n2. Open your web browser and go to the provided URL to interact with the application.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenomsg%2Fcompanymanagementdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphenomsg%2Fcompanymanagementdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenomsg%2Fcompanymanagementdb/lists"}