-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 02, 2026 at 05:37 PM
-- Server version: 10.4.27-MariaDB
-- PHP Version: 7.4.33

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: `demo8_mckenzies_friends`
--

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

--
-- Table structure for table `comp_company_details`
--

CREATE TABLE IF NOT EXISTS `comp_company_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_name` varchar(512) NOT NULL,
  `main_contact_name` varchar(256) NOT NULL,
  `primary_email` varchar(512) NOT NULL,
  `primary_phone` 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,
  `account_status` tinyint(4) NOT NULL,
  `date_joined` datetime NOT NULL,
  `company_notes` text NOT NULL,
  `billing_same_comp_address` tinyint(4) NOT NULL DEFAULT 0,
  `billing_address_line_1` varchar(512) NOT NULL,
  `billing_address_line_2` varchar(512) NOT NULL,
  `billing_address_line_3` varchar(512) NOT NULL,
  `billing_address_line_4` varchar(256) NOT NULL,
  `billing_town` varchar(256) NOT NULL,
  `billing_county` varchar(25) NOT NULL,
  `billing_postcode` varchar(25) NOT NULL,
  `billing_country` varchar(25) NOT NULL,
  `is_archive` tinyint(4) NOT NULL DEFAULT 0,
  `archived_on` datetime DEFAULT NULL,
  `archived_by` int(11) DEFAULT 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,
  PRIMARY KEY (`id`),
  KEY `id` (`id`),
  KEY `company_name` (`company_name`),
  KEY `is_archive` (`is_archive`),
  KEY `postcode` (`postcode`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `comp_company_details`
--

INSERT INTO `comp_company_details` (`id`, `company_name`, `main_contact_name`, `primary_email`, `primary_phone`, `address_line_1`, `address_line_2`, `town`, `county`, `postcode`, `country`, `account_status`, `date_joined`, `company_notes`, `billing_same_comp_address`, `billing_address_line_1`, `billing_address_line_2`, `billing_address_line_3`, `billing_address_line_4`, `billing_town`, `billing_county`, `billing_postcode`, `billing_country`, `is_archive`, `archived_on`, `archived_by`, `created_on`, `created_by`, `updated_on`, `updated_by`) VALUES
(1, 'Abd Comp', 'Abd', 'WALL_NSohETIkXCJcIiphOyU4', 'WALL_Y3B8ZWB/cnl1fw==', 'add 1', 'add 2', 'Alld', '', '211003', 'Albania', 1, '2026-03-25 00:00:00', 'notes...', 0, '', '', '', '', '', '', '', '', 0, NULL, NULL, '2026-03-24 14:18:21', 1, '2026-03-26 10:55:04', 1),
(2, 'other', 'testing', 'WALL_OzwtNFwnCSQmXCcmNGQ2XCI9', 'WALL_Y3B8ZWB/cnl1fw==', 'addd', '', 'aaaa', '', '211004', '', 0, '2026-04-01 00:00:00', '', 0, '', '', '', '', '', '', '', '', 0, NULL, NULL, '2026-04-01 15:08:53', 1, '2026-04-01 15:08:53', 1);
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 */;
