sys_user.sql 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. Source Server Version: 8.0.31
  3. Source Database: backendsys
  4. Date: 2023/05/23 17:09:22
  5. */
  6. DROP TABLE IF EXISTS `sys_user`;
  7. CREATE TABLE `sys_user` (
  8. PRIMARY KEY (`id`),
  9. `id` BIGINT AUTO_INCREMENT COMMENT 'ID',
  10. `username` VARCHAR(20) COMMENT '用户名',
  11. `phone` VARCHAR(20) COMMENT '手机号码',
  12. `phone_area_code` INT COMMENT '手机区号/国家码',
  13. `password` VARCHAR(100) NOT NULL COMMENT '密码',
  14. UNIQUE KEY (`username`),
  15. UNIQUE KEY (`phone`),
  16. INDEX `idx_username` (`username`),
  17. INDEX `idx_phone` (`phone`)
  18. ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='系统用户表';
  19. # 原始密码:123456
  20. # 前端MD5加密:e10adc3949ba59abbe56e057f20f883e
  21. # 后端使用BCrypt加密:(加盐)
  22. INSERT INTO sys_user(username, phone, phone_area_code, password) VALUES
  23. ('admin', '13670511519', 86, '$2a$10$xITUWkoJydVbYzwh2nflmOWTTGFp0bByyFXnr2l5W1ZM080uPseEC'),
  24. ('admin2', '13333330001', null, '$2a$10$lVO.VhDbyCKMsfajNQc6xO4aZsWMHu0p5YuVATNuAgLV8Pbjkv17W'),
  25. ('admin3', '13333330002', null, '$2a$10$Uo530feMzEZFIU9y40uiteN493JWtJQBVpLBRVWC4dg/Mv7eaUhMy'),
  26. ('aaa', '13333330003', null, '123456'),
  27. ('bbb', '13333330004', null, '123456'),
  28. ('ccc', '13333330005', null, '123456'),
  29. ('ddd', '13333330006', null, '123456'),
  30. ('eee', '13333330007', null, '123456'),
  31. ('fff', '13333330008', null, '123456'),
  32. ('gkyaGYjs', '13333330009', null, '123456'),
  33. ('hhh', '13333330010', null, '$2a$10$Uo530feMzEZFIU9y40uiteN493JWtJQBVpLBRVWC4dg/Mv7eaUhMy'),
  34. ('iii', '13333330011', null, '$2a$10$Uo530feMzEZFIU9y40uiteN493JWtJQBVpLBRVWC4dg/Mv7eaUhMy'),
  35. ('lulu', '13333330012', null, '$2a$10$Uo530feMzEZFIU9y40uiteN493JWtJQBVpLBRVWC4dg/Mv7eaUhMy'),
  36. ('limeiying', '13333330013', null, '$2a$10$Uo530feMzEZFIU9y40uiteN493JWtJQBVpLBRVWC4dg/Mv7eaUhMy'),
  37. ('chenjiayang', '13333330014', null, '$2a$10$Uo530feMzEZFIU9y40uiteN493JWtJQBVpLBRVWC4dg/Mv7eaUhMy'),
  38. ('hongzexin','13333330015', null, '$2a$10$Uo530feMzEZFIU9y40uiteN493JWtJQBVpLBRVWC4dg/Mv7eaUhMy')
  39. ;