-- MySQL dump 10.13  Distrib 5.1.33, for Win32 (ia32)
--
-- Host: localhost    Database: _db_email
-- ------------------------------------------------------
-- Server version	5.1.33-community

/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `m_category`
--

DROP TABLE IF EXISTS `m_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `m_category` (
  `id_account` int(10) unsigned NOT NULL,
  `id_category` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `c_categoryName` varchar(50) NOT NULL,
  `c_categoryDisplayColumn` int(10) unsigned NOT NULL,
  `c_categoryDisplayOrder` int(10) unsigned NOT NULL,
  `c_categoryDisplayColor` varchar(50) NOT NULL,
  `c_registtime` datetime NOT NULL,
  `c_updatetime` datetime NOT NULL,
  `c_delete` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_category`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `m_category`
--

LOCK TABLES `m_category` WRITE;
/*!40000 ALTER TABLE `m_category` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_category` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `m_email`
--

DROP TABLE IF EXISTS `m_email`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `m_email` (
  `id_email` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_account` int(10) unsigned NOT NULL,
  `id_category` int(10) unsigned NOT NULL,
  `c_name` varchar(100) NOT NULL,
  `c_host_pop3` varchar(100) NOT NULL,
  `c_port_pop3` varchar(10) NOT NULL,
  `c_username` varchar(100) NOT NULL,
  `c_password` varchar(100) NOT NULL,
  `c_archive` varchar(10) NOT NULL,
  `c_html` varchar(10) NOT NULL,
  `c_attached` varchar(10) NOT NULL,
  `c_host_smtp` varchar(100) NOT NULL,
  `c_port_smtp` varchar(10) NOT NULL,
  `c_auth_smtp` varchar(10) NOT NULL,
  `c_from` varchar(200) NOT NULL,
  `c_cc` varchar(200) NOT NULL,
  `c_bcc` varchar(200) NOT NULL,
  `c_reply_to` varchar(200) NOT NULL,
  `c_body` longtext NOT NULL,
  `c_displayOrder` int(10) unsigned NOT NULL,
  `c_displayColor` varchar(50) NOT NULL,
  `c_registtime` datetime NOT NULL,
  `c_updatetime` datetime NOT NULL,
  `c_delete` int(10) unsigned NOT NULL DEFAULT '0',
  `c_privacy` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `m_email`
--

LOCK TABLES `m_email` WRITE;
/*!40000 ALTER TABLE `m_email` DISABLE KEYS */;
/*!40000 ALTER TABLE `m_email` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Temporary table structure for view `v_email`
--

DROP TABLE IF EXISTS `v_email`;
/*!50001 DROP VIEW IF EXISTS `v_email`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `v_email` (
  `id_email` int(10) unsigned,
  `id_account` int(10) unsigned,
  `id_category` int(10) unsigned,
  `c_categoryName` varchar(50),
  `c_categoryDisplayOrder` int(10) unsigned,
  `c_name` varchar(100),
  `c_host_pop3` varchar(100),
  `c_port_pop3` varchar(10),
  `c_username` varchar(100),
  `c_password` varchar(100),
  `c_displayOrder` int(10) unsigned,
  `c_displayColor` varchar(50),
  `c_delete` int(10) unsigned,
  `c_privacy` int(10) unsigned
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;

--
-- Final view structure for view `v_email`
--

/*!50001 DROP TABLE `v_email`*/;
/*!50001 DROP VIEW IF EXISTS `v_email`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = latin1 */;
/*!50001 SET character_set_results     = latin1 */;
/*!50001 SET collation_connection      = latin1_swedish_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `v_email` AS select `m_email`.`id_email` AS `id_email`,`m_email`.`id_account` AS `id_account`,`m_email`.`id_category` AS `id_category`,`m_category`.`c_categoryName` AS `c_categoryName`,`m_category`.`c_categoryDisplayOrder` AS `c_categoryDisplayOrder`,`m_email`.`c_name` AS `c_name`,`m_email`.`c_host_pop3` AS `c_host_pop3`,`m_email`.`c_port_pop3` AS `c_port_pop3`,`m_email`.`c_username` AS `c_username`,`m_email`.`c_password` AS `c_password`,`m_email`.`c_displayOrder` AS `c_displayOrder`,`m_email`.`c_displayColor` AS `c_displayColor`,`m_email`.`c_delete` AS `c_delete`,`m_email`.`c_privacy` AS `c_privacy` from (`m_email` left join `m_category` on((`m_email`.`id_category` = `m_category`.`id_category`))) where (`m_email`.`c_delete` = 0) */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2012-08-10 22:32:12
