-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `corporate_multipages`
--

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

--
-- Table structure for table `about_page`
--

CREATE TABLE `about_page` (
  `serial` int(11) NOT NULL,
  `data_for` int(1) DEFAULT NULL,
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`content`)),
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `about_work`
--

CREATE TABLE `about_work` (
  `serial` int(11) NOT NULL,
  `work_title` varchar(100) DEFAULT NULL,
  `summary` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `icon_file` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`icon_file`)),
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `blogs`
--

CREATE TABLE `blogs` (
  `serial` int(11) NOT NULL,
  `title` varchar(200) NOT NULL,
  `thumbnail` varchar(100) NOT NULL,
  `banner` varchar(100) NOT NULL,
  `paragraph_1` mediumtext NOT NULL,
  `paragraph_2` mediumtext DEFAULT NULL,
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`content`)),
  `status` int(1) DEFAULT 1,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `clients_review`
--

CREATE TABLE `clients_review` (
  `serial` int(11) NOT NULL,
  `client_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `client_review` text NOT NULL,
  `client_photo` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`client_photo`)),
  `total_star` int(1) NOT NULL,
  `review_status` int(1) DEFAULT NULL,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `contact_info`
--

CREATE TABLE `contact_info` (
  `serial` int(11) NOT NULL,
  `phone_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `email_addr` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `time_schedule` text NOT NULL,
  `location` text NOT NULL,
  `location_map` text NOT NULL,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `feedback`
--

CREATE TABLE `feedback` (
  `serial` int(11) NOT NULL,
  `user_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`user_info`)),
  `user_text` text NOT NULL,
  `response_text` text NOT NULL,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `home_banner`
--

CREATE TABLE `home_banner` (
  `serial` int(11) NOT NULL,
  `data_for` int(1) DEFAULT NULL,
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`content`)),
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `home_service`
--

CREATE TABLE `home_service` (
  `serial` int(11) NOT NULL,
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `img_file` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `legal_document`
--

CREATE TABLE `legal_document` (
  `serial` int(11) NOT NULL,
  `doc_title` varchar(100) NOT NULL,
  `summary` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `file_info` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `page_top_banner`
--

CREATE TABLE `page_top_banner` (
  `serial` int(11) NOT NULL,
  `page` varchar(50) NOT NULL,
  `banner` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`banner`)),
  `banner_text` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`banner_text`)),
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `portfolio_list`
--

CREATE TABLE `portfolio_list` (
  `serial` int(11) NOT NULL,
  `project_type` int(1) NOT NULL COMMENT '1=Interior,2=Architecture',
  `project_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `project_loc` text NOT NULL,
  `project_details` longtext DEFAULT NULL,
  `project_images` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `project_status` int(1) NOT NULL,
  `thumbnail` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`thumbnail`)),
  `project_date` date DEFAULT NULL,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `portfolio_types`
--

CREATE TABLE `portfolio_types` (
  `serial` int(11) NOT NULL,
  `title` varchar(50) NOT NULL,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `role_list`
--

CREATE TABLE `role_list` (
  `serial` int(11) NOT NULL,
  `role_name` varchar(50) NOT NULL,
  `role_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`role_info`)),
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `service_list`
--

CREATE TABLE `service_list` (
  `serial` int(11) NOT NULL,
  `service_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `summary` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `icon_file` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`icon_file`)),
  `thumbnail` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`thumbnail`)),
  `details` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`details`)),
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `site_setup`
--

CREATE TABLE `site_setup` (
  `serial` int(11) NOT NULL,
  `data_for` int(1) DEFAULT NULL,
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`content`)),
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `sponsors`
--

CREATE TABLE `sponsors` (
  `serial` int(11) NOT NULL,
  `title` varchar(100) NOT NULL,
  `image` varchar(100) NOT NULL,
  `caption` varchar(100) DEFAULT NULL,
  `status` int(1) DEFAULT 1,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `team_list`
--

CREATE TABLE `team_list` (
  `serial` int(11) NOT NULL,
  `person_name` varchar(100) NOT NULL,
  `designation` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `experience` text DEFAULT NULL,
  `responsibility` text DEFAULT NULL,
  `person_bio` text DEFAULT NULL,
  `social_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `img_file` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `status` int(1) DEFAULT 1,
  `time_log` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT current_timestamp() CHECK (json_valid(`time_log`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `about_page`
--
ALTER TABLE `about_page`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `about_work`
--
ALTER TABLE `about_work`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `blogs`
--
ALTER TABLE `blogs`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `clients_review`
--
ALTER TABLE `clients_review`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `contact_info`
--
ALTER TABLE `contact_info`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `feedback`
--
ALTER TABLE `feedback`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `home_banner`
--
ALTER TABLE `home_banner`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `home_service`
--
ALTER TABLE `home_service`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `legal_document`
--
ALTER TABLE `legal_document`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `page_top_banner`
--
ALTER TABLE `page_top_banner`
  ADD UNIQUE KEY `serial` (`serial`),
  ADD KEY `page` (`page`);

--
-- Indexes for table `portfolio_list`
--
ALTER TABLE `portfolio_list`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `portfolio_types`
--
ALTER TABLE `portfolio_types`
  ADD UNIQUE KEY `serial` (`serial`),
  ADD KEY `title` (`title`);

--
-- Indexes for table `role_list`
--
ALTER TABLE `role_list`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `service_list`
--
ALTER TABLE `service_list`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `site_setup`
--
ALTER TABLE `site_setup`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `sponsors`
--
ALTER TABLE `sponsors`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- Indexes for table `team_list`
--
ALTER TABLE `team_list`
  ADD UNIQUE KEY `serial` (`serial`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `about_page`
--
ALTER TABLE `about_page`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `about_work`
--
ALTER TABLE `about_work`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `blogs`
--
ALTER TABLE `blogs`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `clients_review`
--
ALTER TABLE `clients_review`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `contact_info`
--
ALTER TABLE `contact_info`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `feedback`
--
ALTER TABLE `feedback`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `home_banner`
--
ALTER TABLE `home_banner`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `home_service`
--
ALTER TABLE `home_service`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `legal_document`
--
ALTER TABLE `legal_document`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `page_top_banner`
--
ALTER TABLE `page_top_banner`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `portfolio_list`
--
ALTER TABLE `portfolio_list`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `portfolio_types`
--
ALTER TABLE `portfolio_types`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `role_list`
--
ALTER TABLE `role_list`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `service_list`
--
ALTER TABLE `service_list`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `site_setup`
--
ALTER TABLE `site_setup`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sponsors`
--
ALTER TABLE `sponsors`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `team_list`
--
ALTER TABLE `team_list`
  MODIFY `serial` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

