Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('tbl_mail_event_id_seq'::regclass) |
|
|
Primary key |
|
| event_name | varchar | 100 | null |
|
|
The unique name of the system event that triggers this mail (e.g., “Leave_Request_Submitted,” “Onboarding_Task_Due”). |
||
| event_type | varchar | 30 | null |
|
|
The classification of the event (e.g., Birthday work anniversary , wedding anniversary Informational). |
||
| employee_template_id | int8 | 19 | √ | null |
|
|
FK: Reference to a mail template master table |
|
| employee_template_subject | varchar | 100 | √ | null |
|
|
The static or parameterized subject line for the email sent to the employee. |
|
| staff_template_id | int8 | 19 | √ | null |
|
|
FK: Reference to a mail template master table |
|
| staff_template_subject | varchar | 100 | √ | null |
|
|
The static or parameterized subject line for the email sent to staff/approvers. |
|
| is_employee_include_in_staff_mail | bool | 1 | √ | false |
|
|
Flag indicating if the subject employee should also receive the “staff” version of the email (e.g., for dual confirmation). |
|
| staff_mail_send_in | varchar | 100 | √ | null |
|
|
Defines the context or role in which the staff mail is sent (e.g.,CC BCC). |
|
| template_criteria | text | 2147483647 | √ | null |
|
|
JSON or Text rule defining which employees should receive the mail (e.g., criteria based on department, job role, or specific condition). |
|
| staff_criteria | text | 2147483647 | √ | null |
|
|
JSON or Text rule defining which staff/approvers should receive the mail (e.g., direct manager, second-level manager, specific HR role). |
|
| staff_custom_criteria | text | 2147483647 | √ | null |
|
|
Additional custom or exceptional rules for staff recipient selection, if the standard |
|
| is_active | bool | 1 | √ | null |
|
|
Flag indicating whether this automated mail event is currently enabled in the system. |
|
| createdby | varchar | 500 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
|
| createddate | timestamp | 29,6 | √ | null |
|
|
Timestamp of when the configuration record was created. |
|
| modifiedby | varchar | 500 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
|
| modifieddate | timestamp | 29,6 | √ | null |
|
|
Timestamp of the last modification to the configuration record. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_mail_event_pkey | Primary key | Asc | id |
