Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| estructureid | bigserial | 19 | √ | nextval('tbl_employeestructure_estructureid_seq'::regclass) |
|
|
Primary key |
|||||||
| employeeid | varchar | 500 | null |
|
|
FK: public.tbl_employee.employeeid |
||||||||
| stateid | int4 | 10 | √ | null |
|
|
FK: public.tbl_state.id (or similar) |
|||||||
| branchtype | int4 | 10 | √ | null |
|
|
The type of branch (e.g., Head Office, Regional Office, Site Office). |
|||||||
| branchid | int8 | 19 | √ | null |
|
|
FK: public.tbl_branch.id (or similar) |
|||||||
| categoryid | int8 | 19 | √ | null |
|
|
FK: public.tbl_category.id (or similar) |
|||||||
| subcategoryid | int8 | 19 | √ | null |
|
|
FK: public.tbl_subcategory.id (or similar) |
|||||||
| departmentid | int8 | 19 | √ | null |
|
|
FK: public.tbl_department.id |
|||||||
| designationid | int8 | 19 | √ | null |
|
|
FK: public.tbl_designation.id |
|||||||
| paycaderid | int4 | 10 | √ | null |
|
|
FK: public.tbl_paycader.id (or similar) |
|||||||
| startdate | timestamp | 29,6 | √ | null |
|
|
Java Field: |
|||||||
| erunning | bool | 1 | √ | true |
|
|
Boolean flag indicating if this is the currently active organizational structure for the employee. |
|||||||
| reportingperson | varchar | 50 | √ | null |
|
|
FK: public.tbl_employee.employeeid |
|||||||
| reportingperson1 | varchar | 50 | √ | null |
|
|
FK: public.tbl_employee.employeeid |
|||||||
| subdeptid | int8 | 19 | √ | null |
|
|
FK: public.tbl_subdepartment.id |
|||||||
| entityid | int4 | 10 | √ | null |
|
|
FK: public.tbl_entity.id (or similar) |
|||||||
| sbuid | int4 | 10 | √ | null |
|
|
FK: public.tbl_sbu.id (or similar) |
|||||||
| newdepartmentid | int4 | 10 | √ | null |
|
|
FK: public.tbl_department.id |
|||||||
| newsubdepartmentid | int4 | 10 | √ | null |
|
|
FK: public.tbl_subdepartment.id |
|||||||
| newsubdepartment1id | int4 | 10 | √ | null |
|
|
FK: public.tbl_subdepartment.id |
|||||||
| newsubdepartment2id | int4 | 10 | √ | null |
|
|
FK: public.tbl_subdepartment.id |
|||||||
| newsubdepartment3id | int4 | 10 | √ | null |
|
|
FK: public.tbl_subdepartment.id |
|||||||
| newsubdepartment4id | int4 | 10 | √ | null |
|
|
FK: public.tbl_subdepartment.id |
|||||||
| bendid | int4 | 10 | √ | null |
|
|
FK: public.tbl_bend.id (or similar) |
|||||||
| levelid | int4 | 10 | √ | null |
|
|
FK: public.tbl_level.id (or similar) |
|||||||
| modifiedon | timestamp | 29,6 | √ | null |
|
|
Timestamp of when this specific structural record was last modified. |
|||||||
| modifiedby | varchar | 50 | √ | null |
|
|
||||||||
| updatedreason | varchar | 200 | √ | null |
|
|
Text description detailing the reason for the change that created this new structural record (e.g., “Annual Promotion”, “Departmental Transfer”). |
|||||||
| createddate | timestamp | 29,6 | √ | null |
|
|
||||||||
| createdby | varchar | 200 | √ | null |
|
|
||||||||
| modifieddate | timestamp | 29,6 | √ | null |
|
|
||||||||
| eventlabel | varchar | 200 | √ | null |
|
|
Label/source of the event that triggered the structural change. |
|||||||
| compliancebranchid | int8 | 19 | √ | null |
|
|
FK: public.tbl_branch.id (or similar) |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_employeestructure_pk_tbl_employeestructure | Primary key | Asc | estructureid |
| tbl_employeestructure_idx_employee_tbl_employeestructure | Performance | Asc | employeeid |



