-- MySQL dump 10.11
--
-- Host: localhost    Database: _db_abook
-- ------------------------------------------------------
-- Server version	5.0.51a

/*!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_abook`
--

DROP TABLE IF EXISTS `m_abook`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `m_abook` (
  `id_abook` int(10) unsigned NOT NULL auto_increment,
  `id_account` int(10) unsigned NOT NULL,
  `id_category` int(10) unsigned NOT NULL,
  `c_name1` varchar(100) NOT NULL,
  `c_name2` varchar(100) NOT NULL,
  `c_yomi1` varchar(100) NOT NULL,
  `c_yomi2` varchar(100) NOT NULL,
  `c_renmei` varchar(100) NOT NULL,
  `c_zip1` varchar(10) NOT NULL,
  `c_zip2` varchar(10) NOT NULL,
  `c_address1` varchar(255) NOT NULL,
  `c_address2` varchar(255) NOT NULL,
  `c_phone1` varchar(100) NOT NULL,
  `c_phone2` varchar(100) NOT NULL,
  `c_email` varchar(255) NOT NULL,
  `c_memo` varchar(255) NOT NULL,
  `c_check1` int(10) unsigned NOT NULL default '0',
  `c_check2` int(10) unsigned NOT NULL default '0',
  `c_check3` int(10) unsigned NOT NULL default '0',
  `c_check4` int(10) unsigned NOT NULL default '0',
  `c_check5` int(10) unsigned NOT NULL default '0',
  `c_registtime` datetime NOT NULL,
  `c_updatetime` datetime NOT NULL,
  `c_privacy` int(10) unsigned NOT NULL default '0',
  `c_delete` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  USING BTREE (`id_abook`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `m_abook`
--

LOCK TABLES `m_abook` WRITE;
/*!40000 ALTER TABLE `m_abook` DISABLE KEYS */;
INSERT INTO `m_abook` VALUES (1,10001,1,'山田','木蓮','やまだ','もくれん','','138','8001','東京都中央区日本橋室町1-4-1','マンション日本橋','03-1234-5678','080-1212-3434','xxxxxx.xxxx@xxxxx.co.jp','登山',0,1,0,0,0,'2009-09-17 20:20:59','2009-09-20 07:54:26',0,0),(2,10001,1,'鈴木','一郎','すずき','いちろう','花子','850','0853','長崎市浜町7番11号','長崎ハイツ','052-111-2222','090-1919-2828','xxxxxx.xxxxx@xxxx.xxx','',1,0,0,0,0,'2009-09-17 20:23:55','2009-09-20 09:23:45',0,0),(3,10001,2,'田中','未来','たなか','みらい','','810','8717','福岡市中央区天神1-4-1','天神ヒルズ','','','xxxx.xxxxx@xxxx.xxx','',0,1,0,0,0,'2009-09-17 20:26:02','2009-09-19 21:37:58',0,0),(4,10001,2,'松本','夏子','まつもと','なつこ','','060','0005','札幌市中央区北5条西4丁目7番地','','','','xxxx.xxxxx@xxxx.xxx','',1,0,0,0,0,'2009-09-17 20:26:02','2009-09-19 20:49:10',0,0),(5,10001,2,'高橋','春香','たかはし','はるか','','920','8583','金沢市武蔵町15-1','ハウス屋敷町','','','xxxx.xxxxx@xxxx.xxx','',1,1,0,0,0,'2009-09-17 20:27:59','2009-09-19 21:40:51',0,0),(6,10001,1,'山本','銀河','やまもと','ぎんが','いちご','730','8548','広島市中区胡町6-26','広島パーク','','','','高校',1,1,0,0,0,'2009-09-17 20:27:59','2009-09-20 08:03:13',0,0),(7,10001,1,'小林','香織','こばやし','かおり','','650','0037','神戸市中央区明石町40番地','','','','xxxxxx.xxxxxx@xxxx.jp','高校',1,1,0,0,0,'2009-09-17 20:27:59','2009-09-20 07:53:51',0,0),(8,10001,1,'加藤','穂高','かとう','ほだか','さくら','220','8601','横浜市西区南幸1丁目6番31号','','','','xxxxx.xxxxxxx@xxxxx.xxxx.ne.jp','大学',0,0,0,0,0,'2009-09-17 20:27:59','2009-09-20 07:53:51',0,0),(9,10001,1,'中村','白馬','なかむら','はくば','','980','8052','宮城県仙台市青葉区一番町3丁目2番17号','青葉シティ','','','xxxxxx.zzzzzzz@xxxx.jp','大学 登山',1,1,0,1,0,'2009-09-17 20:27:59','2009-09-20 08:03:13',0,0),(10,10001,1,'伊藤','岳人','いとう','がくと','桃子','780','8566','高知県高知市帯屋町1丁目6番1号','','03-1234-5678','','aaaaa.zzzzzzz@xxxx.com','登山',1,0,1,0,0,'2009-09-17 20:32:10','2009-09-20 07:58:47',0,0);
/*!40000 ALTER TABLE `m_abook` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `m_category`;
SET @saved_cs_client     = @@character_set_client;
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_categoryDisplayOrder` int(10) unsigned NOT NULL,
  `c_registtime` datetime NOT NULL,
  `c_updatetime` datetime NOT NULL,
  `c_delete` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  USING BTREE (`id_category`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
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 */;
INSERT INTO `m_category` VALUES (10001,1,'友人',0,'2009-09-17 20:16:52','2009-09-17 20:16:52',0),(10001,2,'会社',0,'2009-09-17 20:16:52','2009-09-17 20:16:52',0);
/*!40000 ALTER TABLE `m_category` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `m_check_caption`
--

DROP TABLE IF EXISTS `m_check_caption`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `m_check_caption` (
  `id_account` int(10) unsigned NOT NULL,
  `c_caption1` varchar(50) NOT NULL,
  `c_caption2` varchar(50) NOT NULL,
  `c_caption3` varchar(50) NOT NULL,
  `c_caption4` varchar(50) NOT NULL,
  `c_caption5` varchar(50) NOT NULL,
  PRIMARY KEY  USING BTREE (`id_account`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `m_check_caption`
--

LOCK TABLES `m_check_caption` WRITE;
/*!40000 ALTER TABLE `m_check_caption` DISABLE KEYS */;
INSERT INTO `m_check_caption` VALUES (10001,'09年賀受','09年賀出','','','');
/*!40000 ALTER TABLE `m_check_caption` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Temporary table structure for view `v_abook`
--

DROP TABLE IF EXISTS `v_abook`;
/*!50001 DROP VIEW IF EXISTS `v_abook`*/;
/*!50001 CREATE TABLE `v_abook` (
  `id_abook` int(10) unsigned,
  `id_account` int(10) unsigned,
  `id_category` int(10) unsigned,
  `c_name1` varchar(100),
  `c_name2` varchar(100),
  `c_yomi1` varchar(100),
  `c_yomi2` varchar(100),
  `c_renmei` varchar(100),
  `c_zip1` varchar(10),
  `c_zip2` varchar(10),
  `c_address1` varchar(255),
  `c_address2` varchar(255),
  `c_phone1` varchar(100),
  `c_phone2` varchar(100),
  `c_email` varchar(255),
  `c_memo` varchar(255),
  `c_check1` int(10) unsigned,
  `c_check2` int(10) unsigned,
  `c_check3` int(10) unsigned,
  `c_check4` int(10) unsigned,
  `c_check5` int(10) unsigned,
  `c_registtime` datetime,
  `c_updatetime` datetime,
  `c_privacy` int(10) unsigned,
  `c_delete` int(10) unsigned,
  `c_categoryName` varchar(50),
  `c_categoryDisplayOrder` int(10) unsigned
) */;

--
-- Final view structure for view `v_abook`
--

/*!50001 DROP TABLE `v_abook`*/;
/*!50001 DROP VIEW IF EXISTS `v_abook`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `v_abook` AS select `m_abook`.`id_abook` AS `id_abook`,`m_abook`.`id_account` AS `id_account`,`m_abook`.`id_category` AS `id_category`,`m_abook`.`c_name1` AS `c_name1`,`m_abook`.`c_name2` AS `c_name2`,`m_abook`.`c_yomi1` AS `c_yomi1`,`m_abook`.`c_yomi2` AS `c_yomi2`,`m_abook`.`c_renmei` AS `c_renmei`,`m_abook`.`c_zip1` AS `c_zip1`,`m_abook`.`c_zip2` AS `c_zip2`,`m_abook`.`c_address1` AS `c_address1`,`m_abook`.`c_address2` AS `c_address2`,`m_abook`.`c_phone1` AS `c_phone1`,`m_abook`.`c_phone2` AS `c_phone2`,`m_abook`.`c_email` AS `c_email`,`m_abook`.`c_memo` AS `c_memo`,`m_abook`.`c_check1` AS `c_check1`,`m_abook`.`c_check2` AS `c_check2`,`m_abook`.`c_check3` AS `c_check3`,`m_abook`.`c_check4` AS `c_check4`,`m_abook`.`c_check5` AS `c_check5`,`m_abook`.`c_registtime` AS `c_registtime`,`m_abook`.`c_updatetime` AS `c_updatetime`,`m_abook`.`c_privacy` AS `c_privacy`,`m_abook`.`c_delete` AS `c_delete`,`m_category`.`c_categoryName` AS `c_categoryName`,`m_category`.`c_categoryDisplayOrder` AS `c_categoryDisplayOrder` from (`m_abook` left join `m_category` on((`m_abook`.`id_category` = `m_category`.`id_category`))) where (`m_abook`.`c_delete` = 0) */;
/*!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 2009-09-20  4:06:21
