fastadmin.sql 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. /*
  2. FastAdmin Install SQL
  3. 官网: https://www.fastadmin.net
  4. 演示: https://demo.fastadmin.net
  5. Date: 2018年05月26日
  6. */
  7. SET FOREIGN_KEY_CHECKS = 0;
  8. -- ----------------------------
  9. -- Table structure for fa_admin
  10. -- ----------------------------
  11. DROP TABLE IF EXISTS `fa_admin`;
  12. CREATE TABLE `fa_admin` (
  13. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  14. `username` varchar(20) NOT NULL DEFAULT '' COMMENT '用户名',
  15. `nickname` varchar(50) NOT NULL DEFAULT '' COMMENT '昵称',
  16. `password` varchar(32) NOT NULL DEFAULT '' COMMENT '密码',
  17. `salt` varchar(30) NOT NULL DEFAULT '' COMMENT '密码盐',
  18. `avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '头像',
  19. `email` varchar(100) NOT NULL DEFAULT '' COMMENT '电子邮箱',
  20. `loginfailure` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '失败次数',
  21. `logintime` int(10) DEFAULT NULL COMMENT '登录时间',
  22. `loginip` varchar(50) DEFAULT NULL COMMENT '登录IP',
  23. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  24. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  25. `token` varchar(59) NOT NULL DEFAULT '' COMMENT 'Session标识',
  26. `status` varchar(30) NOT NULL DEFAULT 'normal' COMMENT '状态',
  27. PRIMARY KEY (`id`),
  28. UNIQUE KEY `username` (`username`) USING BTREE
  29. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='管理员表';
  30. -- ----------------------------
  31. -- Records of fa_admin
  32. -- ----------------------------
  33. BEGIN;
  34. INSERT INTO `fa_admin` VALUES (1, 'admin', 'Admin', '075eaec83636846f51c152f29b98a2fd', 's4f3', '/assets/img/avatar.png', 'admin@fastadmin.net', 0, 1502029281, '127.0.0.1',1492186163, 1502029281, 'd3992c3b-5ecc-4ecb-9dc2-8997780fcadc', 'normal');
  35. COMMIT;
  36. -- ----------------------------
  37. -- Table structure for fa_admin_log
  38. -- ----------------------------
  39. DROP TABLE IF EXISTS `fa_admin_log`;
  40. CREATE TABLE `fa_admin_log` (
  41. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  42. `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员ID',
  43. `username` varchar(30) NOT NULL DEFAULT '' COMMENT '管理员名字',
  44. `url` varchar(1500) NOT NULL DEFAULT '' COMMENT '操作页面',
  45. `title` varchar(100) NOT NULL DEFAULT '' COMMENT '日志标题',
  46. `content` text NOT NULL COMMENT '内容',
  47. `ip` varchar(50) NOT NULL DEFAULT '' COMMENT 'IP',
  48. `useragent` varchar(255) NOT NULL DEFAULT '' COMMENT 'User-Agent',
  49. `createtime` int(10) DEFAULT NULL COMMENT '操作时间',
  50. PRIMARY KEY (`id`),
  51. KEY `name` (`username`)
  52. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='管理员日志表';
  53. -- ----------------------------
  54. -- Table structure for fa_attachment
  55. -- ----------------------------
  56. DROP TABLE IF EXISTS `fa_attachment`;
  57. CREATE TABLE `fa_attachment` (
  58. `id` int(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  59. `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员ID',
  60. `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID',
  61. `url` varchar(255) NOT NULL DEFAULT '' COMMENT '物理路径',
  62. `imagewidth` varchar(30) NOT NULL DEFAULT '' COMMENT '宽度',
  63. `imageheight` varchar(30) NOT NULL DEFAULT '' COMMENT '高度',
  64. `imagetype` varchar(30) NOT NULL DEFAULT '' COMMENT '图片类型',
  65. `imageframes` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '图片帧数',
  66. `filesize` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文件大小',
  67. `mimetype` varchar(100) NOT NULL DEFAULT '' COMMENT 'mime类型',
  68. `extparam` varchar(255) NOT NULL DEFAULT '' COMMENT '透传数据',
  69. `createtime` int(10) DEFAULT NULL COMMENT '创建日期',
  70. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  71. `uploadtime` int(10) DEFAULT NULL COMMENT '上传时间',
  72. `storage` varchar(100) NOT NULL DEFAULT 'local' COMMENT '存储位置',
  73. `sha1` varchar(40) NOT NULL DEFAULT '' COMMENT '文件 sha1编码',
  74. PRIMARY KEY (`id`)
  75. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='附件表';
  76. -- ----------------------------
  77. -- Records of fa_attachment
  78. -- ----------------------------
  79. BEGIN;
  80. INSERT INTO `fa_attachment` VALUES (1, 1, 0, '/assets/img/qrcode.png', '150', '150', 'png', 0, 21859, 'image/png', '', 1499681848, 1499681848, 1499681848, 'local', '17163603d0263e4838b9387ff2cd4877e8b018f6');
  81. COMMIT;
  82. -- ----------------------------
  83. -- Table structure for fa_auth_group
  84. -- ----------------------------
  85. DROP TABLE IF EXISTS `fa_auth_group`;
  86. CREATE TABLE `fa_auth_group` (
  87. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  88. `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父组别',
  89. `name` varchar(100) NOT NULL DEFAULT '' COMMENT '组名',
  90. `rules` text NOT NULL COMMENT '规则ID',
  91. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  92. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  93. `status` varchar(30) NOT NULL DEFAULT '' COMMENT '状态',
  94. PRIMARY KEY (`id`)
  95. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='分组表';
  96. -- ----------------------------
  97. -- Records of fa_auth_group
  98. -- ----------------------------
  99. BEGIN;
  100. INSERT INTO `fa_auth_group` VALUES (1, 0, 'Admin group', '*', 1490883540, 149088354, 'normal');
  101. INSERT INTO `fa_auth_group` VALUES (2, 1, 'Second group', '13,14,16,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,40,41,42,43,44,45,46,47,48,49,50,55,56,57,58,59,60,61,62,63,64,65,1,9,10,11,7,6,8,2,4,5', 1490883540, 1505465692, 'normal');
  102. INSERT INTO `fa_auth_group` VALUES (3, 2, 'Third group', '1,4,9,10,11,13,14,15,16,17,40,41,42,43,44,45,46,47,48,49,50,55,56,57,58,59,60,61,62,63,64,65,5', 1490883540, 1502205322, 'normal');
  103. INSERT INTO `fa_auth_group` VALUES (4, 1, 'Second group 2', '1,4,13,14,15,16,17,55,56,57,58,59,60,61,62,63,64,65', 1490883540, 1502205350, 'normal');
  104. INSERT INTO `fa_auth_group` VALUES (5, 2, 'Third group 2', '1,2,6,7,8,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34', 1490883540, 1502205344, 'normal');
  105. COMMIT;
  106. -- ----------------------------
  107. -- Table structure for fa_auth_group_access
  108. -- ----------------------------
  109. DROP TABLE IF EXISTS `fa_auth_group_access`;
  110. CREATE TABLE `fa_auth_group_access` (
  111. `uid` int(10) unsigned NOT NULL COMMENT '会员ID',
  112. `group_id` int(10) unsigned NOT NULL COMMENT '级别ID',
  113. UNIQUE KEY `uid_group_id` (`uid`,`group_id`),
  114. KEY `uid` (`uid`),
  115. KEY `group_id` (`group_id`)
  116. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='权限分组表';
  117. -- ----------------------------
  118. -- Records of fa_auth_group_access
  119. -- ----------------------------
  120. BEGIN;
  121. INSERT INTO `fa_auth_group_access` VALUES (1, 1);
  122. COMMIT;
  123. -- ----------------------------
  124. -- Table structure for fa_auth_rule
  125. -- ----------------------------
  126. DROP TABLE IF EXISTS `fa_auth_rule`;
  127. CREATE TABLE `fa_auth_rule` (
  128. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  129. `type` enum('menu','file') NOT NULL DEFAULT 'file' COMMENT 'menu为菜单,file为权限节点',
  130. `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父ID',
  131. `name` varchar(100) NOT NULL DEFAULT '' COMMENT '规则名称',
  132. `title` varchar(50) NOT NULL DEFAULT '' COMMENT '规则名称',
  133. `icon` varchar(50) NOT NULL DEFAULT '' COMMENT '图标',
  134. `condition` varchar(255) NOT NULL DEFAULT '' COMMENT '条件',
  135. `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  136. `ismenu` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否为菜单',
  137. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  138. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  139. `weigh` int(10) NOT NULL DEFAULT '0' COMMENT '权重',
  140. `status` varchar(30) NOT NULL DEFAULT '' COMMENT '状态',
  141. PRIMARY KEY (`id`),
  142. UNIQUE KEY `name` (`name`) USING BTREE,
  143. KEY `pid` (`pid`),
  144. KEY `weigh` (`weigh`)
  145. ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='节点表';
  146. -- ----------------------------
  147. -- Records of fa_auth_rule
  148. -- ----------------------------
  149. BEGIN;
  150. INSERT INTO `fa_auth_rule` VALUES (1, 'file', 0, 'dashboard', 'Dashboard', 'fa fa-dashboard', '', 'Dashboard tips', 1, 1497429920, 1497429920, 143, 'normal');
  151. INSERT INTO `fa_auth_rule` VALUES (2, 'file', 0, 'general', 'General', 'fa fa-cogs', '', '', 1, 1497429920, 1497430169, 137, 'normal');
  152. INSERT INTO `fa_auth_rule` VALUES (3, 'file', 0, 'category', 'Category', 'fa fa-leaf', '', 'Category tips', 1, 1497429920, 1497429920, 119, 'normal');
  153. INSERT INTO `fa_auth_rule` VALUES (4, 'file', 0, 'addon', 'Addon', 'fa fa-rocket', '', 'Addon tips', 1, 1502035509, 1502035509, 0, 'normal');
  154. INSERT INTO `fa_auth_rule` VALUES (5, 'file', 0, 'auth', 'Auth', 'fa fa-group', '', '', 1, 1497429920, 1497430092, 99, 'normal');
  155. INSERT INTO `fa_auth_rule` VALUES (6, 'file', 2, 'general/config', 'Config', 'fa fa-cog', '', 'Config tips', 1, 1497429920, 1497430683, 60, 'normal');
  156. INSERT INTO `fa_auth_rule` VALUES (7, 'file', 2, 'general/attachment', 'Attachment', 'fa fa-file-image-o', '', 'Attachment tips', 1, 1497429920, 1497430699, 53, 'normal');
  157. INSERT INTO `fa_auth_rule` VALUES (8, 'file', 2, 'general/profile', 'Profile', 'fa fa-user', '', '', 1, 1497429920, 1497429920, 34, 'normal');
  158. INSERT INTO `fa_auth_rule` VALUES (9, 'file', 5, 'auth/admin', 'Admin', 'fa fa-user', '', 'Admin tips', 1, 1497429920, 1497430320, 118, 'normal');
  159. INSERT INTO `fa_auth_rule` VALUES (10, 'file', 5, 'auth/adminlog', 'Admin log', 'fa fa-list-alt', '', 'Admin log tips', 1, 1497429920, 1497430307, 113, 'normal');
  160. INSERT INTO `fa_auth_rule` VALUES (11, 'file', 5, 'auth/group', 'Group', 'fa fa-group', '', 'Group tips', 1, 1497429920, 1497429920, 109, 'normal');
  161. INSERT INTO `fa_auth_rule` VALUES (12, 'file', 5, 'auth/rule', 'Rule', 'fa fa-bars', '', 'Rule tips', 1, 1497429920, 1497430581, 104, 'normal');
  162. INSERT INTO `fa_auth_rule` VALUES (13, 'file', 1, 'dashboard/index', 'View', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 136, 'normal');
  163. INSERT INTO `fa_auth_rule` VALUES (14, 'file', 1, 'dashboard/add', 'Add', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 135, 'normal');
  164. INSERT INTO `fa_auth_rule` VALUES (15, 'file', 1, 'dashboard/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 133, 'normal');
  165. INSERT INTO `fa_auth_rule` VALUES (16, 'file', 1, 'dashboard/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 134, 'normal');
  166. INSERT INTO `fa_auth_rule` VALUES (17, 'file', 1, 'dashboard/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 132, 'normal');
  167. INSERT INTO `fa_auth_rule` VALUES (18, 'file', 6, 'general/config/index', 'View', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 52, 'normal');
  168. INSERT INTO `fa_auth_rule` VALUES (19, 'file', 6, 'general/config/add', 'Add', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 51, 'normal');
  169. INSERT INTO `fa_auth_rule` VALUES (20, 'file', 6, 'general/config/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 50, 'normal');
  170. INSERT INTO `fa_auth_rule` VALUES (21, 'file', 6, 'general/config/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 49, 'normal');
  171. INSERT INTO `fa_auth_rule` VALUES (22, 'file', 6, 'general/config/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 48, 'normal');
  172. INSERT INTO `fa_auth_rule` VALUES (23, 'file', 7, 'general/attachment/index', 'View', 'fa fa-circle-o', '', 'Attachment tips', 0, 1497429920, 1497429920, 59, 'normal');
  173. INSERT INTO `fa_auth_rule` VALUES (24, 'file', 7, 'general/attachment/select', 'Select attachment', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 58, 'normal');
  174. INSERT INTO `fa_auth_rule` VALUES (25, 'file', 7, 'general/attachment/add', 'Add', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 57, 'normal');
  175. INSERT INTO `fa_auth_rule` VALUES (26, 'file', 7, 'general/attachment/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 56, 'normal');
  176. INSERT INTO `fa_auth_rule` VALUES (27, 'file', 7, 'general/attachment/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 55, 'normal');
  177. INSERT INTO `fa_auth_rule` VALUES (28, 'file', 7, 'general/attachment/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 54, 'normal');
  178. INSERT INTO `fa_auth_rule` VALUES (29, 'file', 8, 'general/profile/index', 'View', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 33, 'normal');
  179. INSERT INTO `fa_auth_rule` VALUES (30, 'file', 8, 'general/profile/update', 'Update profile', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 32, 'normal');
  180. INSERT INTO `fa_auth_rule` VALUES (31, 'file', 8, 'general/profile/add', 'Add', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 31, 'normal');
  181. INSERT INTO `fa_auth_rule` VALUES (32, 'file', 8, 'general/profile/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 30, 'normal');
  182. INSERT INTO `fa_auth_rule` VALUES (33, 'file', 8, 'general/profile/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 29, 'normal');
  183. INSERT INTO `fa_auth_rule` VALUES (34, 'file', 8, 'general/profile/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 28, 'normal');
  184. INSERT INTO `fa_auth_rule` VALUES (35, 'file', 3, 'category/index', 'View', 'fa fa-circle-o', '', 'Category tips', 0, 1497429920, 1497429920, 142, 'normal');
  185. INSERT INTO `fa_auth_rule` VALUES (36, 'file', 3, 'category/add', 'Add', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 141, 'normal');
  186. INSERT INTO `fa_auth_rule` VALUES (37, 'file', 3, 'category/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 140, 'normal');
  187. INSERT INTO `fa_auth_rule` VALUES (38, 'file', 3, 'category/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 139, 'normal');
  188. INSERT INTO `fa_auth_rule` VALUES (39, 'file', 3, 'category/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 138, 'normal');
  189. INSERT INTO `fa_auth_rule` VALUES (40, 'file', 9, 'auth/admin/index', 'View', 'fa fa-circle-o', '', 'Admin tips', 0, 1497429920, 1497429920, 117, 'normal');
  190. INSERT INTO `fa_auth_rule` VALUES (41, 'file', 9, 'auth/admin/add', 'Add', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 116, 'normal');
  191. INSERT INTO `fa_auth_rule` VALUES (42, 'file', 9, 'auth/admin/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 115, 'normal');
  192. INSERT INTO `fa_auth_rule` VALUES (43, 'file', 9, 'auth/admin/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 114, 'normal');
  193. INSERT INTO `fa_auth_rule` VALUES (44, 'file', 10, 'auth/adminlog/index', 'View', 'fa fa-circle-o', '', 'Admin log tips', 0, 1497429920, 1497429920, 112, 'normal');
  194. INSERT INTO `fa_auth_rule` VALUES (45, 'file', 10, 'auth/adminlog/detail', 'Detail', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 111, 'normal');
  195. INSERT INTO `fa_auth_rule` VALUES (46, 'file', 10, 'auth/adminlog/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 110, 'normal');
  196. INSERT INTO `fa_auth_rule` VALUES (47, 'file', 11, 'auth/group/index', 'View', 'fa fa-circle-o', '', 'Group tips', 0, 1497429920, 1497429920, 108, 'normal');
  197. INSERT INTO `fa_auth_rule` VALUES (48, 'file', 11, 'auth/group/add', 'Add', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 107, 'normal');
  198. INSERT INTO `fa_auth_rule` VALUES (49, 'file', 11, 'auth/group/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 106, 'normal');
  199. INSERT INTO `fa_auth_rule` VALUES (50, 'file', 11, 'auth/group/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 105, 'normal');
  200. INSERT INTO `fa_auth_rule` VALUES (51, 'file', 12, 'auth/rule/index', 'View', 'fa fa-circle-o', '', 'Rule tips', 0, 1497429920, 1497429920, 103, 'normal');
  201. INSERT INTO `fa_auth_rule` VALUES (52, 'file', 12, 'auth/rule/add', 'Add', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 102, 'normal');
  202. INSERT INTO `fa_auth_rule` VALUES (53, 'file', 12, 'auth/rule/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 101, 'normal');
  203. INSERT INTO `fa_auth_rule` VALUES (54, 'file', 12, 'auth/rule/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1497429920, 1497429920, 100, 'normal');
  204. INSERT INTO `fa_auth_rule` VALUES (55, 'file', 4, 'addon/index', 'View', 'fa fa-circle-o', '', 'Addon tips', 0, 1502035509, 1502035509, 0, 'normal');
  205. INSERT INTO `fa_auth_rule` VALUES (56, 'file', 4, 'addon/add', 'Add', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  206. INSERT INTO `fa_auth_rule` VALUES (57, 'file', 4, 'addon/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  207. INSERT INTO `fa_auth_rule` VALUES (58, 'file', 4, 'addon/del', 'Delete', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  208. INSERT INTO `fa_auth_rule` VALUES (59, 'file', 4, 'addon/local', 'Local install', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  209. INSERT INTO `fa_auth_rule` VALUES (60, 'file', 4, 'addon/state', 'Update state', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  210. INSERT INTO `fa_auth_rule` VALUES (61, 'file', 4, 'addon/install', 'Install', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  211. INSERT INTO `fa_auth_rule` VALUES (62, 'file', 4, 'addon/uninstall', 'Uninstall', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  212. INSERT INTO `fa_auth_rule` VALUES (63, 'file', 4, 'addon/config', 'Setting', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  213. INSERT INTO `fa_auth_rule` VALUES (64, 'file', 4, 'addon/refresh', 'Refresh', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  214. INSERT INTO `fa_auth_rule` VALUES (65, 'file', 4, 'addon/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1502035509, 1502035509, 0, 'normal');
  215. INSERT INTO `fa_auth_rule` VALUES (66, 'file', 0, 'user', 'User', 'fa fa-list', '', '', 1, 1516374729, 1516374729, 0, 'normal');
  216. INSERT INTO `fa_auth_rule` VALUES (67, 'file', 66, 'user/user', 'User', 'fa fa-user', '', '', 1, 1516374729, 1516374729, 0, 'normal');
  217. INSERT INTO `fa_auth_rule` VALUES (68, 'file', 67, 'user/user/index', 'View', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  218. INSERT INTO `fa_auth_rule` VALUES (69, 'file', 67, 'user/user/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  219. INSERT INTO `fa_auth_rule` VALUES (70, 'file', 67, 'user/user/add', 'Add', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  220. INSERT INTO `fa_auth_rule` VALUES (71, 'file', 67, 'user/user/del', 'Del', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  221. INSERT INTO `fa_auth_rule` VALUES (72, 'file', 67, 'user/user/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  222. INSERT INTO `fa_auth_rule` VALUES (73, 'file', 66, 'user/group', 'User group', 'fa fa-users', '', '', 1, 1516374729, 1516374729, 0, 'normal');
  223. INSERT INTO `fa_auth_rule` VALUES (74, 'file', 73, 'user/group/add', 'Add', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  224. INSERT INTO `fa_auth_rule` VALUES (75, 'file', 73, 'user/group/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  225. INSERT INTO `fa_auth_rule` VALUES (76, 'file', 73, 'user/group/index', 'View', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  226. INSERT INTO `fa_auth_rule` VALUES (77, 'file', 73, 'user/group/del', 'Del', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  227. INSERT INTO `fa_auth_rule` VALUES (78, 'file', 73, 'user/group/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  228. INSERT INTO `fa_auth_rule` VALUES (79, 'file', 66, 'user/rule', 'User rule', 'fa fa-circle-o', '', '', 1, 1516374729, 1516374729, 0, 'normal');
  229. INSERT INTO `fa_auth_rule` VALUES (80, 'file', 79, 'user/rule/index', 'View', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  230. INSERT INTO `fa_auth_rule` VALUES (81, 'file', 79, 'user/rule/del', 'Del', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  231. INSERT INTO `fa_auth_rule` VALUES (82, 'file', 79, 'user/rule/add', 'Add', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  232. INSERT INTO `fa_auth_rule` VALUES (83, 'file', 79, 'user/rule/edit', 'Edit', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  233. INSERT INTO `fa_auth_rule` VALUES (84, 'file', 79, 'user/rule/multi', 'Multi', 'fa fa-circle-o', '', '', 0, 1516374729, 1516374729, 0, 'normal');
  234. COMMIT;
  235. -- ----------------------------
  236. -- Table structure for fa_category
  237. -- ----------------------------
  238. DROP TABLE IF EXISTS `fa_category`;
  239. CREATE TABLE `fa_category` (
  240. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  241. `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父ID',
  242. `type` varchar(30) NOT NULL DEFAULT '' COMMENT '栏目类型',
  243. `name` varchar(30) NOT NULL DEFAULT '',
  244. `nickname` varchar(50) NOT NULL DEFAULT '',
  245. `flag` set('hot','index','recommend') NOT NULL DEFAULT '',
  246. `image` varchar(100) NOT NULL DEFAULT '' COMMENT '图片',
  247. `keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '关键字',
  248. `description` varchar(255) NOT NULL DEFAULT '' COMMENT '描述',
  249. `diyname` varchar(30) NOT NULL DEFAULT '' COMMENT '自定义名称',
  250. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  251. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  252. `weigh` int(10) NOT NULL DEFAULT '0' COMMENT '权重',
  253. `status` varchar(30) NOT NULL DEFAULT '' COMMENT '状态',
  254. PRIMARY KEY (`id`),
  255. KEY `weigh` (`weigh`,`id`),
  256. KEY `pid` (`pid`)
  257. ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='分类表';
  258. -- ----------------------------
  259. -- Records of fa_category
  260. -- ----------------------------
  261. BEGIN;
  262. INSERT INTO `fa_category` VALUES (1, 0, 'page', '官方新闻', 'news', 'recommend', '/assets/img/qrcode.png', '', '', 'news', 1495262190, 1495262190, 1, 'normal');
  263. INSERT INTO `fa_category` VALUES (2, 0, 'page', '移动应用', 'mobileapp', 'hot', '/assets/img/qrcode.png', '', '', 'mobileapp', 1495262244, 1495262244, 2, 'normal');
  264. INSERT INTO `fa_category` VALUES (3, 2, 'page', '微信公众号', 'wechatpublic', 'index', '/assets/img/qrcode.png', '', '', 'wechatpublic', 1495262288, 1495262288, 3, 'normal');
  265. INSERT INTO `fa_category` VALUES (4, 2, 'page', 'Android开发', 'android', 'recommend', '/assets/img/qrcode.png', '', '', 'android', 1495262317, 1495262317, 4, 'normal');
  266. INSERT INTO `fa_category` VALUES (5, 0, 'page', '软件产品', 'software', 'recommend', '/assets/img/qrcode.png', '', '', 'software', 1495262336, 1499681850, 5, 'normal');
  267. INSERT INTO `fa_category` VALUES (6, 5, 'page', '网站建站', 'website', 'recommend', '/assets/img/qrcode.png', '', '', 'website', 1495262357, 1495262357, 6, 'normal');
  268. INSERT INTO `fa_category` VALUES (7, 5, 'page', '企业管理软件', 'company', 'index', '/assets/img/qrcode.png', '', '', 'company', 1495262391, 1495262391, 7, 'normal');
  269. INSERT INTO `fa_category` VALUES (8, 6, 'page', 'PC端', 'website-pc', 'recommend', '/assets/img/qrcode.png', '', '', 'website-pc', 1495262424, 1495262424, 8, 'normal');
  270. INSERT INTO `fa_category` VALUES (9, 6, 'page', '移动端', 'website-mobile', 'recommend', '/assets/img/qrcode.png', '', '', 'website-mobile', 1495262456, 1495262456, 9, 'normal');
  271. INSERT INTO `fa_category` VALUES (10, 7, 'page', 'CRM系统 ', 'company-crm', 'recommend', '/assets/img/qrcode.png', '', '', 'company-crm', 1495262487, 1495262487, 10, 'normal');
  272. INSERT INTO `fa_category` VALUES (11, 7, 'page', 'SASS平台软件', 'company-sass', 'recommend', '/assets/img/qrcode.png', '', '', 'company-sass', 1495262515, 1495262515, 11, 'normal');
  273. INSERT INTO `fa_category` VALUES (12, 0, 'test', '测试1', 'test1', 'recommend', '/assets/img/qrcode.png', '', '', 'test1', 1497015727, 1497015727, 12, 'normal');
  274. INSERT INTO `fa_category` VALUES (13, 0, 'test', '测试2', 'test2', 'recommend', '/assets/img/qrcode.png', '', '', 'test2', 1497015738, 1497015738, 13, 'normal');
  275. COMMIT;
  276. -- ----------------------------
  277. -- Table structure for fa_config
  278. -- ----------------------------
  279. DROP TABLE IF EXISTS `fa_config`;
  280. CREATE TABLE `fa_config` (
  281. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  282. `name` varchar(30) NOT NULL DEFAULT '' COMMENT '变量名',
  283. `group` varchar(30) NOT NULL DEFAULT '' COMMENT '分组',
  284. `title` varchar(100) NOT NULL DEFAULT '' COMMENT '变量标题',
  285. `tip` varchar(100) NOT NULL DEFAULT '' COMMENT '变量描述',
  286. `type` varchar(30) NOT NULL DEFAULT '' COMMENT '类型:string,text,int,bool,array,datetime,date,file',
  287. `value` text NOT NULL COMMENT '变量值',
  288. `content` text NOT NULL COMMENT '变量字典数据',
  289. `rule` varchar(100) NOT NULL DEFAULT '' COMMENT '验证规则',
  290. `extend` varchar(255) NOT NULL DEFAULT '' COMMENT '扩展属性',
  291. PRIMARY KEY (`id`),
  292. UNIQUE KEY `name` (`name`)
  293. ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='系统配置';
  294. -- ----------------------------
  295. -- Records of fa_config
  296. -- ----------------------------
  297. BEGIN;
  298. INSERT INTO `fa_config` VALUES (1, 'name', 'basic', 'Site name', '请填写站点名称', 'string', 'FastAdmin', '', 'required', '');
  299. INSERT INTO `fa_config` VALUES (2, 'beian', 'basic', 'Beian', '粤ICP备15000000号-1', 'string', '', '', '', '');
  300. INSERT INTO `fa_config` VALUES (3, 'cdnurl', 'basic', 'Cdn url', '如果静态资源使用第三方云储存请配置该值', 'string', '', '', '', '');
  301. INSERT INTO `fa_config` VALUES (4, 'version', 'basic', 'Version', '如果静态资源有变动请重新配置该值', 'string', '1.0.1', '', 'required', '');
  302. INSERT INTO `fa_config` VALUES (5, 'timezone', 'basic', 'Timezone', '', 'string', 'Asia/Shanghai', '', 'required', '');
  303. INSERT INTO `fa_config` VALUES (6, 'forbiddenip', 'basic', 'Forbidden ip', '一行一条记录', 'text', '', '', '', '');
  304. INSERT INTO `fa_config` VALUES (7, 'languages', 'basic', 'Languages', '', 'array', '{\"backend\":\"zh-cn\",\"frontend\":\"zh-cn\"}', '', 'required', '');
  305. INSERT INTO `fa_config` VALUES (8, 'fixedpage', 'basic', 'Fixed page', '请尽量输入左侧菜单栏存在的链接', 'string', 'dashboard', '', 'required', '');
  306. INSERT INTO `fa_config` VALUES (9, 'categorytype', 'dictionary', 'Category type', '', 'array', '{\"default\":\"Default\",\"page\":\"Page\",\"article\":\"Article\",\"test\":\"Test\"}', '', '', '');
  307. INSERT INTO `fa_config` VALUES (10, 'configgroup', 'dictionary', 'Config group', '', 'array', '{\"basic\":\"Basic\",\"email\":\"Email\",\"dictionary\":\"Dictionary\",\"user\":\"User\",\"example\":\"Example\"}', '', '', '');
  308. INSERT INTO `fa_config` VALUES (11, 'mail_type', 'email', 'Mail type', '选择邮件发送方式', 'select', '1', '[\"Please select\",\"SMTP\",\"Mail\"]', '', '');
  309. INSERT INTO `fa_config` VALUES (12, 'mail_smtp_host', 'email', 'Mail smtp host', '错误的配置发送邮件会导致服务器超时', 'string', 'smtp.qq.com', '', '', '');
  310. INSERT INTO `fa_config` VALUES (13, 'mail_smtp_port', 'email', 'Mail smtp port', '(不加密默认25,SSL默认465,TLS默认587)', 'string', '465', '', '', '');
  311. INSERT INTO `fa_config` VALUES (14, 'mail_smtp_user', 'email', 'Mail smtp user', '(填写完整用户名)', 'string', '10000', '', '', '');
  312. INSERT INTO `fa_config` VALUES (15, 'mail_smtp_pass', 'email', 'Mail smtp password', '(填写您的密码)', 'string', 'password', '', '', '');
  313. INSERT INTO `fa_config` VALUES (16, 'mail_verify_type', 'email', 'Mail vertify type', '(SMTP验证方式[推荐SSL])', 'select', '2', '[\"None\",\"TLS\",\"SSL\"]', '', '');
  314. INSERT INTO `fa_config` VALUES (17, 'mail_from', 'email', 'Mail from', '', 'string', '10000@qq.com', '', '', '');
  315. COMMIT;
  316. -- ----------------------------
  317. -- Table structure for fa_ems
  318. -- ----------------------------
  319. DROP TABLE IF EXISTS `fa_ems`;
  320. CREATE TABLE `fa_ems` (
  321. `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  322. `event` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '事件',
  323. `email` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '邮箱',
  324. `code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '验证码',
  325. `times` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '验证次数',
  326. `ip` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT 'IP',
  327. `createtime` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '创建时间',
  328. PRIMARY KEY (`id`) USING BTREE
  329. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='邮箱验证码表';
  330. -- ----------------------------
  331. -- Table structure for fa_sms
  332. -- ----------------------------
  333. DROP TABLE IF EXISTS `fa_sms`;
  334. CREATE TABLE `fa_sms` (
  335. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  336. `event` varchar(30) NOT NULL DEFAULT '' COMMENT '事件',
  337. `mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号',
  338. `code` varchar(10) NOT NULL DEFAULT '' COMMENT '验证码',
  339. `times` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '验证次数',
  340. `ip` varchar(30) NOT NULL DEFAULT '' COMMENT 'IP',
  341. `createtime` int(10) unsigned DEFAULT '0' COMMENT '创建时间',
  342. PRIMARY KEY (`id`)
  343. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='短信验证码表';
  344. -- ----------------------------
  345. -- Table structure for fa_test
  346. -- ----------------------------
  347. DROP TABLE IF EXISTS `fa_test`;
  348. CREATE TABLE `fa_test` (
  349. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  350. `admin_id` int(10) NOT NULL DEFAULT '0' COMMENT '管理员ID',
  351. `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '分类ID(单选)',
  352. `category_ids` varchar(100) NOT NULL COMMENT '分类ID(多选)',
  353. `week` enum('monday','tuesday','wednesday') NOT NULL COMMENT '星期(单选):monday=星期一,tuesday=星期二,wednesday=星期三',
  354. `flag` set('hot','index','recommend') NOT NULL DEFAULT '' COMMENT '标志(多选):hot=热门,index=首页,recommend=推荐',
  355. `genderdata` enum('male','female') NOT NULL DEFAULT 'male' COMMENT '性别(单选):male=男,female=女',
  356. `hobbydata` set('music','reading','swimming') NOT NULL COMMENT '爱好(多选):music=音乐,reading=读书,swimming=游泳',
  357. `title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
  358. `content` text NOT NULL COMMENT '内容',
  359. `image` varchar(100) NOT NULL DEFAULT '' COMMENT '图片',
  360. `images` varchar(1500) NOT NULL DEFAULT '' COMMENT '图片组',
  361. `attachfile` varchar(100) NOT NULL DEFAULT '' COMMENT '附件',
  362. `keywords` varchar(100) NOT NULL DEFAULT '' COMMENT '关键字',
  363. `description` varchar(255) NOT NULL DEFAULT '' COMMENT '描述',
  364. `city` varchar(100) NOT NULL DEFAULT '' COMMENT '省市',
  365. `json` varchar(255) DEFAULT NULL COMMENT '配置:key=名称,value=值',
  366. `price` float(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '价格',
  367. `views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '点击',
  368. `startdate` date DEFAULT NULL COMMENT '开始日期',
  369. `activitytime` datetime DEFAULT NULL COMMENT '活动时间(datetime)',
  370. `year` year(4) DEFAULT NULL COMMENT '年',
  371. `times` time DEFAULT NULL COMMENT '时间',
  372. `refreshtime` int(10) DEFAULT NULL COMMENT '刷新时间(int)',
  373. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  374. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  375. `deletetime` int(10) DEFAULT NULL COMMENT '删除时间',
  376. `weigh` int(10) NOT NULL DEFAULT '0' COMMENT '权重',
  377. `switch` tinyint(1) NOT NULL DEFAULT '0' COMMENT '开关',
  378. `status` enum('normal','hidden') NOT NULL DEFAULT 'normal' COMMENT '状态',
  379. `state` enum('0','1','2') NOT NULL DEFAULT '1' COMMENT '状态值:0=禁用,1=正常,2=推荐',
  380. PRIMARY KEY (`id`)
  381. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='测试表';
  382. -- ----------------------------
  383. -- Records of fa_test
  384. -- ----------------------------
  385. BEGIN;
  386. INSERT INTO `fa_test` VALUES (1, 0, 12, '12,13', 'monday', 'hot,index', 'male', 'music,reading', '我是一篇测试文章', '<p>我是测试内容</p>', '/assets/img/avatar.png', '/assets/img/avatar.png,/assets/img/qrcode.png', '/assets/img/avatar.png', '关键字', '描述', '广西壮族自治区/百色市/平果县', '{\"a\":\"1\",\"b\":\"2\"}', 0.00, 0, '2017-07-10', '2017-07-10 18:24:45', 2017, '18:24:45', 1499682285, 1499682526, 1499682526, NULL, 0, 1, 'normal', '1');
  387. COMMIT;
  388. -- ----------------------------
  389. -- Table structure for fa_user
  390. -- ----------------------------
  391. DROP TABLE IF EXISTS `fa_user`;
  392. CREATE TABLE `fa_user` (
  393. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  394. `group_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '组别ID',
  395. `username` varchar(32) NOT NULL DEFAULT '' COMMENT '用户名',
  396. `nickname` varchar(50) NOT NULL DEFAULT '' COMMENT '昵称',
  397. `password` varchar(32) NOT NULL DEFAULT '' COMMENT '密码',
  398. `salt` varchar(30) NOT NULL DEFAULT '' COMMENT '密码盐',
  399. `email` varchar(100) NOT NULL DEFAULT '' COMMENT '电子邮箱',
  400. `mobile` varchar(11) NOT NULL DEFAULT '' COMMENT '手机号',
  401. `avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '头像',
  402. `level` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '等级',
  403. `gender` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '性别',
  404. `birthday` date COMMENT '生日',
  405. `bio` varchar(100) NOT NULL DEFAULT '' COMMENT '格言',
  406. `money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '余额',
  407. `score` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
  408. `successions` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '连续登录天数',
  409. `maxsuccessions` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '最大连续登录天数',
  410. `prevtime` int(10) DEFAULT NULL COMMENT '上次登录时间',
  411. `logintime` int(10) DEFAULT NULL COMMENT '登录时间',
  412. `loginip` varchar(50) NOT NULL DEFAULT '' COMMENT '登录IP',
  413. `loginfailure` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '失败次数',
  414. `joinip` varchar(50) NOT NULL DEFAULT '' COMMENT '加入IP',
  415. `jointime` int(10) DEFAULT NULL COMMENT '加入时间',
  416. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  417. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  418. `token` varchar(50) NOT NULL DEFAULT '' COMMENT 'Token',
  419. `status` varchar(30) NOT NULL DEFAULT '' COMMENT '状态',
  420. `verification` varchar(255) NOT NULL DEFAULT '' COMMENT '验证',
  421. PRIMARY KEY (`id`),
  422. KEY `username` (`username`),
  423. KEY `email` (`email`),
  424. KEY `mobile` (`mobile`)
  425. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='会员表';
  426. -- ----------------------------
  427. -- Records of fa_user
  428. -- ----------------------------
  429. BEGIN;
  430. INSERT INTO `fa_user` VALUES (1, 1, 'admin', 'admin', 'c13f62012fd6a8fdf06b3452a94430e5', 'rpR6Bv', 'admin@163.com', '13888888888', '', 0, 0, '2017-04-15', '', 0, 0, 1, 1, 1516170492, 1516171614, '127.0.0.1', 0, '127.0.0.1', 1491461418, 0, 1516171614, '', 'normal','');
  431. COMMIT;
  432. -- ----------------------------
  433. -- Table structure for fa_user_group
  434. -- ----------------------------
  435. DROP TABLE IF EXISTS `fa_user_group`;
  436. CREATE TABLE `fa_user_group` (
  437. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  438. `name` varchar(50) DEFAULT '' COMMENT '组名',
  439. `rules` text COMMENT '权限节点',
  440. `createtime` int(10) DEFAULT NULL COMMENT '添加时间',
  441. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  442. `status` enum('normal','hidden') DEFAULT NULL COMMENT '状态',
  443. PRIMARY KEY (`id`)
  444. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='会员组表';
  445. -- ----------------------------
  446. -- Records of fa_user_group
  447. -- ----------------------------
  448. BEGIN;
  449. INSERT INTO `fa_user_group` VALUES (1, '默认组', '1,2,3,4,5,6,7,8,9,10,11,12', 1515386468, 1516168298, 'normal');
  450. COMMIT;
  451. -- ----------------------------
  452. -- Table structure for fa_user_money_log
  453. -- ----------------------------
  454. DROP TABLE IF EXISTS `fa_user_money_log`;
  455. CREATE TABLE `fa_user_money_log` (
  456. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  457. `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID',
  458. `money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '变更余额',
  459. `before` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '变更前余额',
  460. `after` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '变更后余额',
  461. `memo` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  462. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  463. PRIMARY KEY (`id`)
  464. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='会员余额变动表';
  465. -- ----------------------------
  466. -- Table structure for fa_user_rule
  467. -- ----------------------------
  468. DROP TABLE IF EXISTS `fa_user_rule`;
  469. CREATE TABLE `fa_user_rule` (
  470. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  471. `pid` int(10) DEFAULT NULL COMMENT '父ID',
  472. `name` varchar(50) DEFAULT NULL COMMENT '名称',
  473. `title` varchar(50) DEFAULT '' COMMENT '标题',
  474. `remark` varchar(100) DEFAULT NULL COMMENT '备注',
  475. `ismenu` tinyint(1) DEFAULT NULL COMMENT '是否菜单',
  476. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  477. `updatetime` int(10) DEFAULT NULL COMMENT '更新时间',
  478. `weigh` int(10) DEFAULT '0' COMMENT '权重',
  479. `status` enum('normal','hidden') DEFAULT NULL COMMENT '状态',
  480. PRIMARY KEY (`id`)
  481. ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='会员规则表';
  482. -- ----------------------------
  483. -- Records of fa_user_rule
  484. -- ----------------------------
  485. BEGIN;
  486. INSERT INTO `fa_user_rule` VALUES (1, 0, 'index', '前台', '', 1, 1516168079, 1516168079, 1, 'normal');
  487. INSERT INTO `fa_user_rule` VALUES (2, 0, 'api', 'API接口', '', 1, 1516168062, 1516168062, 2, 'normal');
  488. INSERT INTO `fa_user_rule` VALUES (3, 1, 'user', '会员模块', '', 1, 1515386221, 1516168103, 12, 'normal');
  489. INSERT INTO `fa_user_rule` VALUES (4, 2, 'user', '会员模块', '', 1, 1515386221, 1516168092, 11, 'normal');
  490. INSERT INTO `fa_user_rule` VALUES (5, 3, 'index/user/login', '登录', '', 0, 1515386247, 1515386247, 5, 'normal');
  491. INSERT INTO `fa_user_rule` VALUES (6, 3, 'index/user/register', '注册', '', 0, 1515386262, 1516015236, 7, 'normal');
  492. INSERT INTO `fa_user_rule` VALUES (7, 3, 'index/user/index', '会员中心', '', 0, 1516015012, 1516015012, 9, 'normal');
  493. INSERT INTO `fa_user_rule` VALUES (8, 3, 'index/user/profile', '个人资料', '', 0, 1516015012, 1516015012, 4, 'normal');
  494. INSERT INTO `fa_user_rule` VALUES (9, 4, 'api/user/login', '登录', '', 0, 1515386247, 1515386247, 6, 'normal');
  495. INSERT INTO `fa_user_rule` VALUES (10, 4, 'api/user/register', '注册', '', 0, 1515386262, 1516015236, 8, 'normal');
  496. INSERT INTO `fa_user_rule` VALUES (11, 4, 'api/user/index', '会员中心', '', 0, 1516015012, 1516015012, 10, 'normal');
  497. INSERT INTO `fa_user_rule` VALUES (12, 4, 'api/user/profile', '个人资料', '', 0, 1516015012, 1516015012, 3, 'normal');
  498. COMMIT;
  499. -- ----------------------------
  500. -- Table structure for fa_user_score_log
  501. -- ----------------------------
  502. DROP TABLE IF EXISTS `fa_user_score_log`;
  503. CREATE TABLE `fa_user_score_log` (
  504. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  505. `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID',
  506. `score` int(10) NOT NULL DEFAULT '0' COMMENT '变更积分',
  507. `before` int(10) NOT NULL DEFAULT '0' COMMENT '变更前积分',
  508. `after` int(10) NOT NULL DEFAULT '0' COMMENT '变更后积分',
  509. `memo` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  510. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  511. PRIMARY KEY (`id`)
  512. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='会员积分变动表';
  513. -- ----------------------------
  514. -- Table structure for fa_user_token
  515. -- ----------------------------
  516. DROP TABLE IF EXISTS `fa_user_token`;
  517. CREATE TABLE `fa_user_token` (
  518. `token` varchar(50) NOT NULL COMMENT 'Token',
  519. `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID',
  520. `createtime` int(10) DEFAULT NULL COMMENT '创建时间',
  521. `expiretime` int(10) DEFAULT NULL COMMENT '过期时间',
  522. PRIMARY KEY (`token`)
  523. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='会员Token表';
  524. -- ----------------------------
  525. -- Table structure for fa_version
  526. -- ----------------------------
  527. DROP TABLE IF EXISTS `fa_version`;
  528. CREATE TABLE `fa_version` (
  529. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  530. `oldversion` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '旧版本号',
  531. `newversion` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '新版本号',
  532. `packagesize` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '包大小',
  533. `content` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '升级内容',
  534. `downloadurl` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '下载地址',
  535. `enforce` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '强制更新',
  536. `createtime` int(10) NOT NULL DEFAULT 0 COMMENT '创建时间',
  537. `updatetime` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
  538. `weigh` int(10) NOT NULL DEFAULT 0 COMMENT '权重',
  539. `status` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '状态',
  540. PRIMARY KEY (`id`) USING BTREE
  541. ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT = '版本表';
  542. -- ----------------------------
  543. -- Table structure for fa_version
  544. -- ----------------------------
  545. BEGIN;
  546. INSERT INTO `fa_version` (`id`, `oldversion`, `newversion`, `packagesize`, `content`, `downloadurl`, `enforce`, `createtime`, `updatetime`, `weigh`, `status`) VALUES
  547. (1, '1.1.1,2', '1.2.1', '20M', '更新内容', 'https://www.fastadmin.net/download.html', 1, 1520425318, 0, 0, 'normal');
  548. COMMIT;
  549. SET FOREIGN_KEY_CHECKS = 1;