wp_emr_availability

Static

Stores emr availability data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
user_idBIGINT UNSIGNEDNO
day_of_weekTINYINT UNSIGNEDNO
start_timeTIMENO
end_timeTIMENO
is_availableTINYINT(1)NO
created_atDATETIMENO

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_emr_availability ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, user_id BIGINT UNSIGNED NOT NULL, day_of_week TINYINT UNSIGNED NOT NULL, start_time TIME NOT NULL, end_time TIME NOT NULL, is_available TINYINT(1) NOT NULL DEFAULT 1, created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_user_day (user_id, day_of_week) ) $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_availability`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.

Other tables from EmpRoster