wp_fbs_stockmind_daily_sales
StaticStores fbs stockmind daily sales data created by this plugin.
Column Definitions
| Column | Type | Nullable |
|---|---|---|
| 🔑id | bigint(20) unsigned | NO |
| product_id | bigint(20) unsigned | NO |
| date | date | NO |
| units_sold | int(11) | NO |
| refund_quantity | int(11) | NO |
| revenue | decimal(19,4) | NO |
| updated_at | datetime | NO |
| product_id | bigint(20) unsigned | NO |
| event_type | varchar(50) | NO |
| quantity_change | int(11) | NO |
| stock_after | int(11) | NO |
| reference_id | bigint(20) unsigned | YES |
| created_at | datetime | NO |
| product_id | bigint(20) unsigned | NO |
| date | date | NO |
| stock_level | int(11) | NO |
| stock_value | decimal(19,4) | NO |
| product_id | bigint(20) unsigned | NO |
| forecast_date | date | NO |
| expected_daily_demand | decimal(10,4) | NO |
| days_until_runout | decimal(10,2) | YES |
| confidence_score | decimal(4,2) | NO |
| risk_level | varchar(20) | NO |
| calculated_at | datetime | NO |
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