wp_jbusinessdirectory_orders
StaticStores order records and related transaction data.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | int | NO |
| order_id | varchar(145) | YES |
| invoice_number | varchar(145) | YES |
| company_id | int | NO |
| package_id | int | NO |
| initial_amount | decimal(12,2) | YES |
| amount | decimal(12,2) | YES |
| amount_paid | decimal(12,2) | YES |
| created | timestamp | NO |
| paid_at | datetime | YES |
| state | tinyint | YES |
| transaction_id | varchar(145) | YES |
| user_name | varchar(145) | YES |
| service | varchar(145) | YES |
| description | varchar(145) | YES |
| start_date | date | YES |
| end_date | date | YES |
| start_trial_date | date | YES |
| end_trial_date | date | YES |
| trial_initial_amount | decimal(12,2) | YES |
| only_trial | tinyint(1) | YES |
| type | tinyint | NO |
| currency | varchar(10) | YES |
| expiration_email_date | datetime | YES |
| discount_code | varchar(50) | YES |
| discount_amount | decimal(12,2) | YES |
| vat | decimal(12,2) | YES |
| vat_amount | decimal(12,2) | YES |
| observation | varchar(250) | YES |
| trial_amount | decimal(6,2) | YES |
| trial_days | tinyint | YES |
| subscription_id | int | YES |
| user_id | int | YES |
| notify_payment | tinyint | NO |
| expiration_processed | tinyint(1) | NO |
CREATE TABLE Statement
CREATE TABLE `wp_jbusinessdirectory_orders` ( `id` int NOT NULL AUTO_INCREMENT, `order_id` varchar(145) DEFAULT NULL, `invoice_number` varchar(145) DEFAULT NULL, `company_id` int NOT NULL, `package_id` int NOT NULL, `initial_amount` decimal(12,2) DEFAULT NULL, `amount` decimal(12,2) DEFAULT NULL, `amount_paid` decimal(12,2) DEFAULT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `paid_at` datetime DEFAULT NULL, `state` tinyint DEFAULT NULL, `transaction_id` varchar(145) DEFAULT NULL, `user_name` varchar(145) DEFAULT NULL, `service` varchar(145) DEFAULT NULL, `description` varchar(145) DEFAULT NULL, `start_date` date DEFAULT NULL, `end_date` date DEFAULT NULL, `start_trial_date` date DEFAULT NULL, `end_trial_date` date DEFAULT NULL, `trial_initial_amount` decimal(12,2) DEFAULT NULL, `only_trial` tinyint(1) DEFAULT '0', `type` tinyint NOT NULL DEFAULT '0', `currency` varchar(10) DEFAULT NULL, `expiration_email_date` datetime DEFAULT NULL, `discount_code` varchar(50) DEFAULT NULL, `discount_amount` decimal(12,2) DEFAULT '0.00', `vat` decimal(12,2) DEFAULT NULL, `vat_amount` decimal(12,2) DEFAULT NULL, `observation` varchar(250) DEFAULT NULL, `trial_amount` decimal(6,2) DEFAULT NULL, `trial_days` tinyint DEFAULT NULL, `subscription_id` int DEFAULT NULL, `user_id` int DEFAULT NULL, `notify_payment` tinyint NOT NULL DEFAULT '0', `expiration_processed` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `unq_invoice_numner` (`invoice_number`), KEY `idx_company` (`company_id`), KEY `idx_package` (`package_id`), KEY `idx_order` (`order_id`), KEY `idx_state` (`state`), KEY `idx_expiration_email_date` (`expiration_email_date`), KEY `idx_start_date` (`start_date`), KEY `idx_start_trial_date` (`start_trial_date`), KEY `idx_type` (`type`), KEY `idx_subscription` (`subscription_id`), KEY `idx_end_date` (`end_date`), KEY `idx_end_trial_date` (`end_trial_date`), KEY `idx_date` (`start_date`), KEY `idx_user_id` (`user_id`) ) ENGINE
Safe to delete?
If you have uninstalled WP-BusinessDirectory – Business directory plugin for WordPress, 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_jbusinessdirectory_orders`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from WP-BusinessDirectory – Business directory plugin for WordPress