wp_bmw_users
StaticStores bmw users data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | BIGINT UNSIGNED | NO |
| user_id | BIGINT | NO |
| user_key | VARCHAR( 15 ) | NO |
| parent_key | VARCHAR( 15 ) | NO |
| sponsor_key | VARCHAR( 15 ) | NO |
| leg | ENUM( '1', '0' ) | NO |
| payment_status | ENUM('0','1','2') | NO |
| qualification_point | INT(11) | NO |
| left_point | float | NO |
| right_point | float | NO |
| own_point | float | NO |
| created_at | datetime | NO |
| 🔑paid_at | datetime | NO |
| user_key | VARCHAR( 15 ) | NO |
| parent_key | VARCHAR( 15 ) | NO |
| sponsor_key | VARCHAR( 15 ) | NO |
| 🔑comm_status | int( 11 ) | NO |
| user_key | VARCHAR( 15 ) | NO |
| parent_key | VARCHAR( 15 ) | NO |
| sponsor_key | VARCHAR( 15 ) | NO |
| 🔑comm_status | int( 11 ) | NO |
| user_key | VARCHAR( 15 ) | NO |
| payout_id | INT(15) | NO |
| date | date | NO |
| status | enum('0','1') | NO |
| commission_amount | double(15,3) | NO |
| commission_points | double(10,3) | NO |
| 🔑childs | longtext | NO |
| userid | BIGINT | NO |
| date | date | NO |
| units | int(25) | NO |
| 🔑commission_amount | double(10,2) | NO |
| 🔑date | date | NO |
| order_id | int(11) | NO |
| user_id | int(11) | YES |
| total_amount | int(11) | NO |
| total_point | int(11) | NO |
| status | int(11) | NO |
CREATE TABLE Statement
CREATE TABLE IF NOT EXISTS wp_bmw_users ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_id BIGINT NOT NULL, user_key VARCHAR( 15 ) NOT NULL, parent_key VARCHAR( 15 ) NOT NULL, sponsor_key VARCHAR( 15 ) NOT NULL, leg ENUM( '1', '0' ) NOT NULL, payment_status ENUM('0','1','2') NOT NULL, qualification_point INT(11) NOT NULL, left_point float NOT NULL, right_point float NOT NULL, own_point float NOT NULL, created_at datetime NOT NULL, paid_at datetime NOT NULL ) $collate;"; $tables[] = "CREATE TABLE IF NOT EXISTS wp_bmw_leftleg( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_key VARCHAR( 15 ) NOT NULL, parent_key VARCHAR( 15 ) NOT NULL, sponsor_key VARCHAR( 15 ) NOT NULL, comm_status int( 11 ) NOT NULL DEFAULT '0' ) $collate;"; $tables[] = "CREATE TABLE IF NOT EXISTS wp_bmw_rightleg( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_key VARCHAR( 15 ) NOT NULL, parent_key VARCHAR( 15 ) NOT NULL, sponsor_key VARCHAR( 15 ) NOT NULL, comm_status int( 11 ) NOT NULL DEFAULT '0' ) $collate;"; $tables[] = "CREATE TABLE IF NOT EXISTS wp_bmw_point_transaction( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, user_key VARCHAR( 15 ) NOT NULL, payout_id INT(15) NOT NULL, date date NOT NULL, status enum('0','1') NOT NULL, commission_amount double(15,3) NOT NULL DEFAULT '0', commission_points double(10,3) NOT NULL DEFAULT '0', childs longtext NOT NULL ) $collate;"; $tables[] = "CREATE TABLE IF NOT EXISTS wp_bmw_payout( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, userid BIGINT NOT NULL, date date NOT NULL, units int(25) NOT NULL, commission_amount double(10,2) DEFAULT '0' ) $collate;"; $tables[] = "CREATE TABLE IF NOT EXISTS wp_bmw_payout_master( id int(10) unsigned NOT NULL auto_increment PRIMARY KEY, date date NOT NULL ) $collate;"; $tables[] = "CREATE TABLE IF NOT EXISTS wp_bmw_pv_detail( id int(11) unsigned NOT NULL auto_increment PRIMARY KEY, order_id int(11) NOT NULL UNIQUE KEY, user_id int(11) NULL, total_amount int(11) NOT NULL, total_point int(11) NOT NULL, status int(11) NOT NULL DEFAULT '0' ) $collate;"; return $tables; } /*================================Create Pages=======================================*/ private static function create_pages() { global $wpdb; $bmwpages = array( 'my-networks-page' => array( 'name' => 'my-networks-page', 'title' => __('My Networks', 'binary-mlm-for-woocommerce'), 'tag' => '[bmw_network]', 'option' => 'my_networks_url' ), 'my-downlines' => array( 'name' => 'my-downlines', 'title' => __('My Downlines', 'binary-mlm-for-woocommerce'), 'tag' => '[bmw_downlines]', 'option' => 'my_downlines_url' ), 'registration-page' => array( 'name' => 'registration-page', 'title' => __('Registration', 'binary-mlm-for-woocommerce'), 'tag' => '[bmw_registration]', 'option' => 'registration_url' ), 'join-networks-page' => array( 'name' => 'join-networks-page', 'title' => __('Join Network', 'binary-mlm-for-woocommerce'), 'tag' => '[bmw_join_network]', 'option' => 'join_networks_url' ) );Safe to delete?
If you have uninstalled Binary MLM For WooCommerce, 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_bmw_users`;
Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.
Other tables from Binary MLM For WooCommerce