sql_20151030152012_1.php 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. <?php die('forbidden'); ?>
  2. DROP TABLE IF EXISTS columns_priv;
  3. CREATE TABLE `columns_priv` (
  4. `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
  5. `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  6. `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
  7. `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  8. `Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  9. `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  10. `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
  11. PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
  12. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges';
  13. DROP TABLE IF EXISTS db;
  14. CREATE TABLE `db` (
  15. `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
  16. `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  17. `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
  18. `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  19. `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  20. `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  21. `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  22. `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  23. `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  24. `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  25. `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  26. `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  27. `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  28. `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  29. `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  30. `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  31. `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  32. `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  33. `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  34. `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  35. `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  36. `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  37. PRIMARY KEY (`Host`,`Db`,`User`),
  38. KEY `User` (`User`)
  39. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges';
  40. DROP TABLE IF EXISTS event;
  41. CREATE TABLE `event` (
  42. `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  43. `name` char(64) NOT NULL DEFAULT '',
  44. `body` longblob NOT NULL,
  45. `definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  46. `execute_at` datetime DEFAULT NULL,
  47. `interval_value` int(11) DEFAULT NULL,
  48. `interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL,
  49. `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  50. `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  51. `last_executed` datetime DEFAULT NULL,
  52. `starts` datetime DEFAULT NULL,
  53. `ends` datetime DEFAULT NULL,
  54. `status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
  55. `on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
  56. `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '',
  57. `comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  58. `originator` int(10) unsigned NOT NULL,
  59. `time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
  60. `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  61. `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  62. `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  63. `body_utf8` longblob,
  64. PRIMARY KEY (`db`,`name`)
  65. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events';
  66. DROP TABLE IF EXISTS func;
  67. CREATE TABLE `func` (
  68. `name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  69. `ret` tinyint(1) NOT NULL DEFAULT '0',
  70. `dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
  71. `type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
  72. PRIMARY KEY (`name`)
  73. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions';
  74. DROP TABLE IF EXISTS general_log;
  75. CREATE TABLE `general_log` (
  76. `event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  77. `user_host` mediumtext NOT NULL,
  78. `thread_id` int(11) NOT NULL,
  79. `server_id` int(10) unsigned NOT NULL,
  80. `command_type` varchar(64) NOT NULL,
  81. `argument` mediumtext NOT NULL
  82. ) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log';
  83. DROP TABLE IF EXISTS help_category;
  84. CREATE TABLE `help_category` (
  85. `help_category_id` smallint(5) unsigned NOT NULL,
  86. `name` char(64) NOT NULL,
  87. `parent_category_id` smallint(5) unsigned DEFAULT NULL,
  88. `url` text NOT NULL,
  89. PRIMARY KEY (`help_category_id`),
  90. UNIQUE KEY `name` (`name`)
  91. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help categories';
  92. DROP TABLE IF EXISTS help_keyword;
  93. CREATE TABLE `help_keyword` (
  94. `help_keyword_id` int(10) unsigned NOT NULL,
  95. `name` char(64) NOT NULL,
  96. PRIMARY KEY (`help_keyword_id`),
  97. UNIQUE KEY `name` (`name`)
  98. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help keywords';
  99. DROP TABLE IF EXISTS help_relation;
  100. CREATE TABLE `help_relation` (
  101. `help_topic_id` int(10) unsigned NOT NULL,
  102. `help_keyword_id` int(10) unsigned NOT NULL,
  103. PRIMARY KEY (`help_keyword_id`,`help_topic_id`)
  104. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='keyword-topic relation';
  105. DROP TABLE IF EXISTS help_topic;
  106. CREATE TABLE `help_topic` (
  107. `help_topic_id` int(10) unsigned NOT NULL,
  108. `name` char(64) NOT NULL,
  109. `help_category_id` smallint(5) unsigned NOT NULL,
  110. `description` text NOT NULL,
  111. `example` text NOT NULL,
  112. `url` text NOT NULL,
  113. PRIMARY KEY (`help_topic_id`),
  114. UNIQUE KEY `name` (`name`)
  115. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help topics';
  116. DROP TABLE IF EXISTS host;
  117. CREATE TABLE `host` (
  118. `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
  119. `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  120. `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  121. `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  122. `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  123. `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  124. `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  125. `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  126. `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  127. `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  128. `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  129. `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  130. `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  131. `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  132. `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  133. `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  134. `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  135. `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  136. `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  137. `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  138. PRIMARY KEY (`Host`,`Db`)
  139. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Host privileges; Merged with database privileges';
  140. DROP TABLE IF EXISTS ndb_binlog_index;
  141. CREATE TABLE `ndb_binlog_index` (
  142. `Position` bigint(20) unsigned NOT NULL,
  143. `File` varchar(255) NOT NULL,
  144. `epoch` bigint(20) unsigned NOT NULL,
  145. `inserts` bigint(20) unsigned NOT NULL,
  146. `updates` bigint(20) unsigned NOT NULL,
  147. `deletes` bigint(20) unsigned NOT NULL,
  148. `schemaops` bigint(20) unsigned NOT NULL,
  149. PRIMARY KEY (`epoch`)
  150. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  151. DROP TABLE IF EXISTS plugin;
  152. CREATE TABLE `plugin` (
  153. `name` varchar(64) NOT NULL DEFAULT '',
  154. `dl` varchar(128) NOT NULL DEFAULT '',
  155. PRIMARY KEY (`name`)
  156. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL plugins';
  157. DROP TABLE IF EXISTS proc;
  158. CREATE TABLE `proc` (
  159. `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  160. `name` char(64) NOT NULL DEFAULT '',
  161. `type` enum('FUNCTION','PROCEDURE') NOT NULL,
  162. `specific_name` char(64) NOT NULL DEFAULT '',
  163. `language` enum('SQL') NOT NULL DEFAULT 'SQL',
  164. `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
  165. `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
  166. `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
  167. `param_list` blob NOT NULL,
  168. `returns` longblob NOT NULL,
  169. `body` longblob NOT NULL,
  170. `definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  171. `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  172. `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  173. `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '',
  174. `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  175. `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  176. `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  177. `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  178. `body_utf8` longblob,
  179. PRIMARY KEY (`db`,`name`,`type`)
  180. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures';
  181. DROP TABLE IF EXISTS procs_priv;
  182. CREATE TABLE `procs_priv` (
  183. `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
  184. `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  185. `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
  186. `Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
  187. `Routine_type` enum('FUNCTION','PROCEDURE') COLLATE utf8_bin NOT NULL,
  188. `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
  189. `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
  190. `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  191. PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
  192. KEY `Grantor` (`Grantor`)
  193. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges';
  194. DROP TABLE IF EXISTS proxies_priv;
  195. CREATE TABLE `proxies_priv` (
  196. `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
  197. `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
  198. `Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
  199. `Proxied_user` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
  200. `With_grant` tinyint(1) NOT NULL DEFAULT '0',
  201. `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
  202. `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  203. PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`),
  204. KEY `Grantor` (`Grantor`)
  205. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User proxy privileges';
  206. DROP TABLE IF EXISTS servers;
  207. CREATE TABLE `servers` (
  208. `Server_name` char(64) NOT NULL DEFAULT '',
  209. `Host` char(64) NOT NULL DEFAULT '',
  210. `Db` char(64) NOT NULL DEFAULT '',
  211. `Username` char(64) NOT NULL DEFAULT '',
  212. `Password` char(64) NOT NULL DEFAULT '',
  213. `Port` int(4) NOT NULL DEFAULT '0',
  214. `Socket` char(64) NOT NULL DEFAULT '',
  215. `Wrapper` char(64) NOT NULL DEFAULT '',
  216. `Owner` char(64) NOT NULL DEFAULT '',
  217. PRIMARY KEY (`Server_name`)
  218. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table';
  219. DROP TABLE IF EXISTS slow_log;
  220. CREATE TABLE `slow_log` (
  221. `start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  222. `user_host` mediumtext NOT NULL,
  223. `query_time` time NOT NULL,
  224. `lock_time` time NOT NULL,
  225. `rows_sent` int(11) NOT NULL,
  226. `rows_examined` int(11) NOT NULL,
  227. `db` varchar(512) NOT NULL,
  228. `last_insert_id` int(11) NOT NULL,
  229. `insert_id` int(11) NOT NULL,
  230. `server_id` int(10) unsigned NOT NULL,
  231. `sql_text` mediumtext NOT NULL
  232. ) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log';
  233. DROP TABLE IF EXISTS tables_priv;
  234. CREATE TABLE `tables_priv` (
  235. `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
  236. `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  237. `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
  238. `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  239. `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
  240. `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  241. `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') CHARACTER SET utf8 NOT NULL DEFAULT '',
  242. `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
  243. PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
  244. KEY `Grantor` (`Grantor`)
  245. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges';
  246. DROP TABLE IF EXISTS time_zone;
  247. CREATE TABLE `time_zone` (
  248. `Time_zone_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  249. `Use_leap_seconds` enum('Y','N') NOT NULL DEFAULT 'N',
  250. PRIMARY KEY (`Time_zone_id`)
  251. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zones';
  252. DROP TABLE IF EXISTS time_zone_leap_second;
  253. CREATE TABLE `time_zone_leap_second` (
  254. `Transition_time` bigint(20) NOT NULL,
  255. `Correction` int(11) NOT NULL,
  256. PRIMARY KEY (`Transition_time`)
  257. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Leap seconds information for time zones';
  258. DROP TABLE IF EXISTS time_zone_name;
  259. CREATE TABLE `time_zone_name` (
  260. `Name` char(64) NOT NULL,
  261. `Time_zone_id` int(10) unsigned NOT NULL,
  262. PRIMARY KEY (`Name`)
  263. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone names';
  264. DROP TABLE IF EXISTS time_zone_transition;
  265. CREATE TABLE `time_zone_transition` (
  266. `Time_zone_id` int(10) unsigned NOT NULL,
  267. `Transition_time` bigint(20) NOT NULL,
  268. `Transition_type_id` int(10) unsigned NOT NULL,
  269. PRIMARY KEY (`Time_zone_id`,`Transition_time`)
  270. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transitions';
  271. DROP TABLE IF EXISTS time_zone_transition_type;
  272. CREATE TABLE `time_zone_transition_type` (
  273. `Time_zone_id` int(10) unsigned NOT NULL,
  274. `Transition_type_id` int(10) unsigned NOT NULL,
  275. `Offset` int(11) NOT NULL DEFAULT '0',
  276. `Is_DST` tinyint(3) unsigned NOT NULL DEFAULT '0',
  277. `Abbreviation` char(8) NOT NULL DEFAULT '',
  278. PRIMARY KEY (`Time_zone_id`,`Transition_type_id`)
  279. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transition types';
  280. DROP TABLE IF EXISTS user;
  281. CREATE TABLE `user` (
  282. `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
  283. `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
  284. `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
  285. `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  286. `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  287. `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  288. `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  289. `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  290. `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  291. `Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  292. `Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  293. `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  294. `File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  295. `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  296. `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  297. `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  298. `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  299. `Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  300. `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  301. `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  302. `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  303. `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  304. `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  305. `Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  306. `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  307. `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  308. `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  309. `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  310. `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  311. `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  312. `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  313. `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
  314. `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
  315. `ssl_cipher` blob NOT NULL,
  316. `x509_issuer` blob NOT NULL,
  317. `x509_subject` blob NOT NULL,
  318. `max_questions` int(11) unsigned NOT NULL DEFAULT '0',
  319. `max_updates` int(11) unsigned NOT NULL DEFAULT '0',
  320. `max_connections` int(11) unsigned NOT NULL DEFAULT '0',
  321. `max_user_connections` int(11) unsigned NOT NULL DEFAULT '0',
  322. `plugin` char(64) COLLATE utf8_bin DEFAULT '',
  323. `authentication_string` text COLLATE utf8_bin,
  324. PRIMARY KEY (`Host`,`User`)
  325. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges';
  326. DROP TABLE IF EXISTS yehnet_admin;
  327. CREATE TABLE `yehnet_admin` (
  328. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID号',
  329. `name` varchar(50) NOT NULL COMMENT '账号',
  330. `email` varchar(100) NOT NULL COMMENT '邮箱',
  331. `pass` varchar(50) NOT NULL COMMENT '密码',
  332. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正常0锁定',
  333. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统管理员0普通管理员',
  334. `popedom` text NOT NULL COMMENT '权限',
  335. `langid` varchar(255) NOT NULL COMMENT '可操作的语言权限,系统管理员不限',
  336. PRIMARY KEY (`id`)
  337. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  338. DROP TABLE IF EXISTS yehnet_cache;
  339. CREATE TABLE `yehnet_cache` (
  340. `id` varchar(50) NOT NULL COMMENT 'ID号',
  341. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
  342. `content` longtext NOT NULL COMMENT '缓存内容',
  343. `postdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '缓存时间',
  344. PRIMARY KEY (`id`,`langid`)
  345. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  346. DROP TABLE IF EXISTS yehnet_cate;
  347. CREATE TABLE `yehnet_cate` (
  348. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  349. `identifier` varchar(30) NOT NULL COMMENT '标识串,必须是唯一的',
  350. `langid` varchar(5) NOT NULL COMMENT '语言标识',
  351. `cate_name` varchar(100) NOT NULL COMMENT '分类名称',
  352. `parentid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID,如果为根分类,则使用0',
  353. `module_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '模块ID',
  354. `tpl_index` varchar(100) NOT NULL COMMENT '封面模板',
  355. `tpl_list` varchar(100) NOT NULL COMMENT '列表模板',
  356. `tpl_file` varchar(100) NOT NULL COMMENT '内容模板',
  357. `if_index` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否是封面,0否1是',
  358. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,值越小越往前靠',
  359. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1使用中0禁用',
  360. `if_hidden` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1隐藏0显示',
  361. `keywords` varchar(255) NOT NULL COMMENT 'SEO关键字',
  362. `description` varchar(255) NOT NULL COMMENT 'SEO描述',
  363. `ifspec` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0非单页1单页',
  364. `note` text NOT NULL COMMENT '简要描述',
  365. `psize` tinyint(3) unsigned NOT NULL DEFAULT '30' COMMENT '每页显示数量,默认30',
  366. `inpic` varchar(100) NOT NULL COMMENT '前台默认图片关联',
  367. `linkurl` varchar(255) NOT NULL COMMENT '自定义链接',
  368. `target` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '新窗口打开1是0否',
  369. `ordertype` varchar(100) NOT NULL DEFAULT 'post_date:desc' COMMENT '排序类型,默认是发布时间',
  370. `subcate` varchar(100) NOT NULL COMMENT '分类副标题',
  371. `ico` varchar(255) NOT NULL COMMENT '图标',
  372. `small_pic` varchar(255) NOT NULL COMMENT '小图',
  373. `medium_pic` varchar(255) NOT NULL COMMENT '中图',
  374. `big_pic` varchar(255) NOT NULL COMMENT '大图',
  375. `fields` varchar(255) NOT NULL COMMENT '有效字段',
  376. PRIMARY KEY (`id`),
  377. KEY `module_id` (`module_id`)
  378. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  379. DROP TABLE IF EXISTS yehnet_commission;
  380. CREATE TABLE `yehnet_commission` (
  381. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  382. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  383. `uname` varchar(200) NOT NULL,
  384. `cid` mediumint(8) NOT NULL,
  385. `username` varchar(100) NOT NULL COMMENT '会员名称',
  386. `proname` varchar(220) NOT NULL DEFAULT '0',
  387. `ctype` varchar(20) NOT NULL DEFAULT '0',
  388. `money` float NOT NULL,
  389. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未审核1正常2锁定',
  390. `postdate` int(10) unsigned NOT NULL DEFAULT '0',
  391. PRIMARY KEY (`id`),
  392. KEY `listid` (`uid`)
  393. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  394. DROP TABLE IF EXISTS yehnet_customer;
  395. CREATE TABLE `yehnet_customer` (
  396. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  397. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  398. `uname` varchar(200) NOT NULL,
  399. `username` varchar(100) NOT NULL COMMENT '会员名称',
  400. `cellphone` varchar(20) NOT NULL,
  401. `proname` varchar(220) NOT NULL DEFAULT '0',
  402. `appointment_date` varchar(10) NOT NULL DEFAULT '0',
  403. `appointment_time` varchar(10) NOT NULL,
  404. `remark` text NOT NULL,
  405. `guwenname` varchar(100) NOT NULL,
  406. `guwentel` varchar(100) NOT NULL,
  407. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未审核1正常2锁定',
  408. `postdate` int(10) unsigned NOT NULL DEFAULT '0',
  409. `daofang` int(1) NOT NULL DEFAULT '0',
  410. `dfnote` text NOT NULL,
  411. `renchou` int(1) NOT NULL DEFAULT '0',
  412. `rcnote` text NOT NULL,
  413. `rengou` int(1) NOT NULL DEFAULT '0',
  414. `rgnote` text NOT NULL,
  415. `qianyue` int(1) NOT NULL DEFAULT '0',
  416. `qynote` text NOT NULL,
  417. `huikuan` int(1) NOT NULL DEFAULT '0',
  418. `hknote` text NOT NULL,
  419. PRIMARY KEY (`id`),
  420. KEY `listid` (`uid`)
  421. ) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
  422. DROP TABLE IF EXISTS yehnet_gd;
  423. CREATE TABLE `yehnet_gd` (
  424. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  425. `pictype` varchar(50) NOT NULL DEFAULT '' COMMENT '图片类型标识',
  426. `picsubject` varchar(255) NOT NULL DEFAULT '' COMMENT '类型名称',
  427. `width` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '图片宽度',
  428. `height` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '图片高度',
  429. `water` varchar(255) NOT NULL DEFAULT '' COMMENT '水印图片位置',
  430. `picposition` varchar(100) NOT NULL DEFAULT '' COMMENT '水印位置',
  431. `trans` tinyint(3) unsigned NOT NULL DEFAULT '65' COMMENT '透明度,默认是60',
  432. `cuttype` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '图片生成方式,支持缩放法和裁剪法两种,默认使用缩放法',
  433. `quality` tinyint(3) unsigned NOT NULL DEFAULT '80' COMMENT '图片生成质量,默认是80',
  434. `border` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否支持边框,1是0否',
  435. `bordercolor` varchar(10) NOT NULL DEFAULT 'FFFFFF' COMMENT '边框颜色',
  436. `padding` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '间距,默认是0,最大不超过255',
  437. `bgcolor` varchar(10) NOT NULL DEFAULT 'FFFFFF' COMMENT '补白背景色,默认是白色',
  438. `bgimg` varchar(255) NOT NULL DEFAULT '' COMMENT '背景图片,默认为空',
  439. `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否使用,默认是使用',
  440. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,值越小越往前靠,最大不超过255,最小为0',
  441. `edit_default` tinyint(1) NOT NULL,
  442. PRIMARY KEY (`id`)
  443. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  444. DROP TABLE IF EXISTS yehnet_identifier;
  445. CREATE TABLE `yehnet_identifier` (
  446. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  447. `sign` varchar(32) NOT NULL COMMENT '标识符,用于本系统内所有需要此功能,仅限字母数字及下划线且第一个必须是字母',
  448. `title` varchar(100) NOT NULL COMMENT '名称',
  449. `langid` varchar(5) NOT NULL COMMENT '语言编号,如zh,en等',
  450. `module_id` mediumint(8) unsigned NOT NULL COMMENT '一个标识符只能用于一个模块,一个模块有多个标识符',
  451. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统0自定义',
  452. `g_sign` varchar(100) NOT NULL COMMENT '组标识,仅在核心技术中使用',
  453. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
  454. PRIMARY KEY (`id`),
  455. KEY `module_id` (`module_id`)
  456. ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
  457. DROP TABLE IF EXISTS yehnet_input;
  458. CREATE TABLE `yehnet_input` (
  459. `input` varchar(50) NOT NULL COMMENT '扩展框类型',
  460. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
  461. `name` varchar(100) NOT NULL COMMENT '名字',
  462. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
  463. `ifuser` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许会员表使用0否1是',
  464. PRIMARY KEY (`input`)
  465. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  466. DROP TABLE IF EXISTS yehnet_lang;
  467. CREATE TABLE `yehnet_lang` (
  468. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
  469. `title` varchar(100) NOT NULL COMMENT '显示名',
  470. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态1不使用2使用',
  471. `note` varchar(255) NOT NULL COMMENT '描述',
  472. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,小值排前',
  473. `ifdefault` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否是系统默认',
  474. `ifsystem` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统语言0应用语言',
  475. `ico` varchar(255) NOT NULL COMMENT '图标',
  476. `small_pic` varchar(255) NOT NULL COMMENT '小图',
  477. `medium_pic` varchar(255) NOT NULL COMMENT '中图',
  478. `big_pic` varchar(255) NOT NULL COMMENT '大图',
  479. PRIMARY KEY (`langid`)
  480. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  481. DROP TABLE IF EXISTS yehnet_lang_msg;
  482. CREATE TABLE `yehnet_lang_msg` (
  483. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  484. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
  485. `ltype` enum('www','admin','all') NOT NULL DEFAULT 'all' COMMENT '语言包应用范围',
  486. `var` varchar(100) NOT NULL COMMENT '语言变量名,仅英文数字及下划线',
  487. `val` varchar(255) NOT NULL COMMENT '语言值',
  488. PRIMARY KEY (`id`)
  489. ) ENGINE=MyISAM AUTO_INCREMENT=469 DEFAULT CHARSET=utf8;
  490. DROP TABLE IF EXISTS yehnet_list;
  491. CREATE TABLE `yehnet_list` (
  492. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  493. `module_id` mediumint(8) unsigned NOT NULL COMMENT '模块ID',
  494. `cate_id` mediumint(8) unsigned NOT NULL COMMENT '分类ID',
  495. `title` varchar(255) NOT NULL COMMENT '主题',
  496. `subtitle` varchar(255) NOT NULL COMMENT '副标题',
  497. `style` varchar(255) NOT NULL COMMENT '主题样式',
  498. `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态,1正常0锁定',
  499. `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1隐藏0显示',
  500. `link_url` varchar(255) NOT NULL COMMENT '访问网址',
  501. `target` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否在新窗口打开1是0否',
  502. `author` varchar(100) NOT NULL COMMENT '发布人',
  503. `author_type` enum('admin','user','guest') NOT NULL DEFAULT 'user' COMMENT '发布人类型',
  504. `keywords` varchar(255) NOT NULL COMMENT '关键字,标签',
  505. `description` varchar(255) NOT NULL COMMENT '简要描述用于SEO优化',
  506. `note` text NOT NULL COMMENT '简要描述,用于列表简要说明',
  507. `identifier` varchar(100) NOT NULL COMMENT '访问标识串,为空时使用系统ID',
  508. `hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '点击率',
  509. `good_hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '支持次数',
  510. `bad_hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '拍砖次数',
  511. `post_date` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '发布时间',
  512. `modify_date` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后修改时间',
  513. `thumb_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '缩略图ID',
  514. `istop` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1置顶0非置顶',
  515. `isvouch` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1推荐0非推荐',
  516. `isbest` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1精华0非精华',
  517. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是中文',
  518. `points` int(10) NOT NULL DEFAULT '0' COMMENT '积分,点数',
  519. `ip` varchar(100) NOT NULL COMMENT '发布人IP号',
  520. `replydate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后回复时间',
  521. `taxis` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '自定义排序,值越大越往前靠',
  522. `htmltype` enum('mid','cateid','date','root') NOT NULL DEFAULT 'date' COMMENT 'HTML存储方式,默认是以时间来存储',
  523. `tplfile` varchar(100) NOT NULL COMMENT '模板文件',
  524. `star` float unsigned NOT NULL DEFAULT '0' COMMENT '星级评论,默认为0,根据评论表中的星数来决定',
  525. `yongjin` varchar(200) NOT NULL,
  526. `jili` varchar(200) NOT NULL,
  527. PRIMARY KEY (`id`),
  528. KEY `module_id` (`module_id`,`cate_id`,`title`)
  529. ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
  530. DROP TABLE IF EXISTS yehnet_list_c;
  531. CREATE TABLE `yehnet_list_c` (
  532. `id` int(10) unsigned NOT NULL COMMENT '主题ID',
  533. `field` varchar(30) NOT NULL DEFAULT '' COMMENT '字段名',
  534. `val` text NOT NULL COMMENT '内容',
  535. PRIMARY KEY (`id`,`field`)
  536. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  537. DROP TABLE IF EXISTS yehnet_module;
  538. CREATE TABLE `yehnet_module` (
  539. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  540. `group_id` mediumint(8) unsigned NOT NULL COMMENT '组ID',
  541. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是zh',
  542. `identifier` varchar(32) NOT NULL DEFAULT '0' COMMENT '标识符',
  543. `title` varchar(100) NOT NULL COMMENT '名称',
  544. `note` varchar(255) NOT NULL COMMENT '备注',
  545. `ctrl_init` varchar(100) NOT NULL COMMENT '执行文件,不同模块可能执行相同的文件,使用标识符区分',
  546. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不使用1使用',
  547. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序值越小越往靠,最小为0',
  548. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统模块2自定义添加模块',
  549. `if_cate` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否启用分类功能,1使用0不使用',
  550. `if_biz` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否支持电子商务,0否1是',
  551. `if_propety` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持属性,1支持',
  552. `if_hits` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不持点击1支持',
  553. `popedom` varchar(255) NOT NULL COMMENT '权限ID,多个权限ID用英文逗号隔开',
  554. `if_thumb` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持缩略图0不支持',
  555. `if_thumb_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1必填0非必填',
  556. `if_point` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持点数1支持点数',
  557. `if_url_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持自定义网址,1支持,2支持且必填',
  558. `inpic` varchar(100) NOT NULL COMMENT '前台默认图片关联',
  559. `insearch` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支持前台搜索',
  560. `if_content` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持读取内容1读取内容及管理员回复',
  561. `if_email` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1邮件通知0不通知',
  562. `link_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '联动ID,0为不使用联动搜索',
  563. `search_id` varchar(30) NOT NULL COMMENT '联动搜索的字段名',
  564. `psize` tinyint(3) unsigned NOT NULL DEFAULT '30' COMMENT '默认分页数量',
  565. `if_subtitle` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用副标题0否1是',
  566. `ico` varchar(255) NOT NULL COMMENT '图标',
  567. `small_pic` varchar(255) NOT NULL COMMENT '小图',
  568. `medium_pic` varchar(255) NOT NULL COMMENT '中图',
  569. `big_pic` varchar(255) NOT NULL COMMENT '大图',
  570. `tplset` enum('list','pic') NOT NULL DEFAULT 'list' COMMENT 'list列表,pic图文',
  571. `title_nickname` varchar(50) NOT NULL COMMENT '主题别称',
  572. `subtitle_nickname` varchar(50) NOT NULL COMMENT '副标题别称',
  573. `sign_nickname` varchar(50) NOT NULL COMMENT '标识串别称',
  574. `if_sign_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '标识串是否必填',
  575. `if_ext` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '可选扩展1使用0不使用',
  576. `if_des` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '简短描述1允许0不使用',
  577. `if_list` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1支持0不支持',
  578. `if_msg` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1支持0不支持',
  579. `layout` varchar(255) NOT NULL COMMENT '后台布局设置',
  580. PRIMARY KEY (`id`),
  581. KEY `group_id` (`group_id`)
  582. ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
  583. DROP TABLE IF EXISTS yehnet_module_fields;
  584. CREATE TABLE `yehnet_module_fields` (
  585. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  586. `module_id` mediumint(8) unsigned NOT NULL COMMENT '模块ID',
  587. `identifier` varchar(32) NOT NULL COMMENT '标识符',
  588. `title` varchar(100) NOT NULL COMMENT '主题',
  589. `if_post` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1支持会员0不支持',
  590. `if_guest` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1支持游客0不支持',
  591. `sub_left` varchar(60) NOT NULL COMMENT '左侧主题',
  592. `sub_note` varchar(120) NOT NULL COMMENT '右侧备注信息',
  593. `input` varchar(50) NOT NULL DEFAULT 'text' COMMENT '表单类型',
  594. `width` varchar(20) NOT NULL COMMENT '宽度',
  595. `height` varchar(20) NOT NULL COMMENT '高度',
  596. `default_val` varchar(50) NOT NULL COMMENT '默认值',
  597. `list_val` varchar(255) NOT NULL COMMENT '值列表',
  598. `link_id` int(10) NOT NULL DEFAULT '0' COMMENT '联动组ID',
  599. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '自定义排序,值越小越往前靠',
  600. `if_must` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1必填0非必填',
  601. `if_html` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持HTML,0不支持',
  602. `error_note` varchar(255) NOT NULL COMMENT '错误时的提示',
  603. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1启用0禁用',
  604. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统字段,0用户配置字段',
  605. `tbl` enum('ext','c') NOT NULL COMMENT 'ext指长度不大于255的表中,c指长度大于255的数据',
  606. `show_html` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不显示源码1显示源码',
  607. `if_js` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持0不支持',
  608. `if_search` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许搜索',
  609. PRIMARY KEY (`id`),
  610. KEY `module_id` (`module_id`)
  611. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  612. DROP TABLE IF EXISTS yehnet_module_group;
  613. CREATE TABLE `yehnet_module_group` (
  614. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  615. `langid` varchar(32) NOT NULL DEFAULT 'zh' COMMENT '语言编号,如zh,en等',
  616. `title` varchar(100) NOT NULL COMMENT '组名称',
  617. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不使用1使用',
  618. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '值越小越往靠,最小为0',
  619. `js_function` varchar(100) NOT NULL DEFAULT '' COMMENT 'JS控制器,为空使用系统自动生成',
  620. `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统0自定义',
  621. PRIMARY KEY (`id`)
  622. ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
  623. DROP TABLE IF EXISTS yehnet_tpl;
  624. CREATE TABLE `yehnet_tpl` (
  625. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
  626. `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是zh',
  627. `title` varchar(100) NOT NULL COMMENT '名称',
  628. `folder` varchar(50) NOT NULL COMMENT '文件夹',
  629. `ext` varchar(10) NOT NULL DEFAULT 'html' COMMENT '模板后缀',
  630. `autoimg` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否自动解析图片地址',
  631. `ifdefault` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认',
  632. `ifsystem` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统模板0用户模板',
  633. `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
  634. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正在使用0未使用',
  635. PRIMARY KEY (`id`)
  636. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  637. DROP TABLE IF EXISTS yehnet_upfiles;
  638. CREATE TABLE `yehnet_upfiles` (
  639. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '图片ID',
  640. `title` varchar(100) NOT NULL COMMENT '标题',
  641. `filename` varchar(255) NOT NULL COMMENT '图片路径,基于网站根目录的相对路径',
  642. `thumb` varchar(255) NOT NULL COMMENT '缩略图路径,基于网站根目录的相对路径',
  643. `postdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上传时间',
  644. `ftype` varchar(10) NOT NULL COMMENT '附件类型',
  645. `uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID号,0表示管理员上传',
  646. `flv_pic` varchar(255) NOT NULL COMMENT 'FLV封面图片',
  647. `sessid` varchar(50) NOT NULL COMMENT '游客上传标识串',
  648. PRIMARY KEY (`id`)
  649. ) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
  650. DROP TABLE IF EXISTS yehnet_upfiles_gd;
  651. CREATE TABLE `yehnet_upfiles_gd` (
  652. `pid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '图片ID,对应upfiles里的ID',
  653. `gdtype` varchar(100) NOT NULL COMMENT '图片类型',
  654. `filename` varchar(255) NOT NULL COMMENT '图片地址(生成类型的图片地址)',
  655. PRIMARY KEY (`pid`,`gdtype`)
  656. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  657. DROP TABLE IF EXISTS yehnet_user;
  658. CREATE TABLE `yehnet_user` (
  659. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  660. `groupid` mediumint(8) unsigned NOT NULL DEFAULT '1' COMMENT '会员组ID',
  661. `username` varchar(100) NOT NULL COMMENT '会员名称',
  662. `Recommended` varchar(50) NOT NULL COMMENT '推荐人',
  663. `pass` varchar(50) NOT NULL COMMENT '密码',
  664. `phone` varchar(100) NOT NULL COMMENT '手机',
  665. `regdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间',
  666. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态1已审核0未审核2锁定',
  667. `fxstatus` tinyint(1) NOT NULL,
  668. `job` varchar(150) NOT NULL,
  669. `company` varchar(20) NOT NULL,
  670. `thumb_id` int(10) unsigned NOT NULL COMMENT '个性头像ID',
  671. `bankAccount` varchar(100) NOT NULL,
  672. `cardCode` varchar(100) NOT NULL,
  673. `bankName` varchar(100) NOT NULL,
  674. PRIMARY KEY (`id`)
  675. ) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=utf8;
  676. DROP TABLE IF EXISTS yehnet_user_group;
  677. CREATE TABLE `yehnet_user_group` (
  678. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '会员组ID',
  679. `group_type` enum('user','guest') NOT NULL DEFAULT 'user' COMMENT '用户组类型',
  680. `title` varchar(100) NOT NULL COMMENT '组名称',
  681. `popedom_post` text NOT NULL COMMENT '发布权限',
  682. `popedom_reply` text NOT NULL COMMENT '回复权限',
  683. `popedom_read` text NOT NULL COMMENT '阅读权限,默认为all',
  684. `post_cert` tinyint(1) NOT NULL DEFAULT '0' COMMENT '发布0需要验证1免验证',
  685. `reply_cert` tinyint(1) NOT NULL DEFAULT '0' COMMENT '回复0需要验证1免验证',
  686. `ifsystem` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否系统组0否1是',
  687. `ifdefault` tinyint(1) NOT NULL DEFAULT '0' COMMENT '会员注册后默认选择的组',
  688. PRIMARY KEY (`id`)
  689. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  690. INSERT INTO yehnet_admin VALUES('1','admin','admin@admin.com','14e1b600b1fd579f47433b88e8d85291','1','1','','');