wp_aryabyte_otp_login_codes
StaticA logging table that records activity, events, or audit history.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT(20) | NO |
| phone | VARCHAR(15) | NO |
| code_hash | VARCHAR(64) | NO |
| created_at | DATETIME | NO |
| expires_at | DATETIME | NO |
| is_used | TINYINT(1) | NO |
| attempts | TINYINT(3) | NO |
| ip_address | VARCHAR(45) | NO |
| identifier | VARCHAR(50) | NO |
| type | VARCHAR(20) | NO |
| action | VARCHAR(20) | NO |
| created_at | DATETIME | NO |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS wp_aryabyte_otp_login_codes ( id BIGINT(20) NOT NULL AUTO_INCREMENT, phone VARCHAR(15) NOT NULL, code_hash VARCHAR(64) NOT NULL, created_at DATETIME NOT NULL, expires_at DATETIME NOT NULL, is_used TINYINT(1) NOT NULL DEFAULT 0, attempts TINYINT(3) NOT NULL DEFAULT 0, ip_address VARCHAR(45) NOT NULL DEFAULT '', PRIMARY KEY (id), KEY phone (phone), KEY expires_at (expires_at) ) {$charset_collate};"; // جدول rate limiting $sql_rate = "CREATE TABLE IF NOT EXISTS wp_aryabyte_otp_login_rate_limits ( id BIGINT(20) NOT NULL AUTO_INCREMENT, identifier VARCHAR(50) NOT NULL, type VARCHAR(20) NOT NULL, action VARCHAR(20) NOT NULL, created_at DATETIME NOT NULL, PRIMARY KEY (id), KEY identifier (identifier), KEY created_at (created_at) ) {$charset_collate};"; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta( $sql_codes );Safe to delete?
If you have uninstalled ورود و عضویت پیامکی آریابایت, 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_aryabyte_otp_login_codes`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from ورود و عضویت پیامکی آریابایت