
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `www_nav_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name_zh` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '入口名称（中文）',
  `name_en` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '入口名称（英文）',
  `link` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '链接地址（站内路由或外部 URL）',
  `is_visible` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否显示',
  `sort_order` int NOT NULL DEFAULT '0' COMMENT '排列顺序',
  `display_mode` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'text' COMMENT '显示形式: text / icon_text / image / image_text',
  `icon_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '图标名（display_mode 含 icon 时）',
  `image_url` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '图片路径（display_mode 含 image 时）',
  `open_new_tab` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否新窗口打开',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='导航栏入口';
/*!40101 SET character_set_client = @saved_cs_client */;

/*!40000 ALTER TABLE `www_nav_items` DISABLE KEYS */;
INSERT INTO `www_nav_items` (`id`, `name_zh`, `name_en`, `link`, `is_visible`, `sort_order`, `display_mode`, `icon_name`, `image_url`, `open_new_tab`, `created_at`, `updated_at`) VALUES (1,'产品','Products','/products',1,1,'text','','',0,'2026-07-31 13:16:53','2026-07-31 13:16:53'),(2,'新闻','News','/news',1,2,'text','','',0,'2026-07-31 13:16:53','2026-07-31 13:16:53'),(3,'关于我们','About','/about',1,3,'text','','',0,'2026-07-31 13:16:53','2026-07-31 13:16:53'),(4,'技术支持','Support','/support',1,4,'text','','',0,'2026-07-31 13:16:53','2026-07-31 13:16:53');
/*!40000 ALTER TABLE `www_nav_items` ENABLE KEYS */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

