wp_jbusinessdirectory_orders

Static

Stores order records and related transaction data.

Column Definitions

ColumnTypeNullable
🔑idintNO
order_idvarchar(145)YES
invoice_numbervarchar(145)YES
company_idintNO
package_idintNO
initial_amountdecimal(12,2)YES
amountdecimal(12,2)YES
amount_paiddecimal(12,2)YES
createdtimestampNO
paid_atdatetimeYES
statetinyintYES
transaction_idvarchar(145)YES
user_namevarchar(145)YES
servicevarchar(145)YES
descriptionvarchar(145)YES
start_datedateYES
end_datedateYES
start_trial_datedateYES
end_trial_datedateYES
trial_initial_amountdecimal(12,2)YES
only_trialtinyint(1)YES
typetinyintNO
currencyvarchar(10)YES
expiration_email_datedatetimeYES
discount_codevarchar(50)YES
discount_amountdecimal(12,2)YES
vatdecimal(12,2)YES
vat_amountdecimal(12,2)YES
observationvarchar(250)YES
trial_amountdecimal(6,2)YES
trial_daystinyintYES
subscription_idintYES
user_idintYES
notify_paymenttinyintNO
expiration_processedtinyint(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