-- MySQL dump 10.13  Distrib 5.1.33, for Win32 (ia32)
--
-- Host: localhost    Database: _db_gpslog
-- ------------------------------------------------------
-- 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_categoryDisplayColor` 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 (`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_gpslog`
--

DROP TABLE IF EXISTS `m_gpslog`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `m_gpslog` (
  `id_gpslog` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_account` int(10) unsigned NOT NULL,
  `id_category` int(10) unsigned NOT NULL,
  `c_name` varchar(255) NOT NULL,
  `c_description` longtext NOT NULL,
  `c_date` datetime NOT NULL,
  `c_distance` double(10,3) NOT NULL,
  `c_starttime` datetime NOT NULL,
  `c_stoptime` datetime NOT NULL,
  `c_taketime` datetime NOT NULL,
  `c_speed_ave` double(10,3) NOT NULL,
  `c_speed_max` double(10,3) NOT NULL,
  `c_height_min` int(10) NOT NULL,
  `c_height_max` int(10) NOT NULL,
  `c_markerpoint` int(10) NOT NULL DEFAULT '0',
  `c_lat` double(15,10) NOT NULL,
  `c_lng` double(15,10) NOT NULL,
  `c_attachFile1` varchar(255) NOT NULL,
  `c_photo_folder` varchar(255) NOT NULL,
  `c_registtime` datetime NOT NULL,
  `c_updatetime` datetime NOT NULL,
  `c_delete` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_gpslog`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `m_gpslog`
--

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

--
-- Temporary table structure for view `m_holiday`
--

DROP TABLE IF EXISTS `m_holiday`;
/*!50001 DROP VIEW IF EXISTS `m_holiday`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `m_holiday` (
  `c_holidaydate` datetime,
  `c_holidayname` varchar(45)
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;

--
-- Temporary table structure for view `v_gpslog`
--

DROP TABLE IF EXISTS `v_gpslog`;
/*!50001 DROP VIEW IF EXISTS `v_gpslog`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `v_gpslog` (
  `id_gpslog` int(10) unsigned,
  `id_account` int(10) unsigned,
  `id_category` int(10) unsigned,
  `c_name` varchar(255),
  `c_description` longtext,
  `c_date` datetime,
  `c_distance` double(10,3),
  `c_starttime` datetime,
  `c_stoptime` datetime,
  `c_taketime` datetime,
  `c_speed_ave` double(10,3),
  `c_speed_max` double(10,3),
  `c_height_min` int(10),
  `c_height_max` int(10),
  `c_markerpoint` int(10),
  `c_lat` double(15,10),
  `c_lng` double(15,10),
  `c_attachFile1` varchar(255),
  `c_photo_folder` varchar(255),
  `c_registtime` datetime,
  `c_updatetime` datetime,
  `c_delete` int(10) unsigned,
  `c_categoryName` varchar(50),
  `c_categoryDisplayColor` varchar(50),
  `c_categoryDisplayOrder` int(10) unsigned
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;

--
-- Final view structure for view `m_holiday`
--

/*!50001 DROP TABLE `m_holiday`*/;
/*!50001 DROP VIEW IF EXISTS `m_holiday`*/;
/*!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 `m_holiday` AS select `_db_calendar`.`m_holiday`.`c_holidaydate` AS `c_holidaydate`,`_db_calendar`.`m_holiday`.`c_holidayname` AS `c_holidayname` from `_db_calendar`.`m_holiday` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `v_gpslog`
--

/*!50001 DROP TABLE `v_gpslog`*/;
/*!50001 DROP VIEW IF EXISTS `v_gpslog`*/;
/*!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_gpslog` AS select `m_gpslog`.`id_gpslog` AS `id_gpslog`,`m_gpslog`.`id_account` AS `id_account`,`m_gpslog`.`id_category` AS `id_category`,`m_gpslog`.`c_name` AS `c_name`,`m_gpslog`.`c_description` AS `c_description`,`m_gpslog`.`c_date` AS `c_date`,`m_gpslog`.`c_distance` AS `c_distance`,`m_gpslog`.`c_starttime` AS `c_starttime`,`m_gpslog`.`c_stoptime` AS `c_stoptime`,`m_gpslog`.`c_taketime` AS `c_taketime`,`m_gpslog`.`c_speed_ave` AS `c_speed_ave`,`m_gpslog`.`c_speed_max` AS `c_speed_max`,`m_gpslog`.`c_height_min` AS `c_height_min`,`m_gpslog`.`c_height_max` AS `c_height_max`,`m_gpslog`.`c_markerpoint` AS `c_markerpoint`,`m_gpslog`.`c_lat` AS `c_lat`,`m_gpslog`.`c_lng` AS `c_lng`,`m_gpslog`.`c_attachFile1` AS `c_attachFile1`,`m_gpslog`.`c_photo_folder` AS `c_photo_folder`,`m_gpslog`.`c_registtime` AS `c_registtime`,`m_gpslog`.`c_updatetime` AS `c_updatetime`,`m_gpslog`.`c_delete` AS `c_delete`,`m_category`.`c_categoryName` AS `c_categoryName`,`m_category`.`c_categoryDisplayColor` AS `c_categoryDisplayColor`,`m_category`.`c_categoryDisplayOrder` AS `c_categoryDisplayOrder` from (`m_gpslog` left join `m_category` on((`m_gpslog`.`id_category` = `m_category`.`id_category`))) where (`m_gpslog`.`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 2013-01-29  9:01:53
