-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2011 年 07 月 11 日 11:39
-- 服务器版本: 5.5.8
-- PHP 版本: 5.3.3

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- 数据库: `elincms`
--

-- --------------------------------------------------------

--
-- 表的结构 `elin_article`
--

CREATE TABLE IF NOT EXISTS `elin_article` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `cateid` smallint(6) NOT NULL,
  `title` varchar(255) NOT NULL,
  `author` varchar(30) NOT NULL,
  `source` varchar(200) NOT NULL,
  `click` int(10) NOT NULL,
  `keywords` varchar(255) NOT NULL,
  `content` text NOT NULL,
  `publish` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

--
-- 转存表中的数据 `elin_article`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_article_cate`
--

CREATE TABLE IF NOT EXISTS `elin_article_cate` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `parentid` smallint(6) NOT NULL,
  `catename` varchar(50) NOT NULL,
  `catepic` varchar(255) NOT NULL,
  `htmldir` varchar(255) NOT NULL,
  `htmlpath` varchar(255) NOT NULL,
  `ordering` smallint(6) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

--
-- 转存表中的数据 `elin_article_cate`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_channel`
--

CREATE TABLE IF NOT EXISTS `elin_channel` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `cnname` varchar(20) NOT NULL,
  `description` varchar(255) NOT NULL,
  `keywords` varchar(100) NOT NULL,
  `isexternal` tinyint(1) NOT NULL,
  `link` varchar(255) NOT NULL,
  `ishidden` tinytext NOT NULL,
  `model` varchar(30) NOT NULL,
  `template` varchar(255) DEFAULT NULL,
  `ordering` smallint(6) NOT NULL,
  `channelpic` varchar(255) NOT NULL,
  `htmldir` varchar(255) NOT NULL,
  `htmlpath` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=9 ;

--
-- 转存表中的数据 `elin_channel`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_download`
--

CREATE TABLE IF NOT EXISTS `elin_download` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `cateid` smallint(6) NOT NULL,
  `title` varchar(255) NOT NULL,
  `fileurl` varchar(255) NOT NULL,
  `filesize` varchar(20) NOT NULL,
  `click` int(10) NOT NULL,
  `keywords` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `publish` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=3 ;

--
-- 转存表中的数据 `elin_download`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_download_cate`
--

CREATE TABLE IF NOT EXISTS `elin_download_cate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `parentid` smallint(6) NOT NULL,
  `catename` varchar(100) NOT NULL,
  `catepic` varchar(255) NOT NULL,
  `htmldir` varchar(255) NOT NULL,
  `htmlpath` varchar(255) NOT NULL,
  `ordering` smallint(6) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=5 ;

--
-- 转存表中的数据 `elin_download_cate`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_flink`
--

CREATE TABLE IF NOT EXISTS `elin_flink` (
  `id` smallint(6) NOT NULL AUTO_INCREMENT,
  `webName` varchar(30) NOT NULL,
  `webUrl` varchar(60) NOT NULL,
  `webLogo` varchar(60) NOT NULL,
  `email` varchar(60) NOT NULL,
  `linkqq` varchar(20) NOT NULL,
  `msg` varchar(255) NOT NULL,
  `display` smallint(1) NOT NULL,
  `ordering` smallint(6) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

--
-- 转存表中的数据 `elin_flink`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_guestbook`
--

CREATE TABLE IF NOT EXISTS `elin_guestbook` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `message` tinytext NOT NULL,
  `reply_way` varchar(10) NOT NULL,
  `reply` tinytext NOT NULL,
  `reply_time` int(10) NOT NULL,
  `linkname` varchar(20) NOT NULL,
  `chengwei` char(4) NOT NULL,
  `email` varchar(100) NOT NULL,
  `telephone` varchar(15) NOT NULL,
  `publish` int(10) NOT NULL,
  `ip` varchar(20) NOT NULL,
  `status` smallint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=2 ;

--
-- 转存表中的数据 `elin_guestbook`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_jobs`
--

CREATE TABLE IF NOT EXISTS `elin_jobs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `jobsname` varchar(100) NOT NULL,
  `neednum` varchar(50) NOT NULL,
  `needpart` varchar(255) NOT NULL,
  `linkman` varchar(50) NOT NULL,
  `linktel` varchar(20) NOT NULL,
  `email` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `sendtime` varchar(10) NOT NULL,
  `exptime` varchar(10) NOT NULL,
  `content` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

--
-- 转存表中的数据 `elin_jobs`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_models_reg`
--

CREATE TABLE IF NOT EXISTS `elin_models_reg` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `type` varchar(30) NOT NULL,
  `model_name` varchar(255) NOT NULL,
  `config` text NOT NULL,
  `install` text NOT NULL,
  `unstall` text NOT NULL,
  `sumary` text NOT NULL,
  `version` varchar(10) NOT NULL,
  `fieldset` text NOT NULL,
  `readonly` tinytext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=17 ;

--
-- 转存表中的数据 `elin_models_reg`
--

INSERT INTO `elin_models_reg` (`id`, `type`, `model_name`, `config`, `install`, `unstall`, `sumary`, `version`, `fieldset`, `readonly`) VALUES
(9, 'guestbook', '留言模块', '', '', '', '', '', '', '0'),
(6, 'jobs', '招聘模块', '', '', '', '', '', '', '0'),
(5, 'product', '产品模块', '', '', '', '', '', '', '0'),
(4, 'download', '下载模块', '', '', '', '', '', '', '0'),
(1, 'article', '新闻模块', '', '', '', '', '', '', ''),
(11, 'single', '单页模块', '', '', '', '', '', '', '0');

-- --------------------------------------------------------

--
-- 表的结构 `elin_product`
--

CREATE TABLE IF NOT EXISTS `elin_product` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `cateid` smallint(6) NOT NULL,
  `title` varchar(255) NOT NULL,
  `keywords` varchar(255) NOT NULL,
  `content` text NOT NULL,
  `click` int(11) NOT NULL,
  `spic` varchar(100) NOT NULL,
  `bigpic` mediumtext NOT NULL,
  `publish` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=3 ;

--
-- 转存表中的数据 `elin_product`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_product_cate`
--

CREATE TABLE IF NOT EXISTS `elin_product_cate` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `parentid` smallint(6) NOT NULL,
  `catename` varchar(50) NOT NULL,
  `catepic` varchar(255) NOT NULL,
  `htmldir` varchar(255) NOT NULL,
  `htmpath` varchar(255) NOT NULL,
  `ordering` smallint(6) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=25 ;

--
-- 转存表中的数据 `elin_product_cate`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_single`
--

CREATE TABLE IF NOT EXISTS `elin_single` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `channelid` smallint(6) NOT NULL,
  `singlename` varchar(255) NOT NULL,
  `content` text NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

--
-- 转存表中的数据 `elin_single`
--


-- --------------------------------------------------------

--
-- 表的结构 `elin_user`
--

CREATE TABLE IF NOT EXISTS `elin_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userName` varchar(20) NOT NULL,
  `userPwd` varchar(40) NOT NULL,
  `email` varchar(60) NOT NULL,
  `regTime` int(10) NOT NULL,
  `sex` smallint(3) NOT NULL,
  `disable` smallint(3) NOT NULL,
  `allow_dlht` smallint(3) NOT NULL,
  `allow_fbpl` smallint(3) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

--
-- 转存表中的数据 `elin_user`
--

