-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 02, 2026 at 05:39 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 `sit_site_details_history`
--

CREATE TABLE IF NOT EXISTS `sit_site_details_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `site_contact_id` int(11) NOT NULL,
  `site_name` varchar(512) NOT NULL,
  `contact_name` varchar(256) NOT NULL,
  `client_status` int(11) NOT NULL,
  `emergency_client_name` varchar(512) NOT NULL,
  `emergency_client_number` varchar(50) NOT NULL,
  `conflict_check_completed` tinyint(4) NOT NULL,
  `conflict_check_date` datetime NOT NULL,
  `date_created` datetime NOT NULL,
  `client_notes` text 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,
  `action_type` varchar(255) NOT NULL,
  `history_created_by` int(11) NOT NULL,
  `history_created_on` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `id` (`id`),
  KEY `site_contact_id` (`site_contact_id`),
  KEY `site_name` (`site_name`),
  KEY `is_archive` (`is_archive`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `sit_site_details_history`
--

INSERT INTO `sit_site_details_history` (`id`, `site_contact_id`, `site_name`, `contact_name`, `client_status`, `emergency_client_name`, `emergency_client_number`, `conflict_check_completed`, `conflict_check_date`, `date_created`, `client_notes`, `is_archive`, `archived_on`, `archived_by`, `created_on`, `created_by`, `updated_on`, `updated_by`, `action_type`, `history_created_by`, `history_created_on`) VALUES
(1, 1, '1', 'conatct name', 1, 'client name', '7894561230', 1, '2026-04-02 00:00:00', '2026-04-02 00:00:00', 'testing', 0, NULL, NULL, '2026-04-02 10:09:27', 1, '2026-04-02 10:13:25', 1, 'UPDATE', 1, '2026-04-02 10:17:49');
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 */;
