fastadmin.sql 43 KB

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