wp_emr_attendance

Static

Stores emr attendance data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idBIGINT UNSIGNEDNO
user_idBIGINT UNSIGNEDNO
shift_idBIGINT UNSIGNEDYES
clock_inDATETIMEYES
clock_outDATETIMEYES
break_minutesSMALLINT UNSIGNEDNO
notesTEXTYES
statusVARCHAR(20)NO
created_atDATETIMENO

CREATE TABLE Statement

CREATE TABLE IF NOT EXISTS wp_emr_attendance ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, user_id BIGINT UNSIGNED NOT NULL, shift_id BIGINT UNSIGNED DEFAULT NULL, clock_in DATETIME DEFAULT NULL, clock_out DATETIME DEFAULT NULL, break_minutes SMALLINT UNSIGNED NOT NULL DEFAULT 0, notes TEXT DEFAULT NULL, status VARCHAR(20) NOT NULL DEFAULT 'active', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY idx_user (user_id), KEY idx_shift (shift_id), KEY idx_clock_in (clock_in) ) $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_attendance`;

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

Other tables from EmpRoster