Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| erelationid | bigserial | 19 | √ | nextval('tbl_employeerelation_erelationid_seq'::regclass) |
|
|
Primary key |
||||
| employeeid | varchar | 20 | √ | null |
|
|
FK: public.tbl_employee.employeeid |
||||
| ertype | varchar | 40 | √ | null |
|
|
The type of relationship to the employee (e.g., Spouse, Child, Parent, Sibling, Emergency Contact). |
||||
| ername | varchar | 60 | √ | null |
|
|
The full name of the related person. |
||||
| eroccupation | varchar | 100 | √ | null |
|
|
The occupation of the related person. |
||||
| erbirthdate | timestamp | 29,6 | √ | null |
|
|
The birth date of the related person. |
||||
| erdiscription | varchar | 100 | √ | null |
|
|
Additional notes or description regarding the related person or their status (e.g., “Dependent for health insurance”). |
||||
| ermobileno | varchar | 15 | √ | null |
|
|
The primary mobile contact number of the related person. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_employeerelation_pk_tbl_employeerelation | Primary key | Asc | erelationid |


