/*
 Navicat Premium Data Transfer

 Source Server         : Macmini
 Source Server Type    : MySQL
 Source Server Version : 80030 (8.0.30)
 Source Host           : localhost:3306
 Source Schema         : kangb

 Target Server Type    : MySQL
 Target Server Version : 80030 (8.0.30)
 File Encoding         : 65001

 Date: 24/10/2022 13:06:14
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_third_acount
-- ----------------------------
DROP TABLE IF EXISTS `t_third_acount`;
CREATE TABLE `t_third_acount` (
  `User_id` int NOT NULL AUTO_INCREMENT,
  `third_unique_acount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL,
  `type` int DEFAULT '1',
  `bind_flag` enum('A','U') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT 'A',
  `create_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`User_id`),
  CONSTRAINT `use_bind` FOREIGN KEY (`User_id`) REFERENCES `users` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin;

-- ----------------------------
-- Records of t_third_acount
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
  `user_id` int NOT NULL AUTO_INCREMENT,
  `user_type` varchar(255) NOT NULL COMMENT '用户类型',
  `user_name` varchar(255) NOT NULL COMMENT '用户账户',
  `user_cheng` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '账号昵称',
  `user_password` varchar(255) NOT NULL COMMENT '账号密码',
  `user_iphone` varchar(255) NOT NULL COMMENT '联系方式',
  `user_permissions` varchar(255) DEFAULT NULL COMMENT '用户权限',
  `user_image` varchar(255) DEFAULT NULL COMMENT '用户头像',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- ----------------------------
-- Records of users
-- ----------------------------
BEGIN;
INSERT INTO `users` (`user_id`, `user_type`, `user_name`, `user_cheng`, `user_password`, `user_iphone`, `user_permissions`, `user_image`) VALUES (1, '0', 'adiao007', '霓娜', 'adiao9527', '1288819941', 'all', 'null');
INSERT INTO `users` (`user_id`, `user_type`, `user_name`, `user_cheng`, `user_password`, `user_iphone`, `user_permissions`, `user_image`) VALUES (2, '2', '3aaddsf', '主宰滴滴', 'asdfadjjjjjjjjj', '23452141152', 'wite', 'null');
INSERT INTO `users` (`user_id`, `user_type`, `user_name`, `user_cheng`, `user_password`, `user_iphone`, `user_permissions`, `user_image`) VALUES (4, '1', 'sff', 'fasdfas', 'asggsw', '12315415', 'all', 'null');
INSERT INTO `users` (`user_id`, `user_type`, `user_name`, `user_cheng`, `user_password`, `user_iphone`, `user_permissions`, `user_image`) VALUES (7, '2', 'adiao9527', '保罗乔治', 'johnpower8888', '62789263846', 'all', 'null');
INSERT INTO `users` (`user_id`, `user_type`, `user_name`, `user_cheng`, `user_password`, `user_iphone`, `user_permissions`, `user_image`) VALUES (8, '2', 'adiao9527', '保罗乔治', 'johnpower8888', '62789263846', 'all', 'null');
INSERT INTO `users` (`user_id`, `user_type`, `user_name`, `user_cheng`, `user_password`, `user_iphone`, `user_permissions`, `user_image`) VALUES (9, '2', 'adiao9527', '保罗乔治', 'johnpower8888', '62789263846', 'all', 'null');
INSERT INTO `users` (`user_id`, `user_type`, `user_name`, `user_cheng`, `user_password`, `user_iphone`, `user_permissions`, `user_image`) VALUES (10, '1', 'adiao007', '约翰福音', 'linjiajun9999', '23233336363', 'all', 'null');
INSERT INTO `users` (`user_id`, `user_type`, `user_name`, `user_cheng`, `user_password`, `user_iphone`, `user_permissions`, `user_image`) VALUES (11, '1', 'adiao007', '约翰大师赛', 'linjiajun9999', '23233336363', 'all', 'null');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
