publicholiday
Table: publicholiday
The publicholiday table stores information about official public holidays.
It is used to manage holiday schedules and track related metadata.
Columns
| Column Name | Data Type | Constraints | Description |
|---|---|---|---|
| publicHolidayId | int(11) | NOT NULL, PRIMARY KEY, AUTO_INCREMENT | Unique identifier for each public holiday |
| createdDate | datetime | DEFAULT NULL | Timestamp when the record was created |
| startDate | date | DEFAULT NULL | Start date of the public holiday |
| holidayReason | varchar(30) | DEFAULT NULL | Reason for the holiday |
| holidayType | varchar(30) | DEFAULT NULL | Type or category of the holiday |
| lastEditedDate | datetime | DEFAULT NULL | Timestamp when the record was last edited |
| createdByUserId | int(11) | DEFAULT NULL | User who created the record |
| editedByUserId | int(11) | DEFAULT NULL | User who last edited the record |
| voided | int(11) | DEFAULT '0' | Flag indicating if the holiday is voided (1) or active (0) |
| endDate | date | DEFAULT NULL | End date of the public holiday |
| locationId | int(11) | DEFAULT NULL | Location associated with the holiday |
Indexes
- PRIMARY - Primary key on
publicHolidayId publicholiday_editedByUserId_fk- Index oneditedByUserIdpublicholiday_createdByUserId_fk- Index oncreatedByUserIdph_locationId_location_locationId_FK- Index onlocationId
Foreign Key Relations
createdByUserId → user.mappedId
editedByUserId → user.mappedId
locationId → location.locationId
---
Usage Notes
- Tracks public holidays for scheduling and reporting purposes.
startDateandendDatedefine the holiday duration.voidedindicates inactive or canceled holidays.- Linked to
locationandusertables for contextual information.