wp_emr_leave

Static

Stores emr leave data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
user_idBIGINT UNSIGNEDNO
leave_typeVARCHAR(20)NO
start_dateDATENO
end_dateDATENO
reasonTEXTYES
statusVARCHAR(20)NO
reviewed_byBIGINT UNSIGNEDYES
reviewed_atDATETIMEYES
created_atDATETIMENO

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