/*
 Navicat Premium Data Transfer

 Source Server         : root@192.168.2.248-docker
 Source Server Type    : MySQL
 Source Server Version : 50744 (5.7.44)
 Source Host           : 192.168.2.248:3306
 Source Schema         : wfc_user_db

 Target Server Type    : MySQL
 Target Server Version : 50744 (5.7.44)
 File Encoding         : 65001

 Date: 13/12/2024 21:36:46
*/

-- DROP DATABASE IF EXISTS `wfc_user_db`;
CREATE DATABASE IF NOT EXISTS `wfc_user_db` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

USE wfc_user_db;

-- ----------------------------
-- Table structure for u_bill
-- ----------------------------
DROP TABLE IF EXISTS `u_bill`;
CREATE TABLE `u_bill`  (
  `bill_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Bill ID',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
  `fee` double NULL DEFAULT NULL,
  `billing_begin` datetime NULL DEFAULT NULL,
  `billing_end` datetime NULL DEFAULT NULL,
  `status` enum('unpaid','paid') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT 'unpaid',
  `create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT 'create name ',
  `create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
  PRIMARY KEY (`bill_id`) USING BTREE,
  INDEX `fk_user_id`(`user_id`) USING BTREE,
  CONSTRAINT `u_bill_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u_user` (`user_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_用户信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_bill
-- ----------------------------

-- ----------------------------
-- Table structure for u_cdr
-- ----------------------------
DROP TABLE IF EXISTS `u_cdr`;
CREATE TABLE `u_cdr`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'CDR ID',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
  `client_id` bigint(20) NULL DEFAULT NULL COMMENT 'Client ID',
  `device_id` bigint(20) NULL DEFAULT NULL COMMENT 'Device ID',
  `ssid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Wireless SSID name ',
  `rx_rate` bigint(20) NULL DEFAULT NULL COMMENT 'tx rate ',
  `tx_rate` bigint(20) NULL DEFAULT NULL COMMENT 'tx rate',
  `down_packet` bigint(20) NULL DEFAULT NULL COMMENT 'Number of downstream packets.\n',
  `up_packet` bigint(20) NULL DEFAULT NULL COMMENT 'Number of upstream packets.	',
  `traffic_down` bigint(20) NULL DEFAULT NULL COMMENT 'Downstream traffic (Byte)',
  `traffic_up` bigint(20) NULL DEFAULT NULL COMMENT 'Upstream traffic (Byte)',
  `rate_limit_profile_id` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Rate limit profile ID. ',
  `up_time` bigint(20) NULL DEFAULT NULL COMMENT 'Up time (unit: s).',
  `last_seen_time` bigint(20) NULL DEFAULT NULL COMMENT 'Last found time, timestamp (ms).	',
  `activity` bigint(20) DEFAULT NULL COMMENT 'Activity download speed (Bytes/s)',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
  `create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
  `update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_user_id`(`user_id`) USING BTREE,
  INDEX `fk_client_id`(`client_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_用户话单表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_cdr
-- ----------------------------
INSERT INTO `u_cdr` VALUES (1, NULL, 25, 14, 'TP-Link_OMC_Local', 229400, 286800, 3826, 5797, 662048, 880243, NULL, 48135, 1733796295310, '0', NULL, '2024-12-10 10:05:19', NULL, '2024-12-10 10:05:19');
INSERT INTO `u_cdr` VALUES (2, NULL, 26, 14, 'TP-Link_OMC', 130000, 130000, 22291, 15729, 19055983, 4034806, NULL, 7435, 1733824739047, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr` VALUES (3, NULL, 27, 14, 'TP-Link_OMC', 1000, 51600, 28, 85, 3630, 6611, NULL, 22, 1733880802431, '0', NULL, '2024-12-11 09:33:30', NULL, '2024-12-11 09:33:30');
INSERT INTO `u_cdr` VALUES (4, NULL, 28, 14, 'TP-Link_OMC', 1000, 39000, 63, 82, 5758, 11671, NULL, 18, 1733890274420, '0', NULL, '2024-12-11 12:11:30', NULL, '2024-12-11 12:11:30');
INSERT INTO `u_cdr` VALUES (5, NULL, 29, 14, 'TP-Link_OMC_Local', 0, 0, 0, 0, 0, 0, NULL, 3, 1733901657547, '0', NULL, '2024-12-11 15:21:00', NULL, '2024-12-11 15:21:00');
INSERT INTO `u_cdr` VALUES (6, NULL, 30, 14, 'TP-Link_OMC', 1000, 0, 5, 7, 950, 1284, NULL, 2, 1733913814394, '0', NULL, '2024-12-11 18:44:00', NULL, '2024-12-11 18:44:00');
INSERT INTO `u_cdr` VALUES (7, NULL, 31, 14, 'TP-Link_OMC_Local', 7300, 154900, 5, 9, 950, 1298, NULL, 11, 1734062849401, '0', NULL, '2024-12-13 12:07:30', NULL, '2024-12-13 12:07:30');

-- ----------------------------
-- Table structure for u_cdr_detail
-- ----------------------------
DROP TABLE IF EXISTS `u_cdr_detail`;
CREATE TABLE `u_cdr_detail`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'CDR Detail ID',
  `cdr_id` bigint(20) NULL DEFAULT NULL COMMENT 'CDR ID',
  `traffic_down` bigint(20) NULL DEFAULT NULL COMMENT 'Downstream traffic (Byte)',
  `traffic_up` bigint(20) NULL DEFAULT NULL COMMENT 'Upstream traffic (Byte)',
  `start_time` datetime NULL DEFAULT NULL COMMENT 'Start time',
  `end_time` datetime NULL DEFAULT NULL COMMENT 'End time',
  `duration` bigint(20) NULL DEFAULT NULL COMMENT 'Duration(s)',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
  `create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
  `update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 50 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_话单明细表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_cdr_detail
-- ----------------------------
INSERT INTO `u_cdr_detail` VALUES (1, 1, 71171072, 4652987, '2024-12-09 18:46:58', '2024-12-09 20:42:20', 6922, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (2, 1, 863109, 401656, '2024-12-09 18:45:16', '2024-12-09 18:46:52', 95, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (3, 1, 4736548, 325402, '2024-12-09 17:30:06', '2024-12-09 18:44:49', 4483, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (4, 1, 810859, 336511, '2024-12-09 17:26:57', '2024-12-09 17:29:14', 136, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (5, 1, 18372637, 3844532, '2024-12-09 12:00:49', '2024-12-09 17:26:12', 19523, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (6, 1, 175578422, 8599381, '2024-12-09 11:40:18', '2024-12-09 12:00:26', 1207, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (7, 1, 60715, 46709, '2024-12-06 22:08:23', '2024-12-07 22:18:47', 87024, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (8, 1, 42178442, 4180930, '2024-12-06 20:58:41', '2024-12-06 22:02:44', 3842, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (9, 1, 84960979, 16220097, '2024-12-06 19:58:07', '2024-12-06 20:58:11', 3603, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (10, 1, 19564, 35295, '2024-12-06 19:58:04', '2024-12-06 19:58:07', 3, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (11, 1, 142458801, 36675772, '2024-12-06 18:21:48', '2024-12-06 19:57:37', 5749, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (12, 1, 216578151, 51339444, '2024-12-06 14:24:07', '2024-12-06 18:21:20', 14233, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (13, 1, 41865657, 2803628, '2024-12-06 14:21:04', '2024-12-06 14:23:16', 132, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (14, 1, 98078342, 34807615, '2024-12-06 10:09:31', '2024-12-06 14:20:43', 15072, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (15, 1, 588669366, 27585966, '2024-12-05 18:41:25', '2024-12-06 10:09:20', 55675, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (16, 1, 7275254, 5047583, '2024-12-05 17:49:44', '2024-12-05 18:35:41', 2757, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (17, 1, 3751073, 156401, '2024-12-05 17:45:31', '2024-12-05 17:48:45', 194, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (18, 1, 9928, 4849, '2024-12-05 17:44:36', '2024-12-05 17:45:14', 38, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (19, 1, 7513830, 308434, '2024-12-05 17:41:48', '2024-12-05 17:43:43', 115, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (20, 1, 7668, 5124, '2024-12-05 17:39:53', '2024-12-05 17:41:42', 108, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (21, 1, 45293, 27716, '2024-12-05 17:32:39', '2024-12-05 17:33:38', 58, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (22, 1, 16868, 18375, '2024-12-05 17:18:17', '2024-12-05 17:18:59', 42, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (23, 1, 5046990, 307240, '2024-12-05 17:14:13', '2024-12-05 17:17:59', 225, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (24, 1, 11673315, 996215, '2024-12-05 16:39:19', '2024-12-05 17:13:27', 2047, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (25, 1, 4787786, 270761, '2024-12-05 16:38:55', '2024-12-05 16:39:09', 14, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (26, 1, 4256513, 469084, '2024-12-05 16:37:19', '2024-12-05 16:38:39', 80, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (27, 1, 287877439, 5235933, '2024-12-05 16:24:11', '2024-12-05 16:36:08', 716, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (28, 1, 5797592, 427953, '2024-12-05 16:19:07', '2024-12-05 16:24:01', 294, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (29, 1, 10817007, 2028458, '2024-12-05 15:50:53', '2024-12-05 16:19:01', 1688, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (30, 1, 383062, 576649, '2024-12-05 15:49:38', '2024-12-05 15:50:46', 68, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (31, 1, 9380, 14804, '2024-12-02 09:55:49', '2024-12-02 11:16:27', 4838, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (32, 1, 252220319, 16473157, '2024-11-26 15:18:32', '2024-11-29 18:58:08', 272376, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (33, 1, 17953058, 979883, '2024-11-26 15:12:55', '2024-11-26 15:18:07', 311, '0', NULL, '2024-12-10 10:05:20', NULL, '2024-12-10 10:05:20');
INSERT INTO `u_cdr_detail` VALUES (34, 2, 572385, 1002589, '2024-12-10 15:51:09', '2024-12-10 15:53:54', 165, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (35, 2, 16740934, 1939805, '2024-12-10 15:32:36', '2024-12-10 15:50:23', 1067, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (36, 2, 792485, 1217696, '2024-12-10 15:30:13', '2024-12-10 15:32:13', 120, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (37, 2, 424498, 2684385, '2024-12-10 15:22:51', '2024-12-10 15:29:42', 410, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (38, 2, 183348, 1194974, '2024-12-10 15:19:52', '2024-12-10 15:22:37', 165, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (39, 2, 25488404, 1129856, '2024-12-10 15:17:27', '2024-12-10 15:19:04', 97, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (40, 2, 2528788, 1443800, '2024-12-10 15:14:10', '2024-12-10 15:17:02', 172, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (41, 2, 1265272, 2210930, '2024-12-10 14:51:39', '2024-12-10 15:11:27', 1188, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (42, 2, 6577289, 4381881, '2024-12-10 14:43:49', '2024-12-10 14:50:18', 388, '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_cdr_detail` VALUES (43, 3, 5759, 6531, '2024-12-10 09:38:09', '2024-12-10 09:42:46', 277, '0', NULL, '2024-12-11 09:33:30', NULL, '2024-12-11 09:33:30');
INSERT INTO `u_cdr_detail` VALUES (44, 3, 1627189434, 16138171, '2024-12-04 13:15:26', '2024-12-04 21:15:32', 28806, '0', NULL, '2024-12-11 09:33:30', NULL, '2024-12-11 09:33:30');
INSERT INTO `u_cdr_detail` VALUES (45, 3, 783491702, 56381152, '2024-11-30 16:47:11', '2024-11-30 18:33:43', 6392, '0', NULL, '2024-12-11 09:33:30', NULL, '2024-12-11 09:33:30');
INSERT INTO `u_cdr_detail` VALUES (46, 3, 8482, 10778, '2024-11-29 17:23:45', '2024-11-29 18:06:12', 2547, '0', NULL, '2024-12-11 09:33:30', NULL, '2024-12-11 09:33:30');
INSERT INTO `u_cdr_detail` VALUES (47, 4, 1036, 1454, '2024-12-09 12:00:31', '2024-12-09 12:00:56', 25, '0', NULL, '2024-12-11 12:11:30', NULL, '2024-12-11 12:11:30');
INSERT INTO `u_cdr_detail` VALUES (48, 4, 4292, 5605, '2024-12-07 09:53:19', '2024-12-07 09:58:00', 281, '0', NULL, '2024-12-11 12:11:30', NULL, '2024-12-11 12:11:30');
INSERT INTO `u_cdr_detail` VALUES (49, 6, 772, 664, '2024-12-02 17:36:28', '2024-12-02 17:41:26', 298, '0', NULL, '2024-12-11 18:44:00', NULL, '2024-12-11 18:44:00');

-- ----------------------------
-- Table structure for u_cdr_history
-- ----------------------------
DROP TABLE IF EXISTS `u_cdr_history`;
CREATE TABLE `u_cdr_history`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'CDR Detail ID',
  `cdr_id` bigint(20) NULL DEFAULT NULL COMMENT 'CDR ID',
  `traffic_down` bigint(20) NULL DEFAULT NULL COMMENT 'Downstream traffic (Byte)',
  `traffic_up` bigint(20) NULL DEFAULT NULL COMMENT 'Upstream traffic (Byte)',
  `start_time` bigint(20) NULL DEFAULT NULL COMMENT 'Start time',
  `end_time` bigint(20) NULL DEFAULT NULL COMMENT 'End time',
  `duration` bigint(20) NULL DEFAULT NULL COMMENT 'Duration(s)',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
  `create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
  `update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_话单历史表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_cdr_history
-- ----------------------------

-- ----------------------------
-- Table structure for u_client
-- ----------------------------
DROP TABLE IF EXISTS `u_client`;
CREATE TABLE `u_client`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Client ID',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
  `client_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client Name',
  `client_device_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client device type',
  `client_mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Client mac address',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
  `create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
  `update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_用户设备表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_client
-- ----------------------------
INSERT INTO `u_client` VALUES (25, NULL, '绍齐', 'unknown', '88-BB-09-24-10-04', '0', NULL, '2024-12-10 10:05:19', NULL, '2024-12-10 10:05:19');
INSERT INTO `u_client` VALUES (26, NULL, 'Calvin', 'unknown', 'DC-71-96-A0-F3-4D', '0', NULL, '2024-12-10 17:59:01', NULL, '2024-12-10 17:59:01');
INSERT INTO `u_client` VALUES (27, NULL, '昊天', 'unknown', '42-2F-B5-A4-08-20', '0', NULL, '2024-12-11 09:33:30', NULL, '2024-12-11 09:33:30');
INSERT INTO `u_client` VALUES (28, NULL, 'TAS-AN00', 'unknown', 'A2-FA-6E-BA-5B-34', '0', NULL, '2024-12-11 12:11:30', NULL, '2024-12-11 12:11:30');
INSERT INTO `u_client` VALUES (29, NULL, '92-7F-46-CC-2C-BA', 'unknown', '92-7F-46-CC-2C-BA', '0', NULL, '2024-12-11 15:21:00', NULL, '2024-12-11 15:21:00');
INSERT INTO `u_client` VALUES (30, NULL, 'B2-93-4C-64-A4-16', 'unknown', 'B2-93-4C-64-A4-16', '0', NULL, '2024-12-11 18:44:00', NULL, '2024-12-11 18:44:00');
INSERT INTO `u_client` VALUES (31, NULL, 'BRA-AL00', 'unknown', '82-EE-70-63-8F-C6', '0', NULL, '2024-12-13 12:07:30', NULL, '2024-12-13 12:07:30');

-- ----------------------------
-- Table structure for u_config
-- ----------------------------
DROP TABLE IF EXISTS `u_config`;
CREATE TABLE `u_config`  (
  `config_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值',
  `config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_参数配置表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_config
-- ----------------------------
INSERT INTO `u_config` VALUES (1, '用户管理-账号初始密码', 'user.initPassword', '123456', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '初始化密码 123456');
INSERT INTO `u_config` VALUES (2, '账号自助-是否开启用户注册功能', 'user.register', 'true', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '是否开启注册用户功能（true开启，false关闭）');
INSERT INTO `u_config` VALUES (3, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2024-05-08 21:50:55', '', NULL, '设置登录IP黑名单限制，多个匹配项以;分隔，支持匹配（*通配、网段）');

-- ----------------------------
-- Table structure for u_dept
-- ----------------------------
DROP TABLE IF EXISTS `u_dept`;
CREATE TABLE `u_dept`  (
  `dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
  `parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父部门id',
  `ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',
  `dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
  `order_num` int(11) NULL DEFAULT 0 COMMENT '显示顺序',
  `leader` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人',
  `phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '部门状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 102 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_部门表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_dept
-- ----------------------------
INSERT INTO `u_dept` VALUES (100, 0, '0', 'ROOT', 0, 'system', '123456', '123456@wfc.com', '0', '0', 'system', '2024-11-27 21:50:54', '', NULL, NULL);
INSERT INTO `u_dept` VALUES (101, 100, '0,100', 'No.1', 1, 'system', '123456', '123456@wfc.com', '0', '0', 'system', '2024-11-27 21:50:54', '', NULL, NULL);

-- ----------------------------
-- Table structure for u_device
-- ----------------------------
DROP TABLE IF EXISTS `u_device`;
CREATE TABLE `u_device`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Device ID',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
  `device_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device Name',
  `device_ip` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device ip',
  `device_mac` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device mac',
  `device_model` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Device model',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '0' COMMENT 'delete flag',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT 'creater',
  `create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT 'updater',
  `update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_AP设备表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_device
-- ----------------------------
INSERT INTO `u_device` VALUES (14, NULL, 'B0-19-21-7E-27-40', '192.168.2.207', 'B0-19-21-7E-27-40', 'EAP660 HD(US) v2.0', '0', NULL, '2024-12-10 10:05:19', NULL, '2024-12-10 10:05:19');
INSERT INTO `u_device` VALUES (15, NULL, 'B0-19-21-7E-25-B6', '192.168.2.192', 'B0-19-21-7E-25-B6', 'EAP660 HD(US) v2.0', '0', NULL, '2024-12-10 10:05:19', NULL, '2024-12-10 10:05:19');

-- ----------------------------
-- Table structure for u_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `u_dict_data`;
CREATE TABLE `u_dict_data`  (
  `dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  `dict_sort` int(11) NULL DEFAULT 0 COMMENT '字典排序',
  `dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典标签',
  `dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典键值',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
  `css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '样式属性（其他样式扩展）',
  `list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
  `is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否默认（Y是 N否）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_字典数据表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_dict_data
-- ----------------------------
INSERT INTO `u_dict_data` VALUES (1, 1, '男', '0', 'u_user_sex', '', '', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别男');
INSERT INTO `u_dict_data` VALUES (2, 2, '女', '1', 'u_user_sex', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别女');
INSERT INTO `u_dict_data` VALUES (3, 3, '未知', '2', 'u_user_sex', '', '', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '性别未知');
INSERT INTO `u_dict_data` VALUES (4, 1, '显示', '0', 'u_show_hide', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '显示菜单');
INSERT INTO `u_dict_data` VALUES (5, 2, '隐藏', '1', 'u_show_hide', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '隐藏菜单');
INSERT INTO `u_dict_data` VALUES (6, 1, '正常', '0', 'u_normal_disable', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '正常状态');
INSERT INTO `u_dict_data` VALUES (7, 2, '停用', '1', 'u_normal_disable', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '停用状态');
INSERT INTO `u_dict_data` VALUES (8, 1, '是', 'Y', 'u_yes_no', '', 'primary', 'Y', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统默认是');
INSERT INTO `u_dict_data` VALUES (9, 2, '否', 'N', 'u_yes_no', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统默认否');
INSERT INTO `u_dict_data` VALUES (10, 99, '其他', '0', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '其他操作');
INSERT INTO `u_dict_data` VALUES (11, 1, '新增', '1', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '新增操作');
INSERT INTO `u_dict_data` VALUES (12, 2, '修改', '2', 'u_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '修改操作');
INSERT INTO `u_dict_data` VALUES (13, 3, '删除', '3', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '删除操作');
INSERT INTO `u_dict_data` VALUES (14, 4, '授权', '4', 'u_oper_type', '', 'primary', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '授权操作');
INSERT INTO `u_dict_data` VALUES (15, 5, '导出', '5', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '导出操作');
INSERT INTO `u_dict_data` VALUES (16, 6, '导入', '6', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '导入操作');
INSERT INTO `u_dict_data` VALUES (17, 7, '强退', '7', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '强退操作');
INSERT INTO `u_dict_data` VALUES (18, 8, '生成代码', '8', 'u_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '生成操作');
INSERT INTO `u_dict_data` VALUES (19, 9, '清空数据', '9', 'u_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '清空操作');
INSERT INTO `u_dict_data` VALUES (20, 1, '成功', '0', 'u_common_status', '', 'primary', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '正常状态');
INSERT INTO `u_dict_data` VALUES (21, 2, '失败', '1', 'u_common_status', '', 'danger', 'N', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '停用状态');

-- ----------------------------
-- Table structure for u_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `u_dict_type`;
CREATE TABLE `u_dict_type`  (
  `dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`) USING BTREE,
  UNIQUE INDEX `dict_type`(`dict_type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_字典类型表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_dict_type
-- ----------------------------
INSERT INTO `u_dict_type` VALUES (1, '用户性别', 'u_user_sex', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '用户性别列表');
INSERT INTO `u_dict_type` VALUES (2, '菜单状态', 'u_show_hide', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '菜单状态列表');
INSERT INTO `u_dict_type` VALUES (3, '系统开关', 'u_normal_disable', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统开关列表');
INSERT INTO `u_dict_type` VALUES (4, '系统是否', 'u_yes_no', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '系统是否列表');
INSERT INTO `u_dict_type` VALUES (5, '操作类型', 'u_oper_type', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '操作类型列表');
INSERT INTO `u_dict_type` VALUES (6, '系统状态', 'u_common_status', '0', 'admin', '2024-05-08 21:50:55', '', NULL, '登录状态列表');

-- ----------------------------
-- Table structure for u_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `u_logininfor`;
CREATE TABLE `u_logininfor`  (
  `info_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户账号',
  `ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '登录状态（0成功 1失败）',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示信息',
  `access_time` datetime NULL DEFAULT NULL COMMENT '访问时间',
  PRIMARY KEY (`info_id`) USING BTREE,
  INDEX `idx_u_logininfor_s`(`status`) USING BTREE,
  INDEX `idx_u_logininfor_lt`(`access_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 74 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_系统访问记录' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_logininfor
-- ----------------------------
INSERT INTO `u_logininfor` VALUES (1, '123456', '192.168.5.58', '0', '登录成功', '2024-12-03 18:00:38');
INSERT INTO `u_logininfor` VALUES (2, 'super', '192.168.5.58', '0', '登录成功', '2024-12-03 18:01:03');
INSERT INTO `u_logininfor` VALUES (3, '123456', '192.168.88.14', '0', '登录成功', '2024-12-03 18:01:07');
INSERT INTO `u_logininfor` VALUES (4, '123456', '192.168.88.14', '0', '登录成功', '2024-12-03 18:03:15');
INSERT INTO `u_logininfor` VALUES (5, 'super', '192.168.5.58', '0', '登录成功', '2024-12-03 18:04:23');
INSERT INTO `u_logininfor` VALUES (6, '123456', '192.168.5.58', '0', '登录成功', '2024-12-03 18:05:29');
INSERT INTO `u_logininfor` VALUES (7, '123456', '192.168.88.14', '0', '登录成功', '2024-12-03 18:21:16');
INSERT INTO `u_logininfor` VALUES (8, '123456', '192.168.2.158', '0', '登录成功', '2024-12-03 18:48:16');
INSERT INTO `u_logininfor` VALUES (9, '123456', '192.168.2.158', '0', '登录成功', '2024-12-03 18:48:38');
INSERT INTO `u_logininfor` VALUES (10, '123456', '192.168.88.14', '0', '登录成功', '2024-12-03 18:52:35');
INSERT INTO `u_logininfor` VALUES (11, '123456', '192.168.88.14', '0', '登录成功', '2024-12-03 19:27:12');
INSERT INTO `u_logininfor` VALUES (12, '123456', '192.168.2.157', '0', '登录成功', '2024-12-04 09:42:25');
INSERT INTO `u_logininfor` VALUES (13, '123456', '192.168.2.116', '0', '登录成功', '2024-12-04 09:54:20');
INSERT INTO `u_logininfor` VALUES (14, '123456', '192.168.2.157', '0', '登录成功', '2024-12-04 14:48:14');
INSERT INTO `u_logininfor` VALUES (15, 'superueser', '192.168.2.157', '1', '登录用户不存在', '2024-12-04 19:05:14');
INSERT INTO `u_logininfor` VALUES (16, 'superueser', '192.168.2.157', '1', '登录用户不存在', '2024-12-04 19:05:21');
INSERT INTO `u_logininfor` VALUES (17, 'surperueser', '192.168.2.157', '1', '登录用户不存在', '2024-12-04 19:05:29');
INSERT INTO `u_logininfor` VALUES (18, 'surperuser', '192.168.2.157', '1', '登录用户不存在', '2024-12-04 19:05:37');
INSERT INTO `u_logininfor` VALUES (19, 'superuser', '192.168.2.157', '1', '登录用户不存在', '2024-12-04 19:05:45');
INSERT INTO `u_logininfor` VALUES (20, 'superuser', '192.168.2.157', '1', '登录用户不存在', '2024-12-04 19:06:00');
INSERT INTO `u_logininfor` VALUES (21, '123456', '192.168.2.157', '0', '登录成功', '2024-12-04 19:06:11');
INSERT INTO `u_logininfor` VALUES (22, '123456', '192.168.88.14', '0', '登录成功', '2024-12-05 09:42:18');
INSERT INTO `u_logininfor` VALUES (23, '123456', '192.168.2.116', '0', '登录成功', '2024-12-05 11:07:40');
INSERT INTO `u_logininfor` VALUES (24, '123456', '192.168.88.14', '0', '登录成功', '2024-12-05 16:17:05');
INSERT INTO `u_logininfor` VALUES (25, '123456', '172.19.0.1', '1', '登录用户不存在', '2024-12-05 18:02:29');
INSERT INTO `u_logininfor` VALUES (26, '123456', '192.168.2.158', '1', '登录用户不存在', '2024-12-05 18:24:23');
INSERT INTO `u_logininfor` VALUES (27, 'admin', '192.168.2.158', '1', '登录用户不存在', '2024-12-05 18:32:59');
INSERT INTO `u_logininfor` VALUES (28, '123456', '192.168.88.14', '0', '登录成功', '2024-12-05 18:33:53');
INSERT INTO `u_logininfor` VALUES (29, '123456', '192.168.2.224', '0', '登录成功', '2024-12-05 20:18:31');
INSERT INTO `u_logininfor` VALUES (30, '123456', '192.168.2.224', '0', '登录成功', '2024-12-05 20:29:24');
INSERT INTO `u_logininfor` VALUES (31, '123456', '192.168.88.14', '0', '登录成功', '2024-12-06 08:38:47');
INSERT INTO `u_logininfor` VALUES (32, '123456', '192.168.88.14', '0', '登录成功', '2024-12-06 09:18:42');
INSERT INTO `u_logininfor` VALUES (33, '123456', '192.168.88.14', '0', '登录成功', '2024-12-06 09:45:04');
INSERT INTO `u_logininfor` VALUES (34, '123456', '192.168.2.224', '0', '登录成功', '2024-12-06 09:54:36');
INSERT INTO `u_logininfor` VALUES (35, '123456', '192.168.2.224', '0', '登录成功', '2024-12-06 09:57:22');
INSERT INTO `u_logininfor` VALUES (36, 'surperuser', '192.168.88.14', '1', '登录用户不存在', '2024-12-06 10:20:01');
INSERT INTO `u_logininfor` VALUES (37, 'surperuser', '192.168.88.14', '1', '登录用户不存在', '2024-12-06 10:21:41');
INSERT INTO `u_logininfor` VALUES (38, 'superuser', '192.168.88.14', '1', '登录用户不存在', '2024-12-06 10:21:47');
INSERT INTO `u_logininfor` VALUES (39, 'super', '192.168.88.14', '0', '登录成功', '2024-12-06 10:22:29');
INSERT INTO `u_logininfor` VALUES (40, '123456', '192.168.88.14', '0', '登录成功', '2024-12-06 10:24:15');
INSERT INTO `u_logininfor` VALUES (41, 'super', '192.168.88.14', '0', '登录成功', '2024-12-06 10:28:46');
INSERT INTO `u_logininfor` VALUES (42, '123456', '192.168.88.14', '0', '登录成功', '2024-12-06 10:35:26');
INSERT INTO `u_logininfor` VALUES (43, 'super', '192.168.88.14', '0', '登录成功', '2024-12-06 10:35:43');
INSERT INTO `u_logininfor` VALUES (44, '123456', '192.168.88.14', '0', '登录成功', '2024-12-06 10:35:54');
INSERT INTO `u_logininfor` VALUES (45, 'super', '192.168.88.14', '0', '登录成功', '2024-12-06 10:36:35');
INSERT INTO `u_logininfor` VALUES (46, '123456', '192.168.88.14', '0', '登录成功', '2024-12-06 10:36:44');
INSERT INTO `u_logininfor` VALUES (47, '123456', '192.168.88.14', '0', '登录成功', '2024-12-06 10:38:02');
INSERT INTO `u_logininfor` VALUES (48, '123456', '192.168.88.14', '0', '登录成功', '2024-12-09 10:26:42');
INSERT INTO `u_logininfor` VALUES (49, '123456', '192.168.2.157', '0', '登录成功', '2024-12-10 10:31:51');
INSERT INTO `u_logininfor` VALUES (50, '123456', '192.168.2.213', '0', '登录成功', '2024-12-10 15:14:14');
INSERT INTO `u_logininfor` VALUES (51, '10086', '192.168.2.213', '0', '注册成功', '2024-12-10 15:15:19');
INSERT INTO `u_logininfor` VALUES (52, 'test1', '192.168.2.63', '0', '注册成功', '2024-12-10 15:16:10');
INSERT INTO `u_logininfor` VALUES (53, 'test1', '192.168.2.63', '0', '登录成功', '2024-12-10 15:18:00');
INSERT INTO `u_logininfor` VALUES (54, 'agtuser', '192.168.2.63', '1', '登录用户不存在', '2024-12-10 15:29:06');
INSERT INTO `u_logininfor` VALUES (55, 'test1', '192.168.2.63', '0', '登录成功', '2024-12-10 15:29:20');
INSERT INTO `u_logininfor` VALUES (56, 'test2', '192.168.2.63', '0', '注册成功', '2024-12-10 15:52:18');
INSERT INTO `u_logininfor` VALUES (57, 'test2', '192.168.2.63', '0', '登录成功', '2024-12-10 15:53:05');
INSERT INTO `u_logininfor` VALUES (58, 'test2', '192.168.2.63', '0', '登录成功', '2024-12-10 15:56:06');
INSERT INTO `u_logininfor` VALUES (59, 'test11', '192.168.2.22', '0', '注册成功', '2024-12-10 20:14:53');
INSERT INTO `u_logininfor` VALUES (60, '123456', '192.168.2.167', '0', '登录成功', '2024-12-11 10:08:41');
INSERT INTO `u_logininfor` VALUES (61, '123456', '192.168.2.167', '0', '登录成功', '2024-12-11 11:40:48');
INSERT INTO `u_logininfor` VALUES (62, '123456', '192.168.2.167', '0', '登录成功', '2024-12-11 15:16:59');
INSERT INTO `u_logininfor` VALUES (63, '123456', '192.168.2.108', '0', '登录成功', '2024-12-11 19:41:55');
INSERT INTO `u_logininfor` VALUES (64, '123456', '192.168.2.167', '0', '登录成功', '2024-12-12 09:57:24');
INSERT INTO `u_logininfor` VALUES (65, 'Arnotest', '192.168.2.167', '0', '注册成功', '2024-12-12 15:18:45');
INSERT INTO `u_logininfor` VALUES (66, '123456', '192.168.2.167', '0', '登录成功', '2024-12-12 15:43:45');
INSERT INTO `u_logininfor` VALUES (67, '123456', '192.168.2.167', '0', '登录成功', '2024-12-12 17:48:06');
INSERT INTO `u_logininfor` VALUES (68, '123456', '192.168.2.167', '0', '登录成功', '2024-12-13 09:46:19');
INSERT INTO `u_logininfor` VALUES (69, '123456', '192.168.2.167', '0', '登录成功', '2024-12-13 15:13:40');
INSERT INTO `u_logininfor` VALUES (70, '123456', '192.168.2.167', '0', '登录成功', '2024-12-13 15:33:15');
INSERT INTO `u_logininfor` VALUES (71, '123456', '192.168.2.167', '0', '登录成功', '2024-12-13 16:09:05');
INSERT INTO `u_logininfor` VALUES (72, '123456', '192.168.2.167', '0', '登录成功', '2024-12-13 17:42:27');
INSERT INTO `u_logininfor` VALUES (73, '123456', '192.168.2.94', '0', '登录成功', '2024-12-13 18:16:34');

-- ----------------------------
-- Table structure for u_menu
-- ----------------------------
DROP TABLE IF EXISTS `u_menu`;
CREATE TABLE `u_menu`  (
  `menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
  `parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父菜单ID',
  `order_num` int(11) NULL DEFAULT 0 COMMENT '显示顺序',
  `path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址',
  `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径',
  `query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由参数',
  `is_frame` int(11) NULL DEFAULT 1 COMMENT '是否为外链（0是 1否）',
  `is_cache` int(11) NULL DEFAULT 0 COMMENT '是否缓存（0缓存 1不缓存）',
  `menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单类型（M目录 C菜单 F按钮）',
  `visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态（0显示 1隐藏）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态（0正常 1停用）',
  `perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单key',
  PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2013 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_菜单权限表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_menu
-- ----------------------------
INSERT INTO `u_menu` VALUES (1, '系统管理', 0, 1000, '/manage', 'layout.base', '', 1, 0, 'M', '0', '0', '', 'carbon:cloud-service-management', 'admin', '2024-05-08 21:50:55', 'admin', '2024-12-02 16:45:58', '系统管理目录', 'manage');
INSERT INTO `u_menu` VALUES (100, '用户管理', 1, 1, '/manage/user', 'view.manage_user', '', 1, 0, 'C', '0', '0', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:50:31', '用户管理菜单', 'manage_user');
INSERT INTO `u_menu` VALUES (101, '角色管理', 1, 2, '/manage/role', 'view.manage_role', '', 1, 0, 'C', '0', '0', '', 'carbon:user-role', 'admin', '2024-05-08 21:50:55', '', NULL, '角色管理菜单', 'manage_role');
INSERT INTO `u_menu` VALUES (102, '菜单管理', 1, 3, '/manage/menu', 'view.manage_menu', '', 1, 0, 'C', '0', '0', '', 'material-symbols:route', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:12', '菜单管理菜单', 'manage_menu');
INSERT INTO `u_menu` VALUES (103, '部门管理', 1, 4, '/manage/dept', 'view.manage_dept', '', 1, 0, 'C', '0', '0', '', 'carbon:box', 'admin', '2024-05-08 21:50:55', 'ryadmin', '2024-05-30 23:17:41', '部门管理菜单', 'manage_dept');
INSERT INTO `u_menu` VALUES (104, '岗位管理', 1, 5, '/manage/post', 'view.manage_post', NULL, 1, 0, 'C', '0', '0', '', 'carbon:group', 'admin', '2024-06-02 22:18:48', '', NULL, '', 'manage_post');
INSERT INTO `u_menu` VALUES (105, '字典管理', 1, 6, '/manage/dict', 'view.manage_dict', NULL, 1, 0, 'C', '0', '0', '', 'carbon:volume-block-storage', 'admin', '2024-06-02 23:13:40', '', NULL, '', 'manage_dict');
INSERT INTO `u_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1016, '部门查询', 103, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1017, '部门新增', 103, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1018, '部门修改', 103, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1019, '部门删除', 103, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1020, '岗位查询', 104, 1, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1021, '岗位新增', 104, 2, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1022, '岗位修改', 104, 3, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1023, '岗位删除', 104, 4, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1024, '岗位导出', 104, 5, '', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', 1, 0, 'F', '0', '0', '', '#', 'admin', '2024-05-08 21:50:55', '', NULL, '', NULL);
INSERT INTO `u_menu` VALUES (2000, '目录1', 0, 10, '/dir1', 'layout.base', '', 1, 0, 'M', '0', '1', '', 'carbon:cloud-service-management', 'admin', '2024-05-08 21:50:55', 'admin', '2024-05-12 23:46:57', '', '');
INSERT INTO `u_menu` VALUES (2001, '历史', 2000, 1, '/dir1/histories', 'view.set-meal_histories', '', 1, 0, 'C', '0', '1', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '', '');
INSERT INTO `u_menu` VALUES (2010, '目录2', 0, 15, '/dir2', 'layout.base', NULL, 1, 1, 'M', '0', '1', '', 'carbon:account', 'admin', '2024-12-02 16:43:46', '', '2024-12-02 16:45:25', '', '');
INSERT INTO `u_menu` VALUES (2011, '当前', 2010, 1, '/dir2/access', 'view.dir2_access', '', 1, 0, 'C', '0', '1', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '', '');
INSERT INTO `u_menu` VALUES (2012, '历史', 2010, 1, '/dir2/records', 'view.dir2_records', '', 1, 0, 'C', '0', '1', '', 'ic:round-manage-accounts', 'admin', '2024-05-08 21:50:55', 'admin', '2024-11-29 17:23:36', '', '');

-- ----------------------------
-- Table structure for u_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `u_oper_log`;
CREATE TABLE `u_oper_log`  (
  `oper_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '模块标题',
  `business_type` int(11) NULL DEFAULT 0 COMMENT '业务类型（0其它 1新增 2修改 3删除）',
  `method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称',
  `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求方式',
  `operator_type` int(11) NULL DEFAULT 0 COMMENT '操作类别（0其它 1后台用户 2手机端用户）',
  `oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员',
  `dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
  `oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL',
  `oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址',
  `oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点',
  `oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求参数',
  `json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回参数',
  `status` int(11) NULL DEFAULT 0 COMMENT '操作状态（0正常 1异常）',
  `error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息',
  `oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间',
  `cost_time` bigint(20) NULL DEFAULT 0 COMMENT '消耗时间',
  PRIMARY KEY (`oper_id`) USING BTREE,
  INDEX `idx_u_oper_log_bt`(`business_type`) USING BTREE,
  INDEX `idx_u_oper_log_s`(`status`) USING BTREE,
  INDEX `idx_u_oper_log_ot`(`oper_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_操作日志记录' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_oper_log
-- ----------------------------

-- ----------------------------
-- Table structure for u_post
-- ----------------------------
DROP TABLE IF EXISTS `u_post`;
CREATE TABLE `u_post`  (
  `post_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  `post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
  `post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
  `post_sort` int(11) NOT NULL COMMENT '显示顺序',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`post_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_岗位信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_post
-- ----------------------------

-- ----------------------------
-- Table structure for u_recharge
-- ----------------------------
DROP TABLE IF EXISTS `u_recharge`;
CREATE TABLE `u_recharge`  (
  `recharge_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Recharge ID',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT 'User ID link to u_user',
  `fee` double NULL DEFAULT NULL,
  `status` enum('unpaid','paid') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT 'unpaid',
  `create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT 'create name ',
  `create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
  PRIMARY KEY (`recharge_id`) USING BTREE,
  INDEX `fk_user_id`(`user_id`) USING BTREE,
  CONSTRAINT `u_recharge_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `u_user` (`user_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户平台_用户信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_recharge
-- ----------------------------

-- ----------------------------
-- Table structure for u_role
-- ----------------------------
DROP TABLE IF EXISTS `u_role`;
CREATE TABLE `u_role`  (
  `role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
  `role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
  `role_sort` int(11) NOT NULL COMMENT '显示顺序',
  `data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  `menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
  `dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_role
-- ----------------------------
INSERT INTO `u_role` VALUES (1, '超级用户', 'super', 1, '1', 1, 1, '0', '0', 'super', '2024-11-27 16:06:18', '', NULL, '超级用户后台指定，不可配置');
INSERT INTO `u_role` VALUES (2, '会员', 'vip', 2, '2', 1, 1, '0', '0', 'super', '2024-11-27 16:06:18', '', '2024-12-02 15:22:02', '会员，对普通用户授予角色');

-- ----------------------------
-- Table structure for u_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `u_role_dept`;
CREATE TABLE `u_role_dept`  (
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  `dept_id` bigint(20) NOT NULL COMMENT '部门ID',
  PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色和部门关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_role_dept
-- ----------------------------

-- ----------------------------
-- Table structure for u_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `u_role_menu`;
CREATE TABLE `u_role_menu`  (
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  `menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_角色和菜单关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_role_menu
-- ----------------------------
INSERT INTO `u_role_menu` VALUES (2, 2000);
INSERT INTO `u_role_menu` VALUES (2, 2001);
INSERT INTO `u_role_menu` VALUES (2, 2010);
INSERT INTO `u_role_menu` VALUES (2, 2011);
INSERT INTO `u_role_menu` VALUES (2, 2012);

-- ----------------------------
-- Table structure for u_user
-- ----------------------------
DROP TABLE IF EXISTS `u_user`;
CREATE TABLE `u_user`  (
  `user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
  `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
  `nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
  `full_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户姓名',
  `user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '00' COMMENT '用户类型（00系统用户）',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户邮箱',
  `phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码',
  `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户性别（0男 1女 2未知）',
  `avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像地址',
  `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码',
  `age` int(11) NULL DEFAULT NULL COMMENT '年龄',
  `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '帐号状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '最后登录IP',
  `login_date` datetime NULL DEFAULT NULL COMMENT '最后登录时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_user
-- ----------------------------
INSERT INTO `u_user` VALUES (1, 100, 'super', '超级用户', '超级用户', '00', 'super@mail.com', '123456', '1', '', '$2a$10$XF99QEWn2MjEE3pbFVvHuOyMi/YVIrQbdenEleJN5dYxAfgXFaaqG', 1, '', '0', '0', '192.168.88.14', '2024-12-06 10:36:35', 'system', '2024-05-08 21:50:54', '', '2024-12-06 10:36:35', 'super');
INSERT INTO `u_user` VALUES (2, NULL, '123456', '普通用户', '普通用户', '00', '12345678@mail.com', '1234567', '1', '', '$2a$10$XF99QEWn2MjEE3pbFVvHuOyMi/YVIrQbdenEleJN5dYxAfgXFaaqG', 1, '', '0', '0', '192.168.2.94', '2024-12-13 18:16:34', 'system', '2024-05-08 21:50:54', '123456', '2024-12-13 18:16:34', '');
INSERT INTO `u_user` VALUES (3, NULL, '10086', '10086', NULL, '00', '125@qq.com', '', '0', '', '$2a$10$tqk9HquTN8XeezyOE3TK..0m/KEUsJCcwlEPn9iOgu.a/O7GkfLmq', NULL, NULL, '0', '0', '', NULL, '', '2024-12-10 15:15:19', '', NULL, NULL);
INSERT INTO `u_user` VALUES (4, NULL, 'test1', 'test1', NULL, '00', 'a@agt.com', '13823365856', '0', '', '$2a$10$LbyDxYoa3lyGw0tuU3xgSexnEeSAYrmvXxPUCYxGlr8gs94EAb10a', NULL, NULL, '0', '0', '192.168.2.63', '2024-12-10 15:29:20', '', '2024-12-10 15:16:10', '', '2024-12-10 15:29:20', NULL);
INSERT INTO `u_user` VALUES (5, NULL, 'test2', 'test2', NULL, '00', 'b@agt.com', '13823365857', '0', '', '$2a$10$lV6J2.WSOcvFaNY3AaRBWeYQYELpbakW4K.TSIrn35QEMzAfG8lB.', NULL, NULL, '0', '0', '192.168.2.63', '2024-12-10 15:56:06', '', '2024-12-10 15:52:18', '', '2024-12-10 15:56:06', NULL);
INSERT INTO `u_user` VALUES (6, NULL, 'test11', 'test11', NULL, '00', '112221@qq.com', '13824827333', '0', '', '$2a$10$jaVvjr0GjPwZL/Lz5raeu.yZi3k4knv0uFIBIGKSCgRE/NKLSvd/y', NULL, NULL, '0', '0', '', NULL, '', '2024-12-10 20:14:53', '', NULL, NULL);
INSERT INTO `u_user` VALUES (7, NULL, 'Arnotest', 'Arnotest', NULL, '00', '1755180131@qq.com', '', '0', '', '$2a$10$376HujK8UPqstpL4H9PZqOH62PTj0Jjhye6WgjFrmNQOSBZE/j2le', NULL, NULL, '0', '0', '', NULL, '', '2024-12-12 15:18:45', '', NULL, NULL);

-- ----------------------------
-- Table structure for u_user_post
-- ----------------------------
DROP TABLE IF EXISTS `u_user_post`;
CREATE TABLE `u_user_post`  (
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `post_id` bigint(20) NOT NULL COMMENT '岗位ID',
  PRIMARY KEY (`user_id`, `post_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户与岗位关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_user_post
-- ----------------------------

-- ----------------------------
-- Table structure for u_user_role
-- ----------------------------
DROP TABLE IF EXISTS `u_user_role`;
CREATE TABLE `u_user_role`  (
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台_用户和角色关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of u_user_role
-- ----------------------------
INSERT INTO `u_user_role` VALUES (1, 1);

SET FOREIGN_KEY_CHECKS = 1;
