name : interiorvisions.sql
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 27, 2017 at 07:51 AM
-- Server version: 10.1.24-MariaDB
-- PHP Version: 7.1.6

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!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 utf8mb4 */;

--
-- Database: `interiorvisions`
--

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

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `a_id` int(11) NOT NULL,
  `a_fullname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `a_username` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `a_password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `a_create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `a_modify_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `a_status` char(1) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`a_id`, `a_fullname`, `a_username`, `a_password`, `a_create_at`, `a_modify_at`, `a_status`) VALUES
(8, 'ปฏิภาณ ทองแสง', 'admin', '1234', '2017-09-14 08:44:51', '0000-00-00 00:00:00', '0');

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

--
-- Table structure for table `capshas`
--

CREATE TABLE `capshas` (
  `cs_id` int(11) NOT NULL,
  `cs_name` varchar(5) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `capshas`
--

INSERT INTO `capshas` (`cs_id`, `cs_name`) VALUES
(1, '59431'),
(2, '45357'),
(3, '23149'),
(4, '14993');

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

--
-- Table structure for table `categorys`
--

CREATE TABLE `categorys` (
  `c_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `c_t_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `c_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `categorys`
--

INSERT INTO `categorys` (`c_id`, `c_t_id`, `c_name`) VALUES
('C000', 'T001', 'All'),
('C001', 'T001', 'Property '),
('C002', 'T001', 'Residential'),
('C003', 'T001', 'Hospitality'),
('C004', 'T001', 'Commercail/Retail'),
('C005', 'T001', 'Corparate '),
('C006', 'T001', 'Institute'),
('C007', 'T002', 'Recreation');

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

--
-- Table structure for table `companys`
--

CREATE TABLE `companys` (
  `ab_id` int(11) NOT NULL,
  `ab_title` text COLLATE utf8_unicode_ci NOT NULL,
  `ab_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `ab_image` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `companys`
--

INSERT INTO `companys` (`ab_id`, `ab_title`, `ab_desc`, `ab_image`) VALUES
(1, 'INTERIOR VISIONS', 'Interior Visions is an award-winning design firm. Founded in 1996, we have developed to deliver Architectural, Interior, and Graphic Design, ranging from Residential, Commercial, Hospitality, Corporate, Religious, and Education to Signage Design, throughout the country. Starting from researching project feasibilities with the owners, architects, engineers, and landscape architects, we integrate all  professional criteria to complete the work as a united design for our clients. We also emphasize on collaborative working among team members for creativity that brings a fresh and unique approach to each project, creating the quality and success design.', 'images/company/img_info_company.jpg');

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

--
-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `ct_id` int(11) NOT NULL,
  `ct_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `ct_lastname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `ct_mobile` varchar(13) COLLATE utf8_unicode_ci NOT NULL,
  `ct_mail` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `ct_subject` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `ct_message` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `contacts`
--

INSERT INTO `contacts` (`ct_id`, `ct_name`, `ct_lastname`, `ct_mobile`, `ct_mail`, `ct_subject`, `ct_message`) VALUES
(8, 'test', 'test', 'test', 'test@test', 'test', 'test');

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

--
-- Table structure for table `directors`
--

CREATE TABLE `directors` (
  `d_id` int(11) NOT NULL,
  `d_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `d_postion` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `d_image` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `directors`
--

INSERT INTO `directors` (`d_id`, `d_name`, `d_postion`, `d_image`) VALUES
(1, 'Thanawat Sukhaggananda', 'Managing Director', 'images/direc/d1.jpg'),
(2, 'Saowanit Sukhaggananda', 'Board of Directors', 'images/direc/d2.jpg'),
(3, 'Patarapong Ratanodom', 'Business Development Directo', 'images/direc/d3.jpg'),
(4, 'Charoenchai Techaponkul', 'Head Designer', 'images/direc/d4.jpg');

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

--
-- Table structure for table `layouts`
--

CREATE TABLE `layouts` (
  `l_id` int(11) NOT NULL,
  `l_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `l_po_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `layouts`
--

INSERT INTO `layouts` (`l_id`, `l_name`, `l_po_id`) VALUES
(1, 'โครงสร้างที่ 1', 1),
(2, 'โครงสร้างที่ 2', 2);

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

--
-- Table structure for table `projects`
--

CREATE TABLE `projects` (
  `p_id` int(11) NOT NULL,
  `p_tt` text COLLATE utf8_unicode_ci NOT NULL,
  `p_im_show` text COLLATE utf8_unicode_ci NOT NULL,
  `p_l_id` int(11) NOT NULL,
  `p_t_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `p_c_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `p_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `p_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `p_location` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `p_owner` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `p_status` int(11) NOT NULL,
  `p_create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `p_modify_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `project_details`
--

CREATE TABLE `project_details` (
  `pd_id` int(11) NOT NULL,
  `p_pd_id` int(11) NOT NULL,
  `im_pd_id` text COLLATE utf8_unicode_ci NOT NULL,
  `pd_position` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `teams`
--

CREATE TABLE `teams` (
  `t_id` int(11) NOT NULL,
  `t_image` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `teams`
--

INSERT INTO `teams` (`t_id`, `t_image`) VALUES
(1, 'images/team/iv_009_01.jpg'),
(2, 'images/team/iv_009_02.jpg'),
(3, 'images/team/iv_009_03.jpg'),
(4, 'images/team/iv_009_04.jpg');

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

--
-- Table structure for table `types`
--

CREATE TABLE `types` (
  `t_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `t_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `t_page` varchar(50) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `types`
--

INSERT INTO `types` (`t_id`, `t_name`, `t_page`) VALUES
('T001', 'Interior Design ', 'IV_003.php'),
('T002', 'Architecture ', 'IV_004.php'),
('T003', 'Visaul Communications', 'IV_005.php');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
  ADD PRIMARY KEY (`a_id`);

--
-- Indexes for table `capshas`
--
ALTER TABLE `capshas`
  ADD PRIMARY KEY (`cs_id`);

--
-- Indexes for table `categorys`
--
ALTER TABLE `categorys`
  ADD PRIMARY KEY (`c_id`);

--
-- Indexes for table `companys`
--
ALTER TABLE `companys`
  ADD PRIMARY KEY (`ab_id`);

--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
  ADD PRIMARY KEY (`ct_id`);

--
-- Indexes for table `directors`
--
ALTER TABLE `directors`
  ADD PRIMARY KEY (`d_id`);

--
-- Indexes for table `layouts`
--
ALTER TABLE `layouts`
  ADD PRIMARY KEY (`l_id`);

--
-- Indexes for table `projects`
--
ALTER TABLE `projects`
  ADD PRIMARY KEY (`p_id`);

--
-- Indexes for table `project_details`
--
ALTER TABLE `project_details`
  ADD PRIMARY KEY (`pd_id`);

--
-- Indexes for table `teams`
--
ALTER TABLE `teams`
  ADD PRIMARY KEY (`t_id`);

--
-- Indexes for table `types`
--
ALTER TABLE `types`
  ADD PRIMARY KEY (`t_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
  MODIFY `a_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `capshas`
--
ALTER TABLE `capshas`
  MODIFY `cs_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `companys`
--
ALTER TABLE `companys`
  MODIFY `ab_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
  MODIFY `ct_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `directors`
--
ALTER TABLE `directors`
  MODIFY `d_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `projects`
--
ALTER TABLE `projects`
  MODIFY `p_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `project_details`
--
ALTER TABLE `project_details`
  MODIFY `pd_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=130;
--
-- AUTO_INCREMENT for table `teams`
--
ALTER TABLE `teams`
  MODIFY `t_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;COMMIT;

/*!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 */;

© 2024 UnknownSec