forked from xuguoliangjj/yii2-admin-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.sql
211 lines (197 loc) · 15.1 KB
/
admin.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/*
Navicat MySQL Data Transfer
Source Server : 39.106.180.91
Source Server Version : 50624
Source Host : 39.106.180.91:16000
Source Database : admin
Target Server Type : MYSQL
Target Server Version : 50624
File Encoding : 65001
Date: 2018-12-11 14:43:41
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for auth_assignment
-- ----------------------------
DROP TABLE IF EXISTS `auth_assignment`;
CREATE TABLE `auth_assignment` (
`item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
PRIMARY KEY (`item_name`,`user_id`),
CONSTRAINT `auth_assignment_ibfk_1` FOREIGN KEY (`item_name`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of auth_assignment
-- ----------------------------
INSERT INTO `auth_assignment` VALUES ('demo测试账号', '320', '1544503585');
INSERT INTO `auth_assignment` VALUES ('超级管理员', '1', '1542121619');
-- ----------------------------
-- Table structure for auth_item
-- ----------------------------
DROP TABLE IF EXISTS `auth_item`;
CREATE TABLE `auth_item` (
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`type` int(11) NOT NULL,
`description` text COLLATE utf8_unicode_ci,
`rule_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
`data` text COLLATE utf8_unicode_ci,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`name`),
KEY `rule_name` (`rule_name`) USING BTREE,
KEY `idx-auth_item-type` (`type`) USING BTREE,
CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of auth_item
-- ----------------------------
INSERT INTO `auth_item` VALUES ('/*', '2', 'root权限', null, null, '1445273347', '1531648328');
INSERT INTO `auth_item` VALUES ('/admin', '2', '首页', null, null, null, null);
INSERT INTO `auth_item` VALUES ('/admin/daily', '2', '首页', null, null, null, null);
INSERT INTO `auth_item` VALUES ('/admin/deny-login', '2', '禁止登录', null, null, '1540354033', '1540354033');
INSERT INTO `auth_item` VALUES ('/admin/deny-pay', '2', '禁止充值', null, null, '1540354033', '1540354033');
INSERT INTO `auth_item` VALUES ('/admin/pay-order', '2', '首页', null, null, null, null);
INSERT INTO `auth_item` VALUES ('/admin/pay-order/push-order', '2', '补单/补发', null, null, null, null);
INSERT INTO `auth_item` VALUES ('/admin/permission', '2', '权限列表-首页', null, null, '1542966636', '1542966636');
INSERT INTO `auth_item` VALUES ('/admin/permission/create', '2', '权限列表-新增', null, null, '1542966653', '1542966685');
INSERT INTO `auth_item` VALUES ('/admin/permission/delete', '2', '权限列表-删除', null, null, '1542966663', '1542966663');
INSERT INTO `auth_item` VALUES ('/admin/permission/update', '2', '权限列表-更新', null, null, '1542966667', '1542966667');
INSERT INTO `auth_item` VALUES ('/admin/permission/view', '2', '权限列表-查看', null, null, '1542966659', '1542966659');
INSERT INTO `auth_item` VALUES ('/admin/roles', '2', '角色管理-首页', null, null, '1542966643', '1542966643');
INSERT INTO `auth_item` VALUES ('/admin/roles/create', '2', '角色管理-新增', null, null, '1542966679', '1542966679');
INSERT INTO `auth_item` VALUES ('/admin/roles/delete', '2', '角色管理-删除', null, null, '1542966690', '1542966690');
INSERT INTO `auth_item` VALUES ('/admin/roles/update', '2', '角色管理-更新', null, null, '1542966695', '1542966695');
INSERT INTO `auth_item` VALUES ('/admin/roles/view', '2', '角色管理-查看', null, null, '1542966699', '1542966699');
INSERT INTO `auth_item` VALUES ('/admin/route', '2', '路由列表-首页', null, null, '1542966726', '1542966726');
INSERT INTO `auth_item` VALUES ('/admin/route/delete', '2', '路由列表-删除', null, null, '1542966743', '1542966743');
INSERT INTO `auth_item` VALUES ('/admin/route/update', '2', '路由列表-更新', null, null, '1542966737', '1542966737');
INSERT INTO `auth_item` VALUES ('/admin/rule', '2', '规则列表-首页', null, null, '1542966765', '1542966765');
INSERT INTO `auth_item` VALUES ('/admin/rule/create', '2', '规则列表-新增', null, null, '1542966772', '1542966772');
INSERT INTO `auth_item` VALUES ('/admin/rule/delete', '2', '规则列表-删除', null, null, '1542966781', '1542966781');
INSERT INTO `auth_item` VALUES ('/admin/rule/update', '2', '规则列表-修改', null, null, '1542966776', '1542966776');
INSERT INTO `auth_item` VALUES ('/admin/sdk-user', '2', '首页', null, null, '1540354033', '1540354033');
INSERT INTO `auth_item` VALUES ('/admin/user', '2', '用户管理-首页', null, null, '1542966797', '1542966797');
INSERT INTO `auth_item` VALUES ('/admin/user/change-name', '2', '用户管理-修改名字', null, null, '1542966813', '1542966813');
INSERT INTO `auth_item` VALUES ('/admin/user/create', '2', '用户管理-新增', null, null, '1542966819', '1542966830');
INSERT INTO `auth_item` VALUES ('/admin/user/delete', '2', '用户管理-删除', null, null, '1542966825', '1542966825');
INSERT INTO `auth_item` VALUES ('/admin/user/update', '2', '用户管理-更新', null, null, '1542966835', '1542966835');
INSERT INTO `auth_item` VALUES ('/admin/user/view', '2', '用户管理-查看', null, null, '1542966802', '1542966802');
INSERT INTO `auth_item` VALUES ('/filter', '2', '过滤条件小组件请求', null, null, '1542377866', '1542377866');
INSERT INTO `auth_item` VALUES ('/filter/*', '2', '过滤条件小组件root', null, null, '1542377850', '1542377875');
INSERT INTO `auth_item` VALUES ('/setting/*', '2', '权限管理(所有)', null, null, '1445273367', '1446980086');
INSERT INTO `auth_item` VALUES ('/setting/permission', '2', '权限列表(菜单)', null, null, '1446978274', '1446978274');
INSERT INTO `auth_item` VALUES ('/setting/permission/*', '2', '权限列表(所有)', null, null, '1446978304', '1446978304');
INSERT INTO `auth_item` VALUES ('/setting/permission/create', '2', '权限列表(新增)', null, null, '1446978386', '1446978386');
INSERT INTO `auth_item` VALUES ('/setting/permission/delete', '2', '权限列表(删除)', null, null, '1446978795', '1446978795');
INSERT INTO `auth_item` VALUES ('/setting/permission/update', '2', '权限列表(修改)', null, null, '1446978532', '1446978532');
INSERT INTO `auth_item` VALUES ('/setting/permission/view', '2', '权限列表(授权)', null, null, '1446978634', '1446978634');
INSERT INTO `auth_item` VALUES ('/setting/roles', '2', '角色管理(菜单)', null, null, '1446385324', '1446977972');
INSERT INTO `auth_item` VALUES ('/setting/roles/*', '2', '角色管理(所有)', null, null, '1446977859', '1446977859');
INSERT INTO `auth_item` VALUES ('/setting/roles/create', '2', '角色管理(新增)', null, null, '1446385374', '1446976895');
INSERT INTO `auth_item` VALUES ('/setting/roles/delete', '2', '角色管理(删除)', null, null, '1446977154', '1446977154');
INSERT INTO `auth_item` VALUES ('/setting/roles/update', '2', '角色管理(修改)', null, null, '1446977126', '1446977126');
INSERT INTO `auth_item` VALUES ('/setting/roles/view', '2', '角色管理(授权)', null, null, '1446385418', '1446976924');
INSERT INTO `auth_item` VALUES ('/setting/route', '2', '路由列表(菜单)', null, null, '1446979171', '1446979171');
INSERT INTO `auth_item` VALUES ('/setting/route/*', '2', '路由列表(所有)', null, null, '1446979317', '1446979317');
INSERT INTO `auth_item` VALUES ('/setting/route/create', '2', '路由列表(新增)', null, null, '1446979199', '1446979199');
INSERT INTO `auth_item` VALUES ('/setting/route/delete', '2', '路由列表(删除)', null, null, '1446979221', '1446979221');
INSERT INTO `auth_item` VALUES ('/setting/rule', '2', '规则列表(菜单)', null, null, '1446979291', '1446979291');
INSERT INTO `auth_item` VALUES ('/setting/rule/*', '2', '规则列表(所有)', null, null, '1446979531', '1446979531');
INSERT INTO `auth_item` VALUES ('/setting/rule/create', '2', '规则列表(新增)', null, null, '1446979544', '1446979544');
INSERT INTO `auth_item` VALUES ('/setting/rule/delete', '2', '规则列表(删除)', null, null, '1446979583', '1446979583');
INSERT INTO `auth_item` VALUES ('/setting/rule/update', '2', '规则列表(修改)', null, null, '1446979567', '1446979567');
INSERT INTO `auth_item` VALUES ('/setting/rule/view', '2', '规则列表(详情)', null, null, '1446979599', '1446979599');
INSERT INTO `auth_item` VALUES ('/setting/user', '2', '用户管理(菜单)', null, null, '1446385148', '1446978141');
INSERT INTO `auth_item` VALUES ('/setting/user/*', '2', '用户管理(所有)', null, null, '1446978175', '1446978175');
INSERT INTO `auth_item` VALUES ('/setting/user/change-name', '2', '快捷改用户名', null, null, '1459411553', '1459411553');
INSERT INTO `auth_item` VALUES ('/setting/user/create', '2', '用户管理(新增)', null, null, '1446977571', '1446977571');
INSERT INTO `auth_item` VALUES ('/setting/user/delete', '2', '用户管理(删除)', null, null, '1446977488', '1446977488');
INSERT INTO `auth_item` VALUES ('/setting/user/update', '2', '用户管理(修改)', null, null, '1446977393', '1446977393');
INSERT INTO `auth_item` VALUES ('/setting/user/view', '2', '用户管理(授权)', null, null, '1446977422', '1446977422');
INSERT INTO `auth_item` VALUES ('/site', '2', 'Yii2-admin-theme后台首页', null, null, '1542017492', '1542017497');
INSERT INTO `auth_item` VALUES ('/site/about', '2', '关于我们', null, null, '1542017567', '1542017567');
INSERT INTO `auth_item` VALUES ('/site/captcha', '2', '登录验证码 ', null, null, '1542017356', '1542273403');
INSERT INTO `auth_item` VALUES ('/site/close-win', '2', '关闭iframe中转页面', null, null, '1542017584', '1542017584');
INSERT INTO `auth_item` VALUES ('/site/contact', '2', '联系我们', null, null, '1542017507', '1542017507');
INSERT INTO `auth_item` VALUES ('/site/error', '2', '错误页面', null, null, '1542016399', '1542273565');
INSERT INTO `auth_item` VALUES ('/site/login', '2', '登录', null, null, '1542017270', '1542017346');
INSERT INTO `auth_item` VALUES ('/site/logout', '2', '注销', null, null, '1542017502', '1542017502');
INSERT INTO `auth_item` VALUES ('/site/main', '2', '首页-关键报表', null, null, '1542967756', '1542967756');
INSERT INTO `auth_item` VALUES ('/site/reset-password', '2', '修改密码', null, null, '1459780141', '1459780141');
INSERT INTO `auth_item` VALUES ('/site/select', '2', '选择游戏', null, null, '1459394594', '1459394594');
INSERT INTO `auth_item` VALUES ('demo测试账号', '1', 'demo测试账号', null, null, '1544503565', '1544503565');
INSERT INTO `auth_item` VALUES ('普通管理员', '1', '普通管理员', null, null, '1440871961', '1440871961');
INSERT INTO `auth_item` VALUES ('测试1', '2', '测试1', null, null, '1541997258', '1542009523');
INSERT INTO `auth_item` VALUES ('测试2', '2', '测试2', null, null, '1542009571', '1542009571');
INSERT INTO `auth_item` VALUES ('测试4', '2', '测试4', null, null, '1542010241', '1542010241');
INSERT INTO `auth_item` VALUES ('超级管理员', '1', '拥有所有权限', null, null, '1440871961', '1446885517');
-- ----------------------------
-- Table structure for auth_item_child
-- ----------------------------
DROP TABLE IF EXISTS `auth_item_child`;
CREATE TABLE `auth_item_child` (
`parent` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`child` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`parent`,`child`),
KEY `child` (`child`) USING BTREE,
CONSTRAINT `auth_item_child_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `auth_item_child_ibfk_2` FOREIGN KEY (`child`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of auth_item_child
-- ----------------------------
INSERT INTO `auth_item_child` VALUES ('普通管理员', '/*');
INSERT INTO `auth_item_child` VALUES ('超级管理员', '/*');
INSERT INTO `auth_item_child` VALUES ('测试1', '/admin');
INSERT INTO `auth_item_child` VALUES ('测试1', '/admin/daily');
INSERT INTO `auth_item_child` VALUES ('测试1', '/admin/pay-order');
INSERT INTO `auth_item_child` VALUES ('测试1', '/admin/pay-order/push-order');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/permission');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/roles');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/route');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/rule');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/user');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/filter');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/site');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/site/main');
INSERT INTO `auth_item_child` VALUES ('超级管理员', '普通管理员');
INSERT INTO `auth_item_child` VALUES ('测试1', '测试2');
-- ----------------------------
-- Table structure for auth_rule
-- ----------------------------
DROP TABLE IF EXISTS `auth_rule`;
CREATE TABLE `auth_rule` (
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`data` text COLLATE utf8_unicode_ci,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of auth_rule
-- ----------------------------
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`phone` varchar(13) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '手机号',
`role` smallint(6) NOT NULL DEFAULT '10',
`status` smallint(6) NOT NULL DEFAULT '10',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=321 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'admin', 'fLFmsQ1h5jVyDJmoRkE_C04CgoeoKoOz', '$2y$13$1D5OoJClOO7lMT2LtpG2zuEH0ukt/bZs9f2obid5Yde5N08UdRxgS', null, '[email protected]', '110', '10', '10', '1460604540', '1543558364');
INSERT INTO `user` VALUES ('320', 'demo', 'fLFmsQ1h5jVyDJmoRkE_C04CgoeoKoOz', '$2y$13$1D5OoJClOO7lMT2LtpG2zuEH0ukt/bZs9f2obid5Yde5N08UdRxgS', null, '', '110', '10', '10', '1542962893', '1542962893');
SET FOREIGN_KEY_CHECKS=1;