image.png

    1. SET NAMES utf8mb4;
    2. SET FOREIGN_KEY_CHECKS = 0;
    3. -- ----------------------------
    4. -- Table structure for t_perms
    5. -- ----------------------------
    6. DROP TABLE IF EXISTS `t_perms`;
    7. CREATE TABLE `t_pers` (
    8. `id` int(6) NOT NULL AUTO_INCREMENT,
    9. `name` varchar(80) DEFAULT NULL,
    10. `url` varchar(255) DEFAULT NULL,
    11. PRIMARY KEY (`id`)
    12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    13. -- ----------------------------
    14. -- Table structure for t_role
    15. -- ----------------------------
    16. DROP TABLE IF EXISTS `t_role`;
    17. CREATE TABLE `t_role` (
    18. `id` int(6) NOT NULL AUTO_INCREMENT,
    19. `name` varchar(60) DEFAULT NULL,
    20. PRIMARY KEY (`id`)
    21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    22. -- ----------------------------
    23. -- Table structure for t_role_perms
    24. -- ----------------------------
    25. DROP TABLE IF EXISTS `t_role_perms`;
    26. CREATE TABLE `t_role_perms` (
    27. `id` int(6) NOT NULL,
    28. `roleid` int(6) DEFAULT NULL,
    29. `permsid` int(6) DEFAULT NULL,
    30. PRIMARY KEY (`id`)
    31. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    32. -- ----------------------------
    33. -- Table structure for t_user
    34. -- ----------------------------
    35. DROP TABLE IF EXISTS `t_user`;
    36. CREATE TABLE `t_user` (
    37. `id` int(6) NOT NULL AUTO_INCREMENT,
    38. `username` varchar(40) DEFAULT NULL,
    39. `password` varchar(40) DEFAULT NULL,
    40. `salt` varchar(255) DEFAULT NULL,
    41. PRIMARY KEY (`id`)
    42. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
    43. -- ----------------------------
    44. -- Table structure for t_user_role
    45. -- ----------------------------
    46. DROP TABLE IF EXISTS `t_user_role`;
    47. CREATE TABLE `t_user_role` (
    48. `id` int(6) NOT NULL,
    49. `userid` int(6) DEFAULT NULL,
    50. `roleid` int(6) DEFAULT NULL,
    51. PRIMARY KEY (`id`)
    52. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    53. SET FOREIGN_KEY_CHECKS = 1;

    image.png