wp_emr_attendance
StaticStores emr attendance data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| user_id | BIGINT UNSIGNED | NO |
| shift_id | BIGINT UNSIGNED | YES |
| clock_in | DATETIME | YES |
| clock_out | DATETIME | YES |
| break_minutes | SMALLINT UNSIGNED | NO |
| notes | TEXT | YES |
| status | VARCHAR(20) | NO |
| created_at | DATETIME | NO |
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