wp_erm_coupons
StaticStores erm coupons data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | INT | YES |
| name | VARCHAR(50) | NO |
| code | VARCHAR(50) | NO |
| discount_type | ENUM('percentage', 'fixed') | NO |
| discount_value | DECIMAL(10,2) | NO |
| added_date | DATE | NO |
| expiration_date | DATE | NO |
| status | VARCHAR(50) | NO |
| created_at | DATETIME | YES |
| updated_at | TIMESTAMP | YES |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS `wp_erm_coupons` ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50) NOT NULL, code VARCHAR(50) UNIQUE NOT NULL, discount_type ENUM('percentage', 'fixed') NOT NULL, discount_value DECIMAL(10,2) NOT NULL, added_date DATE NOT NULL, expiration_date DATE NOT NULL, status VARCHAR(50) NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) $charset_collate;"; dbDelta($sql);Safe to delete?
If you have uninstalled Easy Restaurant Manager, 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_erm_coupons`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from Easy Restaurant Manager