wp_emr_assignments
StaticStores emr assignments data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| shift_id | BIGINT UNSIGNED | NO |
| user_id | BIGINT UNSIGNED | NO |
| status | VARCHAR(20) | NO |
| assigned_by | BIGINT UNSIGNED | NO |
| assigned_at | DATETIME | NO |
| reviewed_by | BIGINT UNSIGNED | YES |
| reviewed_at | DATETIME | YES |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS wp_emr_assignments ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, shift_id BIGINT UNSIGNED NOT NULL, user_id BIGINT UNSIGNED NOT NULL, status VARCHAR(20) NOT NULL DEFAULT 'confirmed', assigned_by BIGINT UNSIGNED NOT NULL DEFAULT 0, assigned_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, reviewed_by BIGINT UNSIGNED DEFAULT NULL, reviewed_at DATETIME DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY uq_shift_user (shift_id, user_id), KEY idx_user (user_id), KEY idx_shift (shift_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_assignments`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from EmpRoster