role_2021-05-11.sql 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # ************************************************************
  2. # Sequel Pro SQL dump
  3. # Version 4541
  4. #
  5. # http://www.sequelpro.com/
  6. # https://github.com/sequelpro/sequelpro
  7. #
  8. # Host: 127.0.0.1 (MySQL 5.5.5-10.6.0-MariaDB-1:10.6.0+maria~focal)
  9. # Database: shishuo
  10. # Generation Time: 2021-05-11 06:53:16 +0000
  11. # ************************************************************
  12. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  13. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  14. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  15. /*!40101 SET NAMES utf8 */;
  16. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  17. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  18. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  19. # Dump of table role
  20. # ------------------------------------------------------------
  21. DROP TABLE IF EXISTS `role`;
  22. CREATE TABLE `role` (
  23. `id` int(11) NOT NULL AUTO_INCREMENT,
  24. `name` varchar(128) NOT NULL,
  25. `description` varchar(255) DEFAULT NULL,
  26. `is_active` tinyint(1) DEFAULT NULL,
  27. `creator` int(11) DEFAULT NULL COMMENT '创建人',
  28. `editor` int(11) DEFAULT NULL COMMENT '最后编辑人',
  29. `created_at` datetime DEFAULT NULL,
  30. `updated_at` datetime DEFAULT NULL,
  31. PRIMARY KEY (`id`),
  32. UNIQUE KEY `ix_role_name` (`name`),
  33. KEY `ix_role_id` (`id`)
  34. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  35. LOCK TABLES `role` WRITE;
  36. /*!40000 ALTER TABLE `role` DISABLE KEYS */;
  37. INSERT INTO `role` (`id`, `name`, `description`, `is_active`, `creator`, `editor`, `created_at`, `updated_at`)
  38. VALUES
  39. (1,'校长','主持全面工作',1,1,NULL,NULL,NULL),
  40. (2,'业务校长','主持业务工作',1,1,NULL,NULL,NULL),
  41. (3,'级部主任','主持级部工作',1,1,NULL,NULL,NULL),
  42. (4,'级部副主任','主持级部工作',1,1,NULL,NULL,NULL),
  43. (5,'学科组长','主持学科教研工作',1,1,NULL,NULL,NULL),
  44. (6,'学科副组长','主持学科教研工作',1,1,NULL,NULL,NULL),
  45. (7,'班主任','管理班级',1,1,NULL,NULL,NULL),
  46. (8,'教师','教学',1,1,NULL,NULL,NULL),
  47. (9,'学生','学习',1,1,NULL,NULL,NULL),
  48. (10,'驻校管理员','学校运维',1,1,NULL,NULL,NULL),
  49. (11,'超级管理员','系统运维',1,1,NULL,NULL,NULL);
  50. /*!40000 ALTER TABLE `role` ENABLE KEYS */;
  51. UNLOCK TABLES;
  52. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  53. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  54. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  55. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  56. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  57. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;