-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 08, 2026 at 10:46 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `active_landscapes`
--

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

--
-- Table structure for table `enq_enquiry_details`
--

CREATE TABLE `enq_enquiry_details` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `enquiry_code` varchar(255) NOT NULL,
  `company_name` varchar(512) NOT NULL,
  `first_name` varchar(256) NOT NULL,
  `last_name` varchar(256) NOT NULL,
  `address` varchar(512) NOT NULL,
  `email` varchar(512) NOT NULL,
  `phone_number` varchar(50) NOT NULL,
  `address_line_1` varchar(512) NOT NULL,
  `address_line_2` varchar(512) NOT NULL,
  `town` varchar(256) NOT NULL,
  `county` varchar(25) NOT NULL,
  `postcode` varchar(25) NOT NULL,
  `country` varchar(25) NOT NULL,
  `enquiry` text NOT NULL,
  `site_address_line_1` varchar(100) DEFAULT NULL,
  `site_address_line_2` varchar(100) DEFAULT NULL,
  `site_town` varchar(50) DEFAULT NULL,
  `site_county` varchar(50) DEFAULT NULL,
  `site_country` varchar(100) DEFAULT NULL,
  `site_postcode` varchar(20) DEFAULT NULL,
  `invoice_address_line_1` varchar(100) DEFAULT NULL,
  `invoice_address_line_2` varchar(100) DEFAULT NULL,
  `invoice_town` varchar(50) DEFAULT NULL,
  `invoice_county` varchar(50) DEFAULT NULL,
  `invoice_postcode` varchar(20) DEFAULT NULL,
  `invoice_country` varchar(100) DEFAULT NULL,
  `organization` varchar(50) DEFAULT NULL,
  `client_type` varchar(50) DEFAULT NULL,
  `tender_vs_direct_enquiry` varchar(50) DEFAULT NULL,
  `project_type` varchar(50) DEFAULT NULL,
  `rough_budget` varchar(50) DEFAULT NULL,
  `funding` varchar(100) DEFAULT NULL,
  `award_date` date DEFAULT NULL,
  `location` varchar(100) DEFAULT NULL,
  `lead_source` varchar(50) DEFAULT NULL,
  `is_archive` tinyint(4) NOT NULL,
  `archived_on` datetime NOT NULL,
  `archived_by` int(11) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_by` int(11) DEFAULT NULL,
  `updated_on` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `enq_enquiry_details`
--

INSERT INTO `enq_enquiry_details` (`id`, `company_id`, `enquiry_code`, `company_name`, `first_name`, `last_name`, `address`, `email`, `phone_number`, `address_line_1`, `address_line_2`, `town`, `county`, `postcode`, `country`, `enquiry`, `site_address_line_1`, `site_address_line_2`, `site_town`, `site_county`, `site_country`, `site_postcode`, `invoice_address_line_1`, `invoice_address_line_2`, `invoice_town`, `invoice_county`, `invoice_postcode`, `invoice_country`, `organization`, `client_type`, `tender_vs_direct_enquiry`, `project_type`, `rough_budget`, `funding`, `award_date`, `location`, `lead_source`, `is_archive`, `archived_on`, `archived_by`, `created_on`, `created_by`, `updated_on`, `updated_by`) VALUES
(1, 99, 'E-08042026-SPA-01', '', 'Jaykumar', 'Nimbalkar', '', 'WALL_Pik8OiAkXCI5aCExXCc3LDwkNzcSMyUkJS10OitcIg==', 'WALL_ZHF8Z2V+dXhyeW4=', 'At Yeliv Post Purandawade', 'Tal Malshiras Dist Solapur', 'Yeliv', 'Clwyd', '413111', 'India', 'jhgjhg hjgjhg', 'At Yeliv Post Purandawade', 'Tal Malshiras Dist Solapur', 'Yeliv', 'Bedfordshire', 'India', '413111', 'At Yeliv Post Purandawade', 'Tal Malshiras Dist Solapur', 'Yeliv', 'County Down', '413111', 'India', 'Council', 'Contractor', 'Tender', 'Gym', '8000', 'Fully Funded', '2026-04-08', 'London', 'Phone calls', 0, '0000-00-00 00:00:00', 0, '2026-04-08 16:44:16', 1, '2026-04-08 16:44:16', 1),
(2, 87, 'E-08042026-GRE-02', '', 'james', 'cartweight', '', 'WALL_PikoNCYqXCI5Mjg9IzIlJHxiBTU5KSwgbzk2KQ==', 'WALL_YHxwZ2Jxenhyem4=', '2 Tile Farm Rd', 'Kent County', 'Orpington', 'Cambridgeshire', 'BR6 9RZ', 'Guinea', 'lkj lkj ;lk', 'At Yeliv Post Purandawade', 'Tal Malshiras Dist Solapur', 'Yeliv', 'County Down', 'India', '413111', 'At Yeliv Post Purandawade', 'Tal Malshiras Dist Solapur', 'pune', 'County Down', '413111', 'India', 'School', 'Council', 'Tender', 'Playground', '89090', 'Part', '2026-04-09', 'pune', 'Website enquiries', 0, '0000-00-00 00:00:00', 0, '2026-04-08 19:22:22', 1, '2026-04-08 20:10:03', 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `enq_enquiry_details`
--
ALTER TABLE `enq_enquiry_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`,`is_archive`),
  ADD KEY `company_id` (`company_id`),
  ADD KEY `postcode` (`postcode`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `enq_enquiry_details`
--
ALTER TABLE `enq_enquiry_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
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 */;
