-- MySQL dump 10.13  Distrib 8.0.12, for Win64 (x86_64)
--
-- Host: localhost    Database: buildadmin-webman
-- ------------------------------------------------------
-- Server version	8.0.12

/*!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 */;
 SET NAMES utf8 ;
/*!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 */;

--
-- Table structure for table `admin`
--

DROP TABLE IF EXISTS `admin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `admin` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `username` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名',
  `nickname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '昵称',
  `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像',
  `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '邮箱',
  `mobile` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '手机',
  `login_failure` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '登录失败次数',
  `last_login_time` bigint(16) unsigned DEFAULT NULL COMMENT '上次登录时间',
  `last_login_ip` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '上次登录IP',
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '密码',
  `salt` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '密码盐（废弃待删）',
  `motto` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '签名',
  `status` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '状态:enable=启用,disable=禁用',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='管理员表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admin`
--

LOCK TABLES `admin` WRITE;
/*!40000 ALTER TABLE `admin` DISABLE KEYS */;
INSERT INTO `admin` VALUES (1,'admin','Admin','','admin@buildadmin.com','18888888888',0,1775726919,'127.0.0.1','$2y$10$q/FLky0oeeIsfTctiW5huO8X.ILaWBP8a.9LsUlH8Tv/M/pJrTVRS','','','enable',1775726919,1773049265);
/*!40000 ALTER TABLE `admin` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `admin_group`
--

DROP TABLE IF EXISTS `admin_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `admin_group` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上级分组',
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '组名',
  `rules` text COLLATE utf8mb4_unicode_ci COMMENT '权限规则ID',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:0=禁用,1=启用',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='管理分组表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admin_group`
--

LOCK TABLES `admin_group` WRITE;
/*!40000 ALTER TABLE `admin_group` DISABLE KEYS */;
INSERT INTO `admin_group` VALUES (1,0,'超级管理组','*',1,1773049265,1773049265),(2,1,'一级管理员','1,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,77,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,89',1,1773049265,1773049265),(3,2,'二级管理员','21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43',1,1773049265,1773049265),(4,3,'三级管理员','55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75',1,1773049265,1773049265);
/*!40000 ALTER TABLE `admin_group` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `admin_group_access`
--

DROP TABLE IF EXISTS `admin_group_access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `admin_group_access` (
  `uid` int(11) unsigned NOT NULL COMMENT '管理员ID',
  `group_id` int(11) unsigned NOT NULL COMMENT '分组ID',
  KEY `uid` (`uid`),
  KEY `group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='管理分组映射表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admin_group_access`
--

LOCK TABLES `admin_group_access` WRITE;
/*!40000 ALTER TABLE `admin_group_access` DISABLE KEYS */;
INSERT INTO `admin_group_access` VALUES (1,1);
/*!40000 ALTER TABLE `admin_group_access` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `admin_log`
--

DROP TABLE IF EXISTS `admin_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `admin_log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `admin_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '管理员ID',
  `username` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '管理员用户名',
  `url` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作Url',
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '日志标题',
  `data` longtext COLLATE utf8mb4_unicode_ci COMMENT '请求数据',
  `ip` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'IP',
  `useragent` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'User-Agent',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='管理员日志表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admin_log`
--

LOCK TABLES `admin_log` WRITE;
/*!40000 ALTER TABLE `admin_log` DISABLE KEYS */;
INSERT INTO `admin_log` VALUES (1,1,'admin','/admin/Index/login','登录','{\"username\":\"admin\",\"password\":\"***\",\"keep\":\"\",\"captchaId\":\"f9cac4fc-1514-4165-bca9-ac5f9eb994ee\",\"captchaInfo\":\"218,149-312,68;350;200\"}','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',1773049380),(2,1,'admin','//localhost:8787/admin/Index/login','登录','{\"username\":\"admin\",\"password\":\"***\",\"keep\":false,\"captchaId\":\"0873e533-330b-4f51-8d49-9b93152bba63\",\"captchaInfo\":\"321,31-139,144;350;200\"}','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',1774075371),(3,1,'admin','//localhost:8787/admin/crud.Crud/generateCheck','CRUD代码生成-生成前预检','{\"table\":\"mall_wallet_record\",\"connection\":null,\"webViewsDir\":\"web\\/src\\/views\\/backend\\/mall\\/walletRecord\",\"controllerFile\":\"app\\/admin\\/controller\\/mall\\/WalletRecord.php\"}','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',1774075512),(4,1,'admin','//localhost:8787/admin/crud.Crud/generate','未知(generate)','{\"type\":\"create\",\"table\":{\"name\":\"mall_wallet_record\",\"comment\":\"用户钱包记录\",\"quickSearchField\":[\"id\",\"username\"],\"defaultSortField\":\"id\",\"formFields\":[\"username\",\"score\"],\"columnFields\":[\"id\",\"username\",\"score\",\"create_time\",\"update_time\"],\"defaultSortType\":\"desc\",\"generateRelativePath\":\"mall_wallet_record\",\"isCommonModel\":1,\"modelFile\":\"app\\/common\\/model\\/MallWalletRecord.php\",\"controllerFile\":\"app\\/admin\\/controller\\/mall\\/WalletRecord.php\",\"validateFile\":\"app\\/common\\/validate\\/MallWalletRecord.php\",\"webViewsDir\":\"web\\/src\\/views\\/backend\\/mall\\/walletRecord\",\"databaseConnection\":null,\"designChange\":[],\"rebuild\":\"No\"},\"fields\":[{\"title\":\"主键\",\"name\":\"id\",\"comment\":\"ID\",\"designType\":\"pk\",\"formBuildExclude\":true,\"table\":{\"width\":70,\"operator\":\"RANGE\",\"sortable\":\"custom\"},\"form\":[],\"type\":\"int\",\"length\":10,\"precision\":0,\"defaultType\":\"NONE\",\"null\":false,\"primaryKey\":true,\"unsigned\":true,\"autoIncrement\":true,\"uuid\":\"e95f57ea-47e7-42ed-a088-1706d17503ac\"},{\"title\":\"字符串\",\"name\":\"username\",\"comment\":\"用户名\",\"designType\":\"string\",\"table\":{\"render\":\"none\",\"sortable\":\"false\",\"operator\":\"LIKE\"},\"form\":{\"validator\":[],\"validatorMsg\":\"\"},\"type\":\"varchar\",\"length\":255,\"precision\":0,\"defaultType\":\"EMPTY STRING\",\"null\":false,\"primaryKey\":false,\"unsigned\":false,\"autoIncrement\":false,\"uuid\":\"fefb11ed-bed0-4749-aa88-b95b3b2545f5\"},{\"title\":\"数字\",\"name\":\"score\",\"comment\":\"消耗积分\",\"designType\":\"number\",\"table\":{\"render\":\"none\",\"sortable\":\"false\",\"operator\":\"RANGE\"},\"form\":{\"validator\":[\"number\"],\"validatorMsg\":\"\",\"step\":1},\"type\":\"int\",\"length\":10,\"precision\":0,\"defaultType\":\"NULL\",\"null\":true,\"primaryKey\":false,\"unsigned\":false,\"autoIncrement\":false,\"uuid\":\"6b64722a-bd3b-4bc5-b082-e27a28b19d5f\"},{\"title\":\"创建时间\",\"name\":\"create_time\",\"comment\":\"创建时间\",\"designType\":\"timestamp\",\"formBuildExclude\":true,\"table\":{\"render\":\"datetime\",\"operator\":\"RANGE\",\"comSearchRender\":\"datetime\",\"comSearchInputAttr\":\"\",\"sortable\":\"custom\",\"width\":160,\"timeFormat\":\"yyyy-mm-dd hh:MM:ss\"},\"form\":{\"validator\":[\"date\"],\"validatorMsg\":\"\"},\"type\":\"bigint\",\"length\":16,\"precision\":0,\"defaultType\":\"NULL\",\"null\":true,\"primaryKey\":false,\"unsigned\":true,\"autoIncrement\":false,\"uuid\":\"a74e19b9-80ec-4db8-ac25-9b9dec9e59ee\"},{\"title\":\"修改时间\",\"name\":\"update_time\",\"comment\":\"修改时间\",\"designType\":\"timestamp\",\"formBuildExclude\":true,\"table\":{\"render\":\"datetime\",\"operator\":\"RANGE\",\"comSearchRender\":\"datetime\",\"comSearchInputAttr\":\"\",\"sortable\":\"custom\",\"width\":160,\"timeFormat\":\"yyyy-mm-dd hh:MM:ss\"},\"form\":{\"validator\":[\"date\"],\"validatorMsg\":\"\"},\"type\":\"bigint\",\"length\":16,\"precision\":0,\"defaultType\":\"NULL\",\"null\":true,\"primaryKey\":false,\"unsigned\":true,\"autoIncrement\":false,\"uuid\":\"ba3f2b1b-7f5e-4024-a72a-c139e76842f7\"}]}','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',1774075513),(5,1,'admin','//localhost:8787/admin/mall.WalletRecord/add','未知(add)','{\"username\":\"test1111\",\"score\":100}','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',1774075557),(6,1,'admin','//localhost:8787/admin/Index/login','登录','{\"username\":\"admin\",\"password\":\"***\",\"keep\":false,\"captchaId\":\"648ac2f7-988f-400d-858c-1d115021f764\",\"captchaInfo\":\"39,142-307,169;350;200\"}','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',1775726739),(7,1,'admin','//localhost:8787/admin/Index/login','登录','{\"username\":\"admin\",\"password\":\"***\",\"keep\":false,\"captchaId\":\"82d6e16f-cb32-4cc9-900f-613fcf76bea0\",\"captchaInfo\":\"217,123-175,156;350;200\"}','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',1775726895),(8,1,'admin','//localhost:8787/admin/auth.Rule/del','菜单规则管理-删除','{\"ids\":[\"90\",\"91\",\"96\",\"95\",\"94\",\"93\",\"92\"]}','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0',1775726915);
/*!40000 ALTER TABLE `admin_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `admin_rule`
--

DROP TABLE IF EXISTS `admin_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `admin_rule` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上级菜单',
  `type` enum('menu_dir','menu','button') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'menu' COMMENT '类型:menu_dir=菜单目录,menu=菜单项,button=页面按钮',
  `title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '标题',
  `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '规则名称',
  `path` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '路由路径',
  `icon` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '图标',
  `menu_type` enum('tab','link','iframe') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '菜单类型:tab=选项卡,link=链接,iframe=Iframe',
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'Url',
  `component` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '组件路径',
  `keepalive` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '缓存:0=关闭,1=开启',
  `extend` enum('none','add_rules_only','add_menu_only') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'none' COMMENT '扩展属性:none=无,add_rules_only=只添加为路由,add_menu_only=只添加为菜单',
  `remark` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  `weigh` int(11) NOT NULL DEFAULT '0' COMMENT '权重',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:0=禁用,1=启用',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `pid` (`pid`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='菜单和权限规则表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admin_rule`
--

LOCK TABLES `admin_rule` WRITE;
/*!40000 ALTER TABLE `admin_rule` DISABLE KEYS */;
INSERT INTO `admin_rule` VALUES (1,0,'menu','控制台','dashboard','dashboard','fa fa-dashboard','tab','','/src/views/backend/dashboard.vue',1,'none','Remark lang',999,1,1773049265,1773049265),(2,0,'menu_dir','权限管理','auth','auth','fa fa-group',NULL,'','',0,'none','',100,1,1773049265,1773049265),(3,2,'menu','角色组管理','auth/group','auth/group','fa fa-group','tab','','/src/views/backend/auth/group/index.vue',1,'none','Remark lang',99,1,1773049265,1773049265),(4,3,'button','查看','auth/group/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(5,3,'button','添加','auth/group/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(6,3,'button','编辑','auth/group/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(7,3,'button','删除','auth/group/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(8,2,'menu','管理员管理','auth/admin','auth/admin','el-icon-UserFilled','tab','','/src/views/backend/auth/admin/index.vue',1,'none','',98,1,1773049265,1773049265),(9,8,'button','查看','auth/admin/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(10,8,'button','添加','auth/admin/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(11,8,'button','编辑','auth/admin/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(12,8,'button','删除','auth/admin/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(13,2,'menu','菜单规则管理','auth/rule','auth/rule','el-icon-Grid','tab','','/src/views/backend/auth/rule/index.vue',1,'none','',97,1,1773049265,1773049265),(14,13,'button','查看','auth/rule/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(15,13,'button','添加','auth/rule/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(16,13,'button','编辑','auth/rule/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(17,13,'button','删除','auth/rule/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(18,13,'button','快速排序','auth/rule/sortable','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(19,2,'menu','管理员日志管理','auth/adminLog','auth/adminLog','el-icon-List','tab','','/src/views/backend/auth/adminLog/index.vue',1,'none','',96,1,1773049265,1773049265),(20,19,'button','查看','auth/adminLog/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(21,0,'menu_dir','会员管理','user','user','fa fa-drivers-license',NULL,'','',0,'none','',95,1,1773049265,1773049265),(22,21,'menu','会员管理','user/user','user/user','fa fa-user','tab','','/src/views/backend/user/user/index.vue',1,'none','',94,1,1773049265,1773049265),(23,22,'button','查看','user/user/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(24,22,'button','添加','user/user/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(25,22,'button','编辑','user/user/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(26,22,'button','删除','user/user/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(27,21,'menu','会员分组管理','user/group','user/group','fa fa-group','tab','','/src/views/backend/user/group/index.vue',1,'none','',93,1,1773049265,1773049265),(28,27,'button','查看','user/group/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(29,27,'button','添加','user/group/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(30,27,'button','编辑','user/group/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(31,27,'button','删除','user/group/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(32,21,'menu','会员规则管理','user/rule','user/rule','fa fa-th-list','tab','','/src/views/backend/user/rule/index.vue',1,'none','',92,1,1773049265,1773049265),(33,32,'button','查看','user/rule/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(34,32,'button','添加','user/rule/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(35,32,'button','编辑','user/rule/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(36,32,'button','删除','user/rule/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(37,32,'button','快速排序','user/rule/sortable','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(38,21,'menu','会员余额管理','user/moneyLog','user/moneyLog','el-icon-Money','tab','','/src/views/backend/user/moneyLog/index.vue',1,'none','',91,1,1773049265,1773049265),(39,38,'button','查看','user/moneyLog/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(40,38,'button','添加','user/moneyLog/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(41,21,'menu','会员积分管理','user/scoreLog','user/scoreLog','el-icon-Discount','tab','','/src/views/backend/user/scoreLog/index.vue',1,'none','',90,1,1773049265,1773049265),(42,41,'button','查看','user/scoreLog/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(43,41,'button','添加','user/scoreLog/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(44,0,'menu_dir','常规管理','routine','routine','fa fa-cogs',NULL,'','',0,'none','',89,1,1773049265,1773049265),(45,44,'menu','系统配置','routine/config','routine/config','el-icon-Tools','tab','','/src/views/backend/routine/config/index.vue',1,'none','',88,1,1773049265,1773049265),(46,45,'button','查看','routine/config/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(47,45,'button','编辑','routine/config/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(48,44,'menu','附件管理','routine/attachment','routine/attachment','fa fa-folder','tab','','/src/views/backend/routine/attachment/index.vue',1,'none','Remark lang',87,1,1773049265,1773049265),(49,48,'button','查看','routine/attachment/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(50,48,'button','编辑','routine/attachment/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(51,48,'button','删除','routine/attachment/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(52,44,'menu','个人资料','routine/adminInfo','routine/adminInfo','fa fa-user','tab','','/src/views/backend/routine/adminInfo.vue',1,'none','',86,1,1773049265,1773049265),(53,52,'button','查看','routine/adminInfo/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(54,52,'button','编辑','routine/adminInfo/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(55,0,'menu_dir','数据安全管理','security','security','fa fa-shield',NULL,'','',0,'none','',85,1,1773049265,1773049265),(56,55,'menu','数据回收站','security/dataRecycleLog','security/dataRecycleLog','fa fa-database','tab','','/src/views/backend/security/dataRecycleLog/index.vue',1,'none','',84,1,1773049265,1773049265),(57,56,'button','查看','security/dataRecycleLog/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(58,56,'button','删除','security/dataRecycleLog/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(59,56,'button','还原','security/dataRecycleLog/restore','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(60,56,'button','查看详情','security/dataRecycleLog/info','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(61,55,'menu','敏感数据修改记录','security/sensitiveDataLog','security/sensitiveDataLog','fa fa-expeditedssl','tab','','/src/views/backend/security/sensitiveDataLog/index.vue',1,'none','',83,1,1773049265,1773049265),(62,61,'button','查看','security/sensitiveDataLog/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(63,61,'button','删除','security/sensitiveDataLog/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(64,61,'button','回滚','security/sensitiveDataLog/rollback','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(65,61,'button','查看详情','security/sensitiveDataLog/info','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(66,55,'menu','数据回收规则管理','security/dataRecycle','security/dataRecycle','fa fa-database','tab','','/src/views/backend/security/dataRecycle/index.vue',1,'none','Remark lang',82,1,1773049265,1773049265),(67,66,'button','查看','security/dataRecycle/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(68,66,'button','添加','security/dataRecycle/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(69,66,'button','编辑','security/dataRecycle/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(70,66,'button','删除','security/dataRecycle/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(71,55,'menu','敏感字段规则管理','security/sensitiveData','security/sensitiveData','fa fa-expeditedssl','tab','','/src/views/backend/security/sensitiveData/index.vue',1,'none','Remark lang',81,1,1773049265,1773049265),(72,71,'button','查看','security/sensitiveData/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(73,71,'button','添加','security/sensitiveData/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(74,71,'button','编辑','security/sensitiveData/edit','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(75,71,'button','删除','security/sensitiveData/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(76,0,'menu','BuildAdmin','buildadmin','buildadmin','local-logo','link','https://doc.buildadmin.com','',0,'none','',0,0,1773049265,1773049265),(77,45,'button','添加','routine/config/add','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(78,0,'menu','模块市场','moduleStore/moduleStore','moduleStore','el-icon-GoodsFilled','tab','','/src/views/backend/module/index.vue',1,'none','',86,1,1773049265,1773049265),(79,78,'button','查看','moduleStore/moduleStore/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(80,78,'button','安装','moduleStore/moduleStore/install','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(81,78,'button','调整状态','moduleStore/moduleStore/changeState','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(82,78,'button','卸载','moduleStore/moduleStore/uninstall','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(83,78,'button','更新','moduleStore/moduleStore/update','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(84,0,'menu','CRUD代码生成','crud/crud','crud/crud','fa fa-code','tab','','/src/views/backend/crud/index.vue',1,'none','',80,1,1773049265,1773049265),(85,84,'button','查看','crud/crud/index','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(86,84,'button','生成','crud/crud/generate','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(87,84,'button','删除','crud/crud/delete','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(88,45,'button','删除','routine/config/del','','',NULL,'','',0,'none','',0,1,1773049265,1773049265),(89,1,'button','查看','dashboard/index','','',NULL,'','',0,'none','',0,1,1773049267,1773049267);
/*!40000 ALTER TABLE `admin_rule` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `area`
--

DROP TABLE IF EXISTS `area`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `area` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `pid` int(11) unsigned DEFAULT NULL COMMENT '父id',
  `shortname` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '简称',
  `name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '名称',
  `mergename` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '全称',
  `level` tinyint(4) unsigned DEFAULT NULL COMMENT '层级:1=省,2=市,3=区/县',
  `pinyin` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '拼音',
  `code` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '长途区号',
  `zip` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '邮编',
  `first` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '首字母',
  `lng` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '经度',
  `lat` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '纬度',
  PRIMARY KEY (`id`),
  KEY `pid` (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='省份地区表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `area`
--

LOCK TABLES `area` WRITE;
/*!40000 ALTER TABLE `area` DISABLE KEYS */;
/*!40000 ALTER TABLE `area` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `attachment`
--

DROP TABLE IF EXISTS `attachment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `attachment` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `topic` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '细目',
  `admin_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上传管理员ID',
  `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上传用户ID',
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '物理路径',
  `width` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宽度',
  `height` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '高度',
  `name` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '原始名称',
  `size` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '大小',
  `mimetype` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'mime类型',
  `quote` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上传(引用)次数',
  `storage` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '存储方式',
  `sha1` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'sha1编码',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  `last_upload_time` bigint(16) unsigned DEFAULT NULL COMMENT '最后上传时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='附件表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `attachment`
--

LOCK TABLES `attachment` WRITE;
/*!40000 ALTER TABLE `attachment` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `captcha`
--

DROP TABLE IF EXISTS `captcha`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `captcha` (
  `key` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '验证码Key',
  `code` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '验证码(加密后)',
  `captcha` text COLLATE utf8mb4_unicode_ci COMMENT '验证码数据',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  `expire_time` bigint(16) unsigned DEFAULT NULL COMMENT '过期时间',
  PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='验证码表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `captcha`
--

LOCK TABLES `captcha` WRITE;
/*!40000 ALTER TABLE `captcha` DISABLE KEYS */;
/*!40000 ALTER TABLE `captcha` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `config`
--

DROP TABLE IF EXISTS `config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `config` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '变量名',
  `group` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '分组',
  `title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '变量标题',
  `tip` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '变量描述',
  `type` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '变量输入组件类型',
  `value` longtext COLLATE utf8mb4_unicode_ci COMMENT '变量值',
  `content` longtext COLLATE utf8mb4_unicode_ci COMMENT '字典数据',
  `rule` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '验证规则',
  `extend` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '扩展属性',
  `allow_del` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '允许删除:0=否,1=是',
  `weigh` int(11) NOT NULL DEFAULT '0' COMMENT '权重',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='系统配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `config`
--

LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES (1,'config_group','basics','Config group','','array','[{\"key\":\"basics\",\"value\":\"Basics\"},{\"key\":\"mail\",\"value\":\"Mail\"},{\"key\":\"config_quick_entrance\",\"value\":\"Config Quick entrance\"}]',NULL,'required','',0,-1),(2,'site_name','basics','Site Name','','string','BuildAdmin',NULL,'required','',0,99),(3,'record_number','basics','Record number','域名备案号','string','渝ICP备8888888号-1',NULL,'','',0,0),(4,'version','basics','Version number','系统版本号','string','v1.0.0',NULL,'required','',0,0),(5,'time_zone','basics','time zone','','string','Asia/Shanghai',NULL,'required','',0,0),(6,'no_access_ip','basics','No access ip','禁止访问站点的ip列表,一行一个','textarea',NULL,NULL,'','',0,0),(7,'smtp_server','mail','smtp server','','string','smtp.qq.com',NULL,'','',0,9),(8,'smtp_port','mail','smtp port','','string','465',NULL,'','',0,8),(9,'smtp_user','mail','smtp user','','string',NULL,NULL,'','',0,7),(10,'smtp_pass','mail','smtp pass','','string',NULL,NULL,'','',0,6),(11,'smtp_verification','mail','smtp verification','','select','SSL','{\"SSL\":\"SSL\",\"TLS\":\"TLS\"}','','',0,5),(12,'smtp_sender_mail','mail','smtp sender mail','','string',NULL,NULL,'email','',0,4),(13,'config_quick_entrance','config_quick_entrance','Config Quick entrance','','array','[{\"key\":\"\\u6570\\u636e\\u56de\\u6536\\u89c4\\u5219\\u914d\\u7f6e\",\"value\":\"security\\/dataRecycle\"},{\"key\":\"\\u654f\\u611f\\u6570\\u636e\\u89c4\\u5219\\u914d\\u7f6e\",\"value\":\"security\\/sensitiveData\"}]',NULL,'','',0,0),(14,'backend_entrance','basics','Backend entrance','','string','/admin',NULL,'required','',0,1);
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `crud_log`
--

DROP TABLE IF EXISTS `crud_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `crud_log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `table_name` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据表名',
  `comment` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '注释',
  `table` text COLLATE utf8mb4_unicode_ci COMMENT '数据表数据',
  `fields` text COLLATE utf8mb4_unicode_ci COMMENT '字段数据',
  `sync` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '同步记录',
  `status` enum('delete','success','error','start') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'start' COMMENT '状态:delete=已删除,success=成功,error=失败,start=生成中',
  `connection` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据库连接配置标识',
  `create_time` bigint(20) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='CRUD记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `crud_log`
--

LOCK TABLES `crud_log` WRITE;
/*!40000 ALTER TABLE `crud_log` DISABLE KEYS */;
INSERT INTO `crud_log` VALUES (1,'mall_wallet_record','用户钱包记录','{\"name\":\"mall_wallet_record\",\"comment\":\"用户钱包记录\",\"quickSearchField\":[\"id\",\"username\"],\"defaultSortField\":\"id\",\"formFields\":[\"username\",\"score\"],\"columnFields\":[\"id\",\"username\",\"score\",\"create_time\",\"update_time\"],\"defaultSortType\":\"desc\",\"generateRelativePath\":\"mall_wallet_record\",\"isCommonModel\":1,\"modelFile\":\"app\\/common\\/model\\/MallWalletRecord.php\",\"controllerFile\":\"app\\/admin\\/controller\\/mall\\/WalletRecord.php\",\"validateFile\":\"app\\/common\\/validate\\/MallWalletRecord.php\",\"webViewsDir\":\"web\\/src\\/views\\/backend\\/mall\\/walletRecord\",\"databaseConnection\":null,\"designChange\":[],\"rebuild\":\"No\"}','[{\"title\":\"主键\",\"name\":\"id\",\"comment\":\"ID\",\"designType\":\"pk\",\"formBuildExclude\":true,\"table\":{\"width\":70,\"operator\":\"RANGE\",\"sortable\":\"custom\"},\"form\":[],\"type\":\"int\",\"length\":10,\"precision\":0,\"defaultType\":\"NONE\",\"null\":false,\"primaryKey\":true,\"unsigned\":true,\"autoIncrement\":true,\"uuid\":\"e95f57ea-47e7-42ed-a088-1706d17503ac\"},{\"title\":\"字符串\",\"name\":\"username\",\"comment\":\"用户名\",\"designType\":\"string\",\"table\":{\"render\":\"none\",\"sortable\":\"false\",\"operator\":\"LIKE\"},\"form\":{\"validator\":[],\"validatorMsg\":\"\"},\"type\":\"varchar\",\"length\":255,\"precision\":0,\"defaultType\":\"EMPTY STRING\",\"null\":false,\"primaryKey\":false,\"unsigned\":false,\"autoIncrement\":false,\"uuid\":\"fefb11ed-bed0-4749-aa88-b95b3b2545f5\"},{\"title\":\"数字\",\"name\":\"score\",\"comment\":\"消耗积分\",\"designType\":\"number\",\"table\":{\"render\":\"none\",\"sortable\":\"false\",\"operator\":\"RANGE\"},\"form\":{\"validator\":[\"number\"],\"validatorMsg\":\"\",\"step\":1},\"type\":\"int\",\"length\":10,\"precision\":0,\"defaultType\":\"NULL\",\"null\":true,\"primaryKey\":false,\"unsigned\":false,\"autoIncrement\":false,\"uuid\":\"6b64722a-bd3b-4bc5-b082-e27a28b19d5f\"},{\"title\":\"创建时间\",\"name\":\"create_time\",\"comment\":\"创建时间\",\"designType\":\"timestamp\",\"formBuildExclude\":true,\"table\":{\"render\":\"datetime\",\"operator\":\"RANGE\",\"comSearchRender\":\"datetime\",\"comSearchInputAttr\":\"\",\"sortable\":\"custom\",\"width\":160,\"timeFormat\":\"yyyy-mm-dd hh:MM:ss\"},\"form\":{\"validator\":[\"date\"],\"validatorMsg\":\"\"},\"type\":\"bigint\",\"length\":16,\"precision\":0,\"defaultType\":\"NULL\",\"null\":true,\"primaryKey\":false,\"unsigned\":true,\"autoIncrement\":false,\"uuid\":\"a74e19b9-80ec-4db8-ac25-9b9dec9e59ee\"},{\"title\":\"修改时间\",\"name\":\"update_time\",\"comment\":\"修改时间\",\"designType\":\"timestamp\",\"formBuildExclude\":true,\"table\":{\"render\":\"datetime\",\"operator\":\"RANGE\",\"comSearchRender\":\"datetime\",\"comSearchInputAttr\":\"\",\"sortable\":\"custom\",\"width\":160,\"timeFormat\":\"yyyy-mm-dd hh:MM:ss\"},\"form\":{\"validator\":[\"date\"],\"validatorMsg\":\"\"},\"type\":\"bigint\",\"length\":16,\"precision\":0,\"defaultType\":\"NULL\",\"null\":true,\"primaryKey\":false,\"unsigned\":true,\"autoIncrement\":false,\"uuid\":\"ba3f2b1b-7f5e-4024-a72a-c139e76842f7\"}]',0,'success','mysql',1774075512);
/*!40000 ALTER TABLE `crud_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mall_wallet_record`
--

DROP TABLE IF EXISTS `mall_wallet_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `mall_wallet_record` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名',
  `score` int(10) DEFAULT NULL COMMENT '消耗积分',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='用户钱包记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mall_wallet_record`
--

LOCK TABLES `mall_wallet_record` WRITE;
/*!40000 ALTER TABLE `mall_wallet_record` DISABLE KEYS */;
INSERT INTO `mall_wallet_record` VALUES (1,'test1111',100,1774075557,1774075557);
/*!40000 ALTER TABLE `mall_wallet_record` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `migrations`
--

DROP TABLE IF EXISTS `migrations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `migrations` (
  `version` bigint(20) NOT NULL,
  `migration_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `start_time` timestamp NULL DEFAULT NULL,
  `end_time` timestamp NULL DEFAULT NULL,
  `breakpoint` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `migrations`
--

LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` VALUES (20230620180908,'Install','2026-03-09 09:41:03','2026-03-09 09:41:05',0),(20230620180916,'InstallData','2026-03-09 09:41:05','2026-03-09 09:41:06',0),(20230622221507,'Version200','2026-03-09 09:41:06','2026-03-09 09:41:07',0),(20230719211338,'Version201','2026-03-09 09:41:07','2026-03-09 09:41:07',0),(20230905060702,'Version202','2026-03-09 09:41:07','2026-03-09 09:41:07',0),(20231112093414,'Version205','2026-03-09 09:41:07','2026-03-09 09:41:07',0),(20231229043002,'Version206','2026-03-09 09:41:07','2026-03-09 09:41:08',0),(20250412134127,'Version222','2026-03-09 09:41:08','2026-03-09 09:41:11',0);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `security_data_recycle`
--

DROP TABLE IF EXISTS `security_data_recycle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `security_data_recycle` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '规则名称',
  `controller` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '控制器',
  `controller_as` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '控制器别名',
  `data_table` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '对应数据表',
  `connection` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据库连接配置标识',
  `primary_key` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据表主键',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:0=禁用,1=启用',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='回收规则表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `security_data_recycle`
--

LOCK TABLES `security_data_recycle` WRITE;
/*!40000 ALTER TABLE `security_data_recycle` DISABLE KEYS */;
INSERT INTO `security_data_recycle` VALUES (1,'管理员','auth/Admin.php','auth/admin','admin','','id',1,1773049265,1773049265),(2,'管理员日志','auth/AdminLog.php','auth/adminlog','admin_log','','id',1,1773049265,1773049265),(3,'菜单规则','auth/Menu.php','auth/menu','menu_rule','','id',1,1773049265,1773049265),(4,'系统配置项','routine/Config.php','routine/config','config','','id',1,1773049265,1773049265),(5,'会员','user/User.php','user/user','user','','id',1,1773049265,1773049265),(6,'数据回收规则','security/DataRecycle.php','security/datarecycle','security_data_recycle','','id',1,1773049265,1773049265);
/*!40000 ALTER TABLE `security_data_recycle` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `security_data_recycle_log`
--

DROP TABLE IF EXISTS `security_data_recycle_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `security_data_recycle_log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `admin_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作管理员',
  `recycle_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '回收规则ID',
  `data` text COLLATE utf8mb4_unicode_ci COMMENT '回收的数据',
  `data_table` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据表',
  `connection` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据库连接配置标识',
  `primary_key` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据表主键',
  `is_restore` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否已还原:0=否,1=是',
  `ip` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作者IP',
  `useragent` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'User-Agent',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='数据回收记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `security_data_recycle_log`
--

LOCK TABLES `security_data_recycle_log` WRITE;
/*!40000 ALTER TABLE `security_data_recycle_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `security_data_recycle_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `security_sensitive_data`
--

DROP TABLE IF EXISTS `security_sensitive_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `security_sensitive_data` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '规则名称',
  `controller` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '控制器',
  `controller_as` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '控制器别名',
  `data_table` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '对应数据表',
  `connection` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据库连接配置标识',
  `primary_key` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据表主键',
  `data_fields` text COLLATE utf8mb4_unicode_ci COMMENT '敏感数据字段',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:0=禁用,1=启用',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='敏感数据规则表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `security_sensitive_data`
--

LOCK TABLES `security_sensitive_data` WRITE;
/*!40000 ALTER TABLE `security_sensitive_data` DISABLE KEYS */;
INSERT INTO `security_sensitive_data` VALUES (1,'管理员数据','auth/Admin.php','auth/admin','admin','','id','{\"username\":\"用户名\",\"mobile\":\"手机\",\"password\":\"密码\",\"status\":\"状态\"}',1,1773049265,1773049265),(2,'会员数据','user/User.php','user/user','user','','id','{\"username\":\"用户名\",\"mobile\":\"手机号\",\"password\":\"密码\",\"status\":\"状态\",\"email\":\"邮箱地址\"}',1,1773049265,1773049265),(3,'管理员权限','auth/Group.php','auth/group','admin_group','','id','{\"rules\":\"权限规则ID\"}',1,1773049265,1773049265);
/*!40000 ALTER TABLE `security_sensitive_data` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `security_sensitive_data_log`
--

DROP TABLE IF EXISTS `security_sensitive_data_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `security_sensitive_data_log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `admin_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作管理员',
  `sensitive_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '敏感数据规则ID',
  `data_table` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据表',
  `connection` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据库连接配置标识',
  `primary_key` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '数据表主键',
  `data_field` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '被修改字段',
  `data_comment` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '被修改项',
  `id_value` int(11) NOT NULL DEFAULT '0' COMMENT '被修改项主键值',
  `before` text COLLATE utf8mb4_unicode_ci COMMENT '修改前',
  `after` text COLLATE utf8mb4_unicode_ci COMMENT '修改后',
  `ip` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作者IP',
  `useragent` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'User-Agent',
  `is_rollback` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否已回滚:0=否,1=是',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='敏感数据修改记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `security_sensitive_data_log`
--

LOCK TABLES `security_sensitive_data_log` WRITE;
/*!40000 ALTER TABLE `security_sensitive_data_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `security_sensitive_data_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `test_build`
--

DROP TABLE IF EXISTS `test_build`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `test_build` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '标题',
  `keyword_rows` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '关键词',
  `content` text COLLATE utf8mb4_unicode_ci COMMENT '内容',
  `views` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '浏览量',
  `likes` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '有帮助数',
  `dislikes` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '无帮助数',
  `note_textarea` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:0=禁用,1=启用',
  `weigh` int(11) NOT NULL DEFAULT '0' COMMENT '权重',
  `update_time` bigint(20) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(20) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='知识库表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `test_build`
--

LOCK TABLES `test_build` WRITE;
/*!40000 ALTER TABLE `test_build` DISABLE KEYS */;
/*!40000 ALTER TABLE `test_build` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `token`
--

DROP TABLE IF EXISTS `token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `token` (
  `token` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'Token',
  `type` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '类型',
  `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  `expire_time` bigint(16) unsigned DEFAULT NULL COMMENT '过期时间',
  PRIMARY KEY (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='用户Token表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `token`
--

LOCK TABLES `token` WRITE;
/*!40000 ALTER TABLE `token` DISABLE KEYS */;
INSERT INTO `token` VALUES ('094b51f9c6f3e3b4059f3bdc876ae4fbef78107c','admin',1,1775726739,1775985939),('a9f874dc2642a6c26f2cd77212ad1d7fb1c4edcf','admin',1,1775726895,1775986095);
/*!40000 ALTER TABLE `token` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user`
--

DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `user` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `group_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分组ID',
  `username` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名',
  `nickname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '昵称',
  `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '邮箱',
  `mobile` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '手机',
  `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像',
  `gender` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '性别:0=未知,1=男,2=女',
  `birthday` date DEFAULT NULL COMMENT '生日',
  `money` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '余额',
  `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
  `last_login_time` bigint(16) unsigned DEFAULT NULL COMMENT '上次登录时间',
  `last_login_ip` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '上次登录IP',
  `login_failure` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '登录失败次数',
  `join_ip` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '加入IP',
  `join_time` bigint(16) unsigned DEFAULT NULL COMMENT '加入时间',
  `motto` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '签名',
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '密码',
  `salt` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '密码盐（废弃待删）',
  `status` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '状态:enable=启用,disable=禁用',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='会员表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user`
--

LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES (1,1,'user','User','18888888888@qq.com','18888888888','',2,'2026-03-09',0,0,NULL,'',0,'',NULL,'','$2y$10$2iNGZqDA5aGA7tdZXKffguQ6aM0XbVbuMlpaE2w8GSYTQ9tc/2kfq','','enable',1773049265,1773049265);
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_group`
--

DROP TABLE IF EXISTS `user_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_group` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '组名',
  `rules` text COLLATE utf8mb4_unicode_ci COMMENT '权限节点',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:0=禁用,1=启用',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='会员组表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_group`
--

LOCK TABLES `user_group` WRITE;
/*!40000 ALTER TABLE `user_group` DISABLE KEYS */;
INSERT INTO `user_group` VALUES (1,'默认分组','*',1,1773049265,1773049265);
/*!40000 ALTER TABLE `user_group` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_money_log`
--

DROP TABLE IF EXISTS `user_money_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_money_log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID',
  `money` int(11) NOT NULL DEFAULT '0' COMMENT '变更余额',
  `before` int(11) NOT NULL DEFAULT '0' COMMENT '变更前余额',
  `after` int(11) NOT NULL DEFAULT '0' COMMENT '变更后余额',
  `memo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='会员余额变动表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_money_log`
--

LOCK TABLES `user_money_log` WRITE;
/*!40000 ALTER TABLE `user_money_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_money_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_rule`
--

DROP TABLE IF EXISTS `user_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_rule` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上级菜单',
  `type` enum('route','menu_dir','menu','nav_user_menu','nav','button') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'menu' COMMENT '类型:route=路由,menu_dir=菜单目录,menu=菜单项,nav_user_menu=顶栏会员菜单下拉项,nav=顶栏菜单项,button=页面按钮',
  `title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '标题',
  `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '规则名称',
  `path` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '路由路径',
  `icon` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '图标',
  `menu_type` enum('tab','link','iframe') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'tab' COMMENT '菜单类型:tab=选项卡,link=链接,iframe=Iframe',
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'Url',
  `component` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '组件路径',
  `no_login_valid` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '未登录有效:0=否,1=是',
  `extend` enum('none','add_rules_only','add_menu_only') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'none' COMMENT '扩展属性:none=无,add_rules_only=只添加为路由,add_menu_only=只添加为菜单',
  `remark` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  `weigh` int(11) NOT NULL DEFAULT '0' COMMENT '权重',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:0=禁用,1=启用',
  `update_time` bigint(16) unsigned DEFAULT NULL COMMENT '更新时间',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `pid` (`pid`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='会员菜单权限规则表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_rule`
--

LOCK TABLES `user_rule` WRITE;
/*!40000 ALTER TABLE `user_rule` DISABLE KEYS */;
INSERT INTO `user_rule` VALUES (1,0,'menu_dir','我的账户','account','account','fa fa-user-circle','tab','','',0,'none','',98,1,1773049265,1773049265),(2,1,'menu','账户概览','account/overview','account/overview','fa fa-home','tab','','/src/views/frontend/user/account/overview.vue',0,'none','',99,1,1773049265,1773049265),(3,1,'menu','个人资料','account/profile','account/profile','fa fa-user-circle-o','tab','','/src/views/frontend/user/account/profile.vue',0,'none','',98,1,1773049265,1773049265),(4,1,'menu','修改密码','account/changePassword','account/changePassword','fa fa-shield','tab','','/src/views/frontend/user/account/changePassword.vue',0,'none','',97,1,1773049265,1773049265),(5,1,'menu','积分记录','account/integral','account/integral','fa fa-tag','tab','','/src/views/frontend/user/account/integral.vue',0,'none','',96,1,1773049265,1773049265),(6,1,'menu','余额记录','account/balance','account/balance','fa fa-money','tab','','/src/views/frontend/user/account/balance.vue',0,'none','',95,1,1773049265,1773049265);
/*!40000 ALTER TABLE `user_rule` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_score_log`
--

DROP TABLE IF EXISTS `user_score_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
 SET character_set_client = utf8mb4 ;
CREATE TABLE `user_score_log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID',
  `score` int(11) NOT NULL DEFAULT '0' COMMENT '变更积分',
  `before` int(11) NOT NULL DEFAULT '0' COMMENT '变更前积分',
  `after` int(11) NOT NULL DEFAULT '0' COMMENT '变更后积分',
  `memo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  `create_time` bigint(16) unsigned DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='会员积分变动表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_score_log`
--

LOCK TABLES `user_score_log` WRITE;
/*!40000 ALTER TABLE `user_score_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_score_log` ENABLE KEYS */;
UNLOCK TABLES;
/*!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 */;

-- Dump completed on 2026-04-09 17:30:36
