123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734 |
- <?php die('forbidden'); ?>
- DROP TABLE IF EXISTS columns_priv;
- CREATE TABLE `columns_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges';
- DROP TABLE IF EXISTS db;
- CREATE TABLE `db` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`,`User`),
- KEY `User` (`User`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges';
- DROP TABLE IF EXISTS event;
- CREATE TABLE `event` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `body` longblob NOT NULL,
- `definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `execute_at` datetime DEFAULT NULL,
- `interval_value` int(11) DEFAULT NULL,
- `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,
- `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_executed` datetime DEFAULT NULL,
- `starts` datetime DEFAULT NULL,
- `ends` datetime DEFAULT NULL,
- `status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
- `on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
- `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 '',
- `comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `originator` int(10) unsigned NOT NULL,
- `time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob,
- PRIMARY KEY (`db`,`name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events';
- DROP TABLE IF EXISTS func;
- CREATE TABLE `func` (
- `name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `ret` tinyint(1) NOT NULL DEFAULT '0',
- `dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
- `type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
- PRIMARY KEY (`name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions';
- DROP TABLE IF EXISTS general_log;
- CREATE TABLE `general_log` (
- `event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `user_host` mediumtext NOT NULL,
- `thread_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `command_type` varchar(64) NOT NULL,
- `argument` mediumtext NOT NULL
- ) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log';
- DROP TABLE IF EXISTS help_category;
- CREATE TABLE `help_category` (
- `help_category_id` smallint(5) unsigned NOT NULL,
- `name` char(64) NOT NULL,
- `parent_category_id` smallint(5) unsigned DEFAULT NULL,
- `url` text NOT NULL,
- PRIMARY KEY (`help_category_id`),
- UNIQUE KEY `name` (`name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help categories';
- DROP TABLE IF EXISTS help_keyword;
- CREATE TABLE `help_keyword` (
- `help_keyword_id` int(10) unsigned NOT NULL,
- `name` char(64) NOT NULL,
- PRIMARY KEY (`help_keyword_id`),
- UNIQUE KEY `name` (`name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help keywords';
- DROP TABLE IF EXISTS help_relation;
- CREATE TABLE `help_relation` (
- `help_topic_id` int(10) unsigned NOT NULL,
- `help_keyword_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`help_keyword_id`,`help_topic_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='keyword-topic relation';
- DROP TABLE IF EXISTS help_topic;
- CREATE TABLE `help_topic` (
- `help_topic_id` int(10) unsigned NOT NULL,
- `name` char(64) NOT NULL,
- `help_category_id` smallint(5) unsigned NOT NULL,
- `description` text NOT NULL,
- `example` text NOT NULL,
- `url` text NOT NULL,
- PRIMARY KEY (`help_topic_id`),
- UNIQUE KEY `name` (`name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help topics';
- DROP TABLE IF EXISTS host;
- CREATE TABLE `host` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Host`,`Db`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Host privileges; Merged with database privileges';
- DROP TABLE IF EXISTS ndb_binlog_index;
- CREATE TABLE `ndb_binlog_index` (
- `Position` bigint(20) unsigned NOT NULL,
- `File` varchar(255) NOT NULL,
- `epoch` bigint(20) unsigned NOT NULL,
- `inserts` bigint(20) unsigned NOT NULL,
- `updates` bigint(20) unsigned NOT NULL,
- `deletes` bigint(20) unsigned NOT NULL,
- `schemaops` bigint(20) unsigned NOT NULL,
- PRIMARY KEY (`epoch`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- DROP TABLE IF EXISTS plugin;
- CREATE TABLE `plugin` (
- `name` varchar(64) NOT NULL DEFAULT '',
- `dl` varchar(128) NOT NULL DEFAULT '',
- PRIMARY KEY (`name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL plugins';
- DROP TABLE IF EXISTS proc;
- CREATE TABLE `proc` (
- `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `name` char(64) NOT NULL DEFAULT '',
- `type` enum('FUNCTION','PROCEDURE') NOT NULL,
- `specific_name` char(64) NOT NULL DEFAULT '',
- `language` enum('SQL') NOT NULL DEFAULT 'SQL',
- `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
- `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
- `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
- `param_list` blob NOT NULL,
- `returns` longblob NOT NULL,
- `body` longblob NOT NULL,
- `definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
- `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
- `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 '',
- `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
- `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
- `body_utf8` longblob,
- PRIMARY KEY (`db`,`name`,`type`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures';
- DROP TABLE IF EXISTS procs_priv;
- CREATE TABLE `procs_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Routine_type` enum('FUNCTION','PROCEDURE') COLLATE utf8_bin NOT NULL,
- `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
- KEY `Grantor` (`Grantor`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges';
- DROP TABLE IF EXISTS proxies_priv;
- CREATE TABLE `proxies_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Proxied_user` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `With_grant` tinyint(1) NOT NULL DEFAULT '0',
- `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`),
- KEY `Grantor` (`Grantor`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User proxy privileges';
- DROP TABLE IF EXISTS servers;
- CREATE TABLE `servers` (
- `Server_name` char(64) NOT NULL DEFAULT '',
- `Host` char(64) NOT NULL DEFAULT '',
- `Db` char(64) NOT NULL DEFAULT '',
- `Username` char(64) NOT NULL DEFAULT '',
- `Password` char(64) NOT NULL DEFAULT '',
- `Port` int(4) NOT NULL DEFAULT '0',
- `Socket` char(64) NOT NULL DEFAULT '',
- `Wrapper` char(64) NOT NULL DEFAULT '',
- `Owner` char(64) NOT NULL DEFAULT '',
- PRIMARY KEY (`Server_name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table';
- DROP TABLE IF EXISTS slow_log;
- CREATE TABLE `slow_log` (
- `start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `user_host` mediumtext NOT NULL,
- `query_time` time NOT NULL,
- `lock_time` time NOT NULL,
- `rows_sent` int(11) NOT NULL,
- `rows_examined` int(11) NOT NULL,
- `db` varchar(512) NOT NULL,
- `last_insert_id` int(11) NOT NULL,
- `insert_id` int(11) NOT NULL,
- `server_id` int(10) unsigned NOT NULL,
- `sql_text` mediumtext NOT NULL
- ) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log';
- DROP TABLE IF EXISTS tables_priv;
- CREATE TABLE `tables_priv` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
- PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
- KEY `Grantor` (`Grantor`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges';
- DROP TABLE IF EXISTS time_zone;
- CREATE TABLE `time_zone` (
- `Time_zone_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `Use_leap_seconds` enum('Y','N') NOT NULL DEFAULT 'N',
- PRIMARY KEY (`Time_zone_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zones';
- DROP TABLE IF EXISTS time_zone_leap_second;
- CREATE TABLE `time_zone_leap_second` (
- `Transition_time` bigint(20) NOT NULL,
- `Correction` int(11) NOT NULL,
- PRIMARY KEY (`Transition_time`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Leap seconds information for time zones';
- DROP TABLE IF EXISTS time_zone_name;
- CREATE TABLE `time_zone_name` (
- `Name` char(64) NOT NULL,
- `Time_zone_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`Name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone names';
- DROP TABLE IF EXISTS time_zone_transition;
- CREATE TABLE `time_zone_transition` (
- `Time_zone_id` int(10) unsigned NOT NULL,
- `Transition_time` bigint(20) NOT NULL,
- `Transition_type_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`Time_zone_id`,`Transition_time`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transitions';
- DROP TABLE IF EXISTS time_zone_transition_type;
- CREATE TABLE `time_zone_transition_type` (
- `Time_zone_id` int(10) unsigned NOT NULL,
- `Transition_type_id` int(10) unsigned NOT NULL,
- `Offset` int(11) NOT NULL DEFAULT '0',
- `Is_DST` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `Abbreviation` char(8) NOT NULL DEFAULT '',
- PRIMARY KEY (`Time_zone_id`,`Transition_type_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transition types';
- DROP TABLE IF EXISTS user;
- CREATE TABLE `user` (
- `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
- `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
- `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
- `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
- `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
- `ssl_cipher` blob NOT NULL,
- `x509_issuer` blob NOT NULL,
- `x509_subject` blob NOT NULL,
- `max_questions` int(11) unsigned NOT NULL DEFAULT '0',
- `max_updates` int(11) unsigned NOT NULL DEFAULT '0',
- `max_connections` int(11) unsigned NOT NULL DEFAULT '0',
- `max_user_connections` int(11) unsigned NOT NULL DEFAULT '0',
- `plugin` char(64) COLLATE utf8_bin DEFAULT '',
- `authentication_string` text COLLATE utf8_bin,
- PRIMARY KEY (`Host`,`User`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges';
- DROP TABLE IF EXISTS yehnet_admin;
- CREATE TABLE `yehnet_admin` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID号',
- `name` varchar(50) NOT NULL COMMENT '账号',
- `email` varchar(100) NOT NULL COMMENT '邮箱',
- `pass` varchar(50) NOT NULL COMMENT '密码',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正常0锁定',
- `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统管理员0普通管理员',
- `popedom` text NOT NULL COMMENT '权限',
- `langid` varchar(255) NOT NULL COMMENT '可操作的语言权限,系统管理员不限',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_cache;
- CREATE TABLE `yehnet_cache` (
- `id` varchar(50) NOT NULL COMMENT 'ID号',
- `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
- `content` longtext NOT NULL COMMENT '缓存内容',
- `postdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '缓存时间',
- PRIMARY KEY (`id`,`langid`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_cate;
- CREATE TABLE `yehnet_cate` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
- `identifier` varchar(30) NOT NULL COMMENT '标识串,必须是唯一的',
- `langid` varchar(5) NOT NULL COMMENT '语言标识',
- `cate_name` varchar(100) NOT NULL COMMENT '分类名称',
- `parentid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID,如果为根分类,则使用0',
- `module_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '模块ID',
- `tpl_index` varchar(100) NOT NULL COMMENT '封面模板',
- `tpl_list` varchar(100) NOT NULL COMMENT '列表模板',
- `tpl_file` varchar(100) NOT NULL COMMENT '内容模板',
- `if_index` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否是封面,0否1是',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,值越小越往前靠',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1使用中0禁用',
- `if_hidden` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1隐藏0显示',
- `keywords` varchar(255) NOT NULL COMMENT 'SEO关键字',
- `description` varchar(255) NOT NULL COMMENT 'SEO描述',
- `ifspec` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0非单页1单页',
- `note` text NOT NULL COMMENT '简要描述',
- `psize` tinyint(3) unsigned NOT NULL DEFAULT '30' COMMENT '每页显示数量,默认30',
- `inpic` varchar(100) NOT NULL COMMENT '前台默认图片关联',
- `linkurl` varchar(255) NOT NULL COMMENT '自定义链接',
- `target` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '新窗口打开1是0否',
- `ordertype` varchar(100) NOT NULL DEFAULT 'post_date:desc' COMMENT '排序类型,默认是发布时间',
- `subcate` varchar(100) NOT NULL COMMENT '分类副标题',
- `ico` varchar(255) NOT NULL COMMENT '图标',
- `small_pic` varchar(255) NOT NULL COMMENT '小图',
- `medium_pic` varchar(255) NOT NULL COMMENT '中图',
- `big_pic` varchar(255) NOT NULL COMMENT '大图',
- `fields` varchar(255) NOT NULL COMMENT '有效字段',
- PRIMARY KEY (`id`),
- KEY `module_id` (`module_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_commission;
- CREATE TABLE `yehnet_commission` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
- `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `uname` varchar(200) NOT NULL,
- `cid` mediumint(8) NOT NULL,
- `username` varchar(100) NOT NULL COMMENT '会员名称',
- `proname` varchar(220) NOT NULL DEFAULT '0',
- `ctype` varchar(20) NOT NULL DEFAULT '0',
- `money` float NOT NULL,
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未审核1正常2锁定',
- `postdate` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `listid` (`uid`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_customer;
- CREATE TABLE `yehnet_customer` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
- `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `uname` varchar(200) NOT NULL,
- `username` varchar(100) NOT NULL COMMENT '会员名称',
- `cellphone` varchar(20) NOT NULL,
- `proname` varchar(220) NOT NULL DEFAULT '0',
- `appointment_date` varchar(10) NOT NULL DEFAULT '0',
- `appointment_time` varchar(10) NOT NULL,
- `remark` text NOT NULL,
- `guwenname` varchar(100) NOT NULL,
- `guwentel` varchar(100) NOT NULL,
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未审核1正常2锁定',
- `postdate` int(10) unsigned NOT NULL DEFAULT '0',
- `daofang` int(1) NOT NULL DEFAULT '0',
- `dfnote` text NOT NULL,
- `renchou` int(1) NOT NULL DEFAULT '0',
- `rcnote` text NOT NULL,
- `rengou` int(1) NOT NULL DEFAULT '0',
- `rgnote` text NOT NULL,
- `qianyue` int(1) NOT NULL DEFAULT '0',
- `qynote` text NOT NULL,
- `huikuan` int(1) NOT NULL DEFAULT '0',
- `hknote` text NOT NULL,
- PRIMARY KEY (`id`),
- KEY `listid` (`uid`)
- ) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_gd;
- CREATE TABLE `yehnet_gd` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
- `pictype` varchar(50) NOT NULL DEFAULT '' COMMENT '图片类型标识',
- `picsubject` varchar(255) NOT NULL DEFAULT '' COMMENT '类型名称',
- `width` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '图片宽度',
- `height` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '图片高度',
- `water` varchar(255) NOT NULL DEFAULT '' COMMENT '水印图片位置',
- `picposition` varchar(100) NOT NULL DEFAULT '' COMMENT '水印位置',
- `trans` tinyint(3) unsigned NOT NULL DEFAULT '65' COMMENT '透明度,默认是60',
- `cuttype` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '图片生成方式,支持缩放法和裁剪法两种,默认使用缩放法',
- `quality` tinyint(3) unsigned NOT NULL DEFAULT '80' COMMENT '图片生成质量,默认是80',
- `border` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否支持边框,1是0否',
- `bordercolor` varchar(10) NOT NULL DEFAULT 'FFFFFF' COMMENT '边框颜色',
- `padding` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '间距,默认是0,最大不超过255',
- `bgcolor` varchar(10) NOT NULL DEFAULT 'FFFFFF' COMMENT '补白背景色,默认是白色',
- `bgimg` varchar(255) NOT NULL DEFAULT '' COMMENT '背景图片,默认为空',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否使用,默认是使用',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,值越小越往前靠,最大不超过255,最小为0',
- `edit_default` tinyint(1) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_identifier;
- CREATE TABLE `yehnet_identifier` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
- `sign` varchar(32) NOT NULL COMMENT '标识符,用于本系统内所有需要此功能,仅限字母数字及下划线且第一个必须是字母',
- `title` varchar(100) NOT NULL COMMENT '名称',
- `langid` varchar(5) NOT NULL COMMENT '语言编号,如zh,en等',
- `module_id` mediumint(8) unsigned NOT NULL COMMENT '一个标识符只能用于一个模块,一个模块有多个标识符',
- `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统0自定义',
- `g_sign` varchar(100) NOT NULL COMMENT '组标识,仅在核心技术中使用',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
- PRIMARY KEY (`id`),
- KEY `module_id` (`module_id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_input;
- CREATE TABLE `yehnet_input` (
- `input` varchar(50) NOT NULL COMMENT '扩展框类型',
- `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
- `name` varchar(100) NOT NULL COMMENT '名字',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
- `ifuser` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否允许会员表使用0否1是',
- PRIMARY KEY (`input`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_lang;
- CREATE TABLE `yehnet_lang` (
- `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
- `title` varchar(100) NOT NULL COMMENT '显示名',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态1不使用2使用',
- `note` varchar(255) NOT NULL COMMENT '描述',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序,小值排前',
- `ifdefault` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否是系统默认',
- `ifsystem` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统语言0应用语言',
- `ico` varchar(255) NOT NULL COMMENT '图标',
- `small_pic` varchar(255) NOT NULL COMMENT '小图',
- `medium_pic` varchar(255) NOT NULL COMMENT '中图',
- `big_pic` varchar(255) NOT NULL COMMENT '大图',
- PRIMARY KEY (`langid`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_lang_msg;
- CREATE TABLE `yehnet_lang_msg` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
- `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID',
- `ltype` enum('www','admin','all') NOT NULL DEFAULT 'all' COMMENT '语言包应用范围',
- `var` varchar(100) NOT NULL COMMENT '语言变量名,仅英文数字及下划线',
- `val` varchar(255) NOT NULL COMMENT '语言值',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=469 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_list;
- CREATE TABLE `yehnet_list` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
- `module_id` mediumint(8) unsigned NOT NULL COMMENT '模块ID',
- `cate_id` mediumint(8) unsigned NOT NULL COMMENT '分类ID',
- `title` varchar(255) NOT NULL COMMENT '主题',
- `subtitle` varchar(255) NOT NULL COMMENT '副标题',
- `style` varchar(255) NOT NULL COMMENT '主题样式',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态,1正常0锁定',
- `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1隐藏0显示',
- `link_url` varchar(255) NOT NULL COMMENT '访问网址',
- `target` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否在新窗口打开1是0否',
- `author` varchar(100) NOT NULL COMMENT '发布人',
- `author_type` enum('admin','user','guest') NOT NULL DEFAULT 'user' COMMENT '发布人类型',
- `keywords` varchar(255) NOT NULL COMMENT '关键字,标签',
- `description` varchar(255) NOT NULL COMMENT '简要描述用于SEO优化',
- `note` text NOT NULL COMMENT '简要描述,用于列表简要说明',
- `identifier` varchar(100) NOT NULL COMMENT '访问标识串,为空时使用系统ID',
- `hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '点击率',
- `good_hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '支持次数',
- `bad_hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '拍砖次数',
- `post_date` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '发布时间',
- `modify_date` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后修改时间',
- `thumb_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '缩略图ID',
- `istop` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1置顶0非置顶',
- `isvouch` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1推荐0非推荐',
- `isbest` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1精华0非精华',
- `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是中文',
- `points` int(10) NOT NULL DEFAULT '0' COMMENT '积分,点数',
- `ip` varchar(100) NOT NULL COMMENT '发布人IP号',
- `replydate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后回复时间',
- `taxis` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '自定义排序,值越大越往前靠',
- `htmltype` enum('mid','cateid','date','root') NOT NULL DEFAULT 'date' COMMENT 'HTML存储方式,默认是以时间来存储',
- `tplfile` varchar(100) NOT NULL COMMENT '模板文件',
- `star` float unsigned NOT NULL DEFAULT '0' COMMENT '星级评论,默认为0,根据评论表中的星数来决定',
- `yongjin` varchar(200) NOT NULL,
- `jili` varchar(200) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `module_id` (`module_id`,`cate_id`,`title`)
- ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_list_c;
- CREATE TABLE `yehnet_list_c` (
- `id` int(10) unsigned NOT NULL COMMENT '主题ID',
- `field` varchar(30) NOT NULL DEFAULT '' COMMENT '字段名',
- `val` text NOT NULL COMMENT '内容',
- PRIMARY KEY (`id`,`field`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_module;
- CREATE TABLE `yehnet_module` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
- `group_id` mediumint(8) unsigned NOT NULL COMMENT '组ID',
- `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是zh',
- `identifier` varchar(32) NOT NULL DEFAULT '0' COMMENT '标识符',
- `title` varchar(100) NOT NULL COMMENT '名称',
- `note` varchar(255) NOT NULL COMMENT '备注',
- `ctrl_init` varchar(100) NOT NULL COMMENT '执行文件,不同模块可能执行相同的文件,使用标识符区分',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不使用1使用',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序值越小越往靠,最小为0',
- `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统模块2自定义添加模块',
- `if_cate` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否启用分类功能,1使用0不使用',
- `if_biz` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否支持电子商务,0否1是',
- `if_propety` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持属性,1支持',
- `if_hits` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不持点击1支持',
- `popedom` varchar(255) NOT NULL COMMENT '权限ID,多个权限ID用英文逗号隔开',
- `if_thumb` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持缩略图0不支持',
- `if_thumb_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1必填0非必填',
- `if_point` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持点数1支持点数',
- `if_url_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持自定义网址,1支持,2支持且必填',
- `inpic` varchar(100) NOT NULL COMMENT '前台默认图片关联',
- `insearch` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支持前台搜索',
- `if_content` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不支持读取内容1读取内容及管理员回复',
- `if_email` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1邮件通知0不通知',
- `link_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '联动ID,0为不使用联动搜索',
- `search_id` varchar(30) NOT NULL COMMENT '联动搜索的字段名',
- `psize` tinyint(3) unsigned NOT NULL DEFAULT '30' COMMENT '默认分页数量',
- `if_subtitle` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用副标题0否1是',
- `ico` varchar(255) NOT NULL COMMENT '图标',
- `small_pic` varchar(255) NOT NULL COMMENT '小图',
- `medium_pic` varchar(255) NOT NULL COMMENT '中图',
- `big_pic` varchar(255) NOT NULL COMMENT '大图',
- `tplset` enum('list','pic') NOT NULL DEFAULT 'list' COMMENT 'list列表,pic图文',
- `title_nickname` varchar(50) NOT NULL COMMENT '主题别称',
- `subtitle_nickname` varchar(50) NOT NULL COMMENT '副标题别称',
- `sign_nickname` varchar(50) NOT NULL COMMENT '标识串别称',
- `if_sign_m` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '标识串是否必填',
- `if_ext` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '可选扩展1使用0不使用',
- `if_des` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '简短描述1允许0不使用',
- `if_list` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1支持0不支持',
- `if_msg` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '1支持0不支持',
- `layout` varchar(255) NOT NULL COMMENT '后台布局设置',
- PRIMARY KEY (`id`),
- KEY `group_id` (`group_id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_module_fields;
- CREATE TABLE `yehnet_module_fields` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
- `module_id` mediumint(8) unsigned NOT NULL COMMENT '模块ID',
- `identifier` varchar(32) NOT NULL COMMENT '标识符',
- `title` varchar(100) NOT NULL COMMENT '主题',
- `if_post` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1支持会员0不支持',
- `if_guest` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1支持游客0不支持',
- `sub_left` varchar(60) NOT NULL COMMENT '左侧主题',
- `sub_note` varchar(120) NOT NULL COMMENT '右侧备注信息',
- `input` varchar(50) NOT NULL DEFAULT 'text' COMMENT '表单类型',
- `width` varchar(20) NOT NULL COMMENT '宽度',
- `height` varchar(20) NOT NULL COMMENT '高度',
- `default_val` varchar(50) NOT NULL COMMENT '默认值',
- `list_val` varchar(255) NOT NULL COMMENT '值列表',
- `link_id` int(10) NOT NULL DEFAULT '0' COMMENT '联动组ID',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '自定义排序,值越小越往前靠',
- `if_must` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1必填0非必填',
- `if_html` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持HTML,0不支持',
- `error_note` varchar(255) NOT NULL COMMENT '错误时的提示',
- `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1启用0禁用',
- `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统字段,0用户配置字段',
- `tbl` enum('ext','c') NOT NULL COMMENT 'ext指长度不大于255的表中,c指长度大于255的数据',
- `show_html` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不显示源码1显示源码',
- `if_js` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1支持0不支持',
- `if_search` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否允许搜索',
- PRIMARY KEY (`id`),
- KEY `module_id` (`module_id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_module_group;
- CREATE TABLE `yehnet_module_group` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
- `langid` varchar(32) NOT NULL DEFAULT 'zh' COMMENT '语言编号,如zh,en等',
- `title` varchar(100) NOT NULL COMMENT '组名称',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0不使用1使用',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '值越小越往靠,最小为0',
- `js_function` varchar(100) NOT NULL DEFAULT '' COMMENT 'JS控制器,为空使用系统自动生成',
- `if_system` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统0自定义',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_tpl;
- CREATE TABLE `yehnet_tpl` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
- `langid` varchar(5) NOT NULL DEFAULT 'zh' COMMENT '语言ID,默认是zh',
- `title` varchar(100) NOT NULL COMMENT '名称',
- `folder` varchar(50) NOT NULL COMMENT '文件夹',
- `ext` varchar(10) NOT NULL DEFAULT 'html' COMMENT '模板后缀',
- `autoimg` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否自动解析图片地址',
- `ifdefault` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认',
- `ifsystem` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1系统模板0用户模板',
- `taxis` tinyint(3) unsigned NOT NULL DEFAULT '255' COMMENT '排序',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正在使用0未使用',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_upfiles;
- CREATE TABLE `yehnet_upfiles` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '图片ID',
- `title` varchar(100) NOT NULL COMMENT '标题',
- `filename` varchar(255) NOT NULL COMMENT '图片路径,基于网站根目录的相对路径',
- `thumb` varchar(255) NOT NULL COMMENT '缩略图路径,基于网站根目录的相对路径',
- `postdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上传时间',
- `ftype` varchar(10) NOT NULL COMMENT '附件类型',
- `uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID号,0表示管理员上传',
- `flv_pic` varchar(255) NOT NULL COMMENT 'FLV封面图片',
- `sessid` varchar(50) NOT NULL COMMENT '游客上传标识串',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_upfiles_gd;
- CREATE TABLE `yehnet_upfiles_gd` (
- `pid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '图片ID,对应upfiles里的ID',
- `gdtype` varchar(100) NOT NULL COMMENT '图片类型',
- `filename` varchar(255) NOT NULL COMMENT '图片地址(生成类型的图片地址)',
- PRIMARY KEY (`pid`,`gdtype`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_user;
- CREATE TABLE `yehnet_user` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
- `groupid` mediumint(8) unsigned NOT NULL DEFAULT '1' COMMENT '会员组ID',
- `username` varchar(100) NOT NULL COMMENT '会员名称',
- `Recommended` varchar(50) NOT NULL COMMENT '推荐人',
- `pass` varchar(50) NOT NULL COMMENT '密码',
- `phone` varchar(100) NOT NULL COMMENT '手机',
- `regdate` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '注册时间',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态1已审核0未审核2锁定',
- `fxstatus` tinyint(1) NOT NULL,
- `job` varchar(150) NOT NULL,
- `company` varchar(20) NOT NULL,
- `thumb_id` int(10) unsigned NOT NULL COMMENT '个性头像ID',
- `bankAccount` varchar(100) NOT NULL,
- `cardCode` varchar(100) NOT NULL,
- `bankName` varchar(100) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS yehnet_user_group;
- CREATE TABLE `yehnet_user_group` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '会员组ID',
- `group_type` enum('user','guest') NOT NULL DEFAULT 'user' COMMENT '用户组类型',
- `title` varchar(100) NOT NULL COMMENT '组名称',
- `popedom_post` text NOT NULL COMMENT '发布权限',
- `popedom_reply` text NOT NULL COMMENT '回复权限',
- `popedom_read` text NOT NULL COMMENT '阅读权限,默认为all',
- `post_cert` tinyint(1) NOT NULL DEFAULT '0' COMMENT '发布0需要验证1免验证',
- `reply_cert` tinyint(1) NOT NULL DEFAULT '0' COMMENT '回复0需要验证1免验证',
- `ifsystem` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否系统组0否1是',
- `ifdefault` tinyint(1) NOT NULL DEFAULT '0' COMMENT '会员注册后默认选择的组',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
- INSERT INTO yehnet_admin VALUES('1','admin','admin@admin.com','14e1b600b1fd579f47433b88e8d85291','1','1','','');
|