-- PHPDisk E-Core SQL Dump
-- version 2.1
-- http://www.phpdisk.com/
--
-- 主机: localhost
-- 生成日期: 2013 年 08 月 11 日 15:10
-- 服务器版本: 5.1.50
-- PHP 版本: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- 数据库: `phpdisk`
--

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

--
-- 表的结构 `pd_adminsession`
--
DROP TABLE IF EXISTS `pd_adminsession`;
CREATE TABLE IF NOT EXISTS `pd_adminsession` (
  `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `login_time` int(10) unsigned NOT NULL DEFAULT '0',
  `hashcode` char(9) NOT NULL,
  `ip` varchar(15) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

--
-- 导出表中的数据 `pd_adminsession`
--


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

--
-- 表的结构 `pd_advertisements`
--
DROP TABLE IF EXISTS `pd_advertisements`;
CREATE TABLE IF NOT EXISTS `pd_advertisements` (
  `advid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL,
  `adv_type` varchar(30) NOT NULL,
  `adv_position` varchar(50) NOT NULL,
  `params` text NOT NULL,
  `code` text NOT NULL,
  `show_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `starttime` int(10) unsigned NOT NULL DEFAULT '0',
  `endtime` int(10) unsigned NOT NULL DEFAULT '0',
  `is_hidden` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`advid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_advertisements`
--


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

--
-- 表的结构 `pd_announces`
--
DROP TABLE IF EXISTS `pd_announces`;
CREATE TABLE IF NOT EXISTS `pd_announces` (
  `annid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `subject` varchar(100) NOT NULL,
  `content` text NOT NULL,
  `show_order` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `is_hidden` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `is_expand` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `in_time` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`annid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- 导出表中的数据 `pd_announces`
--

INSERT INTO `pd_announces` (`annid`, `userid`, `subject`, `content`, `show_order`, `is_hidden`, `is_expand`, `in_time`) VALUES
(1, 1, '<font color=#ff0000>PHPDISK网盘系统(企业文件管理系统)</font>', '<p>\r\n	PHPDISK网盘系统[简称：PHPDISK]，是国内最大的网络存储、云存储系统开发及服务提供商，长期专注于网络存储系统开发，是一套采用PHP和MySQL构建的网络硬盘(文件存储管理)系统，可替代传统的FTP文件管理。友好的界面，操作的便捷深受用户的欢迎。\r\n</p>\r\n<p>\r\n	&nbsp;\r\n</p>\r\n<p>\r\n	她是一套可用于网络上文件办公、共享、传递、查看的多用户文件存储系统。广泛应用于互联网、公司、网吧、学校等地管理及使用文件，多方式的共享权限，全方位的后台管理，满足从个人到企业各方面应用的需求。\r\n</p>\r\n<p>\r\n	&nbsp;\r\n</p>\r\n<p>\r\n	官方网站： <a href=\\"http://www.phpdisk.com\\" target=\\"_blank\\">http://www.phpdisk.com</a>\r\n</p>', 0, 0, 1, 1376127190),
(2, 1, 'PHPDisk E-Core(企业办公系列)', '<p>\r\n	<u>PHPDisk E-Core(企业办公系列)</u> 是一套针对企业网络办公，企业无纸化办公及文档管理系统的网络云存储网盘系统。专门针对网盘方面的上传、下载通用文件管理系统，用于代替传统的FTP工具。\r\n</p>\r\n<p>\r\n	&nbsp;\r\n</p>\r\n<p>\r\n	企业网盘是基于您自己公司的服务器存储架构而设计开发的、以满足企事业单位内部文件在线管理、存储及备份为目的的网盘系统，<span>所有的文件及数据均存储于您公司的服务器上，<SPAN style=\\"\\"color: #e53333\\">没有任何的第三方接入，可以直接应用于局域网内，与外部的互联网隔离，安全性与保密性大大增强。</span></span>其具有强大而简单易用的文档在线管理、协同办公、部门或虚拟团队管理、文件共享、自动定时备份等丰富功能，为企事业单位内部提供数据共享与数据安全的统一平台，保证企业内部资源的最大化利用，为企业的资源共享与数据安全提供了有效的保障。\r\n</p>\r\n<br />', 0, 0, 0, 1376127343),
(3, 1, '公告隐藏测试', '公告隐藏测试', 0, 1, 0, 1376127236);

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

--
-- 表的结构 `pd_buddys`
--
DROP TABLE IF EXISTS `pd_buddys`;
CREATE TABLE IF NOT EXISTS `pd_buddys` (
  `bdid` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `touserid` int(10) unsigned NOT NULL DEFAULT '0',
  `in_time` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`bdid`),
  KEY `userid` (`userid`),
  KEY `touserid` (`touserid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_buddys`
--

--
-- 表的结构 `pd_categories`
--

DROP TABLE IF EXISTS `pd_categories`;
CREATE TABLE IF NOT EXISTS `pd_categories` (
  `cate_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pid` int(10) unsigned NOT NULL DEFAULT '0',
  `cate_name` varchar(50) NOT NULL,
  `cate_size` int(10) unsigned NOT NULL DEFAULT '0',
  `show_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `is_hidden` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `cate_num` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`cate_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

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

--
-- 表的结构 `pd_cp_shortcut`
--
DROP TABLE IF EXISTS `pd_cp_shortcut`;
CREATE TABLE IF NOT EXISTS `pd_cp_shortcut` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `url` varchar(255) NOT NULL,
  `title` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_cp_shortcut`
--


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

--
-- 表的结构 `pd_departs`
--
DROP TABLE IF EXISTS `pd_departs`;
CREATE TABLE IF NOT EXISTS `pd_departs` (
  `depart_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `pid` int(10) NOT NULL DEFAULT '0',
  `depart_name` varchar(200) NOT NULL,
  `show_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `user_count` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`depart_id`),
  KEY `show_order` (`show_order`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- 导出表中的数据 `pd_departs`
--

INSERT INTO `pd_departs` (`depart_id`, `pid`, `depart_name`, `show_order`, `user_count`) VALUES
(1, 0, '网络部', 0, 0),
(2, 0, '编辑部', 0, 0),
(3, 1, '测试组', 0, 0);
-- --------------------------------------------------------

--
-- 表的结构 `pd_files`
--
DROP TABLE IF EXISTS `pd_files`;
CREATE TABLE IF NOT EXISTS `pd_files` (
  `file_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `file_name` varchar(255) NOT NULL,
  `file_key` char(8) NOT NULL,
  `file_short_url` char(6) NOT NULL,
  `file_extension` varchar(10) NOT NULL,
  `is_image` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `file_mime` varchar(50) NOT NULL,
  `file_description` text NOT NULL,
  `file_store_path` varchar(30) NOT NULL,
  `file_real_name` varchar(255) NOT NULL,
  `file_md5` char(32) NOT NULL,
  `server_oid` smallint(5) unsigned NOT NULL DEFAULT '0',
  `file_size` int(10) unsigned NOT NULL DEFAULT '0',
  `file_time` int(10) unsigned NOT NULL DEFAULT '0',
  `file_views` int(10) unsigned DEFAULT '0',
  `file_downs` int(10) unsigned NOT NULL DEFAULT '0',
  `use_code` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `expire_time` int(10) unsigned NOT NULL DEFAULT '0',
  `share_end_time` int(10) unsigned NOT NULL DEFAULT '0',
  `file_remote_url` varchar(255) NOT NULL,
  `file_last_view` int(10) unsigned DEFAULT '0',
  `file_credit` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `report_status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `in_share` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `good_count` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `bad_count` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `is_locked` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `is_checked` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `folder_id` bigint(20) NOT NULL DEFAULT '0',
  `in_recycle` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `ip` varchar(15) NOT NULL,
  `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `cate_id` INT( 10 ) UNSIGNED NOT NULL DEFAULT  '0',
`pub_time` INT( 10 ) UNSIGNED NOT NULL DEFAULT  '0',
`is_commend` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT  '0',
  PRIMARY KEY (`file_id`),
  KEY `userid` (`userid`),
  KEY `folder_id` (`folder_id`),
  KEY `server_id` (`server_oid`),
  KEY `file_name` (`file_name`),
  KEY `file_extension` (`file_extension`),
  KEY `cate_id` (`cate_id`),
  KEY `is_commend` (`is_commend`),
  KEY `is_del` (`is_del`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_files`
--


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

--
-- 表的结构 `pd_folders`
--
DROP TABLE IF EXISTS `pd_folders`;
CREATE TABLE IF NOT EXISTS `pd_folders` (
  `folder_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` bigint(20) NOT NULL DEFAULT '0',
  `folder_node` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `folder_name` varchar(255) NOT NULL,
  `folder_description` varchar(255) NOT NULL,
  `in_recycle` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `in_share` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `folder_order` smallint(5) unsigned NOT NULL DEFAULT '0',
  `folder_size` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `in_time` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`folder_id`),
  KEY `userid` (`userid`),
  KEY `parent_id` (`parent_id`),
  KEY `folder_node` (`folder_node`),
  KEY `folder_name` (`folder_name`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_folders`
--


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

--
-- 表的结构 `pd_groups`
--
DROP TABLE IF EXISTS `pd_groups`;
CREATE TABLE IF NOT EXISTS `pd_groups` (
  `gid` tinyint(3) unsigned NOT NULL,
  `group_type` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `group_name` varchar(50) NOT NULL,
  `max_messages` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `max_flow_down` varchar(20) NOT NULL DEFAULT '0',
  `max_flow_view` varchar(20) NOT NULL DEFAULT '0',
  `max_storage` varchar(20) NOT NULL DEFAULT '0',
  `group_file_types` varchar(150) NOT NULL,
  `max_filesize` varchar(20) NOT NULL DEFAULT '0',
  `max_folders` int(10) unsigned NOT NULL DEFAULT '0',
  `max_files` int(10) unsigned NOT NULL DEFAULT '0',
  `can_share` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `secs_loading` smallint(5) unsigned NOT NULL DEFAULT '0',
  `server_ids` varchar(30) NOT NULL,
  `power_list` text NOT NULL,
  `h5_max_filesize` VARCHAR( 30 ) NOT NULL,
  PRIMARY KEY (`gid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 导出表中的数据 `pd_groups`
--

INSERT INTO `pd_groups` (`gid`, `group_type`, `group_name`, `max_messages`, `max_flow_down`, `max_flow_view`, `max_storage`, `group_file_types`, `max_filesize`, `max_folders`, `max_files`, `can_share`, `secs_loading`, `server_ids`, `power_list`) VALUES
(1, 1, '系统管理员', 0, '', '', '0', '', '0', 0, 0, 0, 0, '0', 'a:12:{s:10:"can_upload";s:1:"1";s:15:"can_down_myfile";s:1:"1";s:19:"can_down_other_file";s:1:"1";s:15:"can_edit_myfile";s:1:"1";s:14:"can_del_myfile";s:1:"0";s:14:"can_share_link";s:1:"0";s:24:"can_share_folder_to_corp";s:1:"1";s:22:"can_share_file_to_corp";s:1:"1";s:26:"can_share_folder_to_depart";s:1:"1";s:24:"can_share_file_to_depart";s:1:"1";s:25:"can_share_folder_to_buddy";s:1:"1";s:23:"can_share_file_to_buddy";s:1:"1";}'),
(2, 1, '总经理', 0, '10g', '20g', '0', '', '1m', 0, 0, 1, 0, '0', ''),
(3, 1, '部门经理', 0, '0', '0', '0', '', '0', 0, 0, 1, 0, '0', ''),
(4, 1, '普通员工', 0, '0', '0', '0', '', '0', 0, 0, 1, 0, '0', '');

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

--
-- 表的结构 `pd_invitelog`
--
DROP TABLE IF EXISTS `pd_invitelog`;
CREATE TABLE IF NOT EXISTS `pd_invitelog` (
  `bdid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `touserid` int(10) unsigned NOT NULL DEFAULT '0',
  `in_time` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`bdid`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_invitelog`
--


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

--
-- 表的结构 `pd_langs`
--
DROP TABLE IF EXISTS `pd_langs`;
CREATE TABLE IF NOT EXISTS `pd_langs` (
  `lang_name` varchar(30) NOT NULL,
  `actived` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`lang_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 导出表中的数据 `pd_langs`
--

INSERT INTO `pd_langs` (`lang_name`, `actived`) VALUES
('zh_cn', 1);

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

--
-- 表的结构 `pd_links`
--
DROP TABLE IF EXISTS `pd_links`;
CREATE TABLE IF NOT EXISTS `pd_links` (
  `linkid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(100) NOT NULL,
  `url` varchar(100) NOT NULL,
  `logo` varchar(200) NOT NULL,
  `show_order` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `is_hidden` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`linkid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- 导出表中的数据 `pd_links`
--

INSERT INTO `pd_links` (`linkid`, `title`, `url`, `logo`, `show_order`, `is_hidden`) VALUES
(1, 'PHPDisk网络硬盘', 'http://www.phpdisk.com', './images/logo_small.gif', 2, 0),
(2, 'PHPDisk交流论坛', 'http://bbs.phpdisk.com', '', 0, 0);

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

--
-- 表的结构 `pd_messages`
--
DROP TABLE IF EXISTS `pd_messages`;
CREATE TABLE IF NOT EXISTS `pd_messages` (
  `msgid` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `reply_id` int(11) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `touserid` int(10) unsigned NOT NULL DEFAULT '0',
  `content` text NOT NULL,
  `is_new` tinyint(1) NOT NULL,
  `in_sendbox` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `is_reply` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `in_time` int(10) unsigned NOT NULL,
  PRIMARY KEY (`msgid`),
  KEY `touserid` (`touserid`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_messages`
--

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


--
-- 表的结构 `pd_msg_file`
--
DROP TABLE IF EXISTS `pd_msg_file`;
CREATE TABLE IF NOT EXISTS `pd_msg_file` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `touserid` int(10) unsigned NOT NULL DEFAULT '0',
  `msgid` int(10) unsigned NOT NULL DEFAULT '0',
  `file_id` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `msgid` (`msgid`),
  KEY `file_id` (`file_id`),
  KEY `touserid` (`touserid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 表的结构 `pd_navigations`
--
DROP TABLE IF EXISTS `pd_navigations`;
CREATE TABLE IF NOT EXISTS `pd_navigations` (
  `navid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `text` varchar(30) NOT NULL,
  `title` varchar(50) NOT NULL,
  `href` varchar(80) NOT NULL,
  `target` varchar(10) NOT NULL,
  `position` varchar(10) NOT NULL,
  `show_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`navid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

--
-- 导出表中的数据 `pd_navigations`
--

INSERT INTO `pd_navigations` (`navid`, `text`, `title`, `href`, `target`, `position`, `show_order`) VALUES
(1, 'PHPDisk论坛', 'PHPDisk官方交流论坛', 'http://bbs.phpdisk.com', '_blank', 'top', 1);

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

--
-- 表的结构 `pd_plugins`
--
DROP TABLE IF EXISTS `pd_plugins`;
CREATE TABLE IF NOT EXISTS `pd_plugins` (
  `plugin_name` varchar(100) NOT NULL,
  `actived` tinyint(1) NOT NULL DEFAULT '0',
  `action_time` int(10) unsigned NOT NULL DEFAULT '0',
  `in_shortcut` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`plugin_name`),
  KEY `in_shortcut` (`in_shortcut`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 导出表中的数据 `pd_plugins`
--

INSERT INTO `pd_plugins` (`plugin_name`, `actived`, `action_time`, `in_shortcut`) VALUES
('api', 1, 1343285564, 0),
('phpdisk_client', 1, 1361194818, 0);

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

--
-- 表的结构 `pd_reports`
--
DROP TABLE IF EXISTS `pd_reports`;
CREATE TABLE IF NOT EXISTS `pd_reports` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `file_id` bigint(20) unsigned NOT NULL DEFAULT '0',
  `file_key` char(8) NOT NULL,
  `content` varchar(255) NOT NULL,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `is_new` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `in_time` int(10) unsigned NOT NULL DEFAULT '0',
  `ip` varchar(15) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_reports`
--


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

--
-- 表的结构 `pd_search_index`
--
DROP TABLE IF EXISTS `pd_search_index`;
CREATE TABLE IF NOT EXISTS `pd_search_index` (
  `searchid` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `scope` varchar(6) NOT NULL,
  `word` varchar(200) NOT NULL,
  `search_time` int(10) NOT NULL DEFAULT '0',
  `total_count` smallint(6) NOT NULL DEFAULT '0',
  `file_ids` text NOT NULL,
  `ip` varchar(15) NOT NULL,
  PRIMARY KEY (`searchid`),
  KEY `userid` (`userid`),
  KEY `scope` (`scope`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_search_index`
--


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

--
-- 表的结构 `pd_servers`
--
DROP TABLE IF EXISTS `pd_servers`;
CREATE TABLE IF NOT EXISTS `pd_servers` (
  `server_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `server_oid` smallint(5) unsigned NOT NULL DEFAULT '0',
  `server_name` varchar(50) NOT NULL,
  `server_host` varchar(100) NOT NULL,
  `server_closed` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `server_store_path` varchar(50) NOT NULL,
  `server_key` varchar(50) NOT NULL,
  `is_default` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `ftp_host` varchar(50) NOT NULL,
  `ftp_port` varchar(10) NOT NULL,
  `ftp_user` varchar(20) NOT NULL,
  `ftp_pass` varchar(20) NOT NULL,
  `ftp_ssl` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `ftp_pasv` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `ftp_path` varchar(30) NOT NULL,
  PRIMARY KEY (`server_id`),
  KEY `server_oid` (`server_oid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- 导出表中的数据 `pd_servers`
--

INSERT INTO `pd_servers` (`server_id`, `server_oid`, `server_name`, `server_host`, `server_closed`, `server_store_path`, `server_key`, `is_default`, `ftp_host`, `ftp_port`, `ftp_user`, `ftp_pass`, `ftp_ssl`, `ftp_pasv`, `ftp_path`) VALUES
(1, 0, 'Local Server', '-', 0, '-', '', 0, '', '', '', '', 0, 0, ''),
(2, 2, 'test', 'http://localhost/pd_v_sub/', 0, 'filestores', 'mTKN42By3E0Q', 1, '', '', '', '', 0, 0, '');

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

--
-- 表的结构 `pd_settings`
--
DROP TABLE IF EXISTS `pd_settings`;
CREATE TABLE IF NOT EXISTS `pd_settings` (
  `vars` varchar(100) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY (`vars`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 导出表中的数据 `pd_settings`
--

INSERT INTO `pd_settings` (`vars`, `value`) VALUES
('site_title', 'PHPDisk网盘系统企业办公版本'),
('phpdisk_url', 'http://localhost/dev/pd_e/'),
('file_path', 'filestores'),
('max_file_size', '0'),
('perpage', '20'),
('gzipcompress', '1'),
('allow_access', '1'),
('allow_register', '1'),
('close_access_reason', '系统维护中...'),
('close_register_reason', '系统暂时关闭注册...'),
('miibeian', ''),
('contact_us', 'mail@mail.com1'),
('open_demo_login', '0'),
('report_word', ''),
('encrypt_key', 'r2FITb5S6CtR'),
('register_verycode', '1'),
('login_verycode', '1'),
('version_info', '1'),
('online_demo', '0'),
('filter_extension', 'asp,asa,aspx,ascx,dtd,xsd,xsl,xslt,as,wml,java,vtm,vtml,jst,asr,php,php3,php4,php5,vb,vbs,jsf,jsp,pl,cgi,js,html,htm,xhtml,xml,css,shtm,cfm,cfml,shtml,bat,sh'),
('open_verycode', '1'),
('verycode_type', '2'),
('forget_verycode', '1'),
('show_friend_link', '1');

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

--
-- 表的结构 `pd_shares`
--
DROP TABLE IF EXISTS `pd_shares`;
CREATE TABLE IF NOT EXISTS `pd_shares` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `touserid` int(10) unsigned NOT NULL DEFAULT '0',
  `depart_id` smallint(5) NOT NULL DEFAULT '0',
  `share_fid` bigint(20) unsigned NOT NULL DEFAULT '0',
  `is_file` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `in_time` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`),
  KEY `touserid` (`touserid`),
  KEY `share_fid` (`share_fid`),
  KEY `depart_id` (`depart_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_shares`
--


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

--
-- 表的结构 `pd_stats`
--
DROP TABLE IF EXISTS `pd_stats`;
CREATE TABLE IF NOT EXISTS `pd_stats` (
  `vars` varchar(50) NOT NULL,
  `value` varchar(50) NOT NULL,
  PRIMARY KEY (`vars`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 导出表中的数据 `pd_stats`
--


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

--
-- 表的结构 `pd_templates`
--
DROP TABLE IF EXISTS `pd_templates`;
CREATE TABLE IF NOT EXISTS `pd_templates` (
  `tpl_name` varchar(50) NOT NULL,
  `actived` tinyint(1) unsigned NOT NULL,
  `tpl_type` varchar(30) NOT NULL,
  PRIMARY KEY (`tpl_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 导出表中的数据 `pd_templates`
--

INSERT INTO `pd_templates` (`tpl_name`, `actived`, `tpl_type`) VALUES
('admin', 1, 'admin'),
('default', 1, 'user');

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

--
-- 表的结构 `pd_uploadx_files`
--
DROP TABLE IF EXISTS `pd_uploadx_files`;
CREATE TABLE IF NOT EXISTS `pd_uploadx_files` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `file_name` varchar(255) NOT NULL,
  `file_extension` varchar(30) NOT NULL,
  `file_size` int(10) unsigned NOT NULL DEFAULT '0',
  `file_local_path` varchar(255) NOT NULL,
  `file_store_path` varchar(100) NOT NULL,
  `file_real_name` varchar(255) NOT NULL,
  `file_state` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `file_time` int(10) unsigned NOT NULL DEFAULT '0',
  `folder_id` int(10) NOT NULL DEFAULT '0',
  `ip` varchar(15) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `file_state` (`file_state`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_uploadx_files`
--

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

--
-- 表的结构 `pd_users`
--
DROP TABLE IF EXISTS `pd_users`;
CREATE TABLE IF NOT EXISTS `pd_users` (
  `userid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(64) NOT NULL,
  `password` varchar(32) NOT NULL,
  `email` varchar(255) NOT NULL,
  `gid` tinyint(3) unsigned DEFAULT '0',
  `depart_id` smallint(5) NOT NULL DEFAULT '0',
  `reset_code` varchar(32) NOT NULL,
  `is_activated` tinyint(1) DEFAULT '0',
  `is_locked` tinyint(1) DEFAULT '0',
  `last_login_time` int(11) DEFAULT '0',
  `last_login_ip` varchar(15) NOT NULL,
  `reg_time` int(10) unsigned DEFAULT '0',
  `reg_ip` varchar(15) NOT NULL,
  `credit` int(10) unsigned NOT NULL DEFAULT '0',
  `wealth` float NOT NULL DEFAULT '0',
  `rank` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `accept_pm` tinyint(1) DEFAULT '1',
  `show_email` tinyint(1) DEFAULT '0',
  `user_file_types` varchar(150) NOT NULL,
  `user_store_space` varchar(30) NOT NULL,
  `name` varchar(255) NOT NULL,
  `gender` tinyint(1) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `im` varchar(255) NOT NULL,
  `address` text NOT NULL,
  `mood` text NOT NULL,
  PRIMARY KEY (`userid`),
  KEY `username` (`username`),
  KEY `gid` (`gid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 导出表中的数据 `pd_users`
--

