-
-
Save lrhh123/5a3d93471c26b81866a710614e98862b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET FOREIGN_KEY_CHECKS = 0; | |
-- ---------------------------- | |
-- Table structure for `roles_permissions` | |
-- ---------------------------- | |
DROP TABLE IF EXISTS `roles_permissions`; | |
CREATE TABLE `roles_permissions` | |
( | |
`id` int(11) NOT NULL DEFAULT '0', | |
`role_name` varchar(20) DEFAULT NULL, | |
`permission` varchar(20) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE = InnoDB | |
DEFAULT CHARSET = utf8; | |
-- ---------------------------- | |
-- Records of roles_permissions | |
-- ---------------------------- | |
INSERT INTO `roles_permissions` | |
VALUES ('1', 'system', 'update'); | |
-- ---------------------------- | |
-- Table structure for `users` | |
-- ---------------------------- | |
DROP TABLE IF EXISTS `users`; | |
CREATE TABLE `users` | |
( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`username` varchar(20) DEFAULT NULL, | |
`password` varchar(20) DEFAULT NULL, | |
`password_salt` int(11) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE = InnoDB | |
AUTO_INCREMENT = 2 | |
DEFAULT CHARSET = utf8; | |
-- ---------------------------- | |
-- Records of users | |
-- ---------------------------- | |
INSERT INTO `users` | |
VALUES ('1', 'admin', '666', null); | |
-- ---------------------------- | |
-- Table structure for `user_roles` | |
-- ---------------------------- | |
DROP TABLE IF EXISTS `user_roles`; | |
CREATE TABLE `user_roles` | |
( | |
`id` int(11) NOT NULL DEFAULT '0', | |
`username` varchar(20) DEFAULT NULL, | |
`role_name` varchar(20) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE = InnoDB | |
DEFAULT CHARSET = utf8; | |
-- ---------------------------- | |
-- Records of user_roles | |
-- ---------------------------- | |
INSERT INTO `user_roles` | |
VALUES ('1', 'admin', 'system'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment