wp_fbs_stockmind_daily_sales

Static

Stores fbs stockmind daily sales data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idbigint(20) unsignedNO
product_idbigint(20) unsignedNO
datedateNO
units_soldint(11)NO
refund_quantityint(11)NO
revenuedecimal(19,4)NO
updated_atdatetimeNO
product_idbigint(20) unsignedNO
event_typevarchar(50)NO
quantity_changeint(11)NO
stock_afterint(11)NO
reference_idbigint(20) unsignedYES
created_atdatetimeNO
product_idbigint(20) unsignedNO
datedateNO
stock_levelint(11)NO
stock_valuedecimal(19,4)NO
product_idbigint(20) unsignedNO
forecast_datedateNO
expected_daily_demanddecimal(10,4)NO
days_until_runoutdecimal(10,2)YES
confidence_scoredecimal(4,2)NO
risk_levelvarchar(20)NO
calculated_atdatetimeNO

CREATE TABLE Statement

CREATE TABLE wp_fbs_stockmind_daily_sales ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, product_id bigint(20) unsigned NOT NULL, date date NOT NULL, units_sold int(11) NOT NULL DEFAULT 0, refund_quantity int(11) NOT NULL DEFAULT 0, revenue decimal(19,4) NOT NULL DEFAULT 0.0000, updated_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY product_date (product_id, date), KEY date (date) ) $collate;", "CREATE TABLE wp_fbs_stockmind_inventory_events ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, product_id bigint(20) unsigned NOT NULL, event_type varchar(50) NOT NULL, quantity_change int(11) NOT NULL, stock_after int(11) NOT NULL, reference_id bigint(20) unsigned DEFAULT NULL, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), KEY product_id (product_id), KEY event_type (event_type), KEY created_at (created_at) ) $collate;", "CREATE TABLE wp_fbs_stockmind_inventory_snapshots ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, product_id bigint(20) unsigned NOT NULL, date date NOT NULL, stock_level int(11) NOT NULL, stock_value decimal(19,4) NOT NULL DEFAULT 0.0000, PRIMARY KEY (id), UNIQUE KEY product_date (product_id, date) ) $collate;", "CREATE TABLE wp_fbs_stockmind_forecasts ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, product_id bigint(20) unsigned NOT NULL, forecast_date date NOT NULL, expected_daily_demand decimal(10,4) NOT NULL DEFAULT 0.0000, days_until_runout decimal(10,2) DEFAULT NULL, confidence_score decimal(4,2) NOT NULL DEFAULT 0.00, risk_level varchar(20) NOT NULL DEFAULT 'SAFE', calculated_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY product_date (product_id, forecast_date), KEY risk_level (risk_level) ) $collate;" ]; return $tables; } /** * Create or update database tables */ public function create_tables() { require_once ABSPATH . 'wp-admin/includes/upgrade.php'; $schemas = $this->get_schema();

Safe to delete?

If you have uninstalled FBS StockMind – AI Inventory Management, Predictive Stock Alerts & Reorder Reminders 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_fbs_stockmind_daily_sales`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.

Other tables from FBS StockMind – AI Inventory Management, Predictive Stock Alerts & Reorder Reminders for WooCommerce