Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewzgheib/hr-database
https://github.com/andrewzgheib/hr-database
navicat pgadmin4 plpgsql postgresql
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewzgheib/hr-database
- Owner: andrewzgheib
- Created: 2024-03-31T16:11:14.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T22:22:05.000Z (6 months ago)
- Last Synced: 2024-10-11T09:41:37.527Z (28 days ago)
- Topics: navicat, pgadmin4, plpgsql, postgresql
- Language: PLpgSQL
- Homepage:
- Size: 506 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HR Database Design
- This is a basic PostgreSQL database schema designed for a Human Resources department to store and manage employee information, insurance options, contracts, payments, and more.
- The schema consists of 16 tables, employing various relational models, domains, functions, etc. to ensure robust data management.## Database Structure
1. `employee`: Contains personal and organizational details of employees.
2. `department`: Manages department information.
3. `employee_department`: Establishes the relationship between employees and their respective departments.
4. `position`: Stores position titles with associated schedules.
5. `employee_position`: Faciliates the assignment of employees to different positions accross various departments.
6. `schedule`: Manages schedule details for different positions.
7. `insurance`: Holds information about available insurance plans.
8. `employee_insurance`: Links employees to their chosen insurance option, including coverage for family members.
9. `contract`: Tracks contract details, including start and end dates, and an encrypted serial number for each contract.
10. `payment`: Stores payments records for employees based on their contracts.
11. `payment_currency`: Holds several payment currencies.
12. `employee_pn`: Stores personal and office contact numbers , including optional extensions.
13. `address`: Records address details for employees accross different cities.
14. `employee_address`: Establishes the relationship between employees and their addresses.
15. `city`: Lists cities within each country.
16. `country`: Contains a comprehensive list of countries.## Key Features
- Employees can be associated with multiple departments simultaneously, holding different positions within each.
- Each employee can have distinct schedules tailored to their various positions.
- An insurance module enabling employees to enroll in one option per year, and optionally including family members in the same or different option.
- A contract system streamlining employee payments.## Usage
Run the [schema-structure](https://github.com/andrewzgheib/HR-Database/blob/main/schema-structure.sql) SQL file that contains all essential tables, attributes, and related components.---
Special thanks to @MichaelaRif for contributing