-- phpMyAdmin SQL Dump
-- version 3.3.10
-- http://www.phpmyadmin.net
--
-- 호스트: 127.0.0.1
-- 처리한 시간: 14-02-27 19:40 
-- 서버 버전: 5.5.31
-- PHP 버전: 5.3.3

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- 데이터베이스: `zmb`
--

-- --------------------------------------------------------

--
-- 테이블 구조 `zm_alimi`
--

CREATE TABLE IF NOT EXISTS `zm_alimi` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_id` varchar(40) NOT NULL,
  `db_content` text NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_new_reply_check` varchar(1) NOT NULL,
  `db_read_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_alimi`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_blacklist_bbs`
--

CREATE TABLE IF NOT EXISTS `zm_blacklist_bbs` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_table` varchar(20) NOT NULL,
  `db_wrid` int(11) NOT NULL,
  `db_blockdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_report_count` int(11) NOT NULL COMMENT '신고개수',
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_blacklist_bbs`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_blacklist_mem`
--

CREATE TABLE IF NOT EXISTS `zm_blacklist_mem` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_block_id` varchar(50) NOT NULL,
  `db_report_count` int(11) NOT NULL,
  `db_block_end` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_block_service` varchar(20) NOT NULL,
  `db_flag` varchar(1) NOT NULL,
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_blacklist_mem`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_blacklist_report`
--

CREATE TABLE IF NOT EXISTS `zm_blacklist_report` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_block_id` varchar(20) NOT NULL,
  `db_report_id` varchar(20) NOT NULL,
  `db_table` varchar(20) NOT NULL,
  `db_wrid` int(11) NOT NULL,
  `db_why_report` varchar(100) NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '신고일',
  PRIMARY KEY (`db_recno`),
  FULLTEXT KEY `db_report_id` (`db_report_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_blacklist_report`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_board_best`
--

CREATE TABLE IF NOT EXISTS `zm_board_best` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_table` varchar(50) NOT NULL,
  `db_wrid` int(11) NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=97709 ;

--
-- 테이블의 덤프 데이터 `zm_board_best`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_board_config`
--

