-- MySQL dump 10.9
--
-- Host: localhost    Database: PURE
-- ------------------------------------------------------
-- Server version	4.1.11
--
-- Table structure for table `daylink`
--

DROP TABLE IF EXISTS `daylink`;
CREATE TABLE `daylink` (
  `d_id` int(11) NOT NULL default '0',
  `d_date` date NOT NULL default '0000-00-00',
  `d_uid` varchar(64) NOT NULL default '',
  UNIQUE KEY `d_id` (`d_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Table structure for table `hit`
--

DROP TABLE IF EXISTS `hit`;
CREATE TABLE `hit` (
  `h_uid` varchar(64) NOT NULL default '',
  `h_pmid` varchar(64) NOT NULL default '',
  `h_date` date NOT NULL default '0000-00-00',
  `h_score` decimal(5,2) NOT NULL default '0.00',
  UNIQUE KEY `UNIQUE` (`h_uid`,`h_pmid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Table structure for table `interest`
--

DROP TABLE IF EXISTS `interest`;
CREATE TABLE `interest` (
  `i_id` int(10) unsigned NOT NULL auto_increment,
  `i_pmid` varchar(32) NOT NULL default '',
  `i_uid` varchar(64) NOT NULL default '',
  `i_date` date NOT NULL default '0000-00-00',
  `i_title` text NOT NULL,
  `i_full` text NOT NULL,
  UNIQUE KEY `i_id` (`i_id`),
  UNIQUE KEY `Unique` (`i_pmid`,`i_uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Table structure for table `pubmed`
--

DROP TABLE IF EXISTS `pubmed`;
CREATE TABLE `pubmed` (
  `p_pmid` varchar(64) NOT NULL default '',
  `p_full` text NOT NULL,
  UNIQUE KEY `m_pmid` (`p_pmid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Table structure for table `user`
--

DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `u_id` varchar(64) NOT NULL default '',
  `u_name` tinytext NOT NULL,
  `u_mail` tinytext NOT NULL,
  `u_pwd` varchar(64) NOT NULL default '',
  `u_para_update` date NOT NULL default '0000-00-00',
  `u_pick_num` smallint(5) unsigned NOT NULL default '10',
  `u_mail_type` enum('Title','Title+Abstract') NOT NULL default 'Title',
  UNIQUE KEY `u_id` (`u_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
