ALTER TABLE `activities` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_activities_deleted_at`(`deleted_at`);
ALTER TABLE `activity_issues` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_activity_issues_deleted_at`(`deleted_at`);
ALTER TABLE `activity_reward_settings` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_activity_reward_settings_deleted_at`(`deleted_at`);
ALTER TABLE `products` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_products_deleted_at`(`deleted_at`);
ALTER TABLE `product_categories` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_product_categories_deleted_at`(`deleted_at`);
ALTER TABLE `banner` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_banner_deleted_at`(`deleted_at`);
ALTER TABLE `guild` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_guild_deleted_at`(`deleted_at`);
ALTER TABLE `system_titles` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_system_titles_deleted_at`(`deleted_at`);
ALTER TABLE `system_title_effects` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_system_title_effects_deleted_at`(`deleted_at`);
ALTER TABLE `system_item_cards` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_system_item_cards_deleted_at`(`deleted_at`);
ALTER TABLE `system_coupons` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_system_coupons_deleted_at`(`deleted_at`);
ALTER TABLE `menus` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_menus_deleted_at`(`deleted_at`);
ALTER TABLE `menu_actions` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_menu_actions_deleted_at`(`deleted_at`);
ALTER TABLE `roles` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_roles_deleted_at`(`deleted_at`);
ALTER TABLE `role_users` ADD COLUMN `deleted_at` DATETIME NULL, ADD COLUMN `deleted_by` BIGINT NULL, ADD INDEX `idx_role_users_deleted_at`(`deleted_at`);

INSERT INTO `menus` (`parent_id`, `path`, `name`, `component`, `icon`, `sort`, `status`, `keep_alive`, `is_hide`, `is_hide_tab`) VALUES (0, '/system/recycle', '回收站', '/system/recycle', 'ri:delete-bin-6-line', 999, 1, 1, 0, 0);