📂 FileMgr
📍
/home/u625410797/domains/monothailand.com/public_html/database
✏️ Edit File: /home/u625410797/domains/monothailand.com/public_html/database/monothailand.sql
⬅ Kembali
-- phpMyAdmin SQL Dump -- version 5.2.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 19, 2026 at 05:20 PM -- Server version: 10.4.32-MariaDB -- PHP Version: 8.0.30 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: `monothailand` -- -- -------------------------------------------------------- -- -- Table structure for table `about_sections` -- CREATE TABLE `about_sections` ( `id` int(10) UNSIGNED NOT NULL, `page_slug` varchar(100) NOT NULL DEFAULT 'home', `section_name` varchar(100) NOT NULL DEFAULT 'main', `title` varchar(500) DEFAULT NULL, `subtitle` text DEFAULT NULL, `description` longtext DEFAULT NULL, `image` varchar(500) DEFAULT NULL, `services` text DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `about_sections` -- INSERT INTO `about_sections` (`id`, `page_slug`, `section_name`, `title`, `subtitle`, `description`, `image`, `services`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'home', 'main', 'Mono Electric Thailand', 'GET TO KNOW US BETTER', 'บริษัท โมโน อีเล็คทริค (ประเทศไทย) จำกัด ก่อตั้งขึ้นปี 2559 ดำเนินธุรกิจ เกี่ยวกับระบบ โซล่าเซลล์ ระบบจัดการพลังงาน\nระบบแสงสว่าง ระบบ home Automation ทั้งงานบ้าน งานเอกชน และงานราชการ โดยให้คำปรึกษา ออกแบบ\nเขียน TOR พัฒนางาน ทำการก่อสร้าง ติดตั้ง ปรับปรุง แก้ไข ซ่อมแซม รวมถึงการจำหน่ายสินค้า\n\nโดยมีทีมงานจากประสบการณ์ที่ลงงานจริงทุกขั้นตอน ตั้งแต่ สำรวจ การออกแบบ การติดตั้ง การทดสอบระบบ\nขออนุญาตหน่วยงานต่างๆ ทำให้เข้าใจเนื้องานทุกขั้นตอน เข้าใจถึงปัญหาและอุปสรรค ในการทำงานต่างๆ\n\nบริษัท โมโน อีเล็คทริค (ประเทศไทย) จำกัด จึงให้บริการแบบครบวงจร และมี Partner สินค้าที่มีเครื่องสำรอง\nใช้ระหว่างซ่อม ตลอดจนให้คำปรึกษาและแก้ไขปัญหาเบื้องต้นพร้อมบริการแบบ Onsite service', NULL, '[\"Consult & Design\", \"R&D\", \"System Integration\", \"Rental\", \"Maintenance/Repair\", \"Distributor\"]', 1, 1, '2026-05-12 17:40:04', '2026-05-12 17:40:04'); -- -------------------------------------------------------- -- -- Table structure for table `admin_permissions` -- CREATE TABLE `admin_permissions` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `permission` varchar(100) NOT NULL, `granted_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `admin_permissions` -- INSERT INTO `admin_permissions` (`id`, `user_id`, `permission`, `granted_at`) VALUES (1, 1, 'all', '2026-05-19 14:46:49'); -- -------------------------------------------------------- -- -- Table structure for table `admin_sessions` -- CREATE TABLE `admin_sessions` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `session_token` varchar(255) NOT NULL, `ip_address` varchar(45) DEFAULT NULL, `user_agent` text DEFAULT NULL, `expires_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `admin_users` -- CREATE TABLE `admin_users` ( `id` int(10) UNSIGNED NOT NULL, `username` varchar(50) NOT NULL, `email` varchar(255) NOT NULL, `password_hash` varchar(255) NOT NULL, `mfa_secret` varchar(100) DEFAULT NULL, `backup_codes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`backup_codes`)), `full_name` varchar(100) NOT NULL, `role` enum('superadmin','admin','editor') NOT NULL DEFAULT 'editor', `avatar` varchar(255) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `last_login` datetime DEFAULT NULL, `session_expires_at` datetime DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `login_attempts` int(11) DEFAULT 0, `locked_until` timestamp NULL DEFAULT NULL, `profile_image` varchar(500) DEFAULT NULL, `phone` varchar(50) DEFAULT NULL, `bio` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `admin_users` -- INSERT INTO `admin_users` (`id`, `username`, `email`, `password_hash`, `mfa_secret`, `backup_codes`, `full_name`, `role`, `avatar`, `is_active`, `last_login`, `session_expires_at`, `created_at`, `updated_at`, `login_attempts`, `locked_until`, `profile_image`, `phone`, `bio`) VALUES (1, 'monothailand', 'admin@monothailand.com', '$2y$12$TI7DOVouD.hTfOND59l5Beyjm4y5.ehAdXDacCou.24SyGJL3gJma', NULL, NULL, 'Administrator', 'superadmin', NULL, 1, '2026-05-19 19:54:53', NULL, '2026-05-11 12:54:34', '2026-05-19 19:54:53', 0, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `banners` -- CREATE TABLE `banners` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(255) DEFAULT NULL, `subtitle` varchar(500) DEFAULT NULL, `description` text DEFAULT NULL, `button1_text` varchar(100) DEFAULT NULL, `button1_link` varchar(500) DEFAULT NULL, `button2_text` varchar(100) DEFAULT NULL, `button2_link` varchar(500) DEFAULT NULL, `image` varchar(255) NOT NULL, `link` varchar(500) DEFAULT NULL, `sort_order` int(11) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `banners` -- INSERT INTO `banners` (`id`, `title`, `subtitle`, `description`, `button1_text`, `button1_link`, `button2_text`, `button2_link`, `image`, `link`, `sort_order`, `is_active`, `created_at`) VALUES (9, 'Smart Energy Solutions', 'ยกระดับธุรกิจด้วย ระบบพลังงานอัจฉริยะ', 'ระบบโซลาร์เซลล์ครบวงจร พร้อม IoT Monitoring และ Energy Management System ที่ออกแบบมาเพื่อธุรกิจของคุณ', 'ดูสินค้าทั้งหมด', '/products', 'ติดต่อเรา', '/contact', 'uploads/index/home-es-1.jpg', NULL, 1, 1, '2026-05-12 17:27:52'), (10, 'Smart Energy Solutions', 'ยกระดับธุรกิจด้วย ระบบพลังงานอัจฉริยะ', 'ระบบโซลาร์เซลล์ครบวงจร พร้อม IoT Monitoring และ Energy Management System ที่ออกแบบมาเพื่อธุรกิจของคุณ', 'ดูสินค้าทั้งหมด', '/products', 'ติดต่อเรา', '/contact', 'uploads/index/home-es-2.jpg', NULL, 2, 1, '2026-05-12 17:27:52'), (11, 'Smart Energy Solutions', 'ยกระดับธุรกิจด้วย ระบบพลังงานอัจฉริยะ', 'ระบบโซลาร์เซลล์ครบวงจร พร้อม IoT Monitoring และ Energy Management System ที่ออกแบบมาเพื่อธุรกิจของคุณ', 'ดูสินค้าทั้งหมด', '/products', 'ติดต่อเรา', '/contact', 'uploads/index/home-es-3.jpg', NULL, 3, 1, '2026-05-12 17:27:52'), (12, 'Smart Energy Solutions', 'ยกระดับธุรกิจด้วย ระบบพลังงานอัจฉริยะ', 'ระบบโซลาร์เซลล์ครบวงจร พร้อม IoT Monitoring และ Energy Management System ที่ออกแบบมาเพื่อธุรกิจของคุณ', 'ดูสินค้าทั้งหมด', '/products', 'ติดต่อเรา', '/contact', 'uploads/index/home-es-4.jpg', NULL, 4, 1, '2026-05-12 17:27:52'); -- -------------------------------------------------------- -- -- Table structure for table `branches` -- CREATE TABLE `branches` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(200) NOT NULL, `slug` varchar(255) NOT NULL, `branch_type` enum('head_office','branch','showroom','warehouse') NOT NULL DEFAULT 'branch', `address` text DEFAULT NULL, `phone` varchar(50) DEFAULT NULL, `email` varchar(150) DEFAULT NULL, `latitude` decimal(10,8) DEFAULT NULL, `longitude` decimal(11,8) DEFAULT NULL, `map_url` text DEFAULT NULL, `google_place_id` varchar(255) DEFAULT NULL, `image` varchar(255) DEFAULT NULL, `working_hours` text DEFAULT NULL, `is_main` tinyint(1) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `branches` -- INSERT INTO `branches` (`id`, `name`, `slug`, `branch_type`, `address`, `phone`, `email`, `latitude`, `longitude`, `map_url`, `google_place_id`, `image`, `working_hours`, `is_main`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'สำนักงานใหญ่', 'head-office', 'head_office', '123 ถนนสุขุมวิท แขวงคลองเตย เขตคลองเตย กรุงเทพฯ 10110', '02-123-4567', 'info@monothailand.com', 13.72670000, 100.77300000, NULL, NULL, NULL, 'จันทร์ - ศุกร์: 08:30 - 17:30 | เสาร์: 09:00 - 12:00', 1, 1, 1, '2026-05-12 21:54:33', '2026-05-12 21:54:33'), (2, 'สาขาภาคเหนือ', 'north-branch', 'branch', '456 ถนนนิมมานรดี ตำบลศิลาปามามุข อำเภอเมือง เชียงใหม่ 50200', '053-123-4567', 'north@monothailand.com', 18.78830000, 98.98530000, NULL, NULL, NULL, 'จันทร์ - ศุกร์: 08:30 - 17:30', 0, 1, 2, '2026-05-12 21:54:33', '2026-05-12 21:54:33'), (3, 'สาขาภาคตะวันออก', 'east-branch', 'branch', '789 ถนนบายนาดี ตำบลบางเมือง อำเภอเมือง ชลบุรี 20000', '038-123-4567', 'east@monothailand.com', 13.36110000, 100.98460000, NULL, NULL, NULL, 'จันทร์ - ศุกร์: 08:30 - 17:30', 0, 1, 3, '2026-05-12 21:54:33', '2026-05-12 21:54:33'), (4, 'สาขาภาคใต้', 'south-branch', 'branch', '321 ถนนรัษฎา ตำบลหาดใหญ่ อำเภอหาดใหญ่ สงขลา 90110', '074-123-4567', 'south@monothailand.com', 7.00860000, 100.47470000, NULL, NULL, NULL, 'จันทร์ - ศุกร์: 08:30 - 17:30', 0, 1, 4, '2026-05-12 21:54:33', '2026-05-12 21:54:33'), (5, 'โชว์รูม บางนา', 'showroom-bangna', 'showroom', '555 ถนนศรีนครินทร์ แขวงบางนา เขตบางนา กรุงเทพฯ 10260', '02-456-7890', 'showroom-bangna@monothailand.com', 13.67200000, 100.73500000, NULL, NULL, NULL, 'จันทร์ - อาทิตย์: 10:00 - 19:00', 0, 1, 5, '2026-05-12 21:54:33', '2026-05-12 21:54:33'), (6, 'โชว์รูม รังสิต', 'showroom-rangsit', 'showroom', '777 ถนนพหลโยธิน แขวงจตุจักร เขตจตุจักร กรุงเทพฯ 10900', '02-789-0123', 'showroom-rangsit@monothailand.com', 13.99560000, 100.62650000, NULL, NULL, NULL, 'จันทร์ - อาทิตย์: 10:00 - 19:00', 0, 1, 6, '2026-05-12 21:54:33', '2026-05-12 21:54:33'); -- -------------------------------------------------------- -- -- Table structure for table `brands` -- CREATE TABLE `brands` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(100) NOT NULL, `slug` varchar(120) NOT NULL, `logo` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cart_items` -- CREATE TABLE `cart_items` ( `id` int(10) UNSIGNED NOT NULL, `session_id` varchar(128) NOT NULL, `customer_id` int(10) UNSIGNED DEFAULT NULL, `product_id` int(10) UNSIGNED NOT NULL, `quantity` int(10) UNSIGNED NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `cart_items` -- INSERT INTO `cart_items` (`id`, `session_id`, `customer_id`, `product_id`, `quantity`, `created_at`, `updated_at`) VALUES (3, '4d6qvs39cus0o42mm45imujf3q', NULL, 1, 1, '2026-05-12 21:13:28', '2026-05-12 21:13:28'), (4, 'oblegohs5gp2j4ug8ra5r7kgrj', NULL, 1, 1, '2026-05-12 21:13:56', '2026-05-12 21:13:56'), (5, 'diqt9sj0h4r5dj49edb5bifcie', NULL, 2, 1, '2026-05-12 21:14:06', '2026-05-12 21:14:06'), (6, 'da3siks3nkebrh509a4kgisltt', NULL, 1, 1, '2026-05-12 21:18:06', '2026-05-12 21:18:06'), (7, 'hq86bljrtshjcdbn99063gjcqt', NULL, 1, 1, '2026-05-12 21:19:51', '2026-05-12 21:19:51'), (8, 'v2sf8fk4qhk4gn1lsoptlqa1nr', NULL, 1, 1, '2026-05-12 21:19:52', '2026-05-12 21:19:52'), (9, '0d4aajvhst4ks6hsa6f1dahmmg', NULL, 1, 1, '2026-05-12 21:19:54', '2026-05-12 21:19:54'), (10, '20plmbfoqgiffeo2t18n2lugv4', NULL, 1, 1, '2026-05-12 21:20:38', '2026-05-12 21:20:38'), (11, '6pa3qfvvvsg4hlno9a0jncjrlj', NULL, 1, 1, '2026-05-12 21:20:40', '2026-05-12 21:20:40'), (12, 'n3vua810i3srribifjr6iu9s8c', NULL, 1, 1, '2026-05-12 21:20:41', '2026-05-12 21:20:41'), (13, '6u4760c2fijhon00a3e67veb6k', NULL, 3, 1, '2026-05-12 21:21:26', '2026-05-12 21:21:26'), (14, '96v4bki9k4o7m555fqu6hbfl8c', NULL, 1, 1, '2026-05-12 21:22:43', '2026-05-12 21:22:43'), (15, 'n8h29g1p3qr5jav35dj44kp7it', NULL, 1, 1, '2026-05-12 21:22:43', '2026-05-12 21:22:43'), (16, 'gmfmhbav0enl3p9o8j0cjhn4ti', NULL, 1, 1, '2026-05-12 21:22:44', '2026-05-12 21:22:44'), (17, 'katgdgvucn7ssellqg229i4rl2', NULL, 1, 1, '2026-05-12 21:22:44', '2026-05-12 21:22:44'), (18, '9r98t0e8drc5fr4uqtpna6935j', NULL, 2, 1, '2026-05-12 21:24:25', '2026-05-12 21:24:25'), (19, '50o3me7as4be4hhg7net9sgt0p', NULL, 1, 1, '2026-05-12 21:25:10', '2026-05-12 21:25:10'), (20, '4jv91a84ecg1ca4fmg8va2hg41', NULL, 1, 1, '2026-05-12 21:25:12', '2026-05-12 21:25:12'), (21, 's8uscs7d51andiu19mq5tju77g', NULL, 1, 1, '2026-05-12 21:25:12', '2026-05-12 21:25:12'), (22, 'l48g5lb2aljln19i7f21bmkptg', NULL, 1, 1, '2026-05-12 21:25:13', '2026-05-12 21:25:13'), (23, '4oudamku47vuu0ueksf33lsnbt', NULL, 2, 1, '2026-05-12 21:25:41', '2026-05-12 21:25:41'), (24, 'ntge1vb6loesk0941clcm04871', NULL, 2, 1, '2026-05-12 21:25:43', '2026-05-12 21:25:43'), (25, 'gv1penramfip14ivq3fac90t6n', NULL, 2, 1, '2026-05-12 21:25:43', '2026-05-12 21:25:43'), (26, 'e9kf2c7dkp8t7q5bb54uphgtva', NULL, 2, 1, '2026-05-12 21:25:44', '2026-05-12 21:25:44'), (27, 's2jvgm9shs4dv1kddl3e582sp6', NULL, 1, 1, '2026-05-12 21:26:53', '2026-05-12 21:26:53'), (28, 'n25k3is9mldlmqoilm8bso7c4a', NULL, 1, 1, '2026-05-12 21:26:54', '2026-05-12 21:26:54'), (29, 'htb4pv9762p5m9742k1h4c9j7t', NULL, 2, 1, '2026-05-12 21:26:56', '2026-05-12 21:26:56'), (30, 'f5d8cb0nvml9kkkdn660dno86h', NULL, 2, 1, '2026-05-12 21:28:26', '2026-05-12 21:28:26'), (31, 'iu75i93jjggi0g7lqamhdmo1h9', NULL, 2, 1, '2026-05-12 21:28:39', '2026-05-12 21:28:39'), (32, 'ub5s3cb4t37v6adlrgbl499uc9', NULL, 1, 1, '2026-05-12 21:37:40', '2026-05-12 21:37:40'), (33, 'rvcbsuuvuub0riebujtb2dbsc5', NULL, 1, 1, '2026-05-12 21:38:37', '2026-05-12 21:38:37'), (34, 'nj8pd8f9hhtd8davqa3783d055', NULL, 1, 1, '2026-05-12 21:38:39', '2026-05-12 21:38:39'), (35, 'q6vbq5ngrtneda0hq1q47vaan8', NULL, 2, 1, '2026-05-12 21:38:41', '2026-05-12 21:38:41'), (36, 'ljaq5s6j5qr34r19ank401vmt7', NULL, 3, 1, '2026-05-12 21:38:42', '2026-05-12 21:38:42'), (37, 'ee2lpok0q61hstoqsdprcj0j5i', NULL, 1, 1, '2026-05-12 21:40:01', '2026-05-12 21:40:01'), (38, 'du745oafctondp4ec7hautr0rt', NULL, 2, 1, '2026-05-12 21:40:07', '2026-05-12 21:40:07'), (39, 'ig8ilrmq5sh3aqqugmttuevd9q', NULL, 3, 1, '2026-05-12 21:40:40', '2026-05-12 21:40:40'), (40, 'cj8b3i3pft91tfo8rnc1co0ng1', NULL, 1, 1, '2026-05-12 21:40:45', '2026-05-12 21:40:45'); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(10) UNSIGNED NOT NULL, `parent_id` int(10) UNSIGNED DEFAULT NULL, `name` varchar(100) NOT NULL, `name_en` varchar(100) DEFAULT NULL, `slug` varchar(120) NOT NULL, `slug_en` varchar(100) DEFAULT NULL, `description` text DEFAULT NULL, `image` varchar(255) DEFAULT NULL, `sort_order` int(11) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `parent_id`, `name`, `name_en`, `slug`, `slug_en`, `description`, `image`, `sort_order`, `is_active`, `created_at`, `updated_at`) VALUES (1, NULL, 'แผงโซลาร์เซลล์', NULL, 'solar-panels', NULL, 'แผงโซลาร์เซลล์คุณภาพสูง หลากหลายรุ่น', NULL, 1, 1, '2026-05-11 12:54:34', '2026-05-11 12:54:34'), (2, NULL, 'อินเวอร์เตอร์', NULL, 'inverters', NULL, 'อินเวอร์เตอร์ระดับอุตสาหกรรมจากแบรนด์ชั้นนำ', NULL, 2, 1, '2026-05-11 12:54:34', '2026-05-11 12:54:34'), (3, NULL, 'แบตเตอรี่สำรอง', NULL, 'batteries', NULL, 'ระบบแบตเตอรี่สำรองพลังงาน', NULL, 3, 1, '2026-05-11 12:54:34', '2026-05-11 12:54:34'), (4, NULL, 'อุปกรณ์เสริม', NULL, 'accessories', NULL, 'อุปกรณ์เสริมและวัสดุการติดตั้ง', NULL, 4, 1, '2026-05-11 12:54:34', '2026-05-11 12:54:34'), (5, NULL, 'แพ็กเกจติดตั้ง', NULL, 'packages', NULL, 'แพ็กเกจติดตั้งระบบโซลาร์เซลล์ครบวงจร', NULL, 5, 1, '2026-05-11 12:54:34', '2026-05-11 12:54:34'), (6, NULL, 'ระบบ IoT & Smart Energy', NULL, 'iot-smart-energy', NULL, 'ระบบจัดการพลังงานอัจฉริยะ EcoTech', NULL, 6, 1, '2026-05-11 12:54:34', '2026-05-11 12:54:34'); -- -------------------------------------------------------- -- -- Table structure for table `contact_info` -- CREATE TABLE `contact_info` ( `id` int(10) UNSIGNED NOT NULL, `info_type` enum('phone','email','address','line','facebook','instagram','youtube','tiktok','map','other') NOT NULL, `label` varchar(100) NOT NULL, `value` text NOT NULL, `icon` varchar(50) DEFAULT NULL, `link` varchar(500) DEFAULT NULL, `location` enum('header','footer','contact_page','all') NOT NULL DEFAULT 'all', `show_header` tinyint(1) NOT NULL DEFAULT 0, `show_footer` tinyint(1) NOT NULL DEFAULT 0, `show_contact_page` tinyint(1) NOT NULL DEFAULT 1, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `contact_info` -- INSERT INTO `contact_info` (`id`, `info_type`, `label`, `value`, `icon`, `link`, `location`, `show_header`, `show_footer`, `show_contact_page`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'phone', 'โทรศัพท์', '02-0234188', 'Phone', NULL, 'all', 1, 1, 1, 1, 1, '2026-05-11 21:59:29', '2026-05-12 15:40:29'), (2, 'email', 'อีเมล', 'Sales@monothailand.com', 'Mail', NULL, 'all', 1, 1, 1, 1, 2, '2026-05-11 21:59:29', '2026-05-12 15:40:29'), (3, 'address', 'ที่อยู่', '95/23 Suwinthawong Rd., Minburi Subdistrict, Minburi district, Bangkok 10510', 'MapPin', NULL, 'all', 1, 1, 1, 1, 3, '2026-05-11 21:59:29', '2026-05-12 15:40:29'), (4, 'line', 'LINE', '@monothailand', 'MessageCircle', 'https://line.me/R/ti/p/@monothailand', 'all', 1, 1, 1, 1, 4, '2026-05-11 21:59:29', '2026-05-12 15:40:29'); -- -------------------------------------------------------- -- -- Table structure for table `contact_inquiries` -- CREATE TABLE `contact_inquiries` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(200) NOT NULL, `email` varchar(255) NOT NULL, `phone` varchar(20) DEFAULT NULL, `company` varchar(255) DEFAULT NULL, `subject` varchar(255) DEFAULT NULL, `message` text NOT NULL, `inquiry_type` enum('general','quote','engineer','support') NOT NULL DEFAULT 'general', `is_read` tinyint(1) NOT NULL DEFAULT 0, `admin_notes` text DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `address` varchar(255) DEFAULT NULL COMMENT 'Project address', `province` varchar(100) DEFAULT NULL COMMENT 'Province', `postal_code` varchar(10) DEFAULT NULL COMMENT 'Postal code', `project_type` enum('residential','commercial','industrial','agriculture','government','other') DEFAULT NULL COMMENT 'Type of project', `budget` enum('under_100k','100k_500k','500k_1m','1m_5m','over_5m') DEFAULT NULL COMMENT 'Estimated budget', `timeline` enum('immediately','1_month','3_months','6_months','over_6_months') DEFAULT NULL COMMENT 'Desired timeline', `attachments` text DEFAULT NULL COMMENT 'JSON array of attachment file paths' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `contact_inquiries` -- INSERT INTO `contact_inquiries` (`id`, `name`, `email`, `phone`, `company`, `subject`, `message`, `inquiry_type`, `is_read`, `admin_notes`, `created_at`, `address`, `province`, `postal_code`, `project_type`, `budget`, `timeline`, `attachments`) VALUES (1, 'Banyut Yanuwong', 'bawx60@gmail.com', '0957123617', '', 'ทดสอบ iooi', 'Test post', 'general', 0, NULL, '2026-05-12 14:15:04', '', '', '', '', '', '', '[\"/uploads/contact/1778570104636-beautiful-fall-nature-scenery-free-image.jpeg\"]'); -- -------------------------------------------------------- -- -- Table structure for table `coupons` -- CREATE TABLE `coupons` ( `id` int(10) UNSIGNED NOT NULL, `code` varchar(50) NOT NULL, `discount_type` enum('fixed','percentage') NOT NULL DEFAULT 'percentage', `discount_value` decimal(12,2) NOT NULL, `min_spend` decimal(12,2) DEFAULT 0.00, `start_date` datetime DEFAULT NULL, `end_date` datetime DEFAULT NULL, `usage_limit` int(11) DEFAULT NULL, `usage_count` int(11) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `excluded_categories` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Array of category IDs excluded from discount' CHECK (json_valid(`excluded_categories`)), `excluded_products` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Array of product IDs excluded from discount' CHECK (json_valid(`excluded_products`)), `max_discount_amount` decimal(10,2) DEFAULT NULL COMMENT 'Cap discount value' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cta_buttons` -- CREATE TABLE `cta_buttons` ( `id` int(10) UNSIGNED NOT NULL, `page_slug` varchar(100) NOT NULL, `section_name` varchar(100) DEFAULT NULL, `button_text` varchar(100) NOT NULL, `button_link` varchar(500) NOT NULL, `button_style` enum('primary','secondary','success','warning','danger','outline','light','dark') DEFAULT 'primary', `button_size` enum('sm','md','lg') DEFAULT 'md', `icon` varchar(50) DEFAULT NULL, `position` enum('header','footer','floating','section') DEFAULT 'section', `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `customers` -- CREATE TABLE `customers` ( `id` int(10) UNSIGNED NOT NULL, `email` varchar(255) NOT NULL, `password_hash` varchar(255) NOT NULL, `first_name` varchar(100) NOT NULL, `last_name` varchar(100) NOT NULL, `phone` varchar(20) DEFAULT NULL, `company` varchar(255) DEFAULT NULL, `address` text DEFAULT NULL, `province` varchar(100) DEFAULT NULL, `postal_code` varchar(10) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `documents` -- CREATE TABLE `documents` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(200) NOT NULL, `file_name` varchar(255) NOT NULL, `file_path` varchar(255) NOT NULL, `file_type` varchar(50) DEFAULT NULL, `file_extension` varchar(10) NOT NULL, `file_size` varchar(50) DEFAULT NULL, `category` varchar(100) DEFAULT 'brochure', `download_count` int(11) UNSIGNED NOT NULL DEFAULT 0, `uploaded_by` int(11) UNSIGNED DEFAULT NULL, `description` text DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `file_version` varchar(10) NOT NULL DEFAULT '1.0.0', `changelog_summary` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `documents` -- INSERT INTO `documents` (`id`, `title`, `file_name`, `file_path`, `file_type`, `file_extension`, `file_size`, `category`, `download_count`, `uploaded_by`, `description`, `is_active`, `sort_order`, `created_at`, `updated_at`, `file_version`, `changelog_summary`) VALUES (1, 'Product Manual - Solar Panel X100', 'solar-panel-x100-manual.pdf', 'uploads/documents/1778578769_21b86b7b.pdf', 'application/pdf', 'pdf', '2048576', 'manual', 0, NULL, 'Complete user manual for Solar Panel X100 series', 1, 0, '2026-05-12 16:35:23', '2026-05-17 13:25:03', '1.0.0', NULL), (2, 'Technical Specifications - Inverter Pro', 'inverter-pro-specs.pdf', 'uploads/documents/1778578807_1cc2fc44.pdf', 'application/pdf', 'pdf', '1024000', 'spec', 0, NULL, 'Technical specification sheet for Inverter Pro series', 1, 0, '2026-05-12 16:35:23', '2026-05-17 13:25:03', '1.0.0', NULL), (3, 'Product Brochure 2024', 'product-brochure-2024.pdf', 'uploads/documents/1778578769_21b86b7b.pdf', 'application/pdf', 'pdf', '5242880', 'brochure', 0, NULL, 'Complete product catalog and brochure for 2024', 1, 0, '2026-05-12 16:35:23', '2026-05-17 13:25:03', '1.0.0', NULL), (5, 'ออกแบบระบบ ESP32-S3 อัจฉริยะ', 'ออกแบบระบบ ESP32-S3 อัจฉริยะ.pdf', 'uploads/documents/1778578807_1cc2fc44.pdf', 'application/pdf', 'pdf', '116776', 'catalog', 0, NULL, '0', 1, 0, '2026-05-12 16:40:07', '2026-05-12 09:40:21', '1.0.0', NULL); -- -------------------------------------------------------- -- -- Table structure for table `entity_attributes` -- CREATE TABLE `entity_attributes` ( `id` int(10) UNSIGNED NOT NULL, `entity_type_id` int(10) UNSIGNED NOT NULL, `attribute_key` varchar(100) NOT NULL, `attribute_name` varchar(200) NOT NULL, `data_type` enum('string','text','number','boolean','date','json','image','select','multiselect') NOT NULL, `validation_rules` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Validation constraints' CHECK (json_valid(`validation_rules`)), `ui_config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Form field configuration' CHECK (json_valid(`ui_config`)), `is_required` tinyint(1) NOT NULL DEFAULT 0, `is_searchable` tinyint(1) NOT NULL DEFAULT 0, `is_filterable` tinyint(1) NOT NULL DEFAULT 0, `sort_order` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `entity_attribute_values` -- CREATE TABLE `entity_attribute_values` ( `id` bigint(20) UNSIGNED NOT NULL, `entity_id` int(10) UNSIGNED NOT NULL, `entity_type` varchar(100) NOT NULL, `attribute_id` int(10) UNSIGNED NOT NULL, `value_string` varchar(500) DEFAULT NULL, `value_text` longtext DEFAULT NULL, `value_number` decimal(20,6) DEFAULT NULL, `value_boolean` tinyint(1) DEFAULT NULL, `value_date` date DEFAULT NULL, `value_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`value_json`)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `entity_types` -- CREATE TABLE `entity_types` ( `id` int(10) UNSIGNED NOT NULL, `type_key` varchar(100) NOT NULL, `type_name` varchar(200) NOT NULL, `description` text DEFAULT NULL, `base_table` varchar(100) NOT NULL COMMENT 'products, services, projects', `attribute_schema` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Dynamic attribute definitions' CHECK (json_valid(`attribute_schema`)), `is_system` tinyint(1) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `expenses` -- CREATE TABLE `expenses` ( `id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `category` enum('Marketing','Rent','Utilities','Salaries','Other') DEFAULT 'Other', `amount` decimal(10,2) NOT NULL, `expense_date` date NOT NULL, `notes` text DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `faqs` -- CREATE TABLE `faqs` ( `id` int(10) UNSIGNED NOT NULL, `category` varchar(100) DEFAULT NULL, `question` varchar(500) NOT NULL, `answer` longtext NOT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `faqs` -- INSERT INTO `faqs` (`id`, `category`, `question`, `answer`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'การติดตั้ง', 'การติดตั้งโซลาร์เซลล์ต้องขออนุญาตอะไรบ้าง?', 'โดยปกติจะต้องมีการขออนุญาตขนานไฟกับการไฟฟ้า (MEA/PEA) และแจ้งจดกับ กกพ. ซึ่งทีมงานของเราจะดำเนินการให้ครบทุกขั้นตอนครับ', 1, 1, '2026-05-12 22:06:17', '2026-05-12 22:06:17'), (2, 'ข้อมูลผลิตภัณฑ์', 'แผงโซลาร์เซลล์มีอายุการใช้งานกี่ปี?', 'แผงโซลาร์เซลล์มาตรฐาน Tier-1 มีอายุการใช้งานเฉลี่ย 25-30 ปี โดยมีการรับประกันประสิทธิภาพการผลิตไฟฟ้าจากผู้ผลิต 25 ปีครับ', 1, 2, '2026-05-12 22:06:17', '2026-05-12 22:06:17'), (3, 'การดูแลรักษา', 'ต้องทำความสะอาดแผงโซลาร์เซลล์บ่อยแค่ไหน?', 'แนะนำให้ทำความสะอาดแผงอย่างน้อยปีละ 1-2 ครั้ง หรือขึ้นอยู่กับสภาพแวดล้อม เช่น มีฝุ่นเยอะหรือมูลนก เพื่อให้แผงทำงานได้เต็มประสิทธิภาพที่สุดครับ', 1, 3, '2026-05-12 22:06:17', '2026-05-12 22:06:17'), (4, 'Ó©ùÓ©▒Ó╣êÓ©ºÓ╣äÓ©ø', 'Ó©úÓ©░Ó©ÜÓ©ÜÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣îÓ©äÓ©ÀÓ©¡Ó©¡Ó©░Ó╣äÓ©ú?', 'Ó©úÓ©░Ó©ÜÓ©ÜÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣îÓ©äÓ©ÀÓ©¡Ó©úÓ©░Ó©ÜÓ©ÜÓ©ùÓ©ÁÓ╣êÓ╣üÓ©øÓ©ÑÓ©çÓ©×Ó©ÑÓ©▒Ó©çÓ©çÓ©▓Ó©ÖÓ╣üÓ©¬Ó©çÓ©¡Ó©▓Ó©ùÓ©┤Ó©òÓ©óÓ╣îÓ╣âÓ©½Ó╣ëÓ╣ÇÓ©øÓ╣çÓ©ÖÓ╣äÓ©ƒÓ©ƒÓ╣ëÓ©▓ Ó╣ÇÓ©×Ó©ÀÓ╣êÓ©¡Ó╣âÓ©èÓ╣ëÓ©çÓ©▓Ó©ÖÓ╣âÓ©ÖÓ©ÜÓ╣ëÓ©▓Ó©ÖÓ©½Ó©úÓ©ÀÓ©¡Ó©¬Ó©ûÓ©▓Ó©ÖÓ©øÓ©úÓ©░Ó©üÓ©¡Ó©ÜÓ©òÓ╣êÓ©▓Ó©çÓ╣å', 1, 1, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (5, 'Ó©ùÓ©▒Ó╣êÓ©ºÓ╣äÓ©ø', 'Ó©úÓ©░Ó©ÜÓ©ÜÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣îÓ©ùÓ©│Ó©çÓ©▓Ó©ÖÓ©¡Ó©óÓ╣êÓ©▓Ó©çÓ╣äÓ©ú?', 'Ó╣üÓ©£Ó©çÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣îÓ©êÓ©░Ó©öÓ©╣Ó©öÓ©ïÓ©▒Ó©ÜÓ©×Ó©ÑÓ©▒Ó©çÓ©çÓ©▓Ó©ÖÓ╣üÓ©¬Ó©çÓ©¡Ó©▓Ó©ùÓ©┤Ó©òÓ©óÓ╣î Ó╣üÓ©ÑÓ╣ëÓ©ºÓ╣üÓ©øÓ©ÑÓ©çÓ╣âÓ©½Ó╣ëÓ╣ÇÓ©øÓ╣çÓ©ÖÓ╣äÓ©ƒÓ©ƒÓ╣ëÓ©▓Ó©£Ó╣êÓ©▓Ó©ÖÓ©¡Ó©┤Ó©ÖÓ╣ÇÓ©ºÓ©¡Ó©úÓ╣îÓ╣ÇÓ©òÓ©¡Ó©úÓ╣î Ó╣äÓ©ƒÓ©ùÓ©ÁÓ╣êÓ╣äÓ©öÓ╣ëÓ©¬Ó©▓Ó©íÓ©▓Ó©úÓ©ûÓ╣âÓ©èÓ╣ëÓ©çÓ©▓Ó©ÖÓ╣äÓ©öÓ╣ëÓ©ùÓ©▒Ó©ÖÓ©ùÓ©ÁÓ©½Ó©úÓ©ÀÓ©¡Ó╣ÇÓ©üÓ╣çÓ©ÜÓ╣äÓ©ºÓ╣ëÓ╣âÓ©ÖÓ╣üÓ©ÜÓ©òÓ╣ÇÓ©òÓ©¡Ó©úÓ©ÁÓ╣ê', 1, 2, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (6, 'Ó©ùÓ©▒Ó╣êÓ©ºÓ╣äÓ©ø', 'Ó©òÓ©┤Ó©öÓ©òÓ©▒Ó╣ëÓ©çÓ©úÓ©░Ó©ÜÓ©ÜÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣îÓ©òÓ╣ëÓ©¡Ó©çÓ╣âÓ©èÓ╣ëÓ©×Ó©ÀÓ╣ëÓ©ÖÓ©ùÓ©ÁÓ╣êÓ╣ÇÓ©ùÓ╣êÓ©▓Ó╣äÓ©½Ó©úÓ╣ê?', 'Ó©éÓ©ÂÓ╣ëÓ©ÖÓ©¡Ó©óÓ©╣Ó╣êÓ©üÓ©▒Ó©ÜÓ©éÓ©ÖÓ©▓Ó©öÓ©úÓ©░Ó©ÜÓ©ÜÓ©ùÓ©ÁÓ╣êÓ©òÓ╣ëÓ©¡Ó©çÓ©üÓ©▓Ó©ú Ó╣éÓ©öÓ©óÓ©ùÓ©▒Ó╣êÓ©ºÓ╣äÓ©øÓ©òÓ╣ëÓ©¡Ó©çÓ©×Ó©ÀÓ╣ëÓ©ÖÓ©ùÓ©ÁÓ╣êÓ©½Ó©ÑÓ©▒Ó©çÓ©äÓ©▓Ó©ùÓ©ÁÓ╣êÓ╣äÓ©íÓ╣êÓ©íÓ©ÁÓ╣ÇÓ©çÓ©▓ Ó©øÓ©úÓ©░Ó©íÓ©▓Ó©ô 10-30 Ó©òÓ©ú.Ó©í. Ó©¬Ó©│Ó©½Ó©úÓ©▒Ó©ÜÓ©ÜÓ╣ëÓ©▓Ó©ÖÓ©ùÓ©▒Ó╣êÓ©ºÓ╣äÓ©ø', 1, 3, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (7, 'Ó©ùÓ©▒Ó╣êÓ©ºÓ╣äÓ©ø', 'Ó©úÓ©░Ó©ÜÓ©ÜÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣îÓ╣âÓ©èÓ╣ëÓ╣äÓ©öÓ╣ëÓ©üÓ©ÁÓ╣êÓ©øÓ©Á?', 'Ó©úÓ©░Ó©ÜÓ©ÜÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣îÓ©íÓ©ÁÓ©¡Ó©▓Ó©óÓ©©Ó©üÓ©▓Ó©úÓ╣âÓ©èÓ╣ëÓ©çÓ©▓Ó©ÖÓ©øÓ©úÓ©░Ó©íÓ©▓Ó©ô 25-30 Ó©øÓ©Á Ó╣éÓ©öÓ©óÓ╣üÓ©£Ó©çÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣îÓ©íÓ©▒Ó©üÓ©êÓ©░Ó©úÓ©▒Ó©ÜÓ©øÓ©úÓ©░Ó©üÓ©▒Ó©Ö 20-25 Ó©øÓ©Á', 1, 4, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (8, 'Ó©ùÓ©▒Ó╣êÓ©ºÓ╣äÓ©ø', 'Ó©ûÓ╣ëÓ©▓Ó╣äÓ©íÓ╣êÓ©íÓ©ÁÓ╣üÓ©¬Ó©çÓ©¡Ó©▓Ó©ùÓ©┤Ó©òÓ©óÓ╣îÓ©êÓ©░Ó╣âÓ©èÓ╣ëÓ╣äÓ©ƒÓ╣äÓ©öÓ╣ëÓ╣äÓ©½Ó©í?', 'Ó╣äÓ©öÓ╣ëÓ©äÓ©úÓ©▒Ó©Ü Ó©½Ó©▓Ó©üÓ©òÓ©┤Ó©öÓ©òÓ©▒Ó╣ëÓ©çÓ╣üÓ©ÜÓ©òÓ╣ÇÓ©òÓ©¡Ó©úÓ©ÁÓ╣êÓ©¬Ó©│Ó©úÓ©¡Ó©çÓ╣äÓ©ºÓ╣ë Ó©êÓ©░Ó©¬Ó©▓Ó©íÓ©▓Ó©úÓ©ûÓ╣âÓ©èÓ╣ëÓ╣äÓ©ƒÓ╣äÓ©öÓ╣ëÓ╣üÓ©íÓ╣ëÓ╣äÓ©íÓ╣êÓ©íÓ©ÁÓ╣üÓ©¬Ó©çÓ©¡Ó©▓Ó©ùÓ©┤Ó©òÓ©óÓ╣î', 1, 5, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (9, 'ทั่วไป', 'ระบบโซลาร์เซลล์คืออะไร?', 'ระบบโซลาร์เซลล์คือระบบที่แปลงพลังงานแสงอาทิตย์ให้เป็นไฟฟ้า เพื่อใช้งานในบ้านหรือสถานประกอบต่างๆ', 1, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (10, 'ทั่วไป', 'ระบบโซลาร์เซลล์ทำงานอย่างไร?', 'แผงโซลาร์เซลล์จะดูดซับพลังงานแสงอาทิตย์ แล้วแปลงให้เป็นไฟฟ้าผ่านอินเวอร์เตอร์ ไฟที่ได้สามารถใช้งานได้ทันทีหรือเก็บไว้ในแบตเตอรี่', 1, 2, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (11, 'ทั่วไป', 'ติดตั้งระบบโซลาร์เซลล์ต้องใช้พื้นที่เท่าไหร่?', 'ขึ้นอยู่กับขนาดระบบที่ต้องการ โดยทั่วไปต้องพื้นที่หลังคาที่ไม่มีเงา ประมาณ 10-30 ตร.ม. สำหรับบ้านทั่วไป', 1, 3, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (12, 'ทั่วไป', 'ระบบโซลาร์เซลล์ใช้ได้กี่ปี?', 'ระบบโซลาร์เซลล์มีอายุการใช้งานประมาณ 25-30 ปี โดยแผงโซลาร์เซลล์มักจะรับประกัน 20-25 ปี', 1, 4, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (13, 'ทั่วไป', 'ถ้าไม่มีแสงอาทิตย์จะใช้ไฟได้ไหม?', 'ได้ครับ หากติดตั้งแบตเตอรี่สำรองไว้ จะสามารถใช้ไฟได้แม้ไม่มีแสงอาทิตย์', 1, 5, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (14, 'ทั่วไป', 'ระบบโซลาร์เซลล์คืออะไร?', 'ระบบโซลาร์เซลล์คือระบบที่แปลงพลังงานแสงอาทิตย์ให้เป็นไฟฟ้า เพื่อใช้งานในบ้านหรือสถานประกอบต่างๆ', 1, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (15, 'ทั่วไป', 'ระบบโซลาร์เซลล์ทำงานอย่างไร?', 'แผงโซลาร์เซลล์จะดูดซับพลังงานแสงอาทิตย์ แล้วแปลงให้เป็นไฟฟ้าผ่านอินเวอร์เตอร์ ไฟที่ได้สามารถใช้งานได้ทันทีหรือเก็บไว้ในแบตเตอรี่', 1, 2, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (16, 'ทั่วไป', 'ติดตั้งระบบโซลาร์เซลล์ต้องใช้พื้นที่เท่าไหร่?', 'ขึ้นอยู่กับขนาดระบบที่ต้องการ โดยทั่วไปต้องพื้นที่หลังคาที่ไม่มีเงา ประมาณ 10-30 ตร.ม. สำหรับบ้านทั่วไป', 1, 3, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (17, 'ทั่วไป', 'ระบบโซลาร์เซลล์ใช้ได้กี่ปี?', 'ระบบโซลาร์เซลล์มีอายุการใช้งานประมาณ 25-30 ปี โดยแผงโซลาร์เซลล์มักจะรับประกัน 20-25 ปี', 1, 4, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (18, 'ทั่วไป', 'ถ้าไม่มีแสงอาทิตย์จะใช้ไฟได้ไหม?', 'ได้ครับ หากติดตั้งแบตเตอรี่สำรองไว้ จะสามารถใช้ไฟได้แม้ไม่มีแสงอาทิตย์', 1, 5, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (19, 'ทั่วไป', 'ระบบโซลาร์เซลล์คืออะไร?', 'ระบบโซลาร์เซลล์คือระบบที่แปลงพลังงานแสงอาทิตย์ให้เป็นไฟฟ้า เพื่อใช้งานในบ้านหรือสถานประกอบต่างๆ', 1, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (20, 'ทั่วไป', 'ระบบโซลาร์เซลล์ทำงานอย่างไร?', 'แผงโซลาร์เซลล์จะดูดซับพลังงานแสงอาทิตย์ แล้วแปลงให้เป็นไฟฟ้าผ่านอินเวอร์เตอร์ ไฟที่ได้สามารถใช้งานได้ทันทีหรือเก็บไว้ในแบตเตอรี่', 1, 2, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (21, 'ทั่วไป', 'ติดตั้งระบบโซลาร์เซลล์ต้องใช้พื้นที่เท่าไหร่?', 'ขึ้นอยู่กับขนาดระบบที่ต้องการ โดยทั่วไปต้องพื้นที่หลังคาที่ไม่มีเงา ประมาณ 10-30 ตร.ม. สำหรับบ้านทั่วไป', 1, 3, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (22, 'ทั่วไป', 'ระบบโซลาร์เซลล์ใช้ได้กี่ปี?', 'ระบบโซลาร์เซลล์มีอายุการใช้งานประมาณ 25-30 ปี โดยแผงโซลาร์เซลล์มักจะรับประกัน 20-25 ปี', 1, 4, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (23, 'ทั่วไป', 'ถ้าไม่มีแสงอาทิตย์จะใช้ไฟได้ไหม?', 'ได้ครับ หากติดตั้งแบตเตอรี่สำรองไว้ จะสามารถใช้ไฟได้แม้ไม่มีแสงอาทิตย์', 1, 5, '2026-05-19 21:47:02', '2026-05-19 21:47:02'); -- -------------------------------------------------------- -- -- Table structure for table `favorites` -- CREATE TABLE `favorites` ( `id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `customer_id` int(11) DEFAULT NULL, `session_id` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `favorites` -- INSERT INTO `favorites` (`id`, `product_id`, `customer_id`, `session_id`, `created_at`) VALUES (1, 1, NULL, 'test-session', '2026-05-12 16:07:11'); -- -------------------------------------------------------- -- -- Table structure for table `features` -- CREATE TABLE `features` ( `id` int(10) UNSIGNED NOT NULL, `page_slug` varchar(100) NOT NULL, `section_name` varchar(100) DEFAULT NULL, `title` varchar(255) NOT NULL, `description` text DEFAULT NULL, `icon` varchar(50) DEFAULT NULL, `image` varchar(500) DEFAULT NULL, `link` varchar(500) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `features` -- INSERT INTO `features` (`id`, `page_slug`, `section_name`, `title`, `description`, `icon`, `image`, `link`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'home', 'why_choose_us', 'สินค้าคุณภาพสูง', 'คัดสรรอุปกรณ์จากแบรนด์ชั้นนำระดับโลก มาตรฐาน Tier-1', 'Sun', NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (2, 'home', 'why_choose_us', 'รับประกัน 25 ปี', 'รับประกันแผงโซลาร์ 25 ปี อินเวอร์เตอร์ 5-10 ปี', 'Shield', NULL, NULL, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (3, 'home', 'why_choose_us', 'ระบบ IoT อัจฉริยะ', 'ติดตามการผลิตไฟฟ้าแบบ Real-time ผ่าน Smart Dashboard', 'Wifi', NULL, NULL, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (4, 'home', 'why_choose_us', 'ทีมวิศวกรมืออาชีพ', 'วิศวกรผู้เชี่ยวชาญ ประสบการณ์กว่า 10 ปี', 'Award', NULL, NULL, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (5, 'home', 'why_choose_us', 'บริการหลังการขาย', 'ดูแลระบบตลอดอายุการใช้งาน ซ่อมบำรุงรวดเร็ว', 'Headphones', NULL, NULL, 1, 5, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (6, 'home', 'why_choose_us', 'คืนทุนรวดเร็ว', 'ระบบคุ้มค่า คืนทุนภายใน 4-6 ปี ประหยัดค่าไฟสูงสุด 80%', 'BarChart3', NULL, NULL, 1, 6, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (7, 'about', 'why_choose_us', 'ทีมงานมืออาชีพ', 'มีประสบการณ์ลงงานจริงทุกขั้นตอน', NULL, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (8, 'about', 'why_choose_us', 'บริการครบวงจร', 'ตั้งแต่สำรวจ ออกแบบ ติดตั้ง ไปจนถึงดูแลรักษา', NULL, NULL, NULL, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (9, 'about', 'why_choose_us', 'Partner สินค้าคุณภาพ', 'มีเครื่องสำรองใช้ระหว่างซ่อม บริการ Onsite service', NULL, NULL, NULL, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (10, '', NULL, '??????????????????????????????????????????????????????', '??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????', 'award', NULL, NULL, 1, 1, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (11, '', NULL, '?????????????????????????????????????????????', '??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????', 'star', NULL, NULL, 1, 2, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (12, '', NULL, '??????????????????????????????????????????', '??????????????????????????????????????????????????????????????????????????????', 'dollar-sign', NULL, NULL, 1, 3, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (13, '', NULL, '???????????????????????????????????????', '????????????????????????????????????????????????????????????????????????????????????????????????????????????', 'check-circle', NULL, NULL, 1, 4, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (14, '', NULL, '?????????????????????????????????????????????', '????????????????????????????????????????????????????????????????????????????????????', 'shield', NULL, NULL, 1, 5, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (15, '', NULL, '??????????????????????????????', '?????????????????????????????????????????????????????????????????????????????????????????????', 'clock', NULL, NULL, 1, 6, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (16, '', NULL, 'Ó©ºÓ©┤Ó©¿Ó©ºÓ©üÓ©úÓ©£Ó©╣Ó╣ëÓ╣ÇÓ©èÓ©ÁÓ╣êÓ©óÓ©ºÓ©èÓ©▓Ó©ì', 'Ó©ùÓ©ÁÓ©íÓ©ºÓ©┤Ó©¿Ó©ºÓ©üÓ©úÓ©ùÓ©ÁÓ╣êÓ©íÓ©ÁÓ©øÓ©úÓ©░Ó©¬Ó©ÜÓ©üÓ©▓Ó©úÓ©ôÓ╣îÓ©¬Ó©╣Ó©çÓ╣âÓ©ÖÓ©üÓ©▓Ó©úÓ©òÓ©┤Ó©öÓ©òÓ©▒Ó╣ëÓ©çÓ©úÓ©░Ó©ÜÓ©ÜÓ╣éÓ©ïÓ©ÑÓ©▓Ó©úÓ╣îÓ╣ÇÓ©ïÓ©ÑÓ©ÑÓ╣î', 'award', NULL, NULL, 1, 1, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (17, '', NULL, 'Ó©¬Ó©┤Ó©ÖÓ©äÓ╣ëÓ©▓Ó©äÓ©©Ó©ôÓ©áÓ©▓Ó©×Ó©¬Ó©╣Ó©ç', 'Ó╣âÓ©èÓ╣ëÓ©¬Ó©┤Ó©ÖÓ©äÓ╣ëÓ©▓Ó©êÓ©▓Ó©üÓ©£Ó©╣Ó╣ëÓ©£Ó©ÑÓ©┤Ó©òÓ©èÓ©▒Ó╣ëÓ©ÖÓ©ÖÓ©│Ó©ùÓ©ÁÓ╣êÓ╣äÓ©öÓ╣ëÓ©íÓ©▓Ó©òÓ©úÓ©ÉÓ©▓Ó©ÖÓ©¬Ó©▓Ó©üÓ©Ñ', 'star', NULL, NULL, 1, 2, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (18, '', NULL, 'Ó©úÓ©▓Ó©äÓ©▓Ó╣üÓ©éÓ╣êÓ©çÓ©éÓ©▒Ó©ÖÓ╣äÓ©öÓ╣ë', 'Ó╣âÓ©½Ó╣ëÓ©úÓ©▓Ó©äÓ©▓Ó©ùÓ©ÁÓ╣êÓ╣üÓ©éÓ╣êÓ©çÓ©éÓ©▒Ó©ÖÓ╣äÓ©öÓ╣ëÓ╣âÓ©ÖÓ©òÓ©ÑÓ©▓Ó©ö', 'dollar-sign', NULL, NULL, 1, 3, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (19, '', NULL, 'Ó©ÜÓ©úÓ©┤Ó©üÓ©▓Ó©úÓ©äÓ©úÓ©ÜÓ©ºÓ©çÓ©êÓ©ú', 'Ó╣âÓ©½Ó╣ëÓ©ÜÓ©úÓ©┤Ó©üÓ©▓Ó©úÓ©òÓ©▒Ó╣ëÓ©çÓ╣üÓ©òÓ╣êÓ╣ÇÓ©úÓ©┤Ó╣êÓ©íÓ©êÓ©ÖÓ©ûÓ©ÂÓ©çÓ©½Ó©ÑÓ©▒Ó©çÓ©üÓ©▓Ó©úÓ©éÓ©▓Ó©ó', 'check-circle', NULL, NULL, 1, 4, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (20, '', NULL, 'Ó©úÓ©▒Ó©ÜÓ©øÓ©úÓ©░Ó©üÓ©▒Ó©ÖÓ©óÓ©▓Ó©ºÓ©ÖÓ©▓Ó©Ö', 'Ó©úÓ©▒Ó©ÜÓ©øÓ©úÓ©░Ó©üÓ©▒Ó©ÖÓ©¬Ó©┤Ó©ÖÓ©äÓ╣ëÓ©▓Ó╣üÓ©ÑÓ©░Ó©üÓ©▓Ó©úÓ©òÓ©┤Ó©öÓ©òÓ©▒Ó╣ëÓ©ç', 'shield', NULL, NULL, 1, 5, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (21, '', NULL, 'Ó©ÜÓ©úÓ©┤Ó©üÓ©▓Ó©úÓ©öÓ╣êÓ©ºÓ©Ö', 'Ó©òÓ©¡Ó©ÜÓ©¬Ó©ÖÓ©¡Ó©çÓ╣üÓ©ÑÓ©░Ó╣âÓ©½Ó╣ëÓ©ÜÓ©úÓ©┤Ó©üÓ©▓Ó©úÓ©¡Ó©óÓ╣êÓ©▓Ó©çÓ©úÓ©ºÓ©öÓ╣ÇÓ©úÓ╣çÓ©º', 'clock', NULL, NULL, 1, 6, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (22, '', NULL, 'วิศวกรผู้เชี่ยวชาญ', 'ทีมวิศวกรที่มีประสบการณ์สูงในการติดตั้งระบบโซลาร์เซลล์', 'award', NULL, NULL, 1, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (23, '', NULL, 'สินค้าคุณภาพสูง', 'ใช้สินค้าจากผู้ผลิตชั้นนำที่ได้มาตรฐานสากล', 'star', NULL, NULL, 1, 2, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (24, '', NULL, 'ราคาแข่งขันได้', 'ให้ราคาที่แข่งขันได้ในตลาด', 'dollar-sign', NULL, NULL, 1, 3, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (25, '', NULL, 'บริการครบวงจร', 'ให้บริการตั้งแต่เริ่มจนถึงหลังการขาย', 'check-circle', NULL, NULL, 1, 4, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (26, '', NULL, 'รับประกันยาวนาน', 'รับประกันสินค้าและการติดตั้ง', 'shield', NULL, NULL, 1, 5, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (27, '', NULL, 'บริการด่วน', 'ตอบสนองและให้บริการอย่างรวดเร็ว', 'clock', NULL, NULL, 1, 6, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (28, '', NULL, 'วิศวกรผู้เชี่ยวชาญ', 'ทีมวิศวกรที่มีประสบการณ์สูงในการติดตั้งระบบโซลาร์เซลล์', 'award', NULL, NULL, 1, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (29, '', NULL, 'สินค้าคุณภาพสูง', 'ใช้สินค้าจากผู้ผลิตชั้นนำที่ได้มาตรฐานสากล', 'star', NULL, NULL, 1, 2, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (30, '', NULL, 'ราคาแข่งขันได้', 'ให้ราคาที่แข่งขันได้ในตลาด', 'dollar-sign', NULL, NULL, 1, 3, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (31, '', NULL, 'บริการครบวงจร', 'ให้บริการตั้งแต่เริ่มจนถึงหลังการขาย', 'check-circle', NULL, NULL, 1, 4, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (32, '', NULL, 'รับประกันยาวนาน', 'รับประกันสินค้าและการติดตั้ง', 'shield', NULL, NULL, 1, 5, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (33, '', NULL, 'บริการด่วน', 'ตอบสนองและให้บริการอย่างรวดเร็ว', 'clock', NULL, NULL, 1, 6, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (34, '', NULL, 'วิศวกรผู้เชี่ยวชาญ', 'ทีมวิศวกรที่มีประสบการณ์สูงในการติดตั้งระบบโซลาร์เซลล์', 'award', NULL, NULL, 1, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (35, '', NULL, 'สินค้าคุณภาพสูง', 'ใช้สินค้าจากผู้ผลิตชั้นนำที่ได้มาตรฐานสากล', 'star', NULL, NULL, 1, 2, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (36, '', NULL, 'ราคาแข่งขันได้', 'ให้ราคาที่แข่งขันได้ในตลาด', 'dollar-sign', NULL, NULL, 1, 3, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (37, '', NULL, 'บริการครบวงจร', 'ให้บริการตั้งแต่เริ่มจนถึงหลังการขาย', 'check-circle', NULL, NULL, 1, 4, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (38, '', NULL, 'รับประกันยาวนาน', 'รับประกันสินค้าและการติดตั้ง', 'shield', NULL, NULL, 1, 5, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (39, '', NULL, 'บริการด่วน', 'ตอบสนองและให้บริการอย่างรวดเร็ว', 'clock', NULL, NULL, 1, 6, '2026-05-19 21:47:02', '2026-05-19 21:47:02'); -- -------------------------------------------------------- -- -- Table structure for table `feature_flags` -- CREATE TABLE `feature_flags` ( `id` int(11) NOT NULL, `flag_key` varchar(100) NOT NULL, `flag_label` varchar(255) NOT NULL, `description` text DEFAULT NULL, `is_enabled` tinyint(1) DEFAULT 0, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `feature_flags` -- INSERT INTO `feature_flags` (`id`, `flag_key`, `flag_label`, `description`, `is_enabled`, `created_at`, `updated_at`) VALUES (1, 'enable_cart', 'Enable Shopping Cart', 'Enable shopping cart functionality', 1, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (2, 'enable_checkout', 'Enable Checkout', 'Enable checkout process', 1, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (3, 'enable_solar_calculator', 'Enable Solar Calculator', 'Enable solar system calculator', 1, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (4, 'enable_live_chat', 'Enable Live Chat', 'Enable live chat support', 0, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (5, 'enable_reviews', 'Enable Reviews', 'Enable product reviews', 0, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (6, 'enable_wishlist', 'Enable Wishlist', 'Enable wishlist functionality', 0, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (7, 'enable_compare', 'Enable Compare', 'Enable product comparison', 0, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (8, 'enable_multi_currency', 'Enable Multi-Currency', 'Enable multiple currency support', 0, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (9, 'enable_multi_language', 'Enable Multi-Language', 'Enable multiple language support', 0, '2026-05-19 14:46:09', '2026-05-19 14:46:09'); -- -------------------------------------------------------- -- -- Table structure for table `hero_sections` -- CREATE TABLE `hero_sections` ( `id` int(10) UNSIGNED NOT NULL, `page_slug` varchar(100) NOT NULL, `section_name` varchar(100) NOT NULL, `title` varchar(500) DEFAULT NULL, `subtitle` text DEFAULT NULL, `description` text DEFAULT NULL, `button1_text` varchar(100) DEFAULT NULL, `button1_link` varchar(500) DEFAULT NULL, `button1_style` enum('primary','secondary','outline') DEFAULT 'primary', `button2_text` varchar(100) DEFAULT NULL, `button2_link` varchar(500) DEFAULT NULL, `button2_style` enum('primary','secondary','outline') DEFAULT 'secondary', `background_type` enum('image','color','gradient','video') DEFAULT 'image', `background_image` varchar(500) DEFAULT NULL, `background_color` varchar(50) DEFAULT NULL, `background_gradient` varchar(200) DEFAULT NULL, `background_video` varchar(500) DEFAULT NULL, `overlay_color` varchar(50) DEFAULT NULL, `overlay_opacity` decimal(3,2) DEFAULT 0.50, `badge_text` varchar(200) DEFAULT NULL, `badge_icon` varchar(50) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `hero_sections` -- INSERT INTO `hero_sections` (`id`, `page_slug`, `section_name`, `title`, `subtitle`, `description`, `button1_text`, `button1_link`, `button1_style`, `button2_text`, `button2_link`, `button2_style`, `background_type`, `background_image`, `background_color`, `background_gradient`, `background_video`, `overlay_color`, `overlay_opacity`, `badge_text`, `badge_icon`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'home', 'main', 'ยกระดับธุรกิจด้วย\nระบบพลังงานอัจฉริยะ', NULL, 'ระบบโซลาร์เซลล์ครบวงจร พร้อม IoT Monitoring และ Energy Management System ที่ออกแบบมาเพื่อธุรกิจของคุณ', 'ดูสินค้าทั้งหมด', '/products', 'primary', 'ติดต่อเรา', '/contact', 'secondary', 'image', '/assets/img/index/home-es-1.jpg', NULL, NULL, NULL, NULL, 0.50, 'Smart Energy Solutions', 'Zap', 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (2, 'about', 'main', 'About Us Test', '', 'Mono Electric Thailand - ผู้เชี่ยวชาญด้านพลังงานสะอาด', '', '', 'primary', '', '', 'secondary', 'gradient', '', '#1e293b', NULL, NULL, NULL, 0.50, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-19 10:12:32'), (3, 'services', 'main', 'บริการของเรา', NULL, 'ครบจบในที่เดียว ตั้งแต่สำรวจ ออกแบบ ติดตั้ง ไปจนถึงดูแลระบบตลอดอายุการใช้งาน', NULL, NULL, 'primary', NULL, NULL, 'secondary', 'gradient', NULL, NULL, NULL, NULL, NULL, 0.50, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (4, 'contact', 'main', 'ติดต่อเรา', NULL, 'พร้อมช่วยเหลือและให้คำปรึกษาทุกเรื่องเกี่ยวกับพลังงานสะอาด', NULL, NULL, 'primary', NULL, NULL, 'secondary', 'gradient', NULL, NULL, NULL, NULL, NULL, 0.50, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (5, 'knowledge', 'main', 'ศูนย์ความรู้', NULL, 'บทความและคู่มือเกี่ยวกับโซลาร์เซลล์ พลังงานสะอาด และระบบจัดการพลังงานอัจฉริยะ', NULL, NULL, 'primary', NULL, NULL, 'secondary', 'gradient', NULL, NULL, NULL, NULL, NULL, 0.50, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (6, 'case-studies', 'main', 'ผลงานติดตั้ง', NULL, 'ตัวอย่างโครงการที่เราดำเนินการ ทั้งโรงงาน อาคารพาณิชย์ และที่พักอาศัย', NULL, NULL, 'primary', NULL, NULL, 'secondary', 'gradient', NULL, NULL, NULL, NULL, NULL, 0.50, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (7, 'solution', 'main', 'Smart Solutions', NULL, 'โซลูชันอัจฉริยะสำหรับพลังงานและ IoT', NULL, NULL, 'primary', NULL, NULL, 'secondary', 'gradient', NULL, NULL, NULL, NULL, NULL, 0.50, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'); -- -------------------------------------------------------- -- -- Table structure for table `image_gallery` -- CREATE TABLE `image_gallery` ( `id` int(10) UNSIGNED NOT NULL, `gallery_name` varchar(100) NOT NULL, `image_path` varchar(500) NOT NULL, `alt_text` varchar(255) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `link` varchar(500) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `image_gallery` -- INSERT INTO `image_gallery` (`id`, `gallery_name`, `image_path`, `alt_text`, `title`, `description`, `link`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'general', '/uploads/gallery/1778576297602-2duo6m.png', NULL, NULL, NULL, NULL, 1, 0, '2026-05-12 15:58:17', '2026-05-12 15:58:17'), (2, 'projects', '/assets/img/portfolio/Project-01-1.jpg', NULL, 'โครงการโรงงานส.เจริญ เพลทติ้ง', 'ติดตั้งระบบโซลาร์เซลล์ 100 kW สำหรับโรงงานเพลทติ้ง', NULL, 1, 1, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (3, 'projects', '/assets/img/portfolio/Project-02-1.jpg', NULL, 'โครงการฟาราเทค', 'ติดตั้งระบบโซลาร์เซลล์ 50 kW สำหรับโรงงานอุตสาหกรรม', NULL, 1, 2, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (4, 'products', '/assets/img/index/home-es-1.jpg', NULL, 'แผงโซลาร์เซลล์ Tier-1', 'แผงโซลาร์เซลล์คุณภาพสูง มาตรฐาน Tier-1 รับประกัน 25 ปี', NULL, 1, 3, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (5, 'installation', '/assets/img/portfolio/Project-06-1.jpg', NULL, 'การติดตั้งที่บ้านเอกชน', 'การติดตั้งระบบโซลาร์เซลล์ 5 kW สำหรับบ้านเอกชน', NULL, 1, 4, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (6, 'team', '/assets/img/services/services-design.jpg', NULL, 'ทีมวิศวกร', 'ทีมวิศวกรผู้เชี่ยวชาญ พร้อมให้คำปรึกษาและออกแบบระบบ', NULL, 1, 5, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (7, 'events', '/assets/img/index/home-es-2.jpg', NULL, 'งานแสดงสินค้า', 'เข้าร่วมงานแสดงสินค้าพลังงานหมุนเวียน 2024', NULL, 1, 6, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (8, 'projects', '/assets/img/portfolio/Project-03-1.jpg', NULL, 'โครงการแสตนดาร์ด คาสติ้ง', 'ติดตั้งระบบโซลาร์เซลล์ 75 kW สำหรับโรงงานหล่อแม่พิมพ์', NULL, 1, 7, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (9, 'products', '/assets/img/index/home-es-3.jpg', NULL, 'อินเวอร์เตอร์ Huawei', 'อินเวอร์เตอร์ Huawei รุ่นล่าสุด ประสิทธิภาพสูง 98.6%', NULL, 1, 8, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (10, 'installation', '/assets/img/portfolio/Project-04-1.jpg', NULL, 'การติดตั้งบนหลังคาโรงงาน', 'การติดตั้งระบบโซลาร์เซลล์บนหลังคาโรงงานขนาดใหญ่', NULL, 1, 9, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (11, 'events', '/assets/img/index/home-es-4.jpg', NULL, 'อบรมเชิญประชุม', 'จัดอบรมเชิญประชุมเรื่องพลังงานหมุนเวียนให้ลูกค้า', NULL, 1, 10, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (12, 'projects', '/assets/img/portfolio/Project-05-1.jpg', NULL, 'โครงการสหกรณ์การบินไทย', 'ติดตั้งระบบโซลาร์เซลล์ 30 kW สำหรับสำนักงาน', NULL, 1, 11, '2026-05-12 21:56:23', '2026-05-12 21:56:23'), (13, 'products', '/assets/img/services/services-build.jpg', NULL, 'แบตเตอรี่ Lithium-ion', 'แบตเตอรี่ Lithium-ion คุณภาพสูง อายุการใช้งานยาวนาน', NULL, 1, 12, '2026-05-12 21:56:23', '2026-05-12 21:56:23'); -- -------------------------------------------------------- -- -- Table structure for table `inquiries` -- CREATE TABLE `inquiries` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) DEFAULT NULL, `phone` varchar(50) DEFAULT NULL, `subject` varchar(255) DEFAULT NULL, `message` text DEFAULT NULL, `type` varchar(50) DEFAULT 'general', `status` varchar(20) DEFAULT 'new', `created_at` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -- -------------------------------------------------------- -- -- Table structure for table `inquiry_proposals` -- CREATE TABLE `inquiry_proposals` ( `id` int(10) UNSIGNED NOT NULL, `inquiry_id` int(10) UNSIGNED NOT NULL, `solution_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'Link to predefined package', `custom_proposal_title` varchar(255) NOT NULL, `system_size_kw` float NOT NULL COMMENT 'Calculated capacity kw', `estimated_cost` decimal(12,2) NOT NULL, `payback_period_years` float NOT NULL, `pdf_datasheet_url` varchar(500) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `knowledge_articles` -- CREATE TABLE `knowledge_articles` ( `id` int(10) UNSIGNED NOT NULL, `category_id` int(10) UNSIGNED DEFAULT NULL, `title` varchar(255) NOT NULL, `slug` varchar(280) NOT NULL, `excerpt` text DEFAULT NULL, `content` longtext DEFAULT NULL, `featured_image` varchar(500) DEFAULT NULL, `author` varchar(100) DEFAULT NULL, `published_date` date DEFAULT NULL, `is_featured` tinyint(1) NOT NULL DEFAULT 0, `is_published` tinyint(1) NOT NULL DEFAULT 0, `view_count` int(10) UNSIGNED NOT NULL DEFAULT 0, `meta_title` varchar(255) DEFAULT NULL, `meta_description` varchar(500) DEFAULT NULL, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `knowledge_articles` -- INSERT INTO `knowledge_articles` (`id`, `category_id`, `title`, `slug`, `excerpt`, `content`, `featured_image`, `author`, `published_date`, `is_featured`, `is_published`, `view_count`, `meta_title`, `meta_description`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 1, '5 เหตุผลที่ควรติดตั้งโซลาร์เซลล์ในปี 2024', '5-reasons-solar-2024', '0', NULL, '/assets/img/index/home-es-1.jpg', NULL, '2024-01-15', 0, 1, 0, NULL, NULL, 0, '2026-05-12 22:03:05', '2026-05-12 22:03:05'), (2, 2, 'เปรียบเทียบแบตเตอรี่ LiFePO4 vs Lead-Acid', 'battery-comparison', '0', NULL, '/assets/img/index/home-es-2.jpg', NULL, '2024-01-10', 0, 1, 0, NULL, NULL, 0, '2026-05-12 22:03:05', '2026-05-12 22:03:05'), (3, 3, 'คำนวณขนาดระบบโซลาร์เซลล์ให้เหมาะกับบ้าน', 'solar-roi-calc', '0', NULL, '/assets/img/index/home-es-3.jpg', NULL, '2024-01-05', 0, 1, 0, NULL, NULL, 0, '2026-05-12 22:03:05', '2026-05-12 22:03:05'); -- -------------------------------------------------------- -- -- Table structure for table `knowledge_categories` -- CREATE TABLE `knowledge_categories` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(280) NOT NULL, `description` text DEFAULT NULL, `icon` varchar(50) DEFAULT NULL, `image` varchar(500) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `knowledge_categories` -- INSERT INTO `knowledge_categories` (`id`, `name`, `slug`, `description`, `icon`, `image`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'พื้นฐานโซลาร์เซลล์', 'solar-basics', 'เรียนรู้วิธีการทำงานของแผงโซลาร์เซลล์ และประโยชน์ของการใช้พลังงานแสงอาทิตย์', 'Zap', NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (2, 'แบตเตอรี่สำรอง', 'batteries', 'ข้อมูลเกี่ยวกับแบตเตอรี่ลิเธียม การเลือกขนาดที่เหมาะสม และการดูแลรักษา', 'Battery', NULL, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (3, 'ระบบ IoT และ Monitoring', 'iot-monitoring', 'เทคโนโลยี Smart Monitoring การติดตามการผลิตไฟฟ้าผ่านแอปพลิเคชัน', 'Wifi', NULL, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (4, 'ROI และการคำนวณ', 'roi-calculations', 'วิธีคำนวณผลตอบแทนการลงทุน และการประหยัดค่าไฟระยะยาว', 'TrendingUp', NULL, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (5, 'เทคนิคการติดตั้ง', 'installation-techniques', 'มาตรฐานการติดตั้ง การวางแผง และการเชื่อมต่อระบบ', 'Lightbulb', NULL, 1, 5, '2026-05-11 21:59:29', '2026-05-11 21:59:29'); -- -------------------------------------------------------- -- -- Table structure for table `map_locations` -- CREATE TABLE `map_locations` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(200) NOT NULL, `address` text DEFAULT NULL, `lat` decimal(10,8) DEFAULT NULL, `lng` decimal(11,8) DEFAULT NULL, `is_active` tinyint(1) DEFAULT 1, `sort_order` int(11) DEFAULT 0, `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `menus` -- CREATE TABLE `menus` ( `id` int(10) UNSIGNED NOT NULL, `parent_id` int(10) UNSIGNED DEFAULT NULL, `title` varchar(100) NOT NULL, `slug` varchar(100) NOT NULL, `url` varchar(255) DEFAULT NULL COMMENT 'External URL or null for internal page', `icon` varchar(50) DEFAULT NULL, `target` enum('_self','_blank') DEFAULT '_self', `sort_order` int(11) DEFAULT 0, `is_active` tinyint(1) DEFAULT 1, `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `menus` -- INSERT INTO `menus` (`id`, `parent_id`, `title`, `slug`, `url`, `icon`, `target`, `sort_order`, `is_active`, `created_at`, `updated_at`) VALUES (1, NULL, 'หน้าแรก', 'home', '/', 'home', '_self', 1, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (2, NULL, 'สินค้า', 'products', '/products', 'shopping-bag', '_self', 2, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (3, NULL, 'บริการ', 'services', '/services', 'tool', '_self', 3, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (4, NULL, 'ผลงาน', 'projects', '/projects', 'briefcase', '_self', 4, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (5, NULL, 'ความรู้', 'knowledge', '/knowledge', 'book', '_self', 5, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (6, NULL, 'ติดต่อเรา', 'contact', '/contact', 'mail', '_self', 6, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (7, NULL, 'หน้าแรก', 'home', '/', 'home', '_self', 1, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (8, NULL, 'สินค้า', 'products', '/products', 'shopping-bag', '_self', 2, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (9, NULL, 'บริการ', 'services', '/services', 'tool', '_self', 3, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (10, NULL, 'ผลงาน', 'projects', '/projects', 'briefcase', '_self', 4, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (11, NULL, 'ความรู้', 'knowledge', '/knowledge', 'book', '_self', 5, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (12, NULL, 'ติดต่อเรา', 'contact', '/contact', 'mail', '_self', 6, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (13, NULL, 'หน้าแรก', 'home', '/', 'home', '_self', 1, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (14, NULL, 'สินค้า', 'products', '/products', 'shopping-bag', '_self', 2, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (15, NULL, 'บริการ', 'services', '/services', 'tool', '_self', 3, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (16, NULL, 'ผลงาน', 'projects', '/projects', 'briefcase', '_self', 4, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (17, NULL, 'ความรู้', 'knowledge', '/knowledge', 'book', '_self', 5, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (18, NULL, 'ติดต่อเรา', 'contact', '/contact', 'mail', '_self', 6, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'); -- -------------------------------------------------------- -- -- Table structure for table `menu_groups` -- CREATE TABLE `menu_groups` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(100) NOT NULL, `slug` varchar(100) NOT NULL, `description` varchar(255) DEFAULT NULL, `location` varchar(50) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `menu_groups` -- INSERT INTO `menu_groups` (`id`, `name`, `slug`, `description`, `location`, `is_active`, `created_at`, `updated_at`) VALUES (1, 'Main Menu', 'main-menu', 'Ó╣ÇÓ©íÓ©ÖÓ©╣Ó©½Ó©ÑÓ©▒Ó©üÓ©öÓ╣ëÓ©▓Ó©ÖÓ©ÜÓ©Ö', 'header', 1, '2026-05-11 17:27:37', '2026-05-11 17:27:37'), (2, 'Footer Menu', 'footer-menu', 'Ó╣ÇÓ©íÓ©ÖÓ©╣Ó©öÓ╣ëÓ©▓Ó©ÖÓ©ÑÓ╣êÓ©▓Ó©ç', 'footer', 1, '2026-05-11 17:27:37', '2026-05-11 17:27:37'); -- -------------------------------------------------------- -- -- Table structure for table `menu_items` -- CREATE TABLE `menu_items` ( `id` int(10) UNSIGNED NOT NULL, `menu_group_id` int(10) UNSIGNED NOT NULL, `parent_id` int(10) UNSIGNED DEFAULT NULL, `title` varchar(255) NOT NULL, `url` varchar(500) DEFAULT NULL, `link_type` enum('internal','external','custom') NOT NULL DEFAULT 'internal', `page_id` int(10) UNSIGNED DEFAULT NULL, `icon` varchar(50) DEFAULT NULL, `target` enum('_self','_blank') NOT NULL DEFAULT '_self', `sort_order` int(11) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `menu_items` -- INSERT INTO `menu_items` (`id`, `menu_group_id`, `parent_id`, `title`, `url`, `link_type`, `page_id`, `icon`, `target`, `sort_order`, `is_active`, `created_at`, `updated_at`) VALUES (1, 1, NULL, 'หน้าแรก', '/', 'internal', NULL, 'home', '_self', 1, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (2, 1, NULL, 'สินค้า', '/products', 'internal', NULL, 'shopping-bag', '_self', 2, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (3, 1, NULL, 'บริการ', '/services', 'internal', NULL, 'tool', '_self', 3, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (4, 1, NULL, 'ผลงาน', '/case-studies', 'internal', NULL, 'briefcase', '_self', 4, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (5, 1, NULL, 'ความรู้', '/knowledge', 'internal', NULL, 'book', '_self', 5, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (6, 1, NULL, 'ติดต่อเรา', '/contact', 'internal', NULL, 'mail', '_self', 6, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (7, 1, NULL, 'แบรนด์', '/brands', 'internal', NULL, 'award', '_self', 7, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (8, 1, NULL, 'เอกสาร', '/documents', 'internal', NULL, 'file-text', '_self', 8, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (9, 1, NULL, 'วิดีโอ', '/videos', 'internal', NULL, 'play-circle', '_self', 9, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (10, 1, NULL, 'รีวิวลูกค้า', '/testimonials', 'internal', NULL, 'star', '_self', 10, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (11, 1, NULL, 'คำถามที่พบบ่อย', '/faq', 'internal', NULL, 'help-circle', '_self', 11, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (12, 1, NULL, 'สาขา', '/branches', 'internal', NULL, 'map-pin', '_self', 12, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (13, 2, NULL, 'เกี่ยวกับเรา', '/about', 'internal', NULL, NULL, '_self', 1, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (14, 2, NULL, 'บริการ', '/services', 'internal', NULL, NULL, '_self', 2, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (15, 2, NULL, 'ผลงาน', '/case-studies', 'internal', NULL, NULL, '_self', 3, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (16, 2, NULL, 'ความรู้', '/knowledge', 'internal', NULL, NULL, '_self', 4, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (17, 2, NULL, 'ติดต่อเรา', '/contact', 'internal', NULL, NULL, '_self', 5, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (18, 2, NULL, 'แบรนด์', '/brands', 'internal', NULL, NULL, '_self', 6, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (19, 2, NULL, 'เอกสาร', '/documents', 'internal', NULL, NULL, '_self', 7, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (20, 2, NULL, 'วิดีโอ', '/videos', 'internal', NULL, NULL, '_self', 8, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (21, 2, NULL, 'รีวิวลูกค้า', '/testimonials', 'internal', NULL, NULL, '_self', 9, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (22, 2, NULL, 'คำถามที่พบบ่อย', '/faq', 'internal', NULL, NULL, '_self', 10, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (23, 2, NULL, 'สาขา', '/branches', 'internal', NULL, NULL, '_self', 11, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'); -- -------------------------------------------------------- -- -- Table structure for table `navigation_items` -- CREATE TABLE `navigation_items` ( `id` int(10) UNSIGNED NOT NULL, `menu_id` int(10) UNSIGNED NOT NULL, `parent_id` int(10) UNSIGNED DEFAULT NULL, `title` varchar(255) NOT NULL, `url` varchar(500) NOT NULL, `slug` varchar(280) DEFAULT NULL, `linked_type` enum('category','product','page','custom') DEFAULT 'custom', `linked_id` int(10) UNSIGNED DEFAULT NULL, `icon` varchar(50) DEFAULT NULL, `target` enum('_self','_blank') DEFAULT '_self', `has_dropdown` tinyint(1) NOT NULL DEFAULT 0, `badge_text` varchar(50) DEFAULT NULL, `badge_color` varchar(20) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `navigation_items` -- INSERT INTO `navigation_items` (`id`, `menu_id`, `parent_id`, `title`, `url`, `slug`, `linked_type`, `linked_id`, `icon`, `target`, `has_dropdown`, `badge_text`, `badge_color`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 1, NULL, 'หน้าแรก', '/', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (2, 1, NULL, 'เกี่ยวกับเรา', '/about', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (3, 1, NULL, 'สินค้า', '/products', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (4, 1, NULL, 'Solution', '/solution', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (5, 1, NULL, 'บริการ', '/services', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 5, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (6, 1, NULL, 'PPA', '/ppa', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 6, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (7, 1, NULL, 'O&M', '/om', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 7, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (8, 1, NULL, 'โครงการ', '/project', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 8, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (9, 1, NULL, 'ติดต่อ', '/contact', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 9, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (10, 2, NULL, 'หน้าแรก', '/', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (11, 2, NULL, 'เกี่ยวกับเรา', '/about', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (12, 2, NULL, 'สินค้าทั้งหมด', '/products', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (13, 2, NULL, 'บริการของเรา', '/services', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (14, 2, NULL, 'โครงการ', '/project', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 5, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (15, 2, NULL, 'PPA', '/ppa', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 6, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (16, 2, NULL, 'O&M', '/om', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 7, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (17, 2, NULL, 'ติดต่อเรา', '/contact', NULL, 'custom', NULL, NULL, '_self', 0, NULL, NULL, 1, 8, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (18, 1, NULL, 'แผงโซลาร์เซลล์', '/category/solar-panels', 'solar-panels', 'category', 1, NULL, '_self', 0, NULL, NULL, 1, 0, '2026-05-12 14:46:06', '2026-05-12 14:46:06'), (19, 1, NULL, 'อินเวอร์เตอร์', '/category/inverters', 'inverters', 'category', 2, NULL, '_self', 0, NULL, NULL, 1, 0, '2026-05-12 14:46:06', '2026-05-12 14:46:06'), (20, 1, NULL, 'แบตเตอรี่สำรอง', '/category/batteries', 'batteries', 'category', 3, NULL, '_self', 0, NULL, NULL, 1, 0, '2026-05-12 14:46:06', '2026-05-12 14:46:06'), (21, 1, NULL, 'อุปกรณ์เสริม', '/category/accessories', 'accessories', 'category', 4, NULL, '_self', 0, NULL, NULL, 1, 0, '2026-05-12 14:46:06', '2026-05-12 14:46:06'), (22, 1, NULL, 'แพ็กเกจติดตั้ง', '/category/packages', 'packages', 'category', 5, NULL, '_self', 0, NULL, NULL, 1, 0, '2026-05-12 14:46:06', '2026-05-12 14:46:06'), (23, 1, NULL, 'ระบบ IoT & Smart Energy', '/category/iot-smart-energy', 'iot-smart-energy', 'category', 6, NULL, '_self', 0, NULL, NULL, 1, 0, '2026-05-12 14:46:06', '2026-05-12 14:46:06'), (24, 1, NULL, 'หน้าแรก', '/', '', 'custom', NULL, 'home', '_self', 0, NULL, NULL, 1, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (25, 1, NULL, 'สินค้า', '/products', '', 'custom', NULL, 'shopping-bag', '_self', 0, NULL, NULL, 1, 2, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (26, 1, NULL, 'บริการ', '/services', '', 'custom', NULL, 'tool', '_self', 0, NULL, NULL, 1, 3, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (27, 1, NULL, 'ผลงาน', '/case-studies', '', 'custom', NULL, 'briefcase', '_self', 0, NULL, NULL, 1, 4, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (28, 1, NULL, 'ความรู้', '/knowledge', '', 'custom', NULL, 'book', '_self', 0, NULL, NULL, 1, 5, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (29, 1, NULL, 'ติดต่อเรา', '/contact', '', 'custom', NULL, 'mail', '_self', 0, NULL, NULL, 1, 6, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (30, 1, NULL, 'หน้าแรก', '/', '', 'custom', NULL, 'home', '_self', 0, NULL, NULL, 1, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (31, 1, NULL, 'สินค้า', '/products', '', 'custom', NULL, 'shopping-bag', '_self', 0, NULL, NULL, 1, 2, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (32, 1, NULL, 'บริการ', '/services', '', 'custom', NULL, 'tool', '_self', 0, NULL, NULL, 1, 3, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (33, 1, NULL, 'ผลงาน', '/case-studies', '', 'custom', NULL, 'briefcase', '_self', 0, NULL, NULL, 1, 4, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (34, 1, NULL, 'ความรู้', '/knowledge', '', 'custom', NULL, 'book', '_self', 0, NULL, NULL, 1, 5, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (35, 1, NULL, 'ติดต่อเรา', '/contact', '', 'custom', NULL, 'mail', '_self', 0, NULL, NULL, 1, 6, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (36, 1, NULL, 'หน้าแรก', '/', '', 'custom', NULL, 'home', '_self', 0, NULL, NULL, 1, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (37, 1, NULL, 'สินค้า', '/products', '', 'custom', NULL, 'shopping-bag', '_self', 0, NULL, NULL, 1, 2, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (38, 1, NULL, 'บริการ', '/services', '', 'custom', NULL, 'tool', '_self', 0, NULL, NULL, 1, 3, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (39, 1, NULL, 'ผลงาน', '/case-studies', '', 'custom', NULL, 'briefcase', '_self', 0, NULL, NULL, 1, 4, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (40, 1, NULL, 'ความรู้', '/knowledge', '', 'custom', NULL, 'book', '_self', 0, NULL, NULL, 1, 5, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (41, 1, NULL, 'ติดต่อเรา', '/contact', '', 'custom', NULL, 'mail', '_self', 0, NULL, NULL, 1, 6, '2026-05-19 21:47:02', '2026-05-19 21:47:02'); -- -------------------------------------------------------- -- -- Table structure for table `navigation_menus` -- CREATE TABLE `navigation_menus` ( `id` int(10) UNSIGNED NOT NULL, `menu_name` varchar(100) NOT NULL, `menu_label` varchar(100) NOT NULL, `location` enum('header','footer','mobile','sidebar') NOT NULL DEFAULT 'header', `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `navigation_menus` -- INSERT INTO `navigation_menus` (`id`, `menu_name`, `menu_label`, `location`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'main', 'Main Navigation', 'header', 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (2, 'footer', 'Footer Links', 'footer', 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (3, 'mobile', 'Mobile Menu', 'mobile', 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (4, 'main_header', 'Main Header', 'header', 1, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (5, 'footer_menu', 'Footer Menu', 'footer', 1, 2, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (6, 'mobile_menu', 'Mobile Menu', 'mobile', 1, 3, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (7, 'main_header', 'Main Header', 'header', 1, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (8, 'footer_menu', 'Footer Menu', 'footer', 1, 2, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (9, 'mobile_menu', 'Mobile Menu', 'mobile', 1, 3, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (10, 'main_header', 'Main Header', 'header', 1, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (11, 'footer_menu', 'Footer Menu', 'footer', 1, 2, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (12, 'mobile_menu', 'Mobile Menu', 'mobile', 1, 3, '2026-05-19 21:47:02', '2026-05-19 21:47:02'); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `id` int(10) UNSIGNED NOT NULL, `order_number` varchar(20) NOT NULL, `customer_id` int(10) UNSIGNED DEFAULT NULL, `session_id` varchar(128) DEFAULT NULL, `status` enum('pending','confirmed','processing','shipped','delivered','cancelled') NOT NULL DEFAULT 'pending', `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00, `shipping_fee` decimal(12,2) NOT NULL DEFAULT 0.00, `discount` decimal(12,2) NOT NULL DEFAULT 0.00, `total` decimal(12,2) NOT NULL DEFAULT 0.00, `shipping_name` varchar(200) DEFAULT NULL, `shipping_phone` varchar(20) DEFAULT NULL, `shipping_address` text DEFAULT NULL, `shipping_province` varchar(100) DEFAULT NULL, `shipping_postal` varchar(10) DEFAULT NULL, `notes` text DEFAULT NULL, `payment_method` varchar(50) DEFAULT NULL, `payment_status` enum('pending','paid','refunded') NOT NULL DEFAULT 'pending', `tracking_number` varchar(100) DEFAULT NULL, `coupon_code` varchar(50) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `order_items` -- CREATE TABLE `order_items` ( `id` int(10) UNSIGNED NOT NULL, `order_id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED DEFAULT NULL, `product_name` varchar(255) NOT NULL, `product_sku` varchar(50) DEFAULT NULL, `price` decimal(12,2) NOT NULL, `cost_price` decimal(10,2) DEFAULT 0.00, `quantity` int(10) UNSIGNED NOT NULL DEFAULT 1, `subtotal` decimal(12,2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `pages` -- CREATE TABLE `pages` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(255) NOT NULL, `slug` varchar(280) NOT NULL, `content` longtext DEFAULT NULL, `featured_image` varchar(255) DEFAULT NULL, `page_type` enum('page','article','case_study') NOT NULL DEFAULT 'page', `is_published` tinyint(1) NOT NULL DEFAULT 0, `meta_title` varchar(255) DEFAULT NULL, `meta_description` varchar(500) DEFAULT NULL, `sort_order` int(11) NOT NULL DEFAULT 0, `created_by` int(10) UNSIGNED DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `pages` -- INSERT INTO `pages` (`id`, `title`, `slug`, `content`, `featured_image`, `page_type`, `is_published`, `meta_title`, `meta_description`, `sort_order`, `created_by`, `created_at`, `updated_at`) VALUES (1, 'Test Page', 'test-page-123', 'This is a test page content', NULL, 'page', 1, NULL, NULL, 0, NULL, '2026-05-12 15:07:59', '2026-05-12 15:07:59'), (2, 'เกี่ยวกับเรา', 'about', '{\n \"hero\": {\n \"title\": \"เกี่ยวกับเรา\",\n \"subtitle\": \"Mono Electric Thailand - ผู้เชี่ยวชาญด้านพลังงานสะอาด\"\n },\n \"content\": {\n \"image\": \"/assets/img/about1.png\",\n \"title\": \"บริษัท โมโน อีเล็คทริค (ประเทศไทย) จำกัด\",\n \"paragraphs\": [\n \"ก่อตั้งขึ้นปี 2559 ดำเนินธุรกิจเกี่ยวกับระบบโซล่าเซลล์ ระบบจัดการพลังงาน ระบบแสงสว่าง ระบบ Home Automation ทั้งงานบ้าน งานเอกชน และงานราชการ\",\n \"โดยให้คำปรึกษา ออกแบบ เขียน TOR พัฒนางาน ทำการก่อสร้าง ติดตั้ง ปรับปรุง แก้ไข ซ่อมแซม รวมถึงการจำหน่ายสินค้า\",\n \"มีทีมงานจากประสบการณ์ที่ลงงานจริงทุกขั้นตอน ตั้งแต่สำรวจ การออกแบบ การติดตั้ง การทดสอบระบบ ขออนุญาตหน่วยงานต่างๆ ทำให้เข้าใจเนื้องานทุกขั้นตอน เข้าใจถึงปัญหาและอุปสรรคในการทำงานต่างๆ\"\n ]\n },\n \"stats\": [\n { \"value\": \"500+\", \"label\": \"Clients\" },\n { \"value\": \"100+\", \"label\": \"Projects\" },\n { \"value\": \"24/7\", \"label\": \"Support\" },\n { \"value\": \"50+\", \"label\": \"Workers\" }\n ],\n \"features\": [\n { \"title\": \"ทีมงานมืออาชีพ\", \"desc\": \"มีประสบการณ์ลงงานจริงทุกขั้นตอน\" },\n { \"title\": \"บริการครบวงจร\", \"desc\": \"ตั้งแต่สำรวจ ออกแบบ ติดตั้ง ไปจนถึงดูแลรักษา\" },\n { \"title\": \"Partner สินค้าคุณภาพ\", \"desc\": \"มีเครื่องสำรองใช้ระหว่างซ่อม บริการ Onsite service\" }\n ]\n}', '/assets/img/about1.png', 'page', 1, 'เกี่ยวกับเรา - Mono Electric Thailand', 'เกี่ยวกับเรา Mono Electric Thailand ผู้เชี่ยวชาญด้านพลังงานสะอาด ระบบโซล่าเซลล์ ระบบจัดการพลังงาน', 0, 1, '2026-05-12 16:51:55', '2026-05-12 16:51:55'); -- -------------------------------------------------------- -- -- Table structure for table `page_instances` -- CREATE TABLE `page_instances` ( `id` int(10) UNSIGNED NOT NULL, `page_slug` varchar(280) NOT NULL, `title` varchar(255) NOT NULL, `template_key` varchar(100) NOT NULL, `blocks` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'Ordered array of block instances with data' CHECK (json_valid(`blocks`)), `layout_config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Page-level layout settings' CHECK (json_valid(`layout_config`)), `seo_config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'SEO settings' CHECK (json_valid(`seo_config`)), `status` enum('draft','published','scheduled','archived') NOT NULL DEFAULT 'draft', `published_at` datetime DEFAULT NULL, `view_count` int(10) UNSIGNED NOT NULL DEFAULT 0, `created_by` int(10) UNSIGNED DEFAULT NULL, `updated_by` int(10) UNSIGNED DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `page_revisions` -- CREATE TABLE `page_revisions` ( `id` int(10) UNSIGNED NOT NULL, `page_id` int(10) UNSIGNED NOT NULL, `title` varchar(255) NOT NULL, `content_blocks` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`content_blocks`)), `meta_title` varchar(255) DEFAULT NULL, `meta_description` text DEFAULT NULL, `created_by` int(10) UNSIGNED NOT NULL, `created_at` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `page_sections` -- CREATE TABLE `page_sections` ( `id` int(10) UNSIGNED NOT NULL, `page_slug` varchar(100) NOT NULL, `section_type` varchar(50) NOT NULL, `section_name` varchar(100) DEFAULT NULL, `title` varchar(500) DEFAULT NULL, `subtitle` text DEFAULT NULL, `content` longtext DEFAULT NULL, `images` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`images`)), `buttons` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`buttons`)), `background_type` enum('none','color','image','gradient') DEFAULT 'none', `background_value` varchar(500) DEFAULT NULL, `text_color` varchar(50) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `page_templates` -- CREATE TABLE `page_templates` ( `id` int(10) UNSIGNED NOT NULL, `template_key` varchar(100) NOT NULL, `template_name` varchar(200) NOT NULL, `description` text DEFAULT NULL, `default_blocks` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Array of default block types' CHECK (json_valid(`default_blocks`)), `allowed_blocks` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Array of permitted block types' CHECK (json_valid(`allowed_blocks`)), `is_system` tinyint(1) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `payment_transactions` -- CREATE TABLE `payment_transactions` ( `id` int(10) UNSIGNED NOT NULL, `order_id` int(10) UNSIGNED NOT NULL, `transaction_reference` varchar(100) NOT NULL COMMENT 'Gateway transaction ID', `payment_method` varchar(50) NOT NULL COMMENT 'Credit Card, PromptPay, Bank Transfer', `amount` decimal(12,2) NOT NULL, `currency` varchar(3) NOT NULL DEFAULT 'THB', `payment_status` enum('pending','authorized','captured','failed','refunded') NOT NULL DEFAULT 'pending', `gateway_response` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Raw gateway webhook callback response JSON' CHECK (json_valid(`gateway_response`)), `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` int(10) UNSIGNED NOT NULL, `category_id` int(10) UNSIGNED DEFAULT NULL, `brand_id` int(10) UNSIGNED DEFAULT NULL, `sku` varchar(50) DEFAULT NULL, `name` varchar(255) NOT NULL, `slug` varchar(280) NOT NULL, `short_description` varchar(500) DEFAULT NULL, `description` longtext DEFAULT NULL, `dynamic_attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Flexible product attributes' CHECK (json_valid(`dynamic_attributes`)), `config_options` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Variants, bundles' CHECK (json_valid(`config_options`)), `seo_schema` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Structured data for SEO' CHECK (json_valid(`seo_schema`)), `specifications` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`specifications`)), `price` decimal(12,2) NOT NULL DEFAULT 0.00, `compare_price` decimal(12,2) DEFAULT NULL, `cost_price` decimal(12,2) DEFAULT NULL, `stock_quantity` int(11) NOT NULL DEFAULT 0, `min_stock_level` int(11) NOT NULL DEFAULT 5, `stock_status` enum('in_stock','out_of_stock','preorder') NOT NULL DEFAULT 'in_stock', `main_image` varchar(255) DEFAULT NULL, `is_featured` tinyint(1) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `view_count` int(10) UNSIGNED NOT NULL DEFAULT 0, `meta_title` varchar(255) DEFAULT NULL, `meta_description` varchar(500) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `category_id`, `brand_id`, `sku`, `name`, `slug`, `short_description`, `description`, `dynamic_attributes`, `config_options`, `seo_schema`, `specifications`, `price`, `compare_price`, `cost_price`, `stock_quantity`, `min_stock_level`, `stock_status`, `main_image`, `is_featured`, `is_active`, `view_count`, `meta_title`, `meta_description`, `created_at`, `updated_at`) VALUES (1, 2, NULL, 'SUN-50K-SG01HP3-EU-BM4', 'Deye SUN-50K-SG01HP3-EU-BM4', 'sun-50k-sg01hp3-eu-bm4', 'อินเวอร์เตอร์ไฮบริด 50kW สำหรับระบบโซลาร์เซลล์ขนาดใหญ่', 'อินเวอร์เตอร์ไฮบริด 50kW รองรับระบบโซลาร์เซลล์ขนาดใหญ่ มีประสิทธิภาพสูง ติดตั้งง่าย และมีระบบควบคุมที่ทันสมัย', NULL, NULL, NULL, '{\"Power\": \"50kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 250000.00, NULL, NULL, 0, 5, 'out_of_stock', 'uploads/products/Deye_SUN_12K_SG04LP3_EU.jpg', 0, 1, 12, NULL, NULL, '2026-05-11 16:43:06', '2026-05-19 10:20:08'), (2, 2, NULL, 'SE-G102', 'Deye SE-G102', 'se-g102', 'ระบบจัดการพลังงาน SE-G10.2', 'ระบบจัดการพลังงานสำหรับระบบโซลาร์เซลล์ขนาด 10.2kWh', NULL, NULL, NULL, '{\"Capacity\": \"10.2kWh\", \"Type\": \"Energy Storage\", \"Voltage\": \"48V\", \"Cycle Life\": \"6000 cycles\", \"Warranty\": \"10 years\"}', 150000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_5K_G05P1_EU_AM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (3, 2, NULL, 'SE-G51', 'Deye SE-G51', 'se-g51', 'ระบบจัดการพลังงาน SE-G5.1', 'ระบบจัดการพลังงานสำหรับระบบโซลาร์เซลล์ขนาด 5.1kWh', NULL, NULL, NULL, '{\"Capacity\": \"5.1kWh\", \"Type\": \"Energy Storage\", \"Voltage\": \"48V\", \"Cycle Life\": \"6000 cycles\", \"Warranty\": \"10 years\"}', 80000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_5K_G05P1_EU_AM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (4, 2, NULL, 'RW-L102', 'Deye RW-L102', 'rw-l102', 'อินเวอร์เตอร์ RW-L10.2', 'อินเวอร์เตอร์สำหรับระบบโซลาร์เซลล์ขนาด 10.2kW', NULL, NULL, NULL, '{\"Power\": \"10.2kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.3%\", \"MPPT Range\": \"200-1000V\"}', 120000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/RW_F5_3_1H3.png', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (5, 2, NULL, 'RW-L51', 'Deye RW-L51', 'rw-l51', 'อินเวอร์เตอร์ RW-L5.1', 'อินเวอร์เตอร์สำหรับระบบโซลาร์เซลล์ขนาด 5.1kW', NULL, NULL, NULL, '{\"Power\": \"5.1kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.3%\", \"MPPT Range\": \"200-1000V\"}', 65000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/RW_F5_3_1H3.png', 0, 1, 2, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (6, 2, NULL, 'RW-F53-1H3', 'Deye RW-F5.3-1H3', 'rw-f53-1h3', 'อินเวอร์เตอร์ RW-F5.3-1H3', 'อินเวอร์เตอร์สำหรับระบบโซลาร์เซลล์ขนาด 5.3kW', NULL, NULL, NULL, '{\"Power\": \"5.3kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.3%\", \"MPPT Range\": \"200-1000V\"}', 68000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/RW_F5_3_1H3.png', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (7, 2, NULL, 'SDM120CTM-40MA', 'Deye SDM120CTM-40MA', 'sdm120ctm-40ma', 'Smart Meter SDM120CTM-40MA', 'มิเตอร์วัดไฟฟ้าอัจฉริยะสำหรับระบบโซลาร์เซลล์', NULL, NULL, NULL, '{\"Type\": \"Smart Meter\", \"Current\": \"40A\", \"Voltage\": \"230V\", \"Accuracy\": \"Class 1\", \"Communication\": \"RS485\"}', 3500.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SDM120.png', 0, 1, 2, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (8, 2, NULL, 'SUN-20K-SG05LP3-EU-SM2', 'Deye SUN-20K-SG05LP3-EU-SM2', 'sun-20k-sg05lp3-eu-sm2', 'อินเวอร์เตอร์ไฮบริด 20kW', 'อินเวอร์เตอร์ไฮบริด 20kW รองรับระบบโซลาร์เซลล์ขนาดกลาง มีประสิทธิภาพสูง', NULL, NULL, NULL, '{\"Power\": \"20kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 100000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_14_20k_SG05LP3_EU_SM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (9, 2, NULL, 'SUN-15K-SG05LP3-EU-SM2', 'Deye SUN-15K-SG05LP3-EU-SM2', 'sun-15k-sg05lp3-eu-sm2', 'อินเวอร์เตอร์ไฮบริด 15kW', 'อินเวอร์เตอร์ไฮบริด 15kW รองรับระบบโซลาร์เซลล์ขนาดกลาง', NULL, NULL, NULL, '{\"Power\": \"15kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 75000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_14_20k_SG05LP3_EU_SM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (10, 2, NULL, 'SUN-30K-SG01HP3-EU-BM3', 'Deye SUN-30K-SG01HP3-EU-BM3', 'sun-30k-sg01hp3-eu-bm3', 'อินเวอร์เตอร์ไฮบริด 30kW', 'อินเวอร์เตอร์ไฮบริด 30kW รองรับระบบโซลาร์เซลล์ขนาดใหญ่', NULL, NULL, NULL, '{\"Power\": \"30kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 150000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/Deye_SUN_12K_SG04LP3_EU.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (11, 2, NULL, 'SUN-10K-SG04LP3-EU', 'Deye SUN-10K-SG04LP3-EU', 'sun-10k-sg04lp3-eu', 'อินเวอร์เตอร์ไฮบริด 10kW', 'อินเวอร์เตอร์ไฮบริด 10kW สำหรับระบบโซลาร์เซลล์ขนาดเล็กถึงกลาง', NULL, NULL, NULL, '{\"Power\": \"10kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 50000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_5K_G05P1_EU_AM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (12, 2, NULL, 'SUN-10K-SG02LP1-EU-AM3', 'Deye SUN-10K-SG02LP1-EU-AM3', 'sun-10k-sg02lp1-eu-am3', 'อินเวอร์เตอร์ไฮบริด 10kW SG02LP1', 'อินเวอร์เตอร์ไฮบริด 10kW รุ่น SG02LP1 สำหรับระบบโซลาร์เซลล์', NULL, NULL, NULL, '{\"Power\": \"10kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 52000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_5K_G05P1_EU_AM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (13, 2, NULL, 'SUN-5K-SG04LP1-EU-SM2', 'Deye SUN-5K-SG04LP1-EU-SM2', 'sun-5k-sg04lp1-eu-sm2', 'อินเวอร์เตอร์ไฮบริด 5kW', 'อินเวอร์เตอร์ไฮบริด 5kW สำหรับระบบโซลาร์เซลล์ขนาดเล็ก', NULL, NULL, NULL, '{\"Power\": \"5kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 28000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_5K_G05P1_EU_AM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (14, 2, NULL, 'SUN-100K-G03', 'Deye SUN-100K-G03', 'sun-100k-g03', 'อินเวอร์เตอร์ไฮบริด 100kW', 'อินเวอร์เตอร์ไฮบริด 100kW สำหรับระบบโซลาร์เซลล์ขนาดใหญ่ ระดับโรงงาน', NULL, NULL, NULL, '{\"Power\": \"100kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 500000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_100K_G03.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (15, 2, NULL, 'SUN-50K-G04', 'Deye SUN-50K-G04', 'sun-50k-g04', 'อินเวอร์เตอร์ไฮบริด 50kW G04', 'อินเวอร์เตอร์ไฮบริด 50kW รุ่น G04 สำหรับระบบโซลาร์เซลล์ขนาดใหญ่', NULL, NULL, NULL, '{\"Power\": \"50kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 260000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_50K_G04.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (16, 2, NULL, 'SUN-20K-G05', 'Deye SUN-20K-G05', 'sun-20k-g05', 'อินเวอร์เตอร์ไฮบริด 20kW G05', 'อินเวอร์เตอร์ไฮบริด 20kW รุ่น G05 สำหรับระบบโซลาร์เซลล์', NULL, NULL, NULL, '{\"Power\": \"20kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 105000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_5K_G05P1_EU_AM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (17, 2, NULL, 'SUN-5K-G05P1-EU-AM2', 'Deye SUN-5K-G05P1-EU-AM2', 'sun-5k-g05p1-eu-am2', 'อินเวอร์เตอร์ไฮบริด 5kW G05P1', 'อินเวอร์เตอร์ไฮบริด 5kW รุ่น G05P1 สำหรับระบบโซลาร์เซลล์ขนาดเล็ก', NULL, NULL, NULL, '{\"Power\": \"5kW\", \"Type\": \"Hybrid\", \"Phase\": \"3-Phase\", \"Efficiency\": \"98.5%\", \"MPPT Range\": \"200-1000V\", \"Battery\": \"Li-ion Support\"}', 30000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SUN_5K_G05P1_EU_AM2.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (18, 3, NULL, '3U-LRACK', '3U-LRACK Battery Bracket', '3u-lrack', 'ชั้นวางแบตเตอรี่ 3U-LRACK 9-layer', 'ชั้นวางแบตเตอรี่ 9-layer สำหรับระบบ BOS-GPro รองรับ 8-17 แพ็คแบตเตอรี่ ติดตั้งง่าย แข็งแรง', NULL, NULL, NULL, '{\"Type\": \"9-layer Battery Bracket\", \"Capacity\": \"40-87kWh\", \"Battery Packs\": \"8-17 pcs\", \"Material\": \"Steel\", \"Warranty\": \"5 years\"}', 15000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/13_layer_battery_bracket_3U_Hrack.jpg', 0, 1, 4, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (19, 3, NULL, '3U-HRACK', '3U-HRACK Battery Bracket', '3u-hrack', 'ชั้นวางแบตเตอรี่ 3U-HRACK 13-layer', 'ชั้นวางแบตเตอรี่ 13-layer สำหรับระบบ BOS-GPro รองรับ 12 แพ็คแบตเตอรี่', NULL, NULL, NULL, '{\"Type\": \"13-layer Battery Bracket\", \"Capacity\": \"60kWh\", \"Battery Packs\": \"12 pcs\", \"Material\": \"Steel\", \"Warranty\": \"5 years\"}', 18000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/13_layer_battery_bracket_3U_Hrack.jpg', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (20, 3, NULL, 'BOS-G-PDU-2', 'BOS-G-PDU-2', 'bos-g-pdu-2', 'BOS-G PDU-2 Power Distribution Unit', 'หน่วยกระจายไฟฟ้าสำหรับระบบแบตเตอรี่ BOS-GPro', NULL, NULL, NULL, '{\"Type\": \"Power Distribution Unit\", \"Voltage\": \"48V\", \"Current\": \"200A\", \"Protection\": \"Overload Protection\"}', 8000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/BOS_G_Pro_BMS_Module.jpg', 0, 1, 2, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (21, 3, NULL, 'BOS-G-PAC5.1', 'BOS-G-PAC5.1', 'bos-g-pac51', 'BOS-G Battery Pack 5.12kWh', 'แพ็คแบตเตอรี่ BOS-G 5.12kWh สำหรับระบบจัดเก็บพลังงาน', NULL, NULL, NULL, '{\"Capacity\": \"5.12kWh\", \"Voltage\": \"48V\", \"Type\": \"Li-ion\", \"Cycle Life\": \"6000 cycles\", \"Warranty\": \"10 years\"}', 25000.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/BOS_G_Pro_Battery_pack_5_12kWh.jpg', 0, 1, 2, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'), (22, 2, NULL, 'SDM630MCT-40MA', 'Deye SDM630MCT-40MA', 'sdm630mct-40ma', 'Smart Meter SDM630MCT-40MA', 'มิเตอร์วัดไฟฟ้าอัจฉริยะ 3-Phase สำหรับระบบโซลาร์เซลล์', NULL, NULL, NULL, '{\"Type\": \"Smart Meter\", \"Current\": \"40A\", \"Voltage\": \"3-Phase 230V\", \"Accuracy\": \"Class 0.5S\", \"Communication\": \"RS485/Modbus\"}', 4500.00, NULL, NULL, 0, 5, 'in_stock', 'uploads/products/SDM630MCT_40mA.png', 0, 1, 0, NULL, NULL, '2026-05-11 16:43:06', '2026-05-17 20:10:53'); -- -------------------------------------------------------- -- -- Table structure for table `product_favorites` -- CREATE TABLE `product_favorites` ( `id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED NOT NULL, `customer_id` int(10) UNSIGNED DEFAULT NULL COMMENT 'NULL for guest users (use session)', `session_id` varchar(255) DEFAULT NULL COMMENT 'For guest users', `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `product_images` -- CREATE TABLE `product_images` ( `id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED NOT NULL, `image_path` varchar(255) NOT NULL, `alt_text` varchar(255) DEFAULT NULL, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `product_images` -- INSERT INTO `product_images` (`id`, `product_id`, `image_path`, `alt_text`, `sort_order`, `created_at`) VALUES (1, 1, 'uploads/products/Deye_SUN_12K_SG04LP3_EU.jpg', 'Deye SUN-50K-SG01HP3-EU-Deye Front ViewBM4 Front', 1, '2026-05-11 16:43:06'), (2, 18, 'uploads/products/13_layer_battery_bracket_3U_Hrack.jpg', '3U-LRACK Battery Bracket', 1, '2026-05-11 16:43:06'), (3, 18, 'uploads/products/BOS_G_Pro_Battery_pack_5_12kWh.jpg', 'BOS-G Battery Pack', 2, '2026-05-11 16:43:06'), (4, 18, 'uploads/products/BOS_G_Pro_BMS_Module.jpg', 'BOS-G BMS Module', 3, '2026-05-11 16:43:06'), (5, 18, 'uploads/products/LV_5_12KWH_battery.jpg', 'LV Battery', 4, '2026-05-11 16:43:06'), (6, 21, 'uploads/products/BOS_G_Pro_Battery_pack_5_12kWh.jpg', 'BOS-G Battery Pack 5.12kWh', 1, '2026-05-11 16:43:06'), (7, 21, 'uploads/products/BOS_G_Pro_BMS_Module.jpg', 'BOS-G BMS Module', 2, '2026-05-11 16:43:06'), (8, 18, 'uploads/products/BOS_G_Pro_Battery_pack_5_12kWh.jpg', 'BOS-G Battery Pack', 2, '2026-05-11 16:47:35'), (9, 18, 'uploads/products/BOS_G_Pro_BMS_Module.jpg', 'BOS-G BMS Module', 3, '2026-05-11 16:47:35'), (10, 18, 'uploads/products/LV_5_12KWH_battery.jpg', 'LV Battery', 4, '2026-05-11 16:47:35'), (11, 21, 'uploads/products/BOS_G_Pro_BMS_Module.jpg', 'BOS-G BMS Module', 2, '2026-05-11 16:47:35'), (12, 1, 'uploads/products/SDM630MCT_40mA.png', 'Smart Meter', 2, '2026-05-11 16:47:35'), (13, 1, 'uploads/products/SDM120.png', 'Smart Meter SDM120', 3, '2026-05-11 16:47:35'), (14, 1, 'uploads/products/Deye_SUN_12K_SG04LP3_EU.jpg', 'Deye Inverter', 4, '2026-05-11 16:47:35'), (15, 18, 'assets/img/products/BOS_G_Pro_Battery_pack_5_12kWh.jpg', 'BOS-G Battery Pack', 2, '2026-05-11 22:00:00'), (16, 18, 'assets/img/products/BOS_G_Pro_BMS_Module.jpg', 'BOS-G BMS Module', 3, '2026-05-11 22:00:00'), (17, 18, 'assets/img/products/LV_5_12KWH_battery.jpg', 'LV Battery', 4, '2026-05-11 22:00:00'), (18, 21, 'assets/img/products/BOS_G_Pro_BMS_Module.jpg', 'BOS-G BMS Module', 2, '2026-05-11 22:00:00'), (19, 1, 'assets/img/products/SDM630MCT_40mA.png', 'Smart Meter', 2, '2026-05-11 22:00:00'), (20, 1, 'assets/img/products/SDM120.png', 'Smart Meter SDM120', 3, '2026-05-11 22:00:00'), (21, 1, 'assets/img/products/Deye_SUN_12K_SG04LP3_EU.jpg', 'Deye Inverter', 4, '2026-05-11 22:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `product_reviews` -- CREATE TABLE `product_reviews` ( `id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED NOT NULL, `customer_name` varchar(200) NOT NULL, `customer_email` varchar(255) DEFAULT NULL, `rating` tinyint(3) UNSIGNED NOT NULL CHECK (`rating` >= 1 and `rating` <= 5), `title` varchar(255) DEFAULT NULL, `comment` text NOT NULL, `is_verified_purchase` tinyint(1) NOT NULL DEFAULT 0, `is_approved` tinyint(1) NOT NULL DEFAULT 0, `admin_reply` text DEFAULT NULL, `helpful_count` int(10) UNSIGNED NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `product_variations` -- CREATE TABLE `product_variations` ( `id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL COMMENT 'e.g., "12v 3500w", "24v 5000w"', `sku` varchar(100) DEFAULT NULL, `price` decimal(10,2) NOT NULL, `compare_price` decimal(10,2) DEFAULT NULL, `stock_quantity` int(10) UNSIGNED NOT NULL DEFAULT 0, `stock_status` enum('in_stock','out_of_stock','preorder') NOT NULL DEFAULT 'in_stock', `sort_order` int(10) UNSIGNED NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `projects` -- CREATE TABLE `projects` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(255) NOT NULL, `slug` varchar(280) NOT NULL, `client_name` varchar(255) DEFAULT NULL, `project_type` enum('factory','office','home','hotel','hospital','school','government','retail','other') NOT NULL DEFAULT 'other', `project_type_label` varchar(100) DEFAULT NULL, `location` varchar(255) DEFAULT NULL, `system_size` varchar(50) DEFAULT NULL, `monthly_saving` varchar(100) DEFAULT NULL, `description` longtext DEFAULT NULL, `main_image` varchar(500) DEFAULT NULL, `gallery` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`gallery`)), `completion_date` date DEFAULT NULL, `featured` tinyint(1) NOT NULL DEFAULT 0, `is_published` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `meta_title` varchar(255) DEFAULT NULL, `meta_description` varchar(500) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `projects` -- INSERT INTO `projects` (`id`, `title`, `slug`, `client_name`, `project_type`, `project_type_label`, `location`, `system_size`, `monthly_saving`, `description`, `main_image`, `gallery`, `completion_date`, `featured`, `is_published`, `sort_order`, `meta_title`, `meta_description`, `created_at`, `updated_at`) VALUES (1, 'บริษัท ส.เจริญ เพลทติ้ง จำกัด', 's-charoen-plating', 'ส.เจริญ เพลทติ้ง', 'factory', 'โรงงานเอกชน', 'สมุทรปราการ', '100 kW', NULL, NULL, 'uploads/portfolio/Project-01-1.jpg', NULL, NULL, 0, 1, 1, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (2, 'บริษัท ฟาราเทค จำกัด', 'faratech', 'ฟาราเทค', 'factory', 'โรงงานเอกชน', 'ชลบุรี', '50 kW', NULL, NULL, 'uploads/portfolio/Project-02-1.jpg', NULL, NULL, 0, 1, 2, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (3, 'บริษัท แสตนดาร์ด คาสติ้ง จำกัด', 'standard-casting', 'แสตนดาร์ด คาสติ้ง', 'factory', 'โรงงานเอกชน', 'ระยอง', '75 kW', NULL, NULL, 'uploads/portfolio/Project-03-1.jpg', NULL, NULL, 0, 1, 3, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (4, 'สหกรณ์ออมทรัพย์พนักงานบริษัทการบินไทย สำนักงานกิ่งแก้ว', 'thai-airways-coop-kingkaew', 'สหกรณ์การบินไทย', 'office', 'สำนักงานเอกชน', 'สมุทรปราการ', '30 kW', NULL, NULL, 'uploads/portfolio/Project-04-1.jpg', NULL, NULL, 0, 1, 4, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (5, 'สหกรณ์ออมทรัพย์พนักงานบริษัทการบินไทย สำนักงานลาดพร้าว', 'thai-airways-coop-ladprao', 'สหกรณ์การบินไทย', 'office', 'สำนักงานเอกชน', 'กรุงเทพฯ', '25 kW', NULL, NULL, 'uploads/portfolio/Project-05-1.jpg', NULL, NULL, 0, 1, 5, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (6, 'คุณนินนาท พัฒนวิบูลย์', 'ninnat-pattana', 'คุณนินนาท', 'home', 'บ้านเอกชน', 'กรุงเทพฯ', '5 kW', NULL, NULL, 'uploads/portfolio/Project-06-1.jpg', NULL, NULL, 0, 1, 6, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (7, 'คุณวิวัฒน์ อัศวสำเริง', 'wiwat-asawasamreng', 'คุณวิวัฒน์', 'home', 'บ้านเอกชน', 'กรุงเทพฯ', '19 kW', NULL, NULL, 'uploads/portfolio/Project-07-1.jpg', NULL, NULL, 0, 1, 7, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (8, 'โคก หนอง นา โมเดล นายศักดิ์ สมบุญโต', 'kok-nong-na-model-sak', 'นายศักดิ์ สมบุญโต', 'government', 'โครงการรัฐบาล', 'สระบุรี', '10 kW', NULL, NULL, 'uploads/portfolio/Project-08-1.jpg', NULL, NULL, 0, 1, 8, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (9, 'โคก หนอง นา โมเดล นายรวมพล คำมี', 'kok-nong-na-model-ruamphon', 'นายรวมพล คำมี', 'government', 'โครงการรัฐบาล', 'สระบุรี', '10 kW', NULL, NULL, 'uploads/portfolio/Project-09-1.jpg', NULL, NULL, 0, 1, 9, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (10, 'โคก หนอง นา โมเดล นายบุญเลิศ รัตนชัย', 'kok-nong-na-model-boonlert', 'นายบุญเลิศ รัตนชัย', 'government', 'โครงการรัฐบาล', 'สระบุรี', '10 kW', NULL, NULL, 'uploads/portfolio/Project-10-1.jpg', NULL, NULL, 0, 1, 10, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (11, 'โครงการติดตั้งระบบสูบน้ำพลังงานแสงอาทิตย์ เพื่อสู้ภัยแล้ง', 'solar-pumping-system', 'โครงการรัฐบาล', 'government', 'โครงการรัฐบาล', '-', NULL, NULL, NULL, 'uploads/portfolio/Project-11-1.jpg', NULL, NULL, 0, 1, 11, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'), (12, 'โครงการ ห้องอบพลังงานแสงอาทิตย์', 'solar-drying-room', 'โครงการรัฐบาล', 'government', 'โครงการรัฐบาล', '-', '3 kW', NULL, NULL, 'uploads/portfolio/Project-12-1.jpg', NULL, NULL, 0, 1, 12, NULL, NULL, '2026-05-12 22:01:33', '2026-05-17 20:11:19'); -- -------------------------------------------------------- -- -- Table structure for table `refresh_tokens` -- CREATE TABLE `refresh_tokens` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `token` varchar(500) NOT NULL, `expires_at` datetime NOT NULL, `revoked_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(50) NOT NULL, `slug` varchar(50) NOT NULL, `description` text DEFAULT NULL, `permissions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Array of permission strings' CHECK (json_valid(`permissions`)), `is_system` tinyint(1) DEFAULT 0 COMMENT 'System roles cannot be deleted', `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `slug`, `description`, `permissions`, `is_system`, `created_at`, `updated_at`) VALUES (1, 'Super Admin', 'super_admin', 'Full system access', '[\"*\"]', 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (2, 'Admin', 'admin', 'Admin access except user management', '[\"pages.*\",\"menus.*\",\"settings.*\",\"products.*\",\"categories.*\"]', 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (3, 'Editor', 'editor', 'Content management only', '[\"pages.*\",\"menus.view\"]', 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (4, 'Viewer', 'viewer', 'Read-only access', '[\"pages.view\",\"menus.view\"]', 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'); -- -------------------------------------------------------- -- -- Table structure for table `sdui_blocks` -- CREATE TABLE `sdui_blocks` ( `id` int(11) NOT NULL, `block_type` varchar(100) NOT NULL, `block_name` varchar(255) NOT NULL, `block_config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`block_config`)), `template` varchar(255) DEFAULT NULL, `is_active` tinyint(1) DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `sort_order` int(11) DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `sdui_blocks` -- INSERT INTO `sdui_blocks` (`id`, `block_type`, `block_name`, `block_config`, `template`, `is_active`, `created_at`, `updated_at`, `sort_order`) VALUES (1, 'hero', 'Standard Hero', '{\"title\":\"Welcome to Mono Thailand\",\"subtitle\":\"Smart Energy Solutions for Your Business\",\"description\":\"Transform your energy consumption with cutting-edge solar technology\",\"cta_text\":\"Get Started\",\"cta_link\":\"\\/contact\",\"background_image\":\"\\/images\\/index\\/home-index-3.jpg\"}', 'hero_block', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 1), (2, 'hero', 'Solar Calculator Hero', '{\"title\":\"Calculate Your Solar Savings\",\"subtitle\":\"Get instant estimates for your solar system\",\"cta_text\":\"Start Calculator\",\"cta_link\":\"\\/solar-calculator\",\"show_calculator_preview\":true}', 'hero_calculator', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 2), (3, 'products', 'Featured Products Grid', '{\"columns\":4,\"show_price\":true,\"show_add_to_cart\":true,\"limit\":8,\"category_filter\":\"all\"}', 'product_grid', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 3), (4, 'products', 'Solar Panels Showcase', '{\"columns\":3,\"show_price\":true,\"show_add_to_cart\":false,\"limit\":6,\"category_filter\":\"solar-panels\"}', 'product_showcase', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 4), (5, 'banner', 'Promotional Banner', '{\"title\":\"Special Offer\",\"subtitle\":\"Get 20% off on solar installation\",\"image\":\"\\/images\\/index\\/home-index-5.jpg\",\"link\":\"\\/contact\",\"autoplay\":true,\"interval\":5000}', 'banner_slider', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 5), (6, 'banner', 'Seasonal Banner', '{\"title\":\"Summer Special\",\"subtitle\":\"Free consultation this month\",\"image\":\"\\/images\\/index\\/home-index-6.jpg\",\"link\":\"\\/contact\",\"autoplay\":false,\"interval\":3000}', 'banner_static', 0, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 6), (7, 'features', 'Key Features List', '{\"columns\":3,\"show_icons\":true,\"items\":[{\"icon\":\"award\",\"title\":\"Expert Engineers\",\"desc\":\"Professional team with years of experience\"},{\"icon\":\"shield\",\"title\":\"Warranty\",\"desc\":\"Comprehensive warranty coverage\"},{\"icon\":\"clock\",\"title\":\"24\\/7 Support\",\"desc\":\"Round-the-clock customer service\"},{\"icon\":\"zap\",\"title\":\"High Efficiency\",\"desc\":\"Maximum energy production\"},{\"icon\":\"dollar-sign\",\"title\":\"Cost Effective\",\"desc\":\"Competitive pricing\"},{\"icon\":\"check-circle\",\"title\":\"Quality Assured\",\"desc\":\"Certified products only\"}]}', 'feature_list', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 7), (8, 'testimonials', 'Customer Testimonials', '{\"autoplay\":true,\"show_rating\":true,\"limit\":3}', 'testimonial_carousel', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 8), (9, 'services', 'Services Overview', '{\"columns\":2,\"show_description\":true,\"limit\":6}', 'services_grid', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 9), (10, 'cta', 'Call to Action', '{\"title\":\"Ready to Go Solar?\",\"subtitle\":\"Contact us today for a free consultation\",\"button_text\":\"Contact Us\",\"button_link\":\"\\/contact\",\"background_color\":\"#10b981\"}', 'cta_section', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 10), (11, 'stats', 'Statistics Counter', '{\"items\":[{\"label\":\"Projects Completed\",\"value\":\"500+\",\"icon\":\"check-circle\"},{\"label\":\"Power Installed\",\"value\":\"50MW+\",\"icon\":\"zap\"},{\"label\":\"Happy Customers\",\"value\":\"300+\",\"icon\":\"users\"},{\"label\":\"Energy Saved\",\"value\":\"80%\",\"icon\":\"trending-down\"}]}', 'stats_counter', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 11), (12, 'about', 'About Section', '{\"title\":\"About Mono Thailand\",\"content\":\"Leading provider of smart energy solutions in Thailand\",\"image\":\"\\/images\\/about.png\",\"show_button\":true,\"button_text\":\"Learn More\",\"button_link\":\"\\/about\"}', 'about_section', 1, '2026-05-19 14:58:24', '2026-05-19 14:58:24', 12); -- -------------------------------------------------------- -- -- Table structure for table `services` -- CREATE TABLE `services` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(255) NOT NULL, `slug` varchar(280) NOT NULL, `short_description` varchar(500) DEFAULT NULL, `description` longtext DEFAULT NULL, `icon` varchar(50) DEFAULT NULL, `image` varchar(500) DEFAULT NULL, `link` varchar(500) DEFAULT NULL, `featured` tinyint(1) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `services` -- INSERT INTO `services` (`id`, `title`, `slug`, `short_description`, `description`, `icon`, `image`, `link`, `featured`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'ออกแบบ (Design)', 'design', 'งานออกแบบด้วยโปรแกรมด้านพลังงานที่ได้มาตรฐาน และทำภาพ 3D ให้ลูกค้าเห็นภาพงานติดตั้งก่อนติดตั้งจริง', NULL, 'PenTool', NULL, '/services/design', 0, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (2, 'ติดตั้งระบบโซลาร์เซลล์', 'build', 'ตั้งแต่เข้าสำรวจหน้างาน จนถึงส่งมอบงานระบบ และดูแลรักษาตลอดการใช้งาน', NULL, 'Hammer', NULL, '/services/build', 0, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (3, 'ยื่นขอขนานไฟหน่วยงานต่างๆ', 'request', 'ยื่นขอขนานไฟฟ้าจากหน่วยงานต่างๆ อย่างเป็นทางการ', NULL, 'ArrowRight', NULL, '/services/request', 0, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (4, 'PPA (Private Power Purchase Agreement)', 'ppa', 'ซื้อไฟฟ้าสีเขียวโดยไม่ต้องลงทุน เมื่อหมดสัญญาได้ระบบโซล่าเซลล์ฟรี', NULL, 'TrendingUp', NULL, '/ppa', 0, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (5, 'O&M (Operation & Maintenance)', 'om', 'บำรุงรักษาประสิทธิภาพของระบบโซล่าเซลล์ ระบบแจ้งเตือนผ่าน App line OA ระบบ Monitor solar 24 ชั่วโมง', NULL, 'ArrowRight', NULL, '/om', 0, 1, 5, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (6, 'Design & Consulting', 'design-consulting', 'บริการสำรวจ ออกแบบ และให้คำปรึกษาโดยทีมวิศวกรผู้เชี่ยวชาญ', NULL, 'Layout', 'uploads/services-design.jpg', '/services/design-consulting', 0, 1, 1, '2026-05-12 21:59:05', '2026-05-18 16:19:59'), (7, 'EPC Build & Install', 'epc-build-install', 'บริการจัดหาอุปกรณ์และติดตั้งระบบโซลาร์เซลล์แบบครบวงจร', NULL, 'Construction', 'uploads/services-build.jpg', '/services/epc-build-install', 0, 1, 2, '2026-05-12 21:59:05', '2026-05-18 16:19:59'), (8, 'Operation & Maintenance', 'operation-maintenance', 'บริการดูแลและบำรุงรักษาระบบโซลาร์เซลล์เพื่อประสิทธิภาพสูงสุด', NULL, 'Settings', 'uploads/services-om.jpg', '/services/operation-maintenance', 0, 1, 3, '2026-05-12 21:59:05', '2026-05-18 16:19:59'), (9, 'PPA & Financing', 'ppa-financing', 'บริการลงทุนติดตั้งระบบโซลาร์เซลล์และบริหารจัดการพลังงาน', '<p>บริการ PPA & Financing เป็นโซลูชันการลงทุนโซลาร์เซลล์แบบครบวงจรที่ช่วยให้ธุรกิจและองค์กรสามารถติดตั้งระบบโซลาร์เซลล์ได้โดยไม่ต้องลงทุนเอง โดยเราจะเป็นผู้ดูแลการลงทุน ติดตั้ง และบริหารจัดระบบทั้งหมด</p><h3>ข้อดีของบริการ PPA & Financing</h3><ul><li>ไม่ต้องลงทุนเอง - ลดภาระทางการเงิน</li><li>ลดค่าไฟฟ้า - ประหยัดค่าไฟฟ้าตลอดอายุสัญญา</li><li>บริหารจัดการครบวงจร - ดูแลระบบตลอดอายุการใช้งาน</li><li>ได้ระบบฟรี - เมื่อหมดสัญญาได้รับระบบโซล่าเซลล์ฟรี</li><li>เสียภาษีได้ - ลดภาษีเงินได้ธุรกิจ</li></ul><h3>ขั้นตอนการทำ PPA</h3><ol><li>สำรวจและประเมินหน้างาน</li><li>ออกแบบระบบโซลาร์เซลล์ที่เหมาะสม</li><li>ทำสัญญา PPA</li><li>ติดตั้งระบบ</li><li>บริหารจัดการและดูแลรักษา</li></ol>', 'CreditCard', 'uploads/services-ppa.jpg', '/services/ppa-financing', 0, 1, 4, '2026-05-12 21:59:05', '2026-05-18 16:22:54'), (10, 'ดูแลระบบ (Maintenance)', 'site-survey', 'บริการดูแลและบำรุงรักษาระบบโซลาร์เซลล์เพื่อให้ระบบทำงานได้อย่างมีประสิทธิภาพตลอดอายุการใช้งาน', '??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????', 'map', NULL, NULL, 0, 1, 1, '2026-05-19 21:45:32', '2026-05-19 22:06:33'), (11, 'ซ่อมบำรุง (Repair)', 'system-design', 'บริการซ่อมบำรุงและแก้ไขปัญหาระบบโซลาร์เซลล์ทุกประเภทโดยทีมวิศวกรผู้เชี่ยวชาญ', '???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????', 'layout', NULL, NULL, 0, 1, 2, '2026-05-19 21:45:32', '2026-05-19 22:06:33'), (12, 'ตรวจสอบระบบ (Inspection)', 'professional-installation', 'บริการตรวจสอบสภาพระบบโซลาร์เซลล์อย่างละเอียดเพื่อวิเคราะห์ปัญหาและแนะนำการแก้ไข', '????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????', 'tool', NULL, NULL, 0, 1, 3, '2026-05-19 21:45:32', '2026-05-19 22:06:33'), (13, 'IoT Monitoring', 'iot-monitoring', 'ระบบติดตามและตรวจสอบสมรรถนะระบบโซลาร์เซลล์ผ่านระบบ IoT แบบ Real-time ตลอด 24 ชั่วโมง', '????????????????????????????????????????????????????????? 24 ??????????????????????????????????????????????????????????????????????????????????????????', 'smartphone', NULL, NULL, 0, 1, 4, '2026-05-19 21:45:32', '2026-05-19 22:06:33'), (14, 'อัปเกรดระบบ (System Upgrade)', 'warranty', 'บริการอัปเกรดระบบโซลาร์เซลล์เดิมเพื่อเพิ่มประสิทธิภาพและลดการสูญเสียพลังงาน', '??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????', 'shield', NULL, NULL, 0, 1, 5, '2026-05-19 21:45:32', '2026-05-19 22:06:33'), (15, 'บริการหลังการขาย (After Sales Service)', 'after-sales', 'บริการสนับสนุนหลังการขายที่ครบวงจรตลอดอายุการรับประกันและหลังจากนั้น', '?????????????????????????????????????????????????????????????????????????????????????????????????????????', 'headphones', NULL, NULL, 0, 1, 6, '2026-05-19 21:45:32', '2026-05-19 22:06:33'); -- -------------------------------------------------------- -- -- Table structure for table `shipments` -- CREATE TABLE `shipments` ( `id` int(10) UNSIGNED NOT NULL, `order_id` int(10) UNSIGNED NOT NULL, `courier_name` varchar(100) DEFAULT NULL, `tracking_number` varchar(100) DEFAULT NULL, `status` enum('pending','picked_up','in_transit','delivered','failed') NOT NULL DEFAULT 'pending', `shipped_at` datetime DEFAULT NULL, `delivered_at` datetime DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `shipping_rules` -- CREATE TABLE `shipping_rules` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(200) NOT NULL, `type` enum('flat_rate','free','by_weight','by_location') DEFAULT 'flat_rate', `cost` decimal(10,2) DEFAULT 0.00, `regions` varchar(500) DEFAULT 'All', `is_active` tinyint(1) DEFAULT 1, `created_at` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `shipping_rules` -- INSERT INTO `shipping_rules` (`id`, `name`, `type`, `cost`, `regions`, `is_active`, `created_at`) VALUES (1, 'Default Shipping', 'flat_rate', 0.00, 'All', 1, '2026-05-18 21:43:09'), (2, 'Default Shipping', 'flat_rate', 0.00, 'All', 1, '2026-05-18 22:49:51'); -- -------------------------------------------------------- -- -- Table structure for table `site_settings` -- CREATE TABLE `site_settings` ( `id` int(10) UNSIGNED NOT NULL, `setting_key` varchar(100) NOT NULL, `setting_value` text DEFAULT NULL, `category` varchar(50) DEFAULT NULL, `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `site_settings` -- INSERT INTO `site_settings` (`id`, `setting_key`, `setting_value`, `category`, `updated_at`) VALUES (1, 'site_name', 'Monothailand - Smart Energy Solutions', 'general', '2026-05-11 12:54:34'), (2, 'site_tagline', 'ยกระดับธุรกิจด้วยระบบจัดการพลังงานอัจฉริยะ', 'general', '2026-05-11 12:54:34'), (3, 'site_email', 'info@monothailand.com', 'general', '2026-05-11 12:54:34'), (4, 'site_phone', '02-xxx-xxxx', 'general', '2026-05-11 12:54:34'), (5, 'site_address', 'กรุงเทพมหานคร, ประเทศไทย', 'general', '2026-05-11 12:54:34'), (6, 'site_line_id', '@monothailand', 'social', '2026-05-11 12:54:34'), (7, 'site_facebook', 'https://facebook.com/monothailand', 'social', '2026-05-11 12:54:34'), (8, 'currency_symbol', '฿', 'shop', '2026-05-11 12:54:34'), (9, 'shipping_default_fee', '0', 'shop', '2026-05-11 12:54:34'), (10, 'solar_price_per_kw', '35000', 'solar', '2026-05-19 22:10:29'), (11, 'solar_kwh_per_kw_per_month', '128', 'solar', '2026-05-19 22:10:29'), (12, 'solar_elec_rate', '4.50', 'solar', '2026-05-19 22:10:29'), (13, 'solar_roof_area_per_kw', '6', 'solar', '2026-05-19 22:10:29'); -- -------------------------------------------------------- -- -- Table structure for table `solar_provincial_coefficients` -- CREATE TABLE `solar_provincial_coefficients` ( `id` int(10) UNSIGNED NOT NULL, `province_name_th` varchar(100) NOT NULL, `province_name_en` varchar(100) NOT NULL, `peak_sun_hours` float NOT NULL DEFAULT 4.5 COMMENT 'Average Peak Sun Hours per day', `mea_pea_rate` float NOT NULL DEFAULT 4.2 COMMENT 'Baht per electric unit charge', `feed_in_tariff` float NOT NULL DEFAULT 2.2 COMMENT 'Grid feed-in tariff Baht per unit', `degradation_factor` float NOT NULL DEFAULT 0.005 COMMENT 'Panel degradation rate per year', `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `solar_provincial_coefficients` -- INSERT INTO `solar_provincial_coefficients` (`id`, `province_name_th`, `province_name_en`, `peak_sun_hours`, `mea_pea_rate`, `feed_in_tariff`, `degradation_factor`, `created_at`, `updated_at`) VALUES (1, 'กรุงเทพมหานคร', 'Bangkok (Central)', 4.82, 4.42, 2.2, 0.005, '2026-05-19 16:11:27', '2026-05-19 16:11:27'), (2, 'เชียงใหม่', 'Chiang Mai (North)', 4.65, 4.42, 2.2, 0.005, '2026-05-19 16:11:27', '2026-05-19 16:11:27'), (3, 'ภูเก็ต', 'Phuket (South)', 4.95, 4.42, 2.2, 0.005, '2026-05-19 16:11:27', '2026-05-19 16:11:27'), (4, 'ชลบุรี', 'Chonburi (East)', 4.78, 4.42, 2.2, 0.005, '2026-05-19 16:11:27', '2026-05-19 16:11:27'), (5, 'นครราชสีมา', 'Nakhon Ratchasima (NE)', 5.02, 4.42, 2.2, 0.005, '2026-05-19 16:11:27', '2026-05-19 16:11:27'), (6, 'ขอนแก่น', 'Khon Kaen (NE)', 4.88, 4.42, 2.2, 0.005, '2026-05-19 22:10:29', '2026-05-19 22:10:29'), (7, 'สุราษฎร์ธานี', 'Surat Thani (South)', 4.92, 4.42, 2.2, 0.005, '2026-05-19 22:10:29', '2026-05-19 22:10:29'), (8, 'นนทบุรี', 'Nonthaburi (Central)', 4.8, 4.42, 2.2, 0.005, '2026-05-19 22:10:29', '2026-05-19 22:10:29'), (9, 'ปทุมธานี', 'Pathum Thani (Central)', 4.79, 4.42, 2.2, 0.005, '2026-05-19 22:10:29', '2026-05-19 22:10:29'), (10, 'สมุทรปราการ', 'Samut Prakan (Central)', 4.81, 4.42, 2.2, 0.005, '2026-05-19 22:10:29', '2026-05-19 22:10:29'); -- -------------------------------------------------------- -- -- Table structure for table `solutions` -- CREATE TABLE `solutions` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(255) NOT NULL, `slug` varchar(280) NOT NULL, `short_description` varchar(500) DEFAULT NULL, `description` longtext DEFAULT NULL, `icon` varchar(50) DEFAULT NULL, `image` varchar(500) DEFAULT NULL, `link` varchar(500) DEFAULT NULL, `featured` tinyint(1) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `solutions` -- INSERT INTO `solutions` (`id`, `title`, `slug`, `short_description`, `description`, `icon`, `image`, `link`, `featured`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'Smart Home', 'smart-home', 'บ้านอัจฉริยะ ควบคุมทุกอย่างในบ้านด้วยปลายนิ้ว', NULL, 'Smartphone', NULL, '/solution/smart-home', 0, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (2, 'Smart Farm', 'smart-farm', 'ฟาร์มอัจฉริยะ เกษตรแห่งอนาคตด้วยเทคโนโลยี IoT', NULL, 'Sprout', NULL, '/solution/smart-farm', 0, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (3, 'Smart Hotel', 'smart-hotel', 'โรงแรมอัจฉริยะ บริการที่ดีขึ้นด้วยเทคโนโลยี IoT', NULL, 'Hotel', NULL, '/solution/smart-hotel', 0, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (4, 'Smart Micro Grid', 'smart-micro-grid', 'ระบบจัดการพลังงานอัจฉริยะสำหรับอาคารและชุมชน', NULL, 'Network', NULL, '/solution/smart-micro-grid', 0, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (5, 'Renewable Energy', 'renewable-energy', 'พลังงานหมุนเวียนสำหรับอนาคตที่ยั่งยืน', NULL, 'Sun', NULL, '/renewable-energy', 0, 1, 5, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (6, 'Energy Saving', 'energy-saving', 'การประหยัดพลังงานอย่างมีประสิทธิภาพ', NULL, 'Zap', NULL, '/energy-saving', 0, 1, 6, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (7, 'Residential Solutions', 'residential-solutions', 'ระบบโซลาร์เซลล์สำหรับบ้านพักอาศัย ช่วยประหยัดค่าไฟได้สูงสุด 70%', NULL, 'Home', '/assets/img/index/home-es-1.jpg', NULL, 0, 1, 1, '2026-05-12 22:00:20', '2026-05-12 22:00:20'), (8, 'Commercial Solutions', 'commercial-solutions', 'โซลูชันสำหรับออฟฟิศและอาคารพาณิชย์ ลดต้นทุนธุรกิจอย่างยั่งยืน', NULL, 'Building2', '/assets/img/index/home-es-2.jpg', NULL, 0, 1, 2, '2026-05-12 22:00:20', '2026-05-12 22:00:20'), (9, 'Industrial Solutions', 'industrial-solutions', 'ระบบสเกลใหญ่สำหรับโรงงานอุตสาหกรรม พร้อมระบบมอนิเตอร์อัจฉริยะ', NULL, 'Factory', '/assets/img/index/home-es-3.jpg', NULL, 0, 1, 3, '2026-05-12 22:00:20', '2026-05-12 22:00:20'); -- -------------------------------------------------------- -- -- Table structure for table `statistics` -- CREATE TABLE `statistics` ( `id` int(10) UNSIGNED NOT NULL, `page_slug` varchar(100) NOT NULL, `section_name` varchar(100) DEFAULT NULL, `value` varchar(50) NOT NULL, `label` varchar(200) NOT NULL, `icon` varchar(50) DEFAULT NULL, `prefix` varchar(20) DEFAULT NULL, `suffix` varchar(50) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `statistics` -- INSERT INTO `statistics` (`id`, `page_slug`, `section_name`, `value`, `label`, `icon`, `prefix`, `suffix`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'home', NULL, '11', 'Clients', NULL, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (2, 'home', NULL, '12', 'Projects', NULL, NULL, NULL, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (3, 'home', NULL, '24', 'Hours Of Support', NULL, NULL, NULL, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (4, 'home', NULL, '13', 'Workers', NULL, NULL, NULL, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (5, 'about', NULL, '500+', 'Clients', NULL, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (6, 'about', NULL, '100+', 'Projects', NULL, NULL, NULL, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (7, 'about', NULL, '24/7', 'Support', NULL, NULL, NULL, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (8, 'about', NULL, '50+', 'Workers', NULL, NULL, NULL, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (9, 'case-studies', NULL, '500+', 'โครงการติดตั้ง', NULL, NULL, NULL, 1, 1, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (10, 'case-studies', NULL, '15 MW+', 'กำลังการผลิตรวม', NULL, NULL, NULL, 1, 2, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (11, 'case-studies', NULL, '80%', 'ลดค่าไฟเฉลี่ย', NULL, NULL, NULL, 1, 3, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (12, 'case-studies', NULL, '4-6 ปี', 'คืนทุนเฉลี่ย', NULL, NULL, NULL, 1, 4, '2026-05-11 21:59:29', '2026-05-11 21:59:29'), (13, '', NULL, '500+', '???????????????????????????????????????', 'check-circle', NULL, NULL, 1, 1, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (14, '', NULL, '50MW+', '??????????????????????????????????????????', 'zap', NULL, NULL, 1, 2, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (15, '', NULL, '300+', '???????????????????????????????????????????????????', 'users', NULL, NULL, 1, 3, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (16, '', NULL, '80%', '????????????????????????????????????', 'trending-down', NULL, NULL, 1, 4, '2026-05-19 21:45:32', '2026-05-19 21:45:32'), (17, '', NULL, '500+', 'Ó╣éÓ©äÓ©úÓ©çÓ©üÓ©▓Ó©úÓ©¬Ó©│Ó╣ÇÓ©úÓ╣çÓ©ê', 'check-circle', NULL, NULL, 1, 1, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (18, '', NULL, '50MW+', 'Ó©üÓ©│Ó©ÑÓ©▒Ó©çÓ╣äÓ©ƒÓ©òÓ©┤Ó©öÓ©òÓ©▒Ó╣ëÓ©ç', 'zap', NULL, NULL, 1, 2, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (19, '', NULL, '300+', 'Ó©ÑÓ©╣Ó©üÓ©äÓ╣ëÓ©▓Ó©ùÓ©ÁÓ╣êÓ╣äÓ©ºÓ╣ëÓ©ºÓ©▓Ó©çÓ╣âÓ©ê', 'users', NULL, NULL, 1, 3, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (20, '', NULL, '80%', 'Ó©øÓ©úÓ©░Ó©½Ó©óÓ©▒Ó©öÓ©äÓ╣êÓ©▓Ó╣äÓ©ƒ', 'trending-down', NULL, NULL, 1, 4, '2026-05-19 21:45:35', '2026-05-19 21:45:35'), (21, '', NULL, '500+', 'โครงการสำเร็จ', 'check-circle', NULL, NULL, 1, 1, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (22, '', NULL, '50MW+', 'กำลังไฟติดตั้ง', 'zap', NULL, NULL, 1, 2, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (23, '', NULL, '300+', 'ลูกค้าที่ไว้วางใจ', 'users', NULL, NULL, 1, 3, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (24, '', NULL, '80%', 'ประหยัดค่าไฟ', 'trending-down', NULL, NULL, 1, 4, '2026-05-19 21:46:09', '2026-05-19 21:46:09'), (25, '', NULL, '500+', 'โครงการสำเร็จ', 'check-circle', NULL, NULL, 1, 1, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (26, '', NULL, '50MW+', 'กำลังไฟติดตั้ง', 'zap', NULL, NULL, 1, 2, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (27, '', NULL, '300+', 'ลูกค้าที่ไว้วางใจ', 'users', NULL, NULL, 1, 3, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (28, '', NULL, '80%', 'ประหยัดค่าไฟ', 'trending-down', NULL, NULL, 1, 4, '2026-05-19 21:46:49', '2026-05-19 21:46:49'), (29, '', NULL, '500+', 'โครงการสำเร็จ', 'check-circle', NULL, NULL, 1, 1, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (30, '', NULL, '50MW+', 'กำลังไฟติดตั้ง', 'zap', NULL, NULL, 1, 2, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (31, '', NULL, '300+', 'ลูกค้าที่ไว้วางใจ', 'users', NULL, NULL, 1, 3, '2026-05-19 21:47:02', '2026-05-19 21:47:02'), (32, '', NULL, '80%', 'ประหยัดค่าไฟ', 'trending-down', NULL, NULL, 1, 4, '2026-05-19 21:47:02', '2026-05-19 21:47:02'); -- -------------------------------------------------------- -- -- Table structure for table `stock_logs` -- CREATE TABLE `stock_logs` ( `id` int(10) UNSIGNED NOT NULL, `product_id` int(10) UNSIGNED NOT NULL, `change_amount` int(11) NOT NULL, `new_quantity` int(11) NOT NULL, `reason` varchar(255) DEFAULT NULL, `created_by` int(10) UNSIGNED DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -- Dumping data for table `stock_logs` -- INSERT INTO `stock_logs` (`id`, `product_id`, `change_amount`, `new_quantity`, `reason`, `created_by`, `created_at`) VALUES (1, 1, 1, 1, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:01:59'), (2, 1, 1, 2, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:01'), (3, 1, 1, 3, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:01'), (4, 1, 1, 4, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:01'), (5, 1, -1, 3, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:02'), (6, 1, -1, 2, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:02'), (7, 1, -1, 1, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:03'), (8, 1, -1, 0, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:04'), (9, 1, 1, 1, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:06'), (10, 1, -1, 0, 'Inventory Console Stock Adjustment', NULL, '2026-05-19 10:03:07'); -- -------------------------------------------------------- -- -- Table structure for table `testimonials` -- CREATE TABLE `testimonials` ( `id` int(10) UNSIGNED NOT NULL, `client_name` varchar(255) NOT NULL, `client_company` varchar(255) DEFAULT NULL, `client_position` varchar(255) DEFAULT NULL, `client_image` varchar(500) DEFAULT NULL, `rating` int(11) DEFAULT NULL, `content` text NOT NULL, `project_title` varchar(255) DEFAULT NULL, `is_featured` tinyint(1) NOT NULL DEFAULT 0, `is_published` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `testimonials` -- INSERT INTO `testimonials` (`id`, `client_name`, `client_company`, `client_position`, `client_image`, `rating`, `content`, `project_title`, `is_featured`, `is_published`, `sort_order`, `created_at`, `updated_at`) VALUES (1, 'คุณสมชาย เจริญสุข', NULL, 'เจ้าของบ้านพักอาศัย', NULL, 5, 'ติดตั้งโซลาร์เซลล์กับที่นี่แล้วประหยัดค่าไฟได้จริง ทีมงานเป็นกันเองและให้คำแนะนำดีมากครับ', NULL, 0, 1, 1, '2026-05-12 22:05:32', '2026-05-12 22:05:32'), (2, 'คุณวิภาวรรณ เลิศวิจิตร', NULL, 'ผู้จัดการโรงงาน', NULL, 5, 'ระบบ Monitoring ใช้งานง่ายมาก ติดตามการผลิตไฟฟ้าได้ตลอดเวลา ช่วยลดต้นทุนโรงงานได้เยอะเลยค่ะ', NULL, 0, 1, 2, '2026-05-12 22:05:32', '2026-05-12 22:05:32'); -- -------------------------------------------------------- -- -- Table structure for table `theme_config` -- CREATE TABLE `theme_config` ( `id` int(11) NOT NULL, `theme_name` varchar(100) NOT NULL, `theme_label` varchar(255) NOT NULL, `config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`config`)), `is_active` tinyint(1) DEFAULT 0, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `theme_config` -- INSERT INTO `theme_config` (`id`, `theme_name`, `theme_label`, `config`, `is_active`, `created_at`, `updated_at`) VALUES (1, 'default', 'Default Theme', '{\n \"primary_color\": \"#10b981\",\n \"secondary_color\": \"#6366f1\",\n \"font_family\": \"Noto Sans Thai\",\n \"border_radius\": \"8px\",\n \"shadow\": \"default\"\n}', 1, '2026-05-19 14:46:09', '2026-05-19 14:46:09'), (2, 'default', 'Default Theme', '{\n \"primary_color\": \"#10b981\",\n \"secondary_color\": \"#6366f1\",\n \"font_family\": \"Noto Sans Thai\",\n \"border_radius\": \"8px\",\n \"shadow\": \"default\"\n}', 1, '2026-05-19 14:46:49', '2026-05-19 14:46:49'), (3, 'default', 'Default Theme', '{\n \"primary_color\": \"#10b981\",\n \"secondary_color\": \"#6366f1\",\n \"font_family\": \"Noto Sans Thai\",\n \"border_radius\": \"8px\",\n \"shadow\": \"default\"\n}', 1, '2026-05-19 14:47:02', '2026-05-19 14:47:02'); -- -------------------------------------------------------- -- -- Table structure for table `theme_configurations` -- CREATE TABLE `theme_configurations` ( `id` int(10) UNSIGNED NOT NULL, `theme_mode` enum('light','dark','system') NOT NULL DEFAULT 'dark', `primary_color` varchar(7) NOT NULL DEFAULT '#10b981' COMMENT 'Neo-Emerald', `secondary_color` varchar(7) NOT NULL DEFAULT '#6366f1' COMMENT 'Technology-Indigo', `background_color` varchar(7) NOT NULL DEFAULT '#0f172a' COMMENT 'Obsidian Backdrop', `glass_blur_level` int(10) UNSIGNED NOT NULL DEFAULT 16 COMMENT 'Blur level in px', `glass_opacity` float NOT NULL DEFAULT 0.4 COMMENT 'Opacity from 0.0 to 1.0', `font_family_url` varchar(500) DEFAULT 'https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap', `font_sans` varchar(100) DEFAULT 'Outfit, sans-serif', `custom_css` text DEFAULT NULL COMMENT 'Direct custom CSS variables injection', `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `theme_configurations` -- INSERT INTO `theme_configurations` (`id`, `theme_mode`, `primary_color`, `secondary_color`, `background_color`, `glass_blur_level`, `glass_opacity`, `font_family_url`, `font_sans`, `custom_css`, `is_active`, `created_at`, `updated_at`) VALUES (1, 'dark', '#10b981', '#6366f1', '#0f172a', 16, 0.4, 'https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap', 'Outfit, sans-serif', NULL, 1, '2026-05-19 09:27:55', '2026-05-19 09:27:55'); -- -------------------------------------------------------- -- -- Table structure for table `ui_blocks` -- CREATE TABLE `ui_blocks` ( `id` int(10) UNSIGNED NOT NULL, `block_type` varchar(50) NOT NULL, `block_name` varchar(200) NOT NULL, `description` text DEFAULT NULL, `icon` varchar(50) DEFAULT NULL, `schema_definition` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'JSON Schema for block data structure' CHECK (json_valid(`schema_definition`)), `default_config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Default configuration values' CHECK (json_valid(`default_config`)), `preview_image` varchar(500) DEFAULT NULL, `category` varchar(50) DEFAULT NULL COMMENT 'layout, content, ecommerce, form', `is_system` tinyint(1) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `username` varchar(50) NOT NULL, `email` varchar(100) NOT NULL, `password_hash` varchar(255) NOT NULL, `full_name` varchar(100) DEFAULT NULL, `role_id` int(10) UNSIGNED NOT NULL, `avatar` varchar(255) DEFAULT NULL, `is_active` tinyint(1) DEFAULT 1, `last_login_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `user_sessions` -- CREATE TABLE `user_sessions` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `session_token` varchar(255) NOT NULL, `ip_address` varchar(45) DEFAULT NULL, `user_agent` text DEFAULT NULL, `last_activity` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(), `expires_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `videos` -- CREATE TABLE `videos` ( `id` int(10) UNSIGNED NOT NULL, `title` varchar(200) NOT NULL, `video_url` varchar(255) NOT NULL, `video_type` enum('youtube','vimeo','local') NOT NULL DEFAULT 'youtube', `thumbnail` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `videos` -- INSERT INTO `videos` (`id`, `title`, `video_url`, `video_type`, `thumbnail`, `description`, `is_active`, `sort_order`, `created_at`) VALUES (1, 'แนวคิดโซลาร์เซลล์เพื่ออนาคต', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'youtube', 'https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg', 'เรียนรู้เกี่ยวกับพลังงานสะอาดและทำไมเราถึงต้องเลือกโซลาร์เซลล์', 1, 1, '2026-05-12 21:57:17'), (2, 'การติดตั้งมาตรฐานวิศวกรรม', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'youtube', 'https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg', 'ขั้นตอนการทำงานของทีมช่างและมาตรฐานความปลอดภัยของเรา', 1, 2, '2026-05-12 21:57:17'), (3, 'รีวิวจากลูกค้าผู้ใช้งานจริง', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'youtube', 'https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg', 'ฟังความประทับใจและผลตอบรับจากลูกค้าที่เปลี่ยนมาใช้โซลาร์เซลล์', 1, 3, '2026-05-12 21:57:17'), (4, 'พาชมโชว์รูม Monothailand', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'youtube', 'https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg', 'สำรวจนวัตกรรมและเทคโนโลยีล่าสุดที่โชว์รูมของเรา', 1, 4, '2026-05-12 21:57:17'), (5, 'วิธีทำความสะอาดแผงโซลาร์เซลล์', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'youtube', 'https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg', 'คำแนะนำเบื้องต้นในการดูแลรักษาแผงเพื่อให้ทำงานได้เต็มประสิทธิภาพ', 1, 5, '2026-05-12 21:57:17'), (6, 'ระบบ Hybrid คืออะไร?', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'youtube', 'https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg', 'เจาะลึกข้อดีของระบบไฮบริดที่สามารถกักเก็บพลังงานไว้ใช้ตอนกลางคืน', 1, 6, '2026-05-12 21:57:17'); -- -------------------------------------------------------- -- -- Table structure for table `video_gallery` -- CREATE TABLE `video_gallery` ( `id` int(10) UNSIGNED NOT NULL, `gallery_name` varchar(100) NOT NULL, `video_path` varchar(500) NOT NULL, `thumbnail_path` varchar(500) DEFAULT NULL, `video_url` varchar(500) DEFAULT NULL, `video_type` enum('upload','youtube','vimeo','embed') NOT NULL DEFAULT 'upload', `title` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `duration` int(11) DEFAULT NULL, `file_size` bigint(20) DEFAULT NULL, `alt_text` varchar(255) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `sort_order` int(11) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `video_gallery` -- INSERT INTO `video_gallery` (`id`, `gallery_name`, `video_path`, `thumbnail_path`, `video_url`, `video_type`, `title`, `description`, `duration`, `file_size`, `alt_text`, `is_active`, `sort_order`, `created_at`, `updated_at`) VALUES (2, 'products', '', NULL, 'https://www.youtube.com/watch?v=4vY-IW-7ppI', 'youtube', 'อินเวอร์เตอร์ คืออะไร EP.1 ? อินเวอร์เตอร์ ทำงานอย่างไร ?', 'อินเวอร์เตอร์ คืออะไร EP.1 ? อินเวอร์เตอร์ ทำงานอย่างไร ?', NULL, NULL, 'อินเวอร์เตอร์ คืออะไร EP.1 ? อินเวอร์เตอร์ ทำงานอย่างไร ?', 1, 0, '2026-05-12 16:20:05', '2026-05-12 16:20:05'); -- -- Indexes for dumped tables -- -- -- Indexes for table `about_sections` -- ALTER TABLE `about_sections` ADD PRIMARY KEY (`id`), ADD KEY `idx_page` (`page_slug`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `admin_permissions` -- ALTER TABLE `admin_permissions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `unique_permission` (`user_id`,`permission`); -- -- Indexes for table `admin_sessions` -- ALTER TABLE `admin_sessions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `session_token` (`session_token`); -- -- Indexes for table `admin_users` -- ALTER TABLE `admin_users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`), ADD UNIQUE KEY `email` (`email`), ADD KEY `idx_role` (`role`), ADD KEY `idx_active` (`is_active`); -- -- Indexes for table `banners` -- ALTER TABLE `banners` ADD PRIMARY KEY (`id`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `branches` -- ALTER TABLE `branches` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`); -- -- Indexes for table `brands` -- ALTER TABLE `brands` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`); -- -- Indexes for table `cart_items` -- ALTER TABLE `cart_items` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `idx_unique_cart` (`session_id`,`product_id`), ADD KEY `idx_session` (`session_id`), ADD KEY `idx_customer` (`customer_id`), ADD KEY `fk_cart_product` (`product_id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `idx_parent` (`parent_id`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `contact_info` -- ALTER TABLE `contact_info` ADD PRIMARY KEY (`id`), ADD KEY `idx_type` (`info_type`), ADD KEY `idx_location` (`location`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `contact_inquiries` -- ALTER TABLE `contact_inquiries` ADD PRIMARY KEY (`id`), ADD KEY `idx_type` (`inquiry_type`), ADD KEY `idx_read` (`is_read`); -- -- Indexes for table `coupons` -- ALTER TABLE `coupons` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `code` (`code`); -- -- Indexes for table `cta_buttons` -- ALTER TABLE `cta_buttons` ADD PRIMARY KEY (`id`), ADD KEY `idx_page` (`page_slug`), ADD KEY `idx_position` (`position`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `customers` -- ALTER TABLE `customers` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`), ADD KEY `idx_email` (`email`); -- -- Indexes for table `documents` -- ALTER TABLE `documents` ADD PRIMARY KEY (`id`); -- -- Indexes for table `entity_attributes` -- ALTER TABLE `entity_attributes` ADD PRIMARY KEY (`id`), ADD KEY `idx_entity_type` (`entity_type_id`), ADD KEY `idx_key` (`attribute_key`); -- -- Indexes for table `entity_attribute_values` -- ALTER TABLE `entity_attribute_values` ADD PRIMARY KEY (`id`), ADD KEY `idx_entity` (`entity_id`,`entity_type`), ADD KEY `idx_attribute` (`attribute_id`); -- -- Indexes for table `entity_types` -- ALTER TABLE `entity_types` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `type_key` (`type_key`), ADD KEY `idx_type_key` (`type_key`); -- -- Indexes for table `expenses` -- ALTER TABLE `expenses` ADD PRIMARY KEY (`id`); -- -- Indexes for table `faqs` -- ALTER TABLE `faqs` ADD PRIMARY KEY (`id`), ADD KEY `idx_category` (`category`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `favorites` -- ALTER TABLE `favorites` ADD PRIMARY KEY (`id`), ADD KEY `product_id` (`product_id`), ADD KEY `customer_id` (`customer_id`), ADD KEY `session_id` (`session_id`); -- -- Indexes for table `features` -- ALTER TABLE `features` ADD PRIMARY KEY (`id`), ADD KEY `idx_page` (`page_slug`), ADD KEY `idx_section` (`section_name`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `feature_flags` -- ALTER TABLE `feature_flags` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `flag_key` (`flag_key`); -- -- Indexes for table `hero_sections` -- ALTER TABLE `hero_sections` ADD PRIMARY KEY (`id`), ADD KEY `idx_page` (`page_slug`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `image_gallery` -- ALTER TABLE `image_gallery` ADD PRIMARY KEY (`id`), ADD KEY `idx_gallery` (`gallery_name`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `inquiries` -- ALTER TABLE `inquiries` ADD PRIMARY KEY (`id`); -- -- Indexes for table `inquiry_proposals` -- ALTER TABLE `inquiry_proposals` ADD PRIMARY KEY (`id`), ADD KEY `inquiry_id` (`inquiry_id`); -- -- Indexes for table `knowledge_articles` -- ALTER TABLE `knowledge_articles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `idx_category` (`category_id`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_published` (`is_published`), ADD KEY `idx_featured` (`is_featured`), ADD KEY `idx_date` (`published_date`); -- -- Indexes for table `knowledge_categories` -- ALTER TABLE `knowledge_categories` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `map_locations` -- ALTER TABLE `map_locations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `menus` -- ALTER TABLE `menus` ADD PRIMARY KEY (`id`), ADD KEY `idx_parent_id` (`parent_id`), ADD KEY `idx_slug` (`slug`); -- -- Indexes for table `menu_groups` -- ALTER TABLE `menu_groups` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_location` (`location`); -- -- Indexes for table `menu_items` -- ALTER TABLE `menu_items` ADD PRIMARY KEY (`id`), ADD KEY `idx_group` (`menu_group_id`), ADD KEY `idx_parent` (`parent_id`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `navigation_items` -- ALTER TABLE `navigation_items` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `idx_category_link` (`linked_type`,`linked_id`,`menu_id`), ADD KEY `idx_menu` (`menu_id`), ADD KEY `idx_parent` (`parent_id`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_linked_type` (`linked_type`), ADD KEY `idx_linked_id` (`linked_id`), ADD KEY `idx_linked` (`linked_type`,`linked_id`); -- -- Indexes for table `navigation_menus` -- ALTER TABLE `navigation_menus` ADD PRIMARY KEY (`id`), ADD KEY `idx_location` (`location`), ADD KEY `idx_active` (`is_active`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `order_number` (`order_number`), ADD KEY `idx_customer` (`customer_id`), ADD KEY `idx_status` (`status`), ADD KEY `idx_order_number` (`order_number`); -- -- Indexes for table `order_items` -- ALTER TABLE `order_items` ADD PRIMARY KEY (`id`), ADD KEY `idx_order` (`order_id`), ADD KEY `fk_item_product` (`product_id`); -- -- Indexes for table `pages` -- ALTER TABLE `pages` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_type` (`page_type`), ADD KEY `idx_published` (`is_published`), ADD KEY `fk_page_author` (`created_by`); -- -- Indexes for table `page_instances` -- ALTER TABLE `page_instances` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `page_slug` (`page_slug`), ADD KEY `idx_slug` (`page_slug`), ADD KEY `idx_status` (`status`), ADD KEY `idx_template` (`template_key`), ADD KEY `idx_published` (`published_at`), ADD KEY `fk_page_instance_creator` (`created_by`), ADD KEY `fk_page_instance_updater` (`updated_by`); -- -- Indexes for table `page_revisions` -- ALTER TABLE `page_revisions` ADD PRIMARY KEY (`id`), ADD KEY `idx_page_id` (`page_id`), ADD KEY `idx_created_at` (`created_at`); -- -- Indexes for table `page_sections` -- ALTER TABLE `page_sections` ADD PRIMARY KEY (`id`), ADD KEY `idx_page` (`page_slug`), ADD KEY `idx_type` (`section_type`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `page_templates` -- ALTER TABLE `page_templates` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `template_key` (`template_key`), ADD KEY `idx_template_key` (`template_key`), ADD KEY `idx_active` (`is_active`); -- -- Indexes for table `payment_transactions` -- ALTER TABLE `payment_transactions` ADD PRIMARY KEY (`id`), ADD KEY `order_id` (`order_id`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD UNIQUE KEY `sku` (`sku`), ADD KEY `idx_category` (`category_id`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_featured` (`is_featured`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_price` (`price`); ALTER TABLE `products` ADD FULLTEXT KEY `ft_search` (`name`,`short_description`); -- -- Indexes for table `product_favorites` -- ALTER TABLE `product_favorites` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `unique_favorite` (`product_id`,`customer_id`,`session_id`), ADD KEY `idx_product` (`product_id`), ADD KEY `idx_customer` (`customer_id`), ADD KEY `idx_session` (`session_id`); -- -- Indexes for table `product_images` -- ALTER TABLE `product_images` ADD PRIMARY KEY (`id`), ADD KEY `idx_product` (`product_id`); -- -- Indexes for table `product_reviews` -- ALTER TABLE `product_reviews` ADD PRIMARY KEY (`id`), ADD KEY `idx_product` (`product_id`), ADD KEY `idx_approved` (`is_approved`), ADD KEY `idx_rating` (`rating`), ADD KEY `idx_product_reviews_product_id` (`product_id`), ADD KEY `idx_product_reviews_rating` (`rating`), ADD KEY `idx_product_reviews_approved` (`is_approved`); -- -- Indexes for table `product_variations` -- ALTER TABLE `product_variations` ADD PRIMARY KEY (`id`), ADD KEY `idx_product` (`product_id`), ADD KEY `idx_active` (`is_active`); -- -- Indexes for table `projects` -- ALTER TABLE `projects` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_type` (`project_type`), ADD KEY `idx_featured` (`featured`), ADD KEY `idx_published` (`is_published`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `refresh_tokens` -- ALTER TABLE `refresh_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `token` (`token`), ADD KEY `idx_user_id` (`user_id`), ADD KEY `idx_token` (`token`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`), ADD UNIQUE KEY `slug` (`slug`); -- -- Indexes for table `sdui_blocks` -- ALTER TABLE `sdui_blocks` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `unique_block` (`block_type`,`block_name`); -- -- Indexes for table `services` -- ALTER TABLE `services` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_featured` (`featured`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `shipments` -- ALTER TABLE `shipments` ADD PRIMARY KEY (`id`), ADD KEY `idx_order` (`order_id`); -- -- Indexes for table `shipping_rules` -- ALTER TABLE `shipping_rules` ADD PRIMARY KEY (`id`); -- -- Indexes for table `site_settings` -- ALTER TABLE `site_settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `setting_key` (`setting_key`), ADD KEY `idx_key` (`setting_key`), ADD KEY `idx_group` (`category`); -- -- Indexes for table `solar_provincial_coefficients` -- ALTER TABLE `solar_provincial_coefficients` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `idx_province_en` (`province_name_en`); -- -- Indexes for table `solutions` -- ALTER TABLE `solutions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `slug` (`slug`), ADD KEY `idx_slug` (`slug`), ADD KEY `idx_featured` (`featured`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `statistics` -- ALTER TABLE `statistics` ADD PRIMARY KEY (`id`), ADD KEY `idx_page` (`page_slug`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `stock_logs` -- ALTER TABLE `stock_logs` ADD PRIMARY KEY (`id`), ADD KEY `idx_product` (`product_id`); -- -- Indexes for table `testimonials` -- ALTER TABLE `testimonials` ADD PRIMARY KEY (`id`), ADD KEY `idx_featured` (`is_featured`), ADD KEY `idx_published` (`is_published`), ADD KEY `idx_sort` (`sort_order`); -- -- Indexes for table `theme_config` -- ALTER TABLE `theme_config` ADD PRIMARY KEY (`id`); -- -- Indexes for table `theme_configurations` -- ALTER TABLE `theme_configurations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ui_blocks` -- ALTER TABLE `ui_blocks` ADD PRIMARY KEY (`id`), ADD KEY `idx_type` (`block_type`), ADD KEY `idx_category` (`category`), ADD KEY `idx_active` (`is_active`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`), ADD UNIQUE KEY `email` (`email`), ADD KEY `idx_username` (`username`), ADD KEY `idx_email` (`email`), ADD KEY `idx_role_id` (`role_id`); -- -- Indexes for table `user_sessions` -- ALTER TABLE `user_sessions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `session_token` (`session_token`), ADD KEY `idx_user_id` (`user_id`), ADD KEY `idx_session_token` (`session_token`); -- -- Indexes for table `videos` -- ALTER TABLE `videos` ADD PRIMARY KEY (`id`); -- -- Indexes for table `video_gallery` -- ALTER TABLE `video_gallery` ADD PRIMARY KEY (`id`), ADD KEY `idx_gallery` (`gallery_name`), ADD KEY `idx_active` (`is_active`), ADD KEY `idx_sort` (`sort_order`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `about_sections` -- ALTER TABLE `about_sections` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `admin_permissions` -- ALTER TABLE `admin_permissions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `admin_sessions` -- ALTER TABLE `admin_sessions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `admin_users` -- ALTER TABLE `admin_users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `banners` -- ALTER TABLE `banners` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `branches` -- ALTER TABLE `branches` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `brands` -- ALTER TABLE `brands` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cart_items` -- ALTER TABLE `cart_items` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `contact_info` -- ALTER TABLE `contact_info` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `contact_inquiries` -- ALTER TABLE `contact_inquiries` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `coupons` -- ALTER TABLE `coupons` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cta_buttons` -- ALTER TABLE `cta_buttons` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `customers` -- ALTER TABLE `customers` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `documents` -- ALTER TABLE `documents` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `entity_attributes` -- ALTER TABLE `entity_attributes` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `entity_attribute_values` -- ALTER TABLE `entity_attribute_values` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `entity_types` -- ALTER TABLE `entity_types` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `expenses` -- ALTER TABLE `expenses` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `faqs` -- ALTER TABLE `faqs` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT for table `favorites` -- ALTER TABLE `favorites` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `features` -- ALTER TABLE `features` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40; -- -- AUTO_INCREMENT for table `feature_flags` -- ALTER TABLE `feature_flags` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `hero_sections` -- ALTER TABLE `hero_sections` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `image_gallery` -- ALTER TABLE `image_gallery` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `inquiries` -- ALTER TABLE `inquiries` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `inquiry_proposals` -- ALTER TABLE `inquiry_proposals` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `knowledge_articles` -- ALTER TABLE `knowledge_articles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `knowledge_categories` -- ALTER TABLE `knowledge_categories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `map_locations` -- ALTER TABLE `map_locations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `menus` -- ALTER TABLE `menus` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `menu_groups` -- ALTER TABLE `menu_groups` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `menu_items` -- ALTER TABLE `menu_items` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34; -- -- AUTO_INCREMENT for table `navigation_items` -- ALTER TABLE `navigation_items` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42; -- -- AUTO_INCREMENT for table `navigation_menus` -- ALTER TABLE `navigation_menus` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `order_items` -- ALTER TABLE `order_items` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pages` -- ALTER TABLE `pages` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `page_instances` -- ALTER TABLE `page_instances` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `page_revisions` -- ALTER TABLE `page_revisions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `page_sections` -- ALTER TABLE `page_sections` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `page_templates` -- ALTER TABLE `page_templates` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `payment_transactions` -- ALTER TABLE `payment_transactions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT for table `product_favorites` -- ALTER TABLE `product_favorites` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `product_images` -- ALTER TABLE `product_images` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `product_reviews` -- ALTER TABLE `product_reviews` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `product_variations` -- ALTER TABLE `product_variations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `projects` -- ALTER TABLE `projects` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `refresh_tokens` -- ALTER TABLE `refresh_tokens` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `sdui_blocks` -- ALTER TABLE `sdui_blocks` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `services` -- ALTER TABLE `services` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40; -- -- AUTO_INCREMENT for table `shipments` -- ALTER TABLE `shipments` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `shipping_rules` -- ALTER TABLE `shipping_rules` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `site_settings` -- ALTER TABLE `site_settings` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `solar_provincial_coefficients` -- ALTER TABLE `solar_provincial_coefficients` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46; -- -- AUTO_INCREMENT for table `solutions` -- ALTER TABLE `solutions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `statistics` -- ALTER TABLE `statistics` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- AUTO_INCREMENT for table `stock_logs` -- ALTER TABLE `stock_logs` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `testimonials` -- ALTER TABLE `testimonials` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `theme_config` -- ALTER TABLE `theme_config` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `theme_configurations` -- ALTER TABLE `theme_configurations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `ui_blocks` -- ALTER TABLE `ui_blocks` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `user_sessions` -- ALTER TABLE `user_sessions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `videos` -- ALTER TABLE `videos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `video_gallery` -- ALTER TABLE `video_gallery` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `imgproject` -- -- AUTO_INCREMENT is already set in CREATE TABLE statement -- -- Constraints for dumped tables -- -- -- Constraints for table `cart_items` -- ALTER TABLE `cart_items` ADD CONSTRAINT `fk_cart_product` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE; -- -- Constraints for table `categories` -- ALTER TABLE `categories` ADD CONSTRAINT `fk_category_parent` FOREIGN KEY (`parent_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL; -- -- Constraints for table `entity_attributes` -- ALTER TABLE `entity_attributes` ADD CONSTRAINT `fk_attr_entity_type` FOREIGN KEY (`entity_type_id`) REFERENCES `entity_types` (`id`) ON DELETE CASCADE; -- -- Constraints for table `entity_attribute_values` -- ALTER TABLE `entity_attribute_values` ADD CONSTRAINT `fk_eav_attribute` FOREIGN KEY (`attribute_id`) REFERENCES `entity_attributes` (`id`) ON DELETE CASCADE; -- -- Constraints for table `inquiry_proposals` -- ALTER TABLE `inquiry_proposals` ADD CONSTRAINT `inquiry_proposals_ibfk_1` FOREIGN KEY (`inquiry_id`) REFERENCES `inquiries` (`id`) ON DELETE CASCADE; -- -- Constraints for table `knowledge_articles` -- ALTER TABLE `knowledge_articles` ADD CONSTRAINT `fk_article_category` FOREIGN KEY (`category_id`) REFERENCES `knowledge_categories` (`id`) ON DELETE SET NULL; -- -- Constraints for table `menus` -- ALTER TABLE `menus` ADD CONSTRAINT `fk_menus_parent` FOREIGN KEY (`parent_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE; -- -- Constraints for table `menu_items` -- ALTER TABLE `menu_items` ADD CONSTRAINT `fk_menu_group` FOREIGN KEY (`menu_group_id`) REFERENCES `menu_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `fk_menu_parent` FOREIGN KEY (`parent_id`) REFERENCES `menu_items` (`id`) ON DELETE SET NULL; -- -- Constraints for table `navigation_items` -- ALTER TABLE `navigation_items` ADD CONSTRAINT `fk_nav_menu` FOREIGN KEY (`menu_id`) REFERENCES `navigation_menus` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `fk_nav_parent` FOREIGN KEY (`parent_id`) REFERENCES `navigation_items` (`id`) ON DELETE CASCADE; -- -- Constraints for table `orders` -- ALTER TABLE `orders` ADD CONSTRAINT `fk_order_customer` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE SET NULL; -- -- Constraints for table `order_items` -- ALTER TABLE `order_items` ADD CONSTRAINT `fk_item_order` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `fk_item_product` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE SET NULL; -- -- Constraints for table `pages` -- ALTER TABLE `pages` ADD CONSTRAINT `fk_page_author` FOREIGN KEY (`created_by`) REFERENCES `admin_users` (`id`) ON DELETE SET NULL; -- -- Constraints for table `page_instances` -- ALTER TABLE `page_instances` ADD CONSTRAINT `fk_page_instance_creator` FOREIGN KEY (`created_by`) REFERENCES `admin_users` (`id`) ON DELETE SET NULL, ADD CONSTRAINT `fk_page_instance_updater` FOREIGN KEY (`updated_by`) REFERENCES `admin_users` (`id`) ON DELETE SET NULL; -- -- Constraints for table `payment_transactions` -- ALTER TABLE `payment_transactions` ADD CONSTRAINT `payment_transactions_ibfk_1` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE; -- -- Constraints for table `products` -- ALTER TABLE `products` ADD CONSTRAINT `fk_product_category` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL; -- -- Constraints for table `product_favorites` -- ALTER TABLE `product_favorites` ADD CONSTRAINT `fk_favorite_product` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE; -- -- Constraints for table `product_images` -- ALTER TABLE `product_images` ADD CONSTRAINT `fk_image_product` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE; -- -- Constraints for table `product_reviews` -- ALTER TABLE `product_reviews` ADD CONSTRAINT `fk_review_product` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE; -- -- Constraints for table `product_variations` -- ALTER TABLE `product_variations` ADD CONSTRAINT `fk_variation_product` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE; -- ============================================ -- LEGACY TABLES FROM OLD SYSTEM (u625410797_monothailand) -- ============================================ -- -- Table structure for table `cusContact` -- CREATE TABLE `cusContact` ( `conName` varchar(200) NOT NULL, `conEmail` varchar(100) NOT NULL, `conMobile` varchar(10) NOT NULL, `conSubject` varchar(200) NOT NULL, `conMessage` varchar(200) NOT NULL, `updateDate` varchar(10) NOT NULL, `updateTime` varchar(10) NOT NULL, `status` varchar(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `cusContact` (legitimate contacts only) -- INSERT INTO `cusContact` (`conName`, `conEmail`, `conMobile`, `conSubject`, `conMessage`, `updateDate`, `updateTime`, `status`) VALUES ('Victor ', 'oakmart03@gmail.com', '+66 952732', 'Solar system ', 'I want a quotation Of solar system and full details of solar panels!', '2025-08-04', '06:55:12', '1'), ('ชัชชญา เตชะนุกูล', 'kaewchaya3005@gmail.com', '0979244490', 'อยากรบกวนเวลาในการช่วยกรอกแบบสอบถามสำหรับงานวิจัยค่ะ', 'เรียน ผู้ประกอบการ และบุคลากรในองค์กร\r\nสวัสดีค่ะ ดิฉัน ชัชชญา เตชะนุกูล นักศึกษาชั้นปีที่ 4 คณะ Information Management and Information Systems จากมหาวิทยาลัย China University of Petroleum (Beijing) ข', '2026-03-14', '06:04:17', '1'), ('ชัชชญา เตชะนุกูล ', 'kaewchaya3005@gmail.com', '0979244490', 'อยากรบกวนเวลาในการช่วยกรอกแบบสอบถามสำหรับงานวิจัยค่ะ', 'เรียน ผู้ประกอบการ และบุคลากรในองค์กร\r\nสวัสดีค่ะ ดิฉัน ชัชชญา เตชะนุกูล นักศึกษาชั้นปีที่ 4 คณะ Information Management and Information Systems จากมหาวิทยาลัย China University of Petroleum (Beijing) ข', '2026-03-14', '06:04:34', '1'), ('Kevin Llamas', 'llamas.kevin@gmail.com', '7813038463', 'Finally, A Foolproof 30-Day Roadmap — The Exact System I Used to Build My Online Business...', 'Stop wasting your budget on expensive ads and complex tech by implementing a 30-day AI-driven roadmap that automates 80% of your content creation and lead generation. Scale your business effortlessly ', '2026-03-05', '13:22:58', '1'), ('Randell Alvarado', 'randell.alvarado@gmail.com', '5837495825', 'Hi monothailand.com Webmaster.', 'Hi,\r\n\r\nI am a senior web developer, highly skilled and with 10+ years of collective web design and development experience, I work in one of the best web development company.\r\n\r\nMy hourly rate is $8\r\n\r', '2026-03-07', '06:27:51', '1'), ('Don', 'sales@mendez.bangeshop.com', '714249388', 'Don Mendez', 'Hello there, \r\n\r\nI hope this email finds you well. I wanted to let you know about our new BANGE backpacks and sling bags that just released.\r\n\r\nBange is perfect for students, professionals and travele', '2026-03-09', '17:51:37', '1'), ('Israel', 'sales@alarcon.bangeshop.com', '4299141', 'Israel Alarcon', 'Hi there, \r\n\r\nI hope this email finds you well. I wanted to let you know about our new BANGE backpacks and sling bags that just released.\r\n\r\nBange is perfect for students, professionals and travelers.', '2026-03-30', '15:11:52', '1'), ('Gemma Marshall', 'gemmamarshall811@gmail.com', '652014960', 'Targeted Instagram growth for monothailand.com', 'Hi,\r\n\r\nI''m reaching out because we help brands connected to monothailand.com build authority on Instagram.\r\n\r\nWe use our customized AI system, mixed with natural manual interaction to drive niche-rele', '2026-05-08', '17:03:00', '1'); -- -- Table structure for table `cusinfo` -- CREATE TABLE `cusinfo` ( `cusName` varchar(150) NOT NULL, `cusSurname` varchar(150) NOT NULL, `cusMobile` varchar(10) NOT NULL, `cusEmail` varchar(150) NOT NULL, `cusLine` varchar(50) NOT NULL, `cusPlace` varchar(200) NOT NULL, `cusPhase` varchar(10) NOT NULL, `cusBahtPerMonth` varchar(10) NOT NULL, `cusPercent` varchar(10) NOT NULL, `updateDate` int(10) NOT NULL, `updateTime` int(10) NOT NULL, `status` varchar(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `cusinfo` (mostly empty entries - table structure preserved only) -- -- -- Table structure for table `imgindex` -- CREATE TABLE `imgindex` ( `imgId` int(10) NOT NULL, `imgName` varchar(100) NOT NULL, `imgUrl` varchar(250) NOT NULL, `imgStatus` varchar(1) NOT NULL, `updateDate` varchar(20) NOT NULL, `updateTime` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `imgindex` -- INSERT INTO `imgindex` (`imgId`, `imgName`, `imgUrl`, `imgStatus`, `updateDate`, `updateTime`) VALUES (1, 'home-es-1.jpg', 'assets/img/index/home-es-1.jpg', '1', '2025-02-19', '09:27'), (2, 'home-es-2.jpg', 'assets/img/index/home-es-2.jpg', '1', '2025-02-19', '09:27'), (3, 'home-es-3.jpg', 'assets/img/index/home-es-3.jpg', '1', '2025-02-19', '09:27'), (4, 'home-es-4.jpg', 'assets/img/index/home-es-4.jpg', '1', '2025-02-19', '09:27'); -- -- Table structure for table `imgproject` -- DROP TABLE IF EXISTS `imgproject`; CREATE TABLE `imgproject` ( `imgId` int(10) NOT NULL AUTO_INCREMENT, `imgName` varchar(100) NOT NULL, `imgUrl` varchar(250) NOT NULL, `imgStatus` varchar(1) NOT NULL, `updateDate` varchar(20) NOT NULL, `updateTime` varchar(20) NOT NULL, `projectID` int(10) NOT NULL, PRIMARY KEY (`imgId`), KEY `projectID` (`projectID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `imgproject` -- INSERT INTO `imgproject` (`imgId`, `imgName`, `imgUrl`, `imgStatus`, `updateDate`, `updateTime`, `projectID`) VALUES (1, 'Project-01-1.jpg', 'uploads/portfolio/Project-01-1.jpg', '1', '2025-02-19', '09:27', 1), (2, 'Project-01-2.jpg', 'uploads/portfolio/Project-01-2.jpg', '1', '2025-02-19', '09:27', 1), (3, 'Project-01-3.jpg', 'uploads/portfolio/Project-01-3.jpg', '1', '2025-02-19', '09:27', 1), (4, 'Project-01-4.jpg', 'uploads/portfolio/Project-01-4.jpg', '1', '2025-02-19', '09:27', 1), (5, 'Project-01-5.jpg', 'uploads/portfolio/Project-01-5.jpg', '1', '2025-02-19', '09:27', 1), (6, 'Project-01-6.jpg', 'uploads/portfolio/Project-01-6.jpg', '1', '2025-02-19', '09:27', 1), (7, 'Project-01-7.jpg', 'uploads/portfolio/Project-01-7.jpg', '1', '2025-02-19', '09:27', 1), (8, 'Project-01-8.jpg', 'uploads/portfolio/Project-01-8.jpg', '1', '2025-02-19', '09:27', 1), (9, 'Project-01-9.jpg', 'uploads/portfolio/Project-01-9.jpg', '1', '2025-02-19', '09:27', 1), (10, 'Project-01-10.jpg', 'uploads/portfolio/Project-01-10.jpg', '1', '2025-02-19', '09:27', 1), (11, 'Project-01-11.jpg', 'uploads/portfolio/Project-01-11.jpg', '1', '2025-02-19', '09:27', 1), (12, 'Project-01-12.jpg', 'uploads/portfolio/Project-01-12.jpg', '1', '2025-02-19', '09:27', 1), (13, 'Project-01-13.jpg', 'uploads/portfolio/Project-01-13.jpg', '1', '2025-02-19', '09:27', 1), (14, 'Project-01-14.jpg', 'uploads/portfolio/Project-01-14.jpg', '1', '2025-02-19', '09:27', 1), (15, 'Project-02-1.jpg', 'uploads/portfolio/Project-02-1.jpg', '1', '2025-02-19', '09:27', 2), (16, 'Project-02-2.jpg', 'uploads/portfolio/Project-02-2.jpg', '1', '2025-02-19', '09:27', 2), (17, 'Project-02-3.jpg', 'uploads/portfolio/Project-02-3.jpg', '1', '2025-02-19', '09:27', 2), (18, 'Project-02-4.jpg', 'uploads/portfolio/Project-02-4.jpg', '1', '2025-02-19', '09:27', 2), (19, 'Project-02-5.jpg', 'uploads/portfolio/Project-02-5.jpg', '1', '2025-02-19', '09:27', 2), (20, 'Project-02-6.jpg', 'uploads/portfolio/Project-02-6.jpg', '1', '2025-02-19', '09:27', 2), (21, 'Project-03-1.jpg', 'uploads/portfolio/Project-03-1.jpg', '1', '2025-02-19', '09:27', 3), (22, 'Project-03-2.jpg', 'uploads/portfolio/Project-03-2.jpg', '1', '2025-02-19', '09:27', 3), (23, 'Project-03-3.jpg', 'uploads/portfolio/Project-03-3.jpg', '1', '2025-02-19', '09:27', 3), (24, 'Project-03-4.jpg', 'uploads/portfolio/Project-03-4.jpg', '1', '2025-02-19', '09:27', 3), (25, 'Project-03-5.jpg', 'uploads/portfolio/Project-03-5.jpg', '1', '2025-02-19', '09:27', 3), (26, 'Project-03-6.jpg', 'uploads/portfolio/Project-03-6.jpg', '1', '2025-02-19', '09:27', 3), (27, 'Project-03-7.jpg', 'uploads/portfolio/Project-03-7.jpg', '1', '2025-02-19', '09:27', 3), (28, 'Project-04-1.jpg', 'uploads/portfolio/Project-04-1.jpg', '1', '2025-02-19', '09:27', 4), (29, 'Project-04-2.jpg', 'uploads/portfolio/Project-04-2.jpg', '1', '2025-02-19', '09:27', 4), (30, 'Project-04-3.jpg', 'uploads/portfolio/Project-04-3.jpg', '1', '2025-02-19', '09:27', 4), (31, 'Project-04-4.jpg', 'uploads/portfolio/Project-04-4.jpg', '1', '2025-02-19', '09:27', 4), (32, 'Project-04-5.jpg', 'uploads/portfolio/Project-04-5.jpg', '1', '2025-02-19', '09:27', 4), (33, 'Project-04-6.jpg', 'uploads/portfolio/Project-04-6.jpg', '1', '2025-02-19', '09:27', 4), (34, 'Project-04-7.jpg', 'uploads/portfolio/Project-04-7.jpg', '1', '2025-02-19', '09:27', 4), (35, 'Project-04-8.jpg', 'uploads/portfolio/Project-04-8.jpg', '1', '2025-02-19', '09:27', 4), (36, 'Project-04-9.jpg', 'uploads/portfolio/Project-04-9.jpg', '1', '2025-02-19', '09:27', 4), (37, 'Project-05-1.jpg', 'uploads/portfolio/Project-05-1.jpg', '1', '2025-02-19', '09:27', 5), (38, 'Project-05-2.jpg', 'uploads/portfolio/Project-05-2.jpg', '1', '2025-02-19', '09:27', 5), (39, 'Project-05-3.jpg', 'uploads/portfolio/Project-05-3.jpg', '1', '2025-02-19', '09:27', 5), (40, 'Project-05-4.jpg', 'uploads/portfolio/Project-05-4.jpg', '1', '2025-02-19', '09:27', 5), (41, 'Project-05-5.jpg', 'uploads/portfolio/Project-05-5.jpg', '1', '2025-02-19', '09:27', 5), (42, 'Project-05-6.jpg', 'uploads/portfolio/Project-05-6.jpg', '1', '2025-02-19', '09:27', 5), (43, 'Project-05-7.jpg', 'uploads/portfolio/Project-05-7.jpg', '1', '2025-02-19', '09:27', 5), (44, 'Project-05-8.jpg', 'uploads/portfolio/Project-05-8.jpg', '1', '2025-02-19', '09:27', 5), (45, 'Project-05-9.jpg', 'uploads/portfolio/Project-05-9.jpg', '1', '2025-02-19', '09:27', 5), (46, 'Project-05-10.jpg', 'uploads/portfolio/Project-05-10.jpg', '1', '2025-02-19', '09:27', 5), (47, 'Project-05-11.jpg', 'uploads/portfolio/Project-05-11.jpg', '1', '2025-02-19', '09:27', 5), (48, 'Project-06-1.jpg', 'uploads/portfolio/Project-06-1.jpg', '1', '2025-02-19', '09:27', 6), (49, 'Project-06-2.jpg', 'uploads/portfolio/Project-06-2.jpg', '1', '2025-02-19', '09:27', 6), (50, 'Project-06-3.jpg', 'uploads/portfolio/Project-06-3.jpg', '1', '2025-02-19', '09:27', 6), (51, 'Project-06-4.jpg', 'uploads/portfolio/Project-06-4.jpg', '1', '2025-02-19', '09:27', 6), (52, 'Project-06-5.jpg', 'uploads/portfolio/Project-06-5.jpg', '1', '2025-02-19', '09:27', 6), (53, 'Project-06-6.jpg', 'uploads/portfolio/Project-06-6.jpg', '1', '2025-02-19', '09:27', 6), (54, 'Project-06-7.jpg', 'uploads/portfolio/Project-06-7.jpg', '1', '2025-02-19', '09:27', 6), (55, 'Project-06-8.jpg', 'uploads/portfolio/Project-06-8.jpg', '1', '2025-02-19', '09:27', 6), (56, 'Project-07-1.jpg', 'uploads/portfolio/Project-07-1.jpg', '1', '2025-02-19', '09:27', 7), (57, 'Project-07-2.jpg', 'uploads/portfolio/Project-07-2.jpg', '1', '2025-02-19', '09:27', 7), (58, 'Project-07-3.jpg', 'uploads/portfolio/Project-07-3.jpg', '1', '2025-02-19', '09:27', 7), (59, 'Project-07-4.jpg', 'uploads/portfolio/Project-07-4.jpg', '1', '2025-02-19', '09:27', 7), (60, 'Project-07-5.jpg', 'uploads/portfolio/Project-07-5.jpg', '1', '2025-02-19', '09:27', 7), (61, 'Project-07-6.jpg', 'uploads/portfolio/Project-07-6.jpg', '1', '2025-02-19', '09:27', 7), (62, 'Project-07-7.jpg', 'uploads/portfolio/Project-07-7.jpg', '1', '2025-02-19', '09:27', 7), (63, 'Project-07-8.jpg', 'uploads/portfolio/Project-07-8.jpg', '1', '2025-02-19', '09:27', 7), (64, 'Project-07-9.jpg', 'uploads/portfolio/Project-07-9.jpg', '1', '2025-02-19', '09:27', 7), (65, 'Project-07-10.jpg', 'uploads/portfolio/Project-07-10.jpg', '1', '2025-02-19', '09:27', 7), (66, 'Project-08-1.jpg', 'uploads/portfolio/Project-08-1.jpg', '1', '2025-02-19', '09:27', 8), (67, 'Project-09-1.jpg', 'uploads/portfolio/Project-09-1.jpg', '1', '2025-02-19', '09:27', 9), (68, 'Project-10-1.jpg', 'uploads/portfolio/Project-10-1.jpg', '1', '2025-02-19', '09:27', 10), (69, 'Project-10-2.jpg', 'uploads/portfolio/Project-10-2.jpg', '1', '2025-02-19', '09:27', 10), (70, 'Project-10-3.jpg', 'uploads/portfolio/Project-10-3.jpg', '1', '2025-02-19', '09:27', 10), (71, 'Project-10-4.jpg', 'uploads/portfolio/Project-10-4.jpg', '1', '2025-02-19', '09:27', 10), (72, 'Project-10-5.jpg', 'uploads/portfolio/Project-10-5.jpg', '1', '2025-02-19', '09:27', 10), (73, 'Project-10-6.jpg', 'uploads/portfolio/Project-10-6.jpg', '1', '2025-02-19', '09:27', 10), (74, 'Project-10-7.jpg', 'uploads/portfolio/Project-10-7.jpg', '1', '2025-02-19', '09:27', 10), (75, 'Project-11-1.jpg', 'uploads/portfolio/Project-11-1.jpg', '1', '2025-02-19', '09:27', 11), (76, 'Project-11-2.jpg', 'uploads/portfolio/Project-11-2.jpg', '1', '2025-02-19', '09:27', 11), (77, 'Project-11-3.jpg', 'uploads/portfolio/Project-11-3.jpg', '1', '2025-02-19', '09:27', 11), (78, 'Project-11-4.jpg', 'uploads/portfolio/Project-11-4.jpg', '1', '2025-02-19', '09:27', 11), (79, 'Project-11-5.jpg', 'uploads/portfolio/Project-11-5.jpg', '1', '2025-02-19', '09:27', 11), (80, 'Project-11-6.jpg', 'uploads/portfolio/Project-11-6.jpg', '1', '2025-02-19', '09:27', 11), (81, 'Project-11-7.jpg', 'uploads/portfolio/Project-11-7.jpg', '1', '2025-02-19', '09:27', 11), (82, 'Project-11-8.jpg', 'uploads/portfolio/Project-11-8.jpg', '1', '2025-02-19', '09:27', 11), (83, 'Project-11-9.jpg', 'uploads/portfolio/Project-11-9.jpg', '1', '2025-02-19', '09:27', 11), (84, 'Project-11-10.jpg', 'uploads/portfolio/Project-11-10.jpg', '1', '2025-02-19', '09:27', 11), (85, 'Project-11-11.jpg', 'uploads/portfolio/Project-11-11.jpg', '1', '2025-02-19', '09:27', 11), (86, 'Project-11-12.jpg', 'uploads/portfolio/Project-11-12.jpg', '1', '2025-02-19', '09:27', 11), (87, 'Project-11-13.jpg', 'uploads/portfolio/Project-11-13.jpg', '1', '2025-02-19', '09:27', 11), (88, 'Project-11-14.jpg', 'uploads/portfolio/Project-11-14.jpg', '1', '2025-02-19', '09:27', 11), (89, 'Project-12-1.jpg', 'uploads/portfolio/Project-12-1.jpg', '1', '2025-02-19', '09:27', 12), (90, 'Project-12-2.jpg', 'uploads/portfolio/Project-12-2.jpg', '1', '2025-02-19', '09:27', 12), (91, 'Project-12-3.jpg', 'uploads/portfolio/Project-12-3.jpg', '1', '2025-02-19', '09:27', 12), (92, 'Project-12-4.jpg', 'uploads/portfolio/Project-12-4.jpg', '1', '2025-02-19', '09:27', 12), (93, 'Project-12-5.jpg', 'uploads/portfolio/Project-12-5.jpg', '1', '2025-02-19', '09:27', 12), (94, 'Project-12-6.jpg', 'uploads/portfolio/Project-12-6.jpg', '1', '2025-02-19', '09:27', 12); -- -- Table structure for table `imgservice` -- DROP TABLE IF EXISTS `imgservice`; CREATE TABLE `imgservice` ( `imgId` int(10) NOT NULL AUTO_INCREMENT, `imgName` varchar(100) NOT NULL, `imgUrl` varchar(250) NOT NULL, `imgStatus` varchar(1) NOT NULL, `updateDate` varchar(20) NOT NULL, `updateTime` varchar(20) NOT NULL, PRIMARY KEY (`imgId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `imgservice` -- INSERT INTO `imgservice` (`imgId`, `imgName`, `imgUrl`, `imgStatus`, `updateDate`, `updateTime`) VALUES (1, 'services-design.jpg', 'assets/img/services/services-design.jpg', '1', '2025-02-19', '09:27'), (2, 'services-build.jpg', 'assets/img/services/services-build.jpg', '1', '2025-02-19', '09:27'), (3, 'services-request.jpg', 'assets/img/services/services-request.jpg', '1', '2025-02-19', '09:27'), (4, 'services-ppa1.jpg', 'assets/img/services/services-ppa1.jpg', '1', '2025-02-19', '09:27'), (5, 'services-om.jpg', 'assets/img/services/services-om.jpg', '1', '2025-02-19', '09:27'); -- -- Table structure for table `project` -- CREATE TABLE `project` ( `projectId` int(10) NOT NULL, `projectName` varchar(200) NOT NULL, `projectPlace` varchar(250) NOT NULL, `projectWatt` varchar(50) NOT NULL, `projectStatus` varchar(1) NOT NULL, `imgName` varchar(100) NOT NULL, `imgUrl` varchar(250) NOT NULL, `projectGroup` varchar(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `project` -- INSERT INTO `project` (`projectId`, `projectName`, `projectPlace`, `projectWatt`, `projectStatus`, `imgName`, `imgUrl`, `projectGroup`) VALUES (1, 'บริษัท ส.เจริญ เพลทติ้ง จำกัด', '128/975 หมู่ 1 ถนนเทพารักษ์ ต.บางเสาธง อ.บางเสาธง จ.สมุทรปราการ 10570', '364.42 kWp', '1', 'Project-01-1.jpg', 'assets/img/portfolio/Project-01-1.jpg', '1'), (2, 'บริษัท ฟาราเทค จำกัด', '128 96 หมู่15 ซอย ไทยประกัน ซอย 3/2 ตำบลบางเสาธง อำเภอบางเสาธง สมุทรปราการ 10540', '577.885kWp', '1', 'Project-02-1.jpg', 'assets/img/portfolio/Project-02-1.jpg', '1'), (3, 'บริษัท แสตนดาร์ด คาสติ้ง จำกัด', '128/990 หมู่ที่ 1 ถนนเทพารักษ์ ตำบลบางเสาธง อำเภอบางเสาธง จ.สมุทรปราการ 10570', '509.2kWp', '1', 'Project-03-1.jpg', 'assets/img/portfolio/Project-03-1.jpg', '1'), (4, 'สหกรณ์ออมทรัพย์พนักงานบริษัทการบินไทย จำกัด สำนักงานกิ่งแก้ว', 'เลขที่ 8/5 ถนนกิ่งแก้ว ต.ราชาเทวะ อ.บางพลี จ.สมุทรปราการ 10540', '111.72kWp/Bettery 15kWh', '1', 'Project-04-1.jpg', 'assets/img/portfolio/Project-04-1.jpg', '2'), (5, 'สหกรณ์ออมทรัพย์พนักงานบริษัทการบินไทย จำกัด สำนักงานลาดพร้าว', '59/39-40 หมู่ที่ - ซ.ทรงสะอาด ถนน วิภาวดีรังสิต ต.ลาดยาว อ.จตุจักร กรุงเทพมหานคร 10900', '35.91kWp/Bettery 5kWh', '1', 'Project-05-1.jpg', 'assets/img/portfolio/Project-05-1.jpg', '2'), (6, 'คุณนินนาท พัฒนวิบูลย์', 'เลขที่ 11 ซอย 5 แขวงสวนหลวง เขตสวนหลวง กรุงเทพมหานคร 10250', '22.56 kWp', '1', 'Project-06-1.jpg', 'assets/img/portfolio/Project-06-1.jpg', '3'), (7, 'คุณวิวัฒน์ อัศวสำเริง', '19 ซ. นราธิวาสราชนครินทร์ 8 แขวงทุ่งวัดดอน เขตสาทร กรุงเทพมหานคร 10120', '19.035kWp', '1', 'Project-07-1.jpg', 'assets/img/portfolio/Project-07-1.jpg', '3'), (8, 'โคก หนอง นา โมเดล นายศักดิ์ สมบุญโต', 'หมู่ที่ 5 ต.หนองหมู อ.วิหารแดง จ.สระบุรี', '10 kWp', '1', 'Project-08-1.jpg', 'assets/img/portfolio/Project-08-1.jpg', '4'), (9, 'โคก หนอง นา โมเดล นายรวมพล คำมี', 'หมูที 9 ต.ดงตะงาว อ.ดอนพุด จ.สระบุรี', '10 kWp', '1', 'Project-09-1.jpg', 'assets/img/portfolio/Project-09-1.jpg', '4'), (10, 'โครงการติดตั้งระบบพลังงานแสงอาทิตย์ศูนย์ประสานงานเพื่อการพัฒนาเชิงพื้นที่ในเงาอย่างยั่งยืน ', 'บ้านนาดอย ม.๙ ต.แม่สวด ตำบลแม่สวด\r\nอำเภอสบเมย จังหวัดแม่ฮ่อนสอน ', '', '1', 'Project-10-1.jpg', 'assets/img/portfolio/Project-10-1.jpg', '4'), (11, 'โครงการติดตั้งระบบสูบน้ำพลังงานแสงอาทิตย์ เพื่อสู้ภัยแล้ง ', '', '', '1', 'Project-11-1.jpg', 'assets/img/portfolio/Project-11-1.jpg', '4'), (12, 'โครงการ ห้องอบพลังงานแสงอาทิตย์', '', '3,000 W', '1', 'Project-12-1.jpg', 'assets/img/portfolio/Project-12-1.jpg', '4'); -- -- Table structure for table `usertable` -- DROP TABLE IF EXISTS `usertable`; CREATE TABLE `usertable` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `code` int(11) DEFAULT NULL, `status` varchar(50) DEFAULT 'notverified', `otpcode` varchar(50) DEFAULT NULL, `mobie` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Table structure for table `meter_usertable` -- DROP TABLE IF EXISTS `meter_usertable`; CREATE TABLE `meter_usertable` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `DeviceID` varchar(255) DEFAULT NULL, `timeday` datetime DEFAULT NULL, `timestamp` varchar(50) DEFAULT NULL, `timestamp1` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Table structure for table `meter_user_devicelist` -- DROP TABLE IF EXISTS `meter_user_devicelist`; CREATE TABLE `meter_user_devicelist` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `DeviceName` varchar(255) NOT NULL, `Master_No` int(11) DEFAULT NULL, `DeviceID` int(11) DEFAULT NULL, `DeviceType` int(11) DEFAULT NULL, `nameDVinUser` varchar(255) DEFAULT 'PowerMeterDevice', `status` varchar(50) DEFAULT 'offline', `Lattitude` varchar(255) DEFAULT NULL, `Longtitude` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `Battery` varchar(255) DEFAULT NULL, `timestamp` varchar(50) DEFAULT NULL, `timestamp1` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Table structure for table `meter_devicelist` -- DROP TABLE IF EXISTS `meter_devicelist`; CREATE TABLE `meter_devicelist` ( `id` int(11) NOT NULL AUTO_INCREMENT, `Master_No` int(11) NOT NULL, `DeviceID` int(11) NOT NULL, `DeviceType` int(11) NOT NULL, `name` varchar(255) NOT NULL, `Timeout` int(11) DEFAULT NULL, `EnableDevice` varchar(50) DEFAULT '1', `TimeIntervalRecord` int(11) DEFAULT NULL, `EnableLine` varchar(50) DEFAULT '0', `Enableoffline` varchar(50) DEFAULT '0', `TimeDelaySendMss` int(11) DEFAULT NULL, `LineToken` varchar(255) DEFAULT NULL, `timeday` datetime DEFAULT NULL, `timestamp` varchar(50) DEFAULT NULL, `timestamp1` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Table structure for table `data_power_meter_3phase_sdm360` -- DROP TABLE IF EXISTS `data_power_meter_3phase_sdm360`; CREATE TABLE `data_power_meter_3phase_sdm360` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Master_No` int(11) DEFAULT NULL, `DeviceID` int(11) DEFAULT NULL, `DeviceType` int(11) DEFAULT NULL, `timestamp1` bigint(20) DEFAULT NULL, `Lattitude` varchar(255) DEFAULT NULL, `Longtitude` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `Battery` varchar(255) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Table structure for table `MSMMt_person` -- DROP TABLE IF EXISTS `MSMMt_person`; CREATE TABLE `MSMMt_person` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `name` varchar(255) DEFAULT NULL, `status` varchar(50) DEFAULT 'pending', `stepupdate` int(11) DEFAULT 0, `timestamp` varchar(50) DEFAULT NULL, `timestamp1` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Table structure for table `MSMMt_mainequipment` -- DROP TABLE IF EXISTS `MSMMt_mainequipment`; CREATE TABLE `MSMMt_mainequipment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `equipment_name` varchar(255) DEFAULT NULL, `equipment_type` varchar(255) DEFAULT NULL, `status` varchar(50) DEFAULT 'active', `timestamp` varchar(50) DEFAULT NULL, `timestamp1` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Table structure for table `file_upload_multi` -- DROP TABLE IF EXISTS `file_upload_multi`; CREATE TABLE `file_upload_multi` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `filename` varchar(255) NOT NULL, `filepath` varchar(255) NOT NULL, `filetype` varchar(255) DEFAULT NULL, `filesize` bigint(20) DEFAULT NULL, `upload_date` datetime DEFAULT NULL, `status` varchar(50) DEFAULT 'active', `timestamp` varchar(50) DEFAULT NULL, `timestamp1` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 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 */;
💾 Simpan File
Batal
⬅ Naik ke public_html
1 item
Nama
Tipe
Ukuran
Diubah
Aksi
🗃️
monothailand.sql
sql
226.9 KB
2026-05-31 16:39
✏️ Edit
👁️ View
🗑 Hapus