wp_emr_swap_requests
StaticStores emr swap requests data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| requester_id | BIGINT UNSIGNED | NO |
| requester_shift_id | BIGINT UNSIGNED | NO |
| target_user_id | BIGINT UNSIGNED | YES |
| 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_swap_requests ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, requester_id BIGINT UNSIGNED NOT NULL, requester_shift_id BIGINT UNSIGNED NOT NULL, target_user_id BIGINT UNSIGNED DEFAULT 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_requester (requester_id), 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_swap_requests`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from EmpRoster