added wss tools 5
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
-- جدول دستهبندی محصولات (تبهای فیلتر اپ + ادمین)
|
||||
-- خطای 500 روی GET /customer/categories وقتی این جدول نیست
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `categories` (
|
||||
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(255) NOT NULL,
|
||||
`active` tinyint(1) NOT NULL DEFAULT 1,
|
||||
`show_in_filter` tinyint(1) NOT NULL DEFAULT 1,
|
||||
`show_in_select` tinyint(1) NOT NULL DEFAULT 1,
|
||||
`sort_order` smallint unsigned NOT NULL DEFAULT 0,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `categories_name_unique` (`name`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- بعد از اجرا: ادمین → دستهبندی → «همگامسازی از محصولات»
|
||||
-- یا: POST /admin/categories/sync-from-products
|
||||
Reference in New Issue
Block a user