/*
 Navicat Premium Dump SQL

 Source Server         : xinli
 Source Server Type    : MySQL
 Source Server Version : 80036 (8.0.36)
 Source Host           : 1.15.149.240:3306
 Source Schema         : ry_xinli

 Target Server Type    : MySQL
 Target Server Version : 80036 (8.0.36)
 File Encoding         : 65001

 Date: 30/12/2025 15:00:27
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `dept_id` bigint 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 '用户真实姓名，昵称',
  `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 '密码',
  `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 '最后登录时间',
  `pwd_update_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 '备注',
  `register_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '注册类型',
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10801 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 103, 'admin', '管理员', '00', 'admin@ddnai.com', '15888888888', '1', '', '$2a$10$Wa9dl8j9O3ihGnlko055R.Jn7BrsB0.Dt38jY2Gd2HgcZHRolgN26', '0', '0', '127.0.0.1', '2025-12-30 14:18:43', '2025-10-30 15:00:31', 'admin', '2025-10-30 15:00:31', '', '2025-10-30 19:48:31', '管理员', NULL);
INSERT INTO `sys_user` VALUES (2, 105, 'ry', '测试员', '00', 'admin@ddnai.com', '15666666666', '1', '', '$2a$10$SeKorFaVHGlcb2DKfmDDHOdfXiw3tDFzpqiedwlS.qhjarFHsf/VG', '0', '2', '127.0.0.1', '2025-10-30 15:00:31', '2025-10-30 19:47:13', 'admin', '2025-10-30 15:00:31', '', '2025-10-30 19:47:13', '测试员', NULL);
INSERT INTO `sys_user` VALUES (10799, NULL, '123', '阿斯蒂芬', '00', '', '', '0', '', '$2a$10$FPnOyFC6SN7oGo6XfSemlOZtlTS3YZzj.54pj6WnsdYenNXxz7dyC', '0', '0', '127.0.0.1', '2025-12-30 14:00:35', NULL, 'admin', '2025-12-21 09:16:34', '', NULL, '由用户档案自动创建（登录账号：123）', NULL);
INSERT INTO `sys_user` VALUES (10800, NULL, '11', '字字', '00', '', '', '0', '', '$2a$10$jziwLTK0Uo0BdnHWqjkd4.x1f/JkvycPNiniajxZshBYBNcrv/cEi', '0', '0', '192.168.1.155', '2025-12-30 14:14:24', NULL, 'admin', '2025-12-26 17:16:37', '', NULL, NULL, NULL);

SET FOREIGN_KEY_CHECKS = 1;
