wp_emr_leave
StaticStores emr leave data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| user_id | BIGINT UNSIGNED | NO |
| leave_type | VARCHAR(20) | NO |
| start_date | DATE | NO |
| end_date | DATE | NO |
| reason | TEXT | YES |
| status | VARCHAR(20) | NO |
| reviewed_by | BIGINT UNSIGNED | YES |
| reviewed_at | DATETIME | YES |
| created_at | DATETIME | NO |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS wp_emr_leave ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, user_id BIGINT UNSIGNED NOT NULL, leave_type VARCHAR(20) NOT NULL DEFAULT 'annual', start_date DATE NOT NULL, end_date DATE NOT NULL, reason TEXT DEFAULT NULL, status VARCHAR(20) NOT NULL DEFAULT 'pending', reviewed_by BIGINT UNSIGNED DEFAULT NULL, reviewed_at DATETIME DEFAULT NULL, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_user (user_id), KEY idx_dates (start_date, end_date), KEY idx_status (status) ) $c;" );
Safe to delete?
If you have uninstalled EmpRoster, this table is generally safe to remove. However, always back up your database first.
Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.
How to remove this table
DROP TABLE IF EXISTS `wp_emr_leave`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from EmpRoster