Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| paymentid | bigserial | 19 | √ | nextval('tbl_employeepayment_paymentid_seq'::regclass) |
|
|
Primary key |
||||
| payelementid | int4 | 10 | √ | null |
|
|
FK: public.tbl_PayElements.Id (Implied) |
||||
| payelementcode | varchar | 50 | √ | null |
|
|
The short code associated with the |
||||
| employeeid | varchar | 20 | √ | null |
|
|
FK: public.tbl_employee.employeeid |
||||
| payslipmonth | int4 | 10 | √ | null |
|
|
The target payroll month (1-12) for which this payment is intended to be processed. |
||||
| psyear | int4 | 10 | √ | null |
|
|
The target payroll year for which this payment is intended to be processed. |
||||
| amount | numeric | 18,2 | √ | '0'::numeric |
|
|
The monetary amount of the payment/earning to be processed. |
||||
| paymentstatus | bool | 1 | √ | false |
|
|
Boolean flag: Indicates the final payment status (e.g., TRUE=Paid/Processed, FALSE=Pending). |
||||
| readytoprocess | bool | 1 | √ | false |
|
|
Boolean flag: Set to TRUE once the payment is fully approved and ready to be included in the next payroll run. |
||||
| createdatetime | timestamp | 29,6 | √ | null |
|
|
The date and time the payment record was initially created or approved. |
||||
| iscarryforward | bool | 1 | √ | false |
|
|
Boolean flag: Indicates if this payment was carried forward from a previous month’s payroll cycle. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_employeepayment_pk_tbl_employeepayment | Primary key | Asc | paymentid |


