<?php

use think\migration\Seeder;

class SysMenuInit extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run(): void
    {
        $data = [
            ["id" => 1, "pid" => 0, "title" => "产品管理", "name" => "ProductManage", "path" => "product", "icon" => "icon-fahuochuku", "redirect" => "", "component" => "132323", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-01 13:58:09", "updated_at" => "2025-03-04 11:26:58", "deleted_at" => "2025-03-04 11:26:58"],
            ["id" => 2, "pid" => 1, "title" => "菜单列表", "name" => "ProductList", "path" => "product/index", "icon" => "", "redirect" => "", "component" => "product/index", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-01 13:58:10", "updated_at" => "2025-03-06 17:47:33", "deleted_at" => null],
            ["id" => 3, "pid" => 2, "title" => "产品详情", "name" => "ProductDetail", "path" => "product/detail", "icon" => "", "redirect" => "", "component" => "product/detail", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-01 10:47:12", "updated_at" => "2025-03-03 17:46:15", "deleted_at" => null],
            ["id" => 4, "pid" => 1, "title" => "产品分类列表", "name" => "ProductCategoryList", "path" => "product_category/index", "icon" => "", "redirect" => "", "component" => "product_category/index", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-01 13:58:09", "updated_at" => "2025-03-15 16:57:51", "deleted_at" => null],
            ["id" => 5, "pid" => 4, "title" => "产品分类详情", "name" => "ProductCategoryDetail", "path" => "product_category/detail", "icon" => "", "redirect" => "", "component" => "product_category/detail", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-01 13:58:10", "updated_at" => "2025-03-01 13:58:10", "deleted_at" => null],
            ["id" => 7, "pid" => 0, "title" => "首页", "name" => "home", "path" => "/admin/index", "icon" => "", "redirect" => "", "component" => "/home/index", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-24 15:56:09", "deleted_at" => null],
            ["id" => 8, "pid" => 0, "title" => "产品管理", "name" => "productManagement", "path" => "/admin/productManagement", "icon" => "icon-shouhuoruku", "redirect" => "", "component" => "/productManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-25 10:40:06", "deleted_at" => null],
            ["id" => 9, "pid" => 0, "title" => "视频管理", "name" => "videoManagement", "path" => "/admin/videoManagement", "icon" => "icon-video", "redirect" => "", "component" => "/videoManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 3, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:50:26", "deleted_at" => null],
            ["id" => 10, "pid" => 0, "title" => "下载管理", "name" => "downloadManagement", "path" => "/admin/downloadManagement", "icon" => "icon-xiazai", "redirect" => "", "component" => "/downloadManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 4, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:50:52", "deleted_at" => null],
            ["id" => 11, "pid" => 0, "title" => "文章管理", "name" => "articleManagement", "path" => "/admin/articleManagement", "icon" => "icon-wenzhang", "redirect" => "", "component" => "/articleManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 5, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:51:45", "deleted_at" => null],
            ["id" => 12, "pid" => 0, "title" => "Banner管理", "name" => "bannerManagement", "path" => "/admin/bannerManagement", "icon" => "icon-banner", "redirect" => "", "component" => "/bannerManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 6, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:52:16", "deleted_at" => null],
            ["id" => 13, "pid" => 0, "title" => "用户角色管理", "name" => "userManagement", "path" => "/admin/userManagement", "icon" => "icon-yonghu", "redirect" => "", "component" => "/userManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 7, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:52:40", "deleted_at" => null],
            ["id" => 14, "pid" => 0, "title" => "问答管理", "name" => "QAManagement", "path" => "/admin/QAManagement", "icon" => "icon-wendaguanli", "redirect" => "", "component" => "/QAManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 8, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:52:45", "deleted_at" => null],
            ["id" => 15, "pid" => 0, "title" => "反馈管理", "name" => "feedbackManagement", "path" => "/admin/feedbackManagement", "icon" => "icon-yijianfankui", "redirect" => "", "component" => "/feedbackManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 9, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:06", "deleted_at" => null],
            ["id" => 16, "pid" => 0, "title" => "网站管理", "name" => "webManagement", "path" => "/admin/webManagement", "icon" => "icon-wangzhan", "redirect" => "", "component" => "/webManagement", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 10, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:39", "deleted_at" => null],
            ["id" => 17, "pid" => 16, "title" => "菜单管理", "name" => "webMenuIndex", "path" => "/admin/webManagement/menu/index", "icon" => "", "redirect" => "", "component" => "/webManagement/menu/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 3, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:56", "deleted_at" => null],
            ["id" => 18, "pid" => 16, "title" => "网站配置", "name" => "webSetIndex", "path" => "/admin/webManagement/set/index", "icon" => "", "redirect" => "", "component" => "/webManagement/set/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 4, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:55:02", "deleted_at" => null],
            ["id" => 19, "pid" => 16, "title" => "配置列表", "name" => "webConfigurationIndex", "path" => "/admin/webManagement/configuration/index", "icon" => "", "redirect" => "", "component" => "/webManagement/configuration/index", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 5, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:55:06", "deleted_at" => null],
            ["id" => 20, "pid" => 16, "title" => "日志列表", "name" => "webLogIndex", "path" => "/admin/webManagement/log/index", "icon" => "", "redirect" => "", "component" => "/webManagement/log/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 6, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:55:10", "deleted_at" => null],
            ["id" => 21, "pid" => 8, "title" => "产品列表", "name" => "productListIndex", "path" => "/admin/productManagement/list/index", "icon" => "", "redirect" => "", "component" => "/productManagement/list/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:49:17", "deleted_at" => null],
            ["id" => 22, "pid" => 8, "title" => "产品列表详情", "name" => "productEditIndex", "path" => "/admin/productManagement/list/edit", "icon" => "", "redirect" => "", "component" => "/productManagement/list/edit", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 11, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:50:12", "deleted_at" => null],
            ["id" => 23, "pid" => 8, "title" => "产品分类列表", "name" => "productClassListIndex", "path" => "/admin/productManagement/classList/index", "icon" => "", "redirect" => "", "component" => "/productManagement/classList/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:49:34", "deleted_at" => null],
            ["id" => 24, "pid" => 8, "title" => "产品属性列表", "name" => "productAttributeListIndex", "path" => "/admin/productManagement/attributeList/index", "icon" => "", "redirect" => "", "component" => "/productManagement/attributeList/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 3, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:49:52", "deleted_at" => null],
            ["id" => 25, "pid" => 8, "title" => "产品购买链接", "name" => "productLinkIndex", "path" => "/admin/productManagement/link/index", "icon" => "", "redirect" => "", "component" => "/productManagement/link/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 4, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:49:59", "deleted_at" => null],
            ["id" => 26, "pid" => 8, "title" => "产品回收站", "name" => "productRecycleIndex", "path" => "/admin/productManagement/recycle/index", "icon" => "", "redirect" => "", "component" => "/productManagement/recycle/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 5, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:50:05", "deleted_at" => null],
            ["id" => 27, "pid" => 9, "title" => "视频列表", "name" => "videoListIndex", "path" => "/admin/videoManagement/list/index", "icon" => "", "redirect" => "", "component" => "/videoManagement/list/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:50:35", "deleted_at" => null],
            ["id" => 28, "pid" => 9, "title" => "视频分类列表", "name" => "videoClassListIndex", "path" => "/admin/videoManagement/class/index", "icon" => "", "redirect" => "", "component" => "/videoManagement/class/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:50:42", "deleted_at" => null],
            ["id" => 29, "pid" => 9, "title" => "视频回收站", "name" => "videoRecycleIndex", "path" => "/admin/videoManagement/recycle/index", "icon" => "", "redirect" => "", "component" => "/videoManagement/recycle/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 3, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:50:47", "deleted_at" => null],
            ["id" => 30, "pid" => 10, "title" => "下载列表", "name" => "downloadListIndex", "path" => "/admin/downloadManagement/list/index", "icon" => "", "redirect" => "", "component" => "/downloadManagement/list/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:51:08", "deleted_at" => null],
            ["id" => 31, "pid" => 10, "title" => "下载列表详情", "name" => "downloadListEdit", "path" => "/admin/downloadManagement/list/edit", "icon" => "", "redirect" => "", "component" => "/downloadManagement/list/edit", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 9, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:51:23", "deleted_at" => null],
            ["id" => 32, "pid" => 10, "title" => "下载分类列表", "name" => "downloadClassListIndex", "path" => "/admin/downloadManagement/class/index", "icon" => "", "redirect" => "", "component" => "/downloadManagement/class/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:51:12", "deleted_at" => null],
            ["id" => 33, "pid" => 10, "title" => "下载回收站", "name" => "downloadRecycleListIndex", "path" => "/admin/downloadManagement/recycle/index", "icon" => "", "redirect" => "", "component" => "/downloadManagement/recycle/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 3, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:51:17", "deleted_at" => null],
            ["id" => 34, "pid" => 11, "title" => "文章列表", "name" => "articleListIndex", "path" => "/admin/articleManagement/list/index", "icon" => "", "redirect" => "", "component" => "/articleManagement/list/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:51:36", "deleted_at" => null],
            ["id" => 35, "pid" => 11, "title" => "文章评论列表", "name" => "articleRemarkListIndex", "path" => "/admin/articleManagement/remark/index", "icon" => "", "redirect" => "", "component" => "/articleManagement/remark/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:51:51", "deleted_at" => null],
            ["id" => 36, "pid" => 11, "title" => "编辑文章", "name" => "articleEditIndex", "path" => "/admin/articleManagement/list/edit", "icon" => "", "redirect" => "", "component" => "/articleManagement/list/edit", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 9, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:52:09", "deleted_at" => null],
            ["id" => 37, "pid" => 11, "title" => "文章分类列表", "name" => "articleClassListIndex", "path" => "/admin/articleManagement/class/index", "icon" => "", "redirect" => "", "component" => "/articleManagement/class/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 3, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:51:57", "deleted_at" => null],
            ["id" => 38, "pid" => 11, "title" => "文章回收站", "name" => "articleRecycleListIndex", "path" => "/admin/articleManagement/recycle/index", "icon" => "", "redirect" => "", "component" => "/articleManagement/recycle/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 4, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:52:03", "deleted_at" => null],
            ["id" => 39, "pid" => 12, "title" => "Banner列表", "name" => "bannerListIndex", "path" => "/admin/bannerManagement/list/index", "icon" => "", "redirect" => "", "component" => "/bannerManagement/list/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:52:30", "deleted_at" => null],
            ["id" => 40, "pid" => 12, "title" => "Banner分类列表", "name" => "bannerClassListIndex", "path" => "/admin/bannerManagement/class/index", "icon" => "", "redirect" => "", "component" => "/bannerManagement/class/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:52:35", "deleted_at" => null],
            ["id" => 41, "pid" => 13, "title" => "用户列表", "name" => "userListIndex", "path" => "/admin/userManagement/list/index", "icon" => "", "redirect" => "", "component" => "/userManagement/list/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:52:57", "deleted_at" => null],
            ["id" => 42, "pid" => 13, "title" => "角色列表", "name" => "roleListIndex", "path" => "/admin/userManagement/role/index", "icon" => "", "redirect" => "", "component" => "/userManagement/role/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:53:02", "deleted_at" => null],
            ["id" => 43, "pid" => 14, "title" => "问答列表", "name" => "QAListIndex", "path" => "/admin/QAManagement/list/index", "icon" => "", "redirect" => "", "component" => "/QAManagement/list/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:53:40", "deleted_at" => null],
            ["id" => 44, "pid" => 14, "title" => "编辑问答", "name" => "QAManagementListEdit", "path" => "/admin/QAManagement/list/edit", "icon" => "", "redirect" => "", "component" => "/QAManagement/list/edit", "hidden" => 0, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:53:49", "deleted_at" => null],
            ["id" => 45, "pid" => 15, "title" => "联系我们列表", "name" => "feedbackContactIndex", "path" => "/admin/feedbackManagement/contact/index", "icon" => "", "redirect" => "", "component" => "/feedbackManagement/contact/index", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:00", "deleted_at" => null],
            ["id" => 46, "pid" => 15, "title" => "批量采购询盘列表", "name" => "feedbackPurchaseIndex", "path" => "/admin/feedbackManagement/purchase/index", "icon" => "", "redirect" => "", "component" => "/feedbackManagement/purchase/index", "hidden" => 1, "actived" => 0, "keep_alive" => 0, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:11", "deleted_at" => null],
            ["id" => 47, "pid" => 15, "title" => "代理商申请列表", "name" => "feedbackAgentIndex", "path" => "/admin/feedbackManagement/agent/index", "icon" => "", "redirect" => "", "component" => "/feedbackManagement/agent/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 3, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:17", "deleted_at" => null],
            ["id" => 48, "pid" => 15, "title" => "产品询盘列表", "name" => "feedbackProductIndex", "path" => "/admin/feedbackManagement/product/index", "icon" => "", "redirect" => "", "component" => "/feedbackManagement/product/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 4, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:24", "deleted_at" => null],
            ["id" => 49, "pid" => 16, "title" => "导航管理", "name" => "webNavIndex", "path" => "/admin/webManagement/nav/index", "icon" => "", "redirect" => "", "component" => "/webManagement/nav/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 1, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:44", "deleted_at" => null],
            ["id" => 50, "pid" => 16, "title" => "导航栏分类列表", "name" => "webNavClassListIndex", "path" => "/admin/webManagement/navClass/index", "icon" => "", "redirect" => "", "component" => "/webManagement/navClass/index", "hidden" => 1, "actived" => 0, "keep_alive" => 1, "sort" => 2, "status" => 1, "created_at" => "2025-03-05 13:46:29", "updated_at" => "2025-03-19 10:54:50", "deleted_at" => null],
        ];

        $table = $this->table('sys_menu');

        // empty the table
        $table->truncate();

        // insert data
        $table->insert($data)->saveData();
    }
}