CREATE TABLE IF NOT EXISTS `zm_board_config` (
  `db_table` varchar(40) NOT NULL,
  `db_varname` varchar(255) NOT NULL,
  `db_variable` varchar(255) NOT NULL,
  `db_value` varchar(255) NOT NULL,
  `db_valtype` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 테이블의 덤프 데이터 `zm_board_config`
--

INSERT INTO `zm_board_config` (`db_table`, `db_varname`, `db_variable`, `db_value`, `db_valtype`) VALUES
('freeboard', '반대 대체 단어', 'nogood_word', '반대', '13'),
('freeboard', '추천 대체 단어', 'good_word', '추천', '12'),
('freeboard', '썸네일 크기H', 'thumbheightsize', '110', '10'),
('freeboard', '최신글 Cache', 'latestcache', '60', '11'),
('freeboard', '썸네일 크기W', 'thumbwidthsize', '110', '9'),
('freeboard', '워터마크', 'watermark', '0', '7'),
('freeboard', '이미지 크기', 'imagewidthsize', '600', '8'),
('freeboard', '최신베스트', 'boardbest', '1', '4'),
('freeboard', 'SNS 링크', 'snslink', '1', '5'),
('freeboard', '페이스북 LIKE', 'facebooklike', '1', '6'),
('freeboard', '베스트 댓글', 'comment_best', '1', '2'),
('freeboard', '날짜표시', 'datetype', '0', '3'),
('freeboard', '댓글 접기', 'comment_fold', '0', '1'),
('freeboard', '페이지당 댓글 수', 'comment_rows', '20', '0'),
('freeboard', '게시판 모바일 스킨', 'm_skin', 'zm.basic', '14'),
('notice', '반대 대체 단어', 'nogood_word', '반대', '13'),
('notice', '추천 대체 단어', 'good_word', '추천', '12'),
('notice', '최신글 Cache', 'latestcache', '60', '11'),
('notice', '썸네일 크기H', 'thumbheightsize', '110', '10'),
('notice', '썸네일 크기W', 'thumbwidthsize', '110', '9'),
('notice', '이미지 크기', 'imagewidthsize', '600', '8'),
('notice', '워터마크', 'watermark', '8', '7'),
('notice', '페이스북 LIKE', 'facebooklike', '1', '6'),
('notice', 'SNS 링크', 'snslink', '1', '5'),
('notice', '최신베스트', 'boardbest', '1', '4'),
('notice', '날짜표시', 'datetype', '0', '3'),
('notice', '베스트 댓글', 'comment_best', '1', '2'),
('notice', '페이지당 댓글 수', 'comment_rows', '20', '0'),
('notice', '댓글 접기', 'comment_fold', '0', '1'),
('notice', '게시판 모바일 스킨', 'm_skin', 'zm.basic', '14'),
('gallery', '최신글 Cache', 'latestcache', '60', '11'),
('gallery', '썸네일 크기H', 'thumbheightsize', '140', '10'),
('gallery', '썸네일 크기W', 'thumbwidthsize', '240', '9'),
('gallery', '이미지 크기', 'imagewidthsize', '700', '8'),
('gallery', '워터마크', 'watermark', '0', '7'),
('gallery', '페이스북 LIKE', 'facebooklike', '1', '6'),
('gallery', 'SNS 링크', 'snslink', '1', '5'),
('gallery', '최신베스트', 'boardbest', '1', '4'),
('gallery', '날짜표시', 'datetype', '0', '3'),
('gallery', '베스트 댓글', 'comment_best', '0', '2'),
('gallery', '댓글 접기', 'comment_fold', '1', '1'),
('gallery', '페이지당 댓글 수', 'comment_rows', '20', '0'),
('gallery', '추천 대체 단어', 'good_word', '추천', '12'),
('gallery', '반대 대체 단어', 'nogood_word', '반대', '13'),
('gallery', '게시판 모바일 스킨', 'm_skin', 'zm.gallery', '14');

-- --------------------------------------------------------

--
-- 테이블 구조 `zm_board_good`
--

CREATE TABLE IF NOT EXISTS `zm_board_good` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_table` varchar(20) NOT NULL,
  `db_wrid` int(11) NOT NULL,
  `db_flag` text NOT NULL,
  PRIMARY KEY (`db_recno`),
  KEY `db_table` (`db_table`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_board_good`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_builder_config`
--

CREATE TABLE IF NOT EXISTS `zm_builder_config` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_level` varchar(2) NOT NULL,
  `db_up_recno` int(11) NOT NULL,
  `db_rank` int(11) NOT NULL,
  `db_group_name` varchar(40) NOT NULL,
  `db_mobile` varchar(1) NOT NULL,
  `db_m_group_name` varchar(20) NOT NULL,
  `db_group_explain` varchar(100) NOT NULL,
  `db_more` varchar(1) NOT NULL,
  `db_menu_reg` tinyint(1) NOT NULL,
  `db_index_skin` varchar(30) NOT NULL,
  `db_m_index_skin` varchar(30) NOT NULL,
  `db_layout_skin` varchar(30) NOT NULL,
  `db_m_layout_skin` varchar(30) NOT NULL,
  `db_pagename` varchar(40) NOT NULL,
  `db_m_pagename` varchar(40) NOT NULL,
  `db_topmenu_skin` varchar(50) NOT NULL,
  `db_m_topmenu_skin` varchar(50) NOT NULL,
  `db_bottom_skin` varchar(50) NOT NULL,
  `db_m_bottom_skin` varchar(50) NOT NULL,
  `db_url` varchar(255) NOT NULL,
  `db_target` varchar(10) NOT NULL,
  `db_link_type` varchar(1) NOT NULL,
  `db_board` varchar(30) NOT NULL,
  `db_href` varchar(255) NOT NULL,
  `db_subdomain` varchar(40) NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=64 ;

--
-- 테이블의 덤프 데이터 `zm_builder_config`
--

INSERT INTO `zm_builder_config` (`db_recno`, `db_level`, `db_up_recno`, `db_rank`, `db_group_name`, `db_mobile`, `db_m_group_name`, `db_group_explain`, `db_more`, `db_menu_reg`, `db_index_skin`, `db_m_index_skin`, `db_layout_skin`, `db_m_layout_skin`, `db_pagename`, `db_m_pagename`, `db_topmenu_skin`, `db_m_topmenu_skin`, `db_bottom_skin`, `db_m_bottom_skin`, `db_url`, `db_target`, `db_link_type`, `db_board`, `db_href`, `db_subdomain`, `db_datetime`) VALUES
(1, '', 0, 0, '회원가입', '1', '회원가입', '회원가입', '', 1, '', '', 'zm.basic', 'zm.basic', '', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '', '', '', '[#G4URL#]/bbs/register.php', '', '2014-04-25 13:27:13'),
(2, '0', 0, 0, 'INDEX', '1', 'INDEX', '', '', 1, 'zm.basic', 'zm.basic', 'zm.basic', '', '', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_top', '0', '', '[#G4URL#]', '', '2014-03-10 18:08:28'),
(3, '1', 2, 6, '회사소개', '1', '회사소개', '', '1', 1, '', '', 'zm.company', 'zm.basic', 'page.intro.php', 'page.userguide.php', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p3', '', '2014-03-05 22:31:02'),
(4, '1', 2, 5, '커뮤니티', '1', '커뮤니티', '', '', 1, '', '', 'zm.basic', 'zm.mbasic', 'page.userguide.php', 'page.userguide.php', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '3', '', '[#G4URL#]/bbs/board.php?bo_table=freeboard', '', '2014-03-05 22:14:51'),
(5, '1', 2, 3, '메뉴3', '1', '모메3', '세번째 견본 메뉴', '', 1, '', '', '', '', '', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '4', '', '#', '', '2014-02-20 20:30:32'),
(6, '1', 2, 2, '메뉴2', '1', '메뉴2', '두번째 견본 메뉴', '', 1, '', '', '', '', '', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '4', '', '#', '', '2014-02-20 20:30:23'),
(7, '1', 2, 1, '메뉴1', '1', '메뉴1', '첫번째 견본 메뉴', '', 1, '', '', '', '', 'page.terms.php', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '4', '', '#', '', '2014-02-20 20:30:03'),
(9, '2', 4, 4, '이용안내', '1', '이용안내', '사이트 이용 방법을 소개합니다.', '', 1, '', '', 'zm.basic', 'zm.basic', 'page.userguide.php', 'page.userguide.php', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p9', '', '2014-02-22 01:02:10'),
(10, '2', 4, 1, '자유게시판', '1', '게시판', '자유롭게 생각을 공유 할 수 있습니다.', '', 1, '', '', 'zm.basic', 'zm.basic', 'page.userguide.php', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '1', 'freeboard', '[#G4URL#]/bbs/board.php?bo_table=freeboard', '', '2014-09-18 23:55:24'),
(11, '2', 4, 0, '공지사항', '1', '공지', '서비스 이용 안내 및 이벤트 내용을 알려드립니다.', '', 1, '', '', 'zm.basic', 'zm.basic', 'page.userguide.php', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '1', 'notice', '[#G4URL#]/bbs/board.php?bo_table=notice', '', '2014-09-18 23:55:12'),
(41, '1', 0, 0, '개인정보보호정책', '1', '개인정보보호정책', '', '', 0, '', '', 'zm.policy', 'zm.policy', 'page.privacy.php', 'page.privacy.php', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p41', '', '2014-01-24 16:35:03'),
(34, '2', 3, 3, '회사연혁', '', '', '', '', 1, '', '', 'zm.company', '', 'page.history.php', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p34', '', '2014-01-24 16:35:03'),
(33, '2', 3, 2, '인사말', '', '', '', '', 1, '', '', 'zm.company', '', 'page.greeting.php', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p33', '', '2014-01-24 16:35:03'),
(35, '2', 3, 1, '회사소개', '1', '회사소개', '', '', 1, '', '', 'zm.company', 'zm.basic', 'page.intro.php', 'page.userguide.php', 'zm.basic', '', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p35', '', '2014-08-26 23:04:21'),
(36, '2', 3, 4, '찾아오는길', '', '', '', '', 1, '', '', 'zm.company', '', 'page.roughmap.php', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p36', '', '2014-01-24 16:35:03'),
(40, '1', 0, 0, '이용약관', '1', '이용약관', '', '', 0, '', '', 'zm.policy', 'zm.policy', 'page.terms.php', 'page.terms.php', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p40', '', '2014-01-24 16:35:03'),
(42, '1', 0, 0, '이메일무단수집거부', '1', '이메일수집거부', '', '', 0, '', '', 'zm.policy', 'zm.policy', 'page.nospam.php', 'page.nospam.php', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p42', '', '2014-03-05 22:30:51'),
(57, '2', 4, 3, '갤러리', '1', '갤러리', '', '', 1, '', '', 'zm.basic', 'zm.basic', '', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '1', 'gallery', '[#G4URL#]/bbs/board.php?bo_table=gallery', '', '2014-09-18 23:55:34'),
(54, '1', 2, 4, 'KCP 결제', '1', 'KCP결제', 'KCP 결제를 테스트 할 수 있습니다.', '', 1, '', '', 'zm.basic', 'zm.kcp', 'page.userguide.php', 'page.kcp_sample.php', '', 'zm.basic', '', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p54', '', '2014-10-03 11:56:24'),
(55, '2', 54, 1, '일반결제', '1', '일반결제', 'KCP 일반결제를 테스트 할 수 있습니다.', '', 1, '', '', 'zm.kcp', 'zm.kcp', 'page.kcp_sample.php', 'page.kcp_sample.php', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p55', '', '2014-10-03 11:53:32'),
(56, '2', 54, 2, '에스크로 결제', '1', '에스크로', 'KCP 에스크로 결제를 테스트 할 수 있습니다.', '', 1, '', '', 'zm.kcp', 'zm.kcp', 'page.kcp_sample_escrow.php', 'page.kcp_sample_escrow.php', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '_self', '2', '', '[#G4URL#]/?zm_goto=p56', '', '2014-10-03 14:25:28'),
(62, '99', 0, 0, '회원가입', '1', '회원가입', '회원가입', '', 1, '', '', 'zm.basic', 'zm.basic', '', '', 'zm.basic', 'zm.basic', 'zm.basic', 'zm.basic', '', '', '', '', '[#G4URL#]/bbs/register.php', '', '2014-09-18 23:12:50');


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_builder_renewal_config`
--

CREATE TABLE IF NOT EXISTS `zm_builder_renewal_config` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_index_skin` varchar(30) NOT NULL,
  `db_m_index_skin` varchar(30) NOT NULL,
  `db_layout_skin` varchar(30) NOT NULL,
  `db_m_layout_skin` varchar(30) NOT NULL,
  `db_pagename` varchar(40) NOT NULL,
  `db_m_pagename` varchar(40) NOT NULL,
  `db_topmenu_skin` varchar(50) NOT NULL,
  `db_m_topmenu_skin` varchar(50) NOT NULL,
  `db_bottom_skin` varchar(50) NOT NULL,
  `db_m_bottom_skin` varchar(50) NOT NULL,
  `db_org_recno` int(11) NOT NULL,
  `db_link_type` varchar(1) NOT NULL,
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_builder_renewal_config`
--

-- --------------------------------------------------------

--
-- 테이블 구조 `zm_config`
--

CREATE TABLE IF NOT EXISTS `zm_config` (
  `db_varname` varchar(255) NOT NULL,
  `db_variable` varchar(255) NOT NULL,
  `db_value` varchar(255) NOT NULL,
  `db_valtype` varchar(255) NOT NULL,
  PRIMARY KEY (`db_variable`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 테이블의 덤프 데이터 `zm_config`
--

INSERT INTO `zm_config` (`db_varname`, `db_variable`, `db_value`, `db_valtype`) VALUES
('포인트 별칭', 'pointname', '포인트', ''),
('지음머니 별칭', 'ziummoney', '땅콩', ''),
('회원등급명', 'memlevelname', '손님/준회원/정회원/우등회원/우수회원/최우수회원/특별회원/명예회원/부운영자/관리자', ''),
('로그인 로그 보관 기간', 'loginlogterm', '30', ''),
('접속지역 사용', 'mylocal', '1', ''),
('메모 목록 수', 'memo_rows', '10', ''),
('하루 발송 쪽지', 'memo_today', '100', ''),
('누적신고 1단계', 'report_level1', '10/3/1/1', ''),
('누적신고 2단계', 'report_level2', '30/10/1/1', ''),
('누적신고 3단계', 'report_level3', '100/30/1/1', ''),
('누적신고 4단계', 'report_level4', '200/36500/1/1', ''),
('게시판 신고', 'bbsreport', '10', ''),
('신고가능 조건', 'reportcondition', '/1/300', ''),
('하루 작성 가능 글 수', 'write_today', '50', ''),
('탈퇴회원 재가입', 'reentrymember', '1', ''),
('탈퇴 후 재가입 기간', 'reentryterm', '1', ''),
('비번분실 질문 사용', 'usepasswdq', '1', ''),
('게시글 수정 제한', 'modifycondition', '3', ''),
('로그인 시도 제한', 'loginfail', '5/1', ''),
('인기검색어 갱신주기', 'popularterm', '1800', ''),
('마지막 DB백업 날짜', 'db_backupdate', '2014-02-20 20:37:01', ''),
('SMS 인증', 'sms_certify', '', ''),
('모바일전환조건', 'use_mobile', '1', ''),
('결제 방법', 'kcp_pay_way', '1', ''),
('테스트 유무', 'kcp_afilliate_use', 'test', ''),
('테스트 아이디', 'kcp_test_id', 'T0000', ''),
('실사용 아이디', 'kcp_real_id', '', ''),
('사이트 이름', 'kcp_site_name', 'ZIUMSOFT', ''),
('사이트 로고', 'kcp_site_logo', 'http://zmb.ziumsoft.co.kr/data/zm.exp/19c90851bf7362f6a8c697cdbbd9ba87.gif', ''),
('결제창 스킨', 'kcp_skin_type', '4', ''),
('사이트 키', 'kcp_site_key', '', ''),
('플러그인', 'kcp_plugin', 'plugin_test_https', ''),
('최대 할부개월', 'kcp_quotaopt', '0', ''),
('복지카드 코드', 'kcp_pt_memcorp_cd', '', ''),
('OK캐쉬백 사용유무', 'kcp_save_ocb', 'N', ''),
('신용카드결제종류', 'kcp_complex_pnt_yn', 'Y', ''),
('현금영수증출력', 'kcp_disp_tax_yn', 'N', '');

-- --------------------------------------------------------

--
-- 테이블 구조 `zm_friend`
--

CREATE TABLE IF NOT EXISTS `zm_friend` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_id` varchar(50) NOT NULL,
  `db_friend_id` varchar(50) NOT NULL COMMENT '친구 아이디',
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '날짜',
  `db_state` varchar(1) NOT NULL COMMENT '상태',
  `db_group` varchar(50) NOT NULL,
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_friend`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_kcp_history`
--

CREATE TABLE IF NOT EXISTS `zm_kcp_history` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_id` varchar(40) CHARACTER SET utf8 NOT NULL,
  `db_order_id` varchar(100) CHARACTER SET utf8 NOT NULL,
  `db_buyer_name` varchar(10) CHARACTER SET utf8 NOT NULL,
  `db_buyer_phone` varchar(13) CHARACTER SET utf8 NOT NULL,
  `db_buyer_email` varchar(100) CHARACTER SET utf8 NOT NULL,
  `db_product_name` varchar(50) CHARACTER SET utf8 NOT NULL,
  `db_pay_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_pay_content` varchar(255) CHARACTER SET utf8 NOT NULL,
  `db_payment` int(11) NOT NULL,
  `db_pay_card` varchar(10) CHARACTER SET utf8 NOT NULL,
  `db_quota` varchar(2) CHARACTER SET utf8 NOT NULL COMMENT '할부',
  `db_pay_way` varchar(12) CHARACTER SET utf8 NOT NULL COMMENT '결제방식',
  `db_status` varchar(1) CHARACTER SET utf8 NOT NULL COMMENT '상태',
  PRIMARY KEY (`db_recno`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_kcp_history`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_lineword`
--

CREATE TABLE IF NOT EXISTS `zm_lineword` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_id` varchar(50) NOT NULL,
  `db_write_id` varchar(50) NOT NULL,
  `db_memo` varchar(255) NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_flag` varchar(1) NOT NULL,
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;

--
-- 테이블의 덤프 데이터 `zm_lineword`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_login_log`
--

CREATE TABLE IF NOT EXISTS `zm_login_log` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_id` varchar(40) NOT NULL,
  `db_date` datetime NOT NULL,
  `db_service` varchar(255) NOT NULL,
  `db_authtype` varchar(50) NOT NULL,
  `db_result` varchar(50) NOT NULL,
  `db_ip` varchar(15) NOT NULL,
  `db_flag` varchar(1) NOT NULL,
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_login_log`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_member`
--

CREATE TABLE IF NOT EXISTS `zm_member` (
  `db_id` varchar(255) NOT NULL,
  `db_profile_pic` varchar(255) NOT NULL,
  `db_location` varchar(20) NOT NULL,
  `db_bloodtype` varchar(2) NOT NULL,
  `db_belong` varchar(100) NOT NULL,
  `db_school` varchar(255) NOT NULL,
  `db_sns_link` varchar(100) NOT NULL,
  `db_zium_money` int(11) NOT NULL,
  `db_new_memo` tinyint(4) NOT NULL COMMENT '새 쪽지 개수',
  `db_memosend_date` date NOT NULL DEFAULT '0000-00-00' COMMENT '최근 쪽지 발송 일',
  `db_memo_today` tinyint(4) NOT NULL COMMENT '오늘 발송한 쪽지 개수',
  `db_memo_latesend` varchar(255) NOT NULL COMMENT '최근 쪽지 발송한 아이디',
  `db_memo_recv_condition` varchar(1) NOT NULL,
  `db_profile_open_level` varchar(3) NOT NULL,
  `db_write_latedate` date NOT NULL DEFAULT '0000-00-00' COMMENT '마지막 글쓴 날짜',
  `db_write_today` tinyint(4) NOT NULL COMMENT '오늘 쓴 글',
  `db_sms_certify` datetime NOT NULL,
  PRIMARY KEY (`db_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 테이블의 덤프 데이터 `zm_member`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_member_pic`
--

CREATE TABLE IF NOT EXISTS `zm_member_pic` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_id` varchar(50) NOT NULL,
  `db_picno` tinyint(4) NOT NULL COMMENT '사진 번호',
  `db_dir` varchar(10) NOT NULL,
  `db_filename` varchar(255) NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_flag` varchar(1) NOT NULL,
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

--
-- 테이블의 덤프 데이터 `zm_member_pic`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_memo_refusal`
--

CREATE TABLE IF NOT EXISTS `zm_memo_refusal` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_id` varchar(50) NOT NULL COMMENT '차단한 사람',
  `db_refusal_id` varchar(50) NOT NULL COMMENT '차단된 사람',
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '차단 시간',
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

--
-- 테이블의 덤프 데이터 `zm_memo_refusal`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_popular_history`
--

CREATE TABLE IF NOT EXISTS `zm_popular_history` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_rank` int(11) NOT NULL,
  `db_word` varchar(256) NOT NULL,
  `db_search_count` int(11) NOT NULL,
  `db_up` varchar(4) NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_todayrank` int(11) NOT NULL COMMENT '오늘시작랭킹',
  `db_realrank` int(11) NOT NULL COMMENT '실시간순위',
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- 테이블의 덤프 데이터 `zm_popular_history`
--

INSERT INTO `zm_popular_history` (`db_recno`, `db_rank`, `db_word`, `db_search_count`, `db_up`, `db_datetime`, `db_todayrank`, `db_realrank`) VALUES
(2, 1, '지음빌더', 1, 'new', '2014-02-27 19:26:27', 1, 0);

-- --------------------------------------------------------

--
-- 테이블 구조 `zm_popup_notice`
--

CREATE TABLE IF NOT EXISTS `zm_popup_notice` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_winstyle` varchar(2) NOT NULL,
  `db_winsize` varchar(9) NOT NULL,
  `db_winpos` varchar(9) NOT NULL,
  `db_start_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_end_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `db_target_level` varchar(2) NOT NULL,
  `db_subject` varchar(100) NOT NULL,
  `db_content` text NOT NULL,
  `db_skin` varchar(40) NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;

--
-- 테이블의 덤프 데이터 `zm_popup_notice`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_search_word`
--

CREATE TABLE IF NOT EXISTS `zm_search_word` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_word` varchar(50) NOT NULL,
  `db_rank` int(11) NOT NULL,
  `db_count` int(11) NOT NULL,
  `db_date` date NOT NULL DEFAULT '0000-00-00',
  PRIMARY KEY (`db_recno`),
  KEY `db_word` (`db_word`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

--
-- 테이블의 덤프 데이터 `zm_search_word`
--

INSERT INTO `zm_search_word` (`db_recno`, `db_word`, `db_rank`, `db_count`, `db_date`) VALUES
(1, '지음빌더', 1, 1, '2014-02-27');

-- --------------------------------------------------------

--
-- 테이블 구조 `zm_se_images`
--

CREATE TABLE IF NOT EXISTS `zm_se_images` (
  `db_recno` int(11) NOT NULL AUTO_INCREMENT,
  `db_table` varchar(50) NOT NULL,
  `db_wrid` int(11) NOT NULL,
  `db_folder` varchar(10) NOT NULL,
  `db_filename` varchar(255) NOT NULL,
  `db_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`db_recno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_se_images`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_sms_config`
--

CREATE TABLE IF NOT EXISTS `zm_sms_config` (
  `ds_variable` varchar(255) NOT NULL DEFAULT '',
  `ds_value` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`ds_variable`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- 테이블의 덤프 데이터 `zm_sms_config`
--

INSERT INTO `zm_sms_config` (`ds_variable`, `ds_value`) VALUES
('cutstring', '1'),
('consume', '0'),
('memlevel', '9'),
('sms_module', 'tongkni'),
('sms_tki_id', 'test'),
('sms_tki_pw', '0000');

-- --------------------------------------------------------

--
-- 테이블 구조 `zm_sms_history`
--

CREATE TABLE IF NOT EXISTS `zm_sms_history` (
  `ds_recno` int(11) NOT NULL AUTO_INCREMENT,
  `ds_send_name` varchar(40) DEFAULT NULL,
  `ds_send_id` varchar(20) DEFAULT NULL,
  `ds_send_pcs` varchar(15) DEFAULT NULL,
  `ds_send_msg` varchar(80) DEFAULT NULL,
  `ds_receive_name` varchar(40) DEFAULT NULL,
  `ds_receive_pcs` varchar(15) DEFAULT NULL,
  `ds_send_type` varchar(1) DEFAULT NULL,
  `ds_send_date` int(11) DEFAULT NULL,
  PRIMARY KEY (`ds_recno`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;

--
-- 테이블의 덤프 데이터 `zm_sms_history`
--


-- --------------------------------------------------------

--
-- 테이블 구조 `zm_sms_phonebook`
--

CREATE TABLE IF NOT EXISTS `zm_sms_phonebook` (
  `ds_recno` int(11) NOT NULL AUTO_INCREMENT,
  `ds_mng_id` varchar(20) DEFAULT NULL,
  `ds_phn_name` varchar(40) DEFAULT NULL,
  `ds_phn_id` varchar(20) DEFAULT NULL,
  `ds_phn_pcs` varchar(15) DEFAULT NULL,
  `ds_phn_date` int(11) DEFAULT NULL,
  `ds_memo` varchar(40) DEFAULT NULL,
  PRIMARY KEY (`ds_recno`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- 테이블의 덤프 데이터 `zm_sms_phonebook`
--

