Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| documentid | bigserial | 19 | √ | nextval('hr_documentmaster_documentid_seq'::regclass) |
|
|
Primary key |
||||||||||
| documentname | varchar | 100 | √ | null |
|
|
The official name or title of the document (e.g., “Employee Handbook V2.1,” “Sexual Harassment Policy”). |
||||||||||
| documentdescription | varchar | 500 | √ | null |
|
|
A brief summary or abstract of the document content. |
||||||||||
| documentdetail | varchar | 50 | √ | null |
|
|
Detailed textual content of the document, if it is stored directly in the DB; otherwise, used for extended remarks. |
||||||||||
| documentsize | varchar | 50 | √ | null |
|
|
The size of the physical file (in bytes, KB, or MB). |
||||||||||
| doccategoryid | int8 | 19 | √ | null |
|
|
FK: Reference to a document category master table |
||||||||||
| documentpath | varchar | 1000 | √ | null |
|
|
The full path or URL to the physical document file on the server or cloud storage. |
||||||||||
| status | bool | 1 | √ | null |
|
|
The current lifecycle status of the document (e.g., Draft, Active, Obsolete, Pending Review). |
||||||||||
| com1 | varchar | 2147483647 | √ | null |
|
|
Custom field 1 (General Purpose) - Reserved for specific, non-standard business data. |
||||||||||
| com2 | varchar | 2147483647 | √ | null |
|
|
Custom field 2 (General Purpose). |
||||||||||
| com3 | varchar | 2147483647 | √ | null |
|
|
Custom field 3 (General Purpose). |
||||||||||
| com4 | varchar | 2147483647 | √ | null |
|
|
Custom field 4 (General Purpose). |
||||||||||
| com5 | varchar | 2147483647 | √ | null |
|
|
Custom field 5 (General Purpose). |
||||||||||
| com6 | varchar | 2147483647 | √ | null |
|
|
Custom field 6 (General Purpose). |
||||||||||
| com7 | varchar | 2147483647 | √ | null |
|
|
Custom field 7 (General Purpose). |
||||||||||
| com8 | varchar | 1500 | √ | null |
|
|
Custom field 8 (General Purpose). |
||||||||||
| com9 | varchar | 1500 | √ | null |
|
|
Custom field 9 (General Purpose). |
||||||||||
| com10 | varchar | 1500 | √ | null |
|
|
Custom field 10 (General Purpose). |
||||||||||
| createdby | varchar | 50 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
||||||||||
| createdon | timestamp | 29,6 | √ | null |
|
|
Legacy timestamp of when the document record was initially created. |
||||||||||
| modifiedby | varchar | 50 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
||||||||||
| modifiedon | timestamp | 29,6 | √ | null |
|
|
Legacy timestamp of the last modification to the document record. |
||||||||||
| branchid | varchar | 1500 | √ | null |
|
|
FK: Reference to a branch master table |
||||||||||
| paycadreid | varchar | 1500 | √ | null |
|
|
FK: Reference to a pay cadre master table |
||||||||||
| subcategoryid | varchar | 1500 | √ | null |
|
|
FK: Reference to a document sub-category master table |
||||||||||
| stateid | varchar | 1500 | √ | null |
|
|
FK: Reference to a state master table |
||||||||||
| designationid | varchar | 1500 | √ | null |
|
|
FK: Reference to a designation master table |
||||||||||
| categoryid | varchar | 1500 | √ | null |
|
|
FK: Reference to a category master table |
||||||||||
| visibletoall | bool | 1 | √ | null |
|
|
Flag indicating whether this document is accessible to all employees, regardless of other organizational unit restrictions. |
||||||||||
| isdeleted | bool | 1 | false |
|
|
Flag indicating if the document record has been logically deleted (soft delete). |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| hr_documentmaster_pk_hr_documentmaster | Primary key | Asc | documentid |


