# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.6.0-MariaDB-1:10.6.0+maria~focal) # Database: shishuo # Generation Time: 2021-05-11 06:53:16 +0000 # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; # Dump of table role # ------------------------------------------------------------ DROP TABLE IF EXISTS `role`; CREATE TABLE `role` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `description` varchar(255) DEFAULT NULL, `is_active` tinyint(1) DEFAULT NULL, `creator` int(11) DEFAULT NULL COMMENT '创建人', `editor` int(11) DEFAULT NULL COMMENT '最后编辑人', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ix_role_name` (`name`), KEY `ix_role_id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; INSERT INTO `role` (`id`, `name`, `description`, `is_active`, `creator`, `editor`, `created_at`, `updated_at`) VALUES (1,'校长','主持全面工作',1,1,NULL,NULL,NULL), (2,'业务校长','主持业务工作',1,1,NULL,NULL,NULL), (3,'级部主任','主持级部工作',1,1,NULL,NULL,NULL), (4,'级部副主任','主持级部工作',1,1,NULL,NULL,NULL), (5,'学科组长','主持学科教研工作',1,1,NULL,NULL,NULL), (6,'学科副组长','主持学科教研工作',1,1,NULL,NULL,NULL), (7,'班主任','管理班级',1,1,NULL,NULL,NULL), (8,'教师','教学',1,1,NULL,NULL,NULL), (9,'学生','学习',1,1,NULL,NULL,NULL), (10,'驻校管理员','学校运维',1,1,NULL,NULL,NULL), (11,'超级管理员','系统运维',1,1,NULL,NULL,NULL); /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;