-- MySQL dump 10.11
--
-- Host: localhost    Database: _db_chat
-- ------------------------------------------------------
-- 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_messages`
--

DROP TABLE IF EXISTS `m_messages`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `m_messages` (
  `id_messages` int(10) unsigned NOT NULL auto_increment,
  `id_account` int(10) unsigned NOT NULL,
  `c_message` varchar(500) NOT NULL,
  `c_registtime` datetime NOT NULL,
  PRIMARY KEY  (`id_messages`)
) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `m_messages`
--

LOCK TABLES `m_messages` WRITE;
/*!40000 ALTER TABLE `m_messages` DISABLE KEYS */;
INSERT INTO `m_messages` VALUES (20,10001,'今、何してますか？','2009-05-04 20:31:31'),(21,10003,'いま、キーボード叩いています。','2009-05-04 20:32:28'),(22,10003,'明日の天気は？','2009-05-04 20:33:06'),(23,10001,'東京は午後から曇りらしいです。','2009-05-04 20:33:32'),(24,10001,'のどが乾いてきた。','2009-05-04 20:35:29');
/*!40000 ALTER TABLE `m_messages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Temporary table structure for view `v_messages`
--

DROP TABLE IF EXISTS `v_messages`;
/*!50001 DROP VIEW IF EXISTS `v_messages`*/;
/*!50001 CREATE TABLE `v_messages` (
  `id_messages` int(10) unsigned,
  `id_account` int(10) unsigned,
  `c_message` varchar(500),
  `c_registtime` datetime,
  `c_handle` varchar(100),
  `c_body_background_color` varchar(10),
  `c_profile_image` varchar(50)
) */;

--
-- Final view structure for view `v_messages`
--

/*!50001 DROP TABLE `v_messages`*/;
/*!50001 DROP VIEW IF EXISTS `v_messages`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `_db_chat`.`v_messages` AS select `_db_chat`.`m_messages`.`id_messages` AS `id_messages`,`_db_chat`.`m_messages`.`id_account` AS `id_account`,`_db_chat`.`m_messages`.`c_message` AS `c_message`,`_db_chat`.`m_messages`.`c_registtime` AS `c_registtime`,`_db_account`.`m_account`.`c_handle` AS `c_handle`,`_db_account`.`m_account`.`c_body_background_color` AS `c_body_background_color`,`_db_account`.`m_account`.`c_profile_image` AS `c_profile_image` from (`_db_chat`.`m_messages` left join `_db_account`.`m_account` on((`_db_chat`.`m_messages`.`id_account` = `_db_account`.`m_account`.`id_account`))) */;
/*!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 2011-03-04 10:24:48
