-- phpMyAdmin SQL Dump
-- version 3.4.8
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2018 年 11 月 11 日 11:02
-- 服务器版本: 5.5.54
-- PHP 版本: 5.4.45

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

--
-- 数据库: `temmoku`
--

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

--
-- 表的结构 `temmoku_plugin_friend_link_category`
--

DROP TABLE IF EXISTS `temmoku_plugin_friend_link_category`;
CREATE TABLE IF NOT EXISTS `temmoku_plugin_friend_link_category` (
  `cid` smallint(6) NOT NULL AUTO_INCREMENT,
  `name` varchar(255)  NULL DEFAULT NULL,
  `reorder` mediumint(9)  NULL DEFAULT '0',
  PRIMARY KEY (`cid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=5 ;

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

INSERT INTO `temmoku_plugin_friend_link_category` (`cid`, `name`, `reorder`) VALUES(1, '友情链接', 1);
INSERT INTO `temmoku_plugin_friend_link_category` (`cid`, `name`, `reorder`) VALUES(2, '合作伙伴', 2);

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

--
-- 表的结构 `temmoku_plugin_friend_link_friend`
--

DROP TABLE IF EXISTS `temmoku_plugin_friend_link_friend`;
CREATE TABLE IF NOT EXISTS `temmoku_plugin_friend_link_friend` (
  `id` mediumint(9) NOT NULL AUTO_INCREMENT,
  `cid` mediumint(9)  NULL DEFAULT '0',
  `uid` mediumint(9)  NULL DEFAULT '0',
  `name` varchar(255)  NULL DEFAULT NULL,
  `title` varchar(255)  NULL DEFAULT NULL,
  `link` varchar(255)  NULL DEFAULT NULL,
  `state` tinyint(1)  NULL DEFAULT '0' COMMENT '状态1为 审核 0 为未审 -1 为黑名单,-2拒绝',
  `thumb` varchar(255)  NULL DEFAULT NULL,
  `vld` int(11) NULL DEFAULT NULL COMMENT '有效期',
  `reorder` int(11)  NULL DEFAULT '0',
  `is_w` tinyint(3)  NULL DEFAULT '0' COMMENT '是否为文字 1是，0不是',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;


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

--
-- 表的结构 `temmoku_plugin_friend_link_set`
--

DROP TABLE IF EXISTS `temmoku_plugin_friend_link_set`;
CREATE TABLE IF NOT EXISTS `temmoku_plugin_friend_link_set` (
  `u_key` varchar(255) NOT NULL DEFAULT '',
  `u_value` text NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

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

INSERT INTO `temmoku_plugin_friend_link_set` (`u_key`, `u_value`) VALUES('is_upload', '1');
INSERT INTO `temmoku_plugin_friend_link_set` (`u_key`, `u_value`) VALUES('is_w', '0');
INSERT INTO `temmoku_plugin_friend_link_set` (`u_key`, `u_value`) VALUES('table', 'Friend');
INSERT INTO `temmoku_plugin_friend_link_set` (`u_key`, `u_value`) VALUES('is_yzm', '1');
INSERT INTO `temmoku_plugin_friend_link_set` (`u_key`, `u_value`) VALUES('is_login', '1');
