Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('tbl_leavebalancetransactions_id_seq'::regclass) |
|
|
Primary key |
||||
| leavecodeid | int8 | 19 | √ | null |
|
|
FK: public.tbl_leavecodemaster.leavecodeid |
||||
| entityid | int8 | 19 | √ | null |
|
|
Reference to the source entity that triggered this transaction |
||||
| leavecode | varchar | 100 | √ | null |
|
|
Leave type name for reporting and display |
||||
| employeeid | varchar | 500 | √ | null |
|
|
FK: public.tbl_employee.employeeid |
||||
| transactiontype | varchar | 500 | √ | null |
|
|
Category of transaction indicating the business operation |
||||
| credit | numeric | 0 | √ | null |
|
|
Amount added to leave balance (positive movement) |
||||
| debit | numeric | 0 | √ | null |
|
|
Amount deducted from leave balance (negative movement) |
||||
| remarks | varchar | 2000 | √ | null |
|
|
Business context and reason for the transaction |
||||
| month | int8 | 19 | √ | null |
|
|
Calendar month for transaction period context |
||||
| year | int8 | 19 | √ | null |
|
|
Calendar year for transaction period context |
||||
| status | varchar | 100 | √ | null |
|
|
Current lifecycle status of the transaction |
||||
| createdby | varchar | 50 | √ | null |
|
|
|||||
| createddate | timestamp | 29,6 | √ | null |
|
|
|||||
| modifiedby | varchar | 50 | √ | null |
|
|
|||||
| modifieddate | timestamp | 29,6 | √ | null |
|
|
|||||
| before_balance | numeric | 0 | √ | null |
|
|
Leave balance BEFORE this transaction was applied |
||||
| after_balance | numeric | 0 | √ | null |
|
|
Leave balance AFTER this transaction was applied |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pk_tbl_leavebalancetransactions_id | Primary key | Asc | id |



