sql_20151115142354_1.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. <?php die('forbidden'); ?>
  2. DROP TABLE IF EXISTS lyfz_admin;
  3. CREATE TABLE `lyfz_admin` (
  4. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID号',
  5. `name` varchar(50) NOT NULL COMMENT '账号',
  6. `email` varchar(100) NOT NULL COMMENT '邮箱',
  7. `pass` varchar(50) NOT NULL COMMENT '密码',
  8. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正常0锁定',
  9. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统管理员0普通管理员',
  10. `popedom` text NOT NULL COMMENT '权限',
  11. `langid` varchar(255) NOT NULL COMMENT '可操作的语言权限,系统管理员不限',
  12. PRIMARY KEY (`id`)
  13. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  14. DROP TABLE IF EXISTS lyfz_cache;
  15. CREATE TABLE `lyfz_cache` (
  16. `id` varchar(50) NOT NULL COMMENT 'ID号',
  17. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
  18. `content` longtext NOT NULL COMMENT '缓存内容',
  19. `postdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '缓存时间',
  20. PRIMARY KEY (`id`,`langid`)
  21. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  22. DROP TABLE IF EXISTS lyfz_cate;
  23. CREATE TABLE `lyfz_cate` (
  24. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  25. `identifier` varchar(30) NOT NULL COMMENT '标识串,必须是唯一的',
  26. `langid` varchar(5) NOT NULL COMMENT '语言标识',
  27. `cate_name` varchar(100) NOT NULL COMMENT '分类名称',
  28. `parentid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID,如果为根分类,则使用0',
  29. `module_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '模块ID',
  30. `tpl_index` varchar(100) NOT NULL COMMENT '封面模板',
  31. `tpl_list` varchar(100) NOT NULL COMMENT '列表模板',
  32. `tpl_file` varchar(100) NOT NULL COMMENT '内容模板',
  33. `if_index` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否是封面,0否1是',
  34. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,值越小越往前靠',
  35. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1使用中0禁用',
  36. `if_hidden` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1隐藏0显示',
  37. `keywords` varchar(255) NOT NULL COMMENT 'SEO关键字',
  38. `description` varchar(255) NOT NULL COMMENT 'SEO描述',
  39. `ifspec` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0非单页1单页',
  40. `note` text NOT NULL COMMENT '简要描述',
  41. `psize` tinyint(3) unsigned NOT NULL DEFAULT '30' COMMENT '每页显示数量,默认30',
  42. `inpic` varchar(100) NOT NULL COMMENT '前台默认图片关联',
  43. `linkurl` varchar(255) NOT NULL COMMENT '自定义链接',
  44. `target` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '新窗口打开1是0否',
  45. `ordertype` varchar(100) NOT NULL DEFAULT 'post_date:desc' COMMENT '排序类型,默认是发布时间',
  46. `subcate` varchar(100) NOT NULL COMMENT '分类副标题',
  47. `ico` varchar(255) NOT NULL COMMENT '图标',
  48. `small_pic` varchar(255) NOT NULL COMMENT '小图',
  49. `medium_pic` varchar(255) NOT NULL COMMENT '中图',
  50. `big_pic` varchar(255) NOT NULL COMMENT '大图',
  51. `fields` varchar(255) NOT NULL COMMENT '有效字段',
  52. PRIMARY KEY (`id`),
  53. KEY `module_id` (`module_id`)
  54. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  55. DROP TABLE IF EXISTS lyfz_commission;
  56. CREATE TABLE `lyfz_commission` (
  57. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  58. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  59. `pid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  60. `uname` varchar(200) NOT NULL,
  61. `cid` mediumint(8) NOT NULL,
  62. `username` varchar(100) NOT NULL COMMENT '会员名称',
  63. `proname` varchar(220) NOT NULL DEFAULT '0',
  64. `ctype` varchar(20) NOT NULL DEFAULT '0',
  65. `turnover` float NOT NULL COMMENT '当前推荐客户的成交金额',
  66. `money` float NOT NULL COMMENT '当前合伙人佣金',
  67. `money2` float NOT NULL COMMENT '当前合伙人推荐人佣金',
  68. `money3` float NOT NULL COMMENT '当前合伙人第二推荐人佣金',
  69. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未审核1正常2锁定',
  70. `postdate` int(10) unsigned NOT NULL DEFAULT '0',
  71. PRIMARY KEY (`id`),
  72. KEY `listid` (`uid`)
  73. ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
  74. DROP TABLE IF EXISTS lyfz_commissiontx;
  75. CREATE TABLE `lyfz_commissiontx` (
  76. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  77. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  78. `uname` varchar(200) NOT NULL,
  79. `money` float NOT NULL,
  80. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0申请中1已提现',
  81. `postdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '申请提现时时间',
  82. `okpostdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '完成提现时间',
  83. PRIMARY KEY (`id`),
  84. KEY `listid` (`uid`)
  85. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  86. DROP TABLE IF EXISTS lyfz_customer;
  87. CREATE TABLE `lyfz_customer` (
  88. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  89. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  90. `uname` varchar(200) NOT NULL,
  91. `username` varchar(100) NOT NULL COMMENT '会员名称',
  92. `cellphone` varchar(20) NOT NULL,
  93. `proname` varchar(220) NOT NULL DEFAULT '0',
  94. `appointment_date` varchar(10) NOT NULL DEFAULT '0',
  95. `appointment_time` varchar(10) NOT NULL,
  96. `remark` text NOT NULL,
  97. `guwenname` varchar(100) NOT NULL,
  98. `guwentel` varchar(100) NOT NULL,
  99. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未审核1正常2锁定',
  100. `postdate` int(10) unsigned NOT NULL DEFAULT '0',
  101. `daofang` int(1) NOT NULL DEFAULT '0',
  102. `dfnote` text NOT NULL,
  103. `renchou` int(1) NOT NULL DEFAULT '0',
  104. `rcnote` text NOT NULL,
  105. `rengou` int(1) NOT NULL DEFAULT '0',
  106. `rgnote` text NOT NULL,
  107. `qianyue` int(1) NOT NULL DEFAULT '0',
  108. `qynote` text NOT NULL,
  109. `huikuan` int(1) NOT NULL DEFAULT '0',
  110. `hknote` text NOT NULL,
  111. PRIMARY KEY (`id`),
  112. KEY `listid` (`uid`)
  113. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  114. DROP TABLE IF EXISTS lyfz_gd;
  115. CREATE TABLE `lyfz_gd` (
  116. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  117. `pictype` varchar(50) NOT NULL DEFAULT '' COMMENT '图片类型标识',
  118. `picsubject` varchar(255) NOT NULL DEFAULT '' COMMENT '类型名称',
  119. `width` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '图片宽度',
  120. `height` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '图片高度',
  121. `water` varchar(255) NOT NULL DEFAULT '' COMMENT '水印图片位置',
  122. `picposition` varchar(100) NOT NULL DEFAULT '' COMMENT '水印位置',
  123. `trans` tinyint(3) unsigned NOT NULL DEFAULT '65' COMMENT '透明度,默认是60',
  124. `cuttype` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '图片生成方式,支持缩放法和裁剪法两种,默认使用缩放法',
  125. `quality` tinyint(3) unsigned NOT NULL DEFAULT '80' COMMENT '图片生成质量,默认是80',
  126. `border` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否支持边框,1是0否',
  127. `bordercolor` varchar(10) NOT NULL DEFAULT 'FFFFFF' COMMENT '边框颜色',
  128. `padding` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '间距,默认是0,最大不超过255',
  129. `bgcolor` varchar(10) NOT NULL DEFAULT 'FFFFFF' COMMENT '补白背景色,默认是白色',
  130. `bgimg` varchar(255) NOT NULL DEFAULT '' COMMENT '背景图片,默认为空',
  131. `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否使用,默认是使用',
  132. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,值越小越往前靠,最大不超过255,最小为0',
  133. `edit_default` tinyint(1) NOT NULL,
  134. PRIMARY KEY (`id`)
  135. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  136. DROP TABLE IF EXISTS lyfz_identifier;
  137. CREATE TABLE `lyfz_identifier` (
  138. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  139. `sign` varchar(32) NOT NULL COMMENT '标识符,用于本系统内所有需要此功能,仅限字母数字及下划线且第一个必须是字母',
  140. `title` varchar(100) NOT NULL COMMENT '名称',
  141. `langid` varchar(5) NOT NULL COMMENT '语言编号,如zh,en等',
  142. `module_id` mediumint(8) unsigned NOT NULL COMMENT '一个标识符只能用于一个模块,一个模块有多个标识符',
  143. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统0自定义',
  144. `g_sign` varchar(100) NOT NULL COMMENT '组标识,仅在核心技术中使用',
  145. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
  146. PRIMARY KEY (`id`),
  147. KEY `module_id` (`module_id`)
  148. ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
  149. DROP TABLE IF EXISTS lyfz_input;
  150. CREATE TABLE `lyfz_input` (
  151. `input` varchar(50) NOT NULL COMMENT '扩展框类型',
  152. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
  153. `name` varchar(100) NOT NULL COMMENT '名字',
  154. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
  155. `ifuser` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许会员表使用0否1是',
  156. PRIMARY KEY (`input`)
  157. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  158. DROP TABLE IF EXISTS lyfz_lang;
  159. CREATE TABLE `lyfz_lang` (
  160. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
  161. `title` varchar(100) NOT NULL COMMENT '显示名',
  162. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态1不使用2使用',
  163. `note` varchar(255) NOT NULL COMMENT '描述',
  164. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,小值排前',
  165. `ifdefault` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否是系统默认',
  166. `ifsystem` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统语言0应用语言',
  167. `ico` varchar(255) NOT NULL COMMENT '图标',
  168. `small_pic` varchar(255) NOT NULL COMMENT '小图',
  169. `medium_pic` varchar(255) NOT NULL COMMENT '中图',
  170. `big_pic` varchar(255) NOT NULL COMMENT '大图',
  171. PRIMARY KEY (`langid`)
  172. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  173. DROP TABLE IF EXISTS lyfz_lang_msg;
  174. CREATE TABLE `lyfz_lang_msg` (
  175. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  176. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
  177. `ltype` enum('www','admin','all') NOT NULL DEFAULT 'all' COMMENT '语言包应用范围',
  178. `var` varchar(100) NOT NULL COMMENT '语言变量名,仅英文数字及下划线',
  179. `val` varchar(255) NOT NULL COMMENT '语言值',
  180. PRIMARY KEY (`id`)
  181. ) ENGINE=MyISAM AUTO_INCREMENT=469 DEFAULT CHARSET=utf8;
  182. DROP TABLE IF EXISTS lyfz_list;
  183. CREATE TABLE `lyfz_list` (
  184. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  185. `module_id` mediumint(8) unsigned NOT NULL COMMENT '模块ID',
  186. `cate_id` mediumint(8) unsigned NOT NULL COMMENT '分类ID',
  187. `title` varchar(255) NOT NULL COMMENT '主题',
  188. `subtitle` varchar(255) NOT NULL COMMENT '副标题',
  189. `style` varchar(255) NOT NULL COMMENT '主题样式',
  190. `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态,1正常0锁定',
  191. `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1隐藏0显示',
  192. `link_url` varchar(255) NOT NULL COMMENT '访问网址',
  193. `target` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否在新窗口打开1是0否',
  194. `author` varchar(100) NOT NULL COMMENT '发布人',
  195. `author_type` enum('admin','user','guest') NOT NULL DEFAULT 'user' COMMENT '发布人类型',
  196. `keywords` varchar(255) NOT NULL COMMENT '关键字,标签',
  197. `description` varchar(255) NOT NULL COMMENT '简要描述用于SEO优化',
  198. `note` text NOT NULL COMMENT '简要描述,用于列表简要说明',
  199. `identifier` varchar(100) NOT NULL COMMENT '访问标识串,为空时使用系统ID',
  200. `hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '点击率',
  201. `good_hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '支持次数',
  202. `bad_hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '拍砖次数',
  203. `post_date` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '发布时间',
  204. `modify_date` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后修改时间',
  205. `thumb_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '缩略图ID',
  206. `istop` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1置顶0非置顶',
  207. `isvouch` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1推荐0非推荐',
  208. `isbest` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1精华0非精华',
  209. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是中文',
  210. `points` int(10) NOT NULL DEFAULT '0' COMMENT '积分,点数',
  211. `ip` varchar(100) NOT NULL COMMENT '发布人IP号',
  212. `replydate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后回复时间',
  213. `taxis` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '自定义排序,值越大越往前靠',
  214. `htmltype` enum('mid','cateid','date','root') NOT NULL DEFAULT 'date' COMMENT 'HTML存储方式,默认是以时间来存储',
  215. `tplfile` varchar(100) NOT NULL COMMENT '模板文件',
  216. `star` float unsigned NOT NULL DEFAULT '0' COMMENT '星级评论,默认为0,根据评论表中的星数来决定',
  217. `yongjin` varchar(200) NOT NULL,
  218. `jili` varchar(200) NOT NULL,
  219. PRIMARY KEY (`id`),
  220. KEY `module_id` (`module_id`,`cate_id`,`title`)
  221. ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
  222. DROP TABLE IF EXISTS lyfz_list_c;
  223. CREATE TABLE `lyfz_list_c` (
  224. `id` int(10) unsigned NOT NULL COMMENT '主题ID',
  225. `field` varchar(30) NOT NULL DEFAULT '' COMMENT '字段名',
  226. `val` text NOT NULL COMMENT '内容',
  227. PRIMARY KEY (`id`,`field`)
  228. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  229. DROP TABLE IF EXISTS lyfz_module;
  230. CREATE TABLE `lyfz_module` (
  231. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  232. `group_id` mediumint(8) unsigned NOT NULL COMMENT '组ID',
  233. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是zh',
  234. `identifier` varchar(32) NOT NULL DEFAULT '0' COMMENT '标识符',
  235. `title` varchar(100) NOT NULL COMMENT '名称',
  236. `note` varchar(255) NOT NULL COMMENT '备注',
  237. `ctrl_init` varchar(100) NOT NULL COMMENT '执行文件,不同模块可能执行相同的文件,使用标识符区分',
  238. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不使用1使用',
  239. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序值越小越往靠,最小为0',
  240. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统模块2自定义添加模块',
  241. `if_cate` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否启用分类功能,1使用0不使用',
  242. `if_biz` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否支持电子商务,0否1是',
  243. `if_propety` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持属性,1支持',
  244. `if_hits` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不持点击1支持',
  245. `popedom` varchar(255) NOT NULL COMMENT '权限ID,多个权限ID用英文逗号隔开',
  246. `if_thumb` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持缩略图0不支持',
  247. `if_thumb_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1必填0非必填',
  248. `if_point` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持点数1支持点数',
  249. `if_url_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持自定义网址,1支持,2支持且必填',
  250. `inpic` varchar(100) NOT NULL COMMENT '前台默认图片关联',
  251. `insearch` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支持前台搜索',
  252. `if_content` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持读取内容1读取内容及管理员回复',
  253. `if_email` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1邮件通知0不通知',
  254. `link_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '联动ID,0为不使用联动搜索',
  255. `search_id` varchar(30) NOT NULL COMMENT '联动搜索的字段名',
  256. `psize` tinyint(3) unsigned NOT NULL DEFAULT '30' COMMENT '默认分页数量',
  257. `if_subtitle` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用副标题0否1是',
  258. `ico` varchar(255) NOT NULL COMMENT '图标',
  259. `small_pic` varchar(255) NOT NULL COMMENT '小图',
  260. `medium_pic` varchar(255) NOT NULL COMMENT '中图',
  261. `big_pic` varchar(255) NOT NULL COMMENT '大图',
  262. `tplset` enum('list','pic') NOT NULL DEFAULT 'list' COMMENT 'list列表,pic图文',
  263. `title_nickname` varchar(50) NOT NULL COMMENT '主题别称',
  264. `subtitle_nickname` varchar(50) NOT NULL COMMENT '副标题别称',
  265. `sign_nickname` varchar(50) NOT NULL COMMENT '标识串别称',
  266. `if_sign_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '标识串是否必填',
  267. `if_ext` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '可选扩展1使用0不使用',
  268. `if_des` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '简短描述1允许0不使用',
  269. `if_list` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1支持0不支持',
  270. `if_msg` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1支持0不支持',
  271. `layout` varchar(255) NOT NULL COMMENT '后台布局设置',
  272. PRIMARY KEY (`id`),
  273. KEY `group_id` (`group_id`)
  274. ) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
  275. DROP TABLE IF EXISTS lyfz_module_fields;
  276. CREATE TABLE `lyfz_module_fields` (
  277. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  278. `module_id` mediumint(8) unsigned NOT NULL COMMENT '模块ID',
  279. `identifier` varchar(32) NOT NULL COMMENT '标识符',
  280. `title` varchar(100) NOT NULL COMMENT '主题',
  281. `if_post` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1支持会员0不支持',
  282. `if_guest` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1支持游客0不支持',
  283. `sub_left` varchar(60) NOT NULL COMMENT '左侧主题',
  284. `sub_note` varchar(120) NOT NULL COMMENT '右侧备注信息',
  285. `input` varchar(50) NOT NULL DEFAULT 'text' COMMENT '表单类型',
  286. `width` varchar(20) NOT NULL COMMENT '宽度',
  287. `height` varchar(20) NOT NULL COMMENT '高度',
  288. `default_val` varchar(50) NOT NULL COMMENT '默认值',
  289. `list_val` varchar(255) NOT NULL COMMENT '值列表',
  290. `link_id` int(10) NOT NULL DEFAULT '0' COMMENT '联动组ID',
  291. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '自定义排序,值越小越往前靠',
  292. `if_must` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1必填0非必填',
  293. `if_html` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持HTML,0不支持',
  294. `error_note` varchar(255) NOT NULL COMMENT '错误时的提示',
  295. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1启用0禁用',
  296. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统字段,0用户配置字段',
  297. `tbl` enum('ext','c') NOT NULL COMMENT 'ext指长度不大于255的表中,c指长度大于255的数据',
  298. `show_html` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不显示源码1显示源码',
  299. `if_js` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持0不支持',
  300. `if_search` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许搜索',
  301. PRIMARY KEY (`id`),
  302. KEY `module_id` (`module_id`)
  303. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  304. DROP TABLE IF EXISTS lyfz_module_group;
  305. CREATE TABLE `lyfz_module_group` (
  306. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  307. `langid` varchar(32) NOT NULL DEFAULT 'zh' COMMENT '语言编号,如zh,en等',
  308. `title` varchar(100) NOT NULL COMMENT '组名称',
  309. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不使用1使用',
  310. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '值越小越往靠,最小为0',
  311. `js_function` varchar(100) NOT NULL DEFAULT '' COMMENT 'JS控制器,为空使用系统自动生成',
  312. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统0自定义',
  313. PRIMARY KEY (`id`)
  314. ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
  315. DROP TABLE IF EXISTS lyfz_tpl;
  316. CREATE TABLE `lyfz_tpl` (
  317. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  318. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是zh',
  319. `title` varchar(100) NOT NULL COMMENT '名称',
  320. `folder` varchar(50) NOT NULL COMMENT '文件夹',
  321. `ext` varchar(10) NOT NULL DEFAULT 'html' COMMENT '模板后缀',
  322. `autoimg` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否自动解析图片地址',
  323. `ifdefault` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认',
  324. `ifsystem` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统模板0用户模板',
  325. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
  326. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正在使用0未使用',
  327. PRIMARY KEY (`id`)
  328. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  329. DROP TABLE IF EXISTS lyfz_upfiles;
  330. CREATE TABLE `lyfz_upfiles` (
  331. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '图片ID',
  332. `title` varchar(100) NOT NULL COMMENT '标题',
  333. `filename` varchar(255) NOT NULL COMMENT '图片路径,基于网站根目录的相对路径',
  334. `thumb` varchar(255) NOT NULL COMMENT '缩略图路径,基于网站根目录的相对路径',
  335. `postdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上传时间',
  336. `ftype` varchar(10) NOT NULL COMMENT '附件类型',
  337. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID号,0表示管理员上传',
  338. `flv_pic` varchar(255) NOT NULL COMMENT 'FLV封面图片',
  339. `sessid` varchar(50) NOT NULL COMMENT '游客上传标识串',
  340. PRIMARY KEY (`id`)
  341. ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;
  342. DROP TABLE IF EXISTS lyfz_upfiles_gd;
  343. CREATE TABLE `lyfz_upfiles_gd` (
  344. `pid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '图片ID,对应upfiles里的ID',
  345. `gdtype` varchar(100) NOT NULL COMMENT '图片类型',
  346. `filename` varchar(255) NOT NULL COMMENT '图片地址(生成类型的图片地址)',
  347. PRIMARY KEY (`pid`,`gdtype`)
  348. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  349. DROP TABLE IF EXISTS lyfz_user;
  350. CREATE TABLE `lyfz_user` (
  351. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  352. `groupid` mediumint(8) unsigned NOT NULL DEFAULT '1' COMMENT '会员组ID',
  353. `username` varchar(100) NOT NULL COMMENT '会员名称',
  354. `pass` varchar(50) NOT NULL COMMENT '密码',
  355. `phone` varchar(100) NOT NULL COMMENT '手机',
  356. `regdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间',
  357. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态1已审核0未审核2锁定',
  358. `fxstatus` tinyint(1) NOT NULL,
  359. `job` varchar(150) NOT NULL,
  360. `company` varchar(20) NOT NULL,
  361. `thumb_id` int(10) unsigned NOT NULL COMMENT '个性头像ID',
  362. `bankAccount` varchar(100) NOT NULL,
  363. `cardCode` varchar(100) NOT NULL,
  364. `bankName` varchar(100) NOT NULL,
  365. `Recommend` int(10) unsigned DEFAULT '0' COMMENT '推荐人ID',
  366. `RecommendName` varchar(100) DEFAULT '' COMMENT '推荐人姓名',
  367. `wxopenid` varchar(100) DEFAULT '' COMMENT '微信Opneid',
  368. `wxthumb` varchar(800) DEFAULT '' COMMENT '微信头像',
  369. PRIMARY KEY (`id`)
  370. ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
  371. DROP TABLE IF EXISTS lyfz_user_group;
  372. CREATE TABLE `lyfz_user_group` (
  373. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '会员组ID',
  374. `group_type` enum('user','guest') NOT NULL DEFAULT 'user' COMMENT '用户组类型',
  375. `title` varchar(100) NOT NULL COMMENT '组名称',
  376. `popedom_post` text NOT NULL COMMENT '发布权限',
  377. `popedom_reply` text NOT NULL COMMENT '回复权限',
  378. `popedom_read` text NOT NULL COMMENT '阅读权限,默认为all',
  379. `post_cert` tinyint(1) NOT NULL DEFAULT '0' COMMENT '发布0需要验证1免验证',
  380. `reply_cert` tinyint(1) NOT NULL DEFAULT '0' COMMENT '回复0需要验证1免验证',
  381. `ifsystem` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否系统组0否1是',
  382. `ifdefault` tinyint(1) NOT NULL DEFAULT '0' COMMENT '会员注册后默认选择的组',
  383. PRIMARY KEY (`id`)
  384. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  385. INSERT INTO lyfz_admin VALUES('1','admin','admin@admin.com','c3284d0f94606de1fd2af172aba15bf3','1','1','','');