wp_emr_assignments

Static

Stores emr assignments data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
shift_idBIGINT UNSIGNEDNO
user_idBIGINT UNSIGNEDNO
statusVARCHAR(20)NO
assigned_byBIGINT UNSIGNEDNO
assigned_atDATETIMENO
reviewed_byBIGINT UNSIGNEDYES
reviewed_atDATETIMEYES

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