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 */;

--
-- Table structure for table `companies`
--

CREATE TABLE `companies` (
  `company_uuid` varchar(36) NOT NULL DEFAULT uuid(),
  `source_uuid` varchar(36) NOT NULL,
  `company_source_id` varchar(64) NOT NULL,
  `company_source_id2` varchar(64) DEFAULT NULL,
  `company_name` varchar(128) NOT NULL,
  `company_state` enum('imported','active','orphaned') NOT NULL DEFAULT 'imported',
  `company_create_timestamp` int(10) NOT NULL,
  `company_modified_timestamp` int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `ip_login_attempts`
--

CREATE TABLE `ip_login_attempts` (
  `address` char(16) NOT NULL,
  `timestamp` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `office_stompjes`
--

CREATE TABLE `office_stompjes` (
  `stomp_uuid` varchar(36) NOT NULL,
  `user_uuid` char(36) NOT NULL,
  `stomp_timestamp` int(10) NOT NULL,
  `stomp_reason` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `servers`
--

CREATE TABLE `servers` (
  `server_uuid` varchar(36) NOT NULL,
  `company_uuid` varchar(36) DEFAULT NULL,
  `server_vm_id` varchar(64) NOT NULL,
  `server_vm_host_id` varchar(64) DEFAULT NULL,
  `server_vm_host_name` varchar(64) DEFAULT NULL,
  `server_vm_snapshot` int(2) UNSIGNED DEFAULT NULL,
  `server_vm_generation` int(11) DEFAULT NULL,
  `server_power_state` enum('Off','Running') NOT NULL DEFAULT 'Running',
  `server_state` enum('new','active','deleted','trial','disabled') NOT NULL DEFAULT 'new',
  `server_hostname` varchar(128) DEFAULT NULL,
  `server_os` varchar(64) DEFAULT NULL,
  `server_cpu` int(2) DEFAULT NULL,
  `server_memory` int(10) DEFAULT NULL,
  `server_memory_demand` int(10) DEFAULT NULL,
  `server_disks` varchar(1024) DEFAULT NULL,
  `server_ipv4` varchar(128) DEFAULT NULL,
  `server_ipv6` varchar(256) DEFAULT NULL,
  `server_licenses` varchar(1024) DEFAULT NULL,
  `server_backup` varchar(1024) DEFAULT NULL,
  `server_description` varchar(1024) DEFAULT NULL,
  `server_create_timestamp` int(11) NOT NULL,
  `server_modified_timestamp` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `system_modules`
--

CREATE TABLE `system_modules` (
  `module_uuid` varchar(36) NOT NULL,
  `module_name` varchar(64) NOT NULL,
  `module_slugify` varchar(64) NOT NULL,
  `module_enabled` tinyint(4) NOT NULL DEFAULT 0,
  `module_description` varchar(255) DEFAULT NULL,
  `module_create_timestamp` int(11) NOT NULL,
  `module_modified_timestamp` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `system_modules`
--

INSERT INTO `system_modules` (`module_uuid`, `module_name`, `module_slugify`, `module_enabled`, `module_description`, `module_create_timestamp`, `module_modified_timestamp`) VALUES
('0f044275-1744-444c-9627-736310d7997e', 'Portal Management', 'system', 1, NULL, 1762695975, NULL),
('247aa89e-2ffa-4cba-8672-3fef451255b7', 'Customers', 'customers', 0, NULL, 1762696058, NULL),
('46f0a6d8-21be-4f76-8a95-2e22be8f3878', 'Office', 'office', 0, NULL, 1762802659, NULL),
('ce86cab5-fb45-4e7c-8733-e9eb516bf3f5', 'Servers', 'servers', 0, NULL, 1765114409, NULL),
('f535daf2-a1fb-4e8e-acf1-009233cf97a2', 'Autoprovisioning', 'autop', 0, NULL, 1762696032, NULL);

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

--
-- Table structure for table `system_pages`
--

CREATE TABLE `system_pages` (
  `page_uuid` varchar(36) NOT NULL,
  `module_uuid` varchar(36) DEFAULT NULL,
  `page_name` varchar(32) NOT NULL,
  `page_icon` varchar(64) DEFAULT NULL,
  `page_description` varchar(64) DEFAULT NULL,
  `page_location` varchar(128) NOT NULL,
  `page_url` varchar(64) NOT NULL,
  `page_color` varchar(16) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `system_pages`
--

INSERT INTO `system_pages` (`page_uuid`, `module_uuid`, `page_name`, `page_icon`, `page_description`, `page_location`, `page_url`, `page_color`) VALUES
('2ad33be7-9689-40cc-89c7-a04b501caa7b', 'f535daf2-a1fb-4e8e-acf1-009233cf97a2', 'provisioning', 'fas fa-phone', 'dashboard_text_phones', '/autop/pageProvisioning.php', '/provisioning', 'primary'),
('2e771206-dea1-4f77-ac59-c898b26098ad', '0f044275-1744-444c-9627-736310d7997e', 'feedback', 'fa-regular fa-comment', NULL, 'pageFeedback.php', '/feedback', NULL),
('398a5fb6-94af-4ac9-9e50-4f40acb6f8f3', 'f535daf2-a1fb-4e8e-acf1-009233cf97a2', 'vendors', 'fas fa-microchip', 'dashboard_text_vendors', '/autop/pageVendors.php', '/vendors', 'primary'),
('3a4cede8-c8bc-472e-8d79-e2c38c245a45', 'ce86cab5-fb45-4e7c-8733-e9eb516bf3f5', 'server_overview', 'fa-solid fa-server', 'dashboard_text_server_overview', '/servers/pageServerOverview.php', '/servers', 'success'),
('4d2bb0f5-62c9-417e-a9ba-f673124f6a3a', 'f535daf2-a1fb-4e8e-acf1-009233cf97a2', 'phonebooks', 'fas fa-address-book', 'dashboard_text_phonebooks', '/autop/pagePhonebooks.php', '/phonebooks', 'primary'),
('53c2bb43-afb7-46a1-9eb1-a3376d629d8e', '247aa89e-2ffa-4cba-8672-3fef451255b7', 'companies', 'fas fa-building', 'dashboard_text_organizations', '/customers/pageCompanies.php', '/companies', 'success'),
('558df250-d6bd-4b81-b23d-99b472b2c72a', '0f044275-1744-444c-9627-736310d7997e', 'systemconfig', 'fas fa-cogs', 'dashboard_text_systemconfig', '/portal-management/pageSystemConfig.php', '/systemconfig', 'danger'),
('5b167631-ba04-4452-bb8f-3ae0be8bccb0', '0f044275-1744-444c-9627-736310d7997e', 'inserve_source', NULL, 'source_inserve', '/portal-management/sources/pageSourceInserve.php', '/portal-management/sources/inserve', 'warning'),
('94ba750f-4a0a-46ea-830b-07b86fd0ed47', 'f535daf2-a1fb-4e8e-acf1-009233cf97a2', 'device_settings', 'fas fa-terminal', 'dashboard_text_device_settings', '/autop/pageDevicesSettings.php', '/devicesettings', 'primary'),
('a9e542a7-be1e-4e93-a924-7f43ef974e16', '0f044275-1744-444c-9627-736310d7997e', 'monitoring', 'fa-solid fa-magnifying-glass', 'dashboard_text_monitoring', '/portal-management/pageMonitoring.php', '/monitoring', 'info'),
('aa4a31ba-6da6-4449-a39a-08d161663346', '0f044275-1744-444c-9627-736310d7997e', 'dashboard', 'fas fa-tachometer-alt', NULL, 'pageDashboard.php', '/', NULL),
('ac9eca38-5d4a-4e08-a85a-4f56775f1861', '0f044275-1744-444c-9627-736310d7997e', 'userprofile', 'fa-solid fa-address-card', NULL, 'pageUserProfile.php', '/userprofile', NULL),
('b3e7b4a9-c108-4761-83cf-a2fc6ad624db', '46f0a6d8-21be-4f76-8a95-2e22be8f3878', 'stompjeslist', 'fa-solid fa-hand-fist', 'dashboard_text_stompjes', '/office/pageStompjes.php', '/stompjes', 'primary'),
('c14362c2-7db2-4047-aed2-9569c0b4febf', '0f044275-1744-444c-9627-736310d7997e', 'access_control', 'fa-solid fa-user-group', 'dashboard_text_access_control', '/portal-management/pageAccessControl.php', '/accesscontrol', 'warning'),
('cc6ef77a-79b2-4e65-af27-978c33a39bfe', '0f044275-1744-444c-9627-736310d7997e', 'changelog', 'fa-solid fa-table-list', NULL, 'pageChangelog.php', '/changelog', NULL),
('d0f9e1b4-9584-40d7-a6c1-f397ea030b14', 'f535daf2-a1fb-4e8e-acf1-009233cf97a2', 'platforms', 'fas fa-layer-group', 'dashboard_text_platforms', '/autop/pagePlatforms.php', '/platforms', 'primary'),
('f851bc6f-564e-4689-813b-84e56e99ee1f', 'f535daf2-a1fb-4e8e-acf1-009233cf97a2', 'devices', 'fas fa-fax', 'dashboard_text_devices', '/autop/pageDevices.php', '/devices', 'primary');

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

--
-- Table structure for table `system_sources`
--

CREATE TABLE `system_sources` (
  `source_uuid` varchar(36) NOT NULL,
  `source_name` varchar(32) NOT NULL,
  `source_url` varchar(255) DEFAULT NULL,
  `source_auth_username` varchar(64) DEFAULT NULL,
  `source_auth_password` varchar(64) DEFAULT NULL,
  `source_auth_token` varchar(255) DEFAULT NULL,
  `source_custom_data` varchar(30000) DEFAULT NULL,
  `source_create_timestamp` int(10) NOT NULL,
  `source_modified_timestamp` int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


--
-- Table structure for table `system_api_tokens`
--

CREATE TABLE `system_api_tokens` (
  `api_token_uuid` char(36) NOT NULL,
  `user_uuid` char(36) NOT NULL,
  `api_token` char(64) NOT NULL,
  `api_token_name` char(64),
  `api_token_expiration_timestamp` int(10) DEFAULT NULL,
  `api_token_created_timestamp` int(10) DEFAULT NULL,
  `api_token_last_used_timestamp` int(10) DEFAULT NULL,
  `api_token_revoked` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;


--
-- Table structure for table `autop_devices`
--

CREATE TABLE `autop_devices` (
  `device_uuid` varchar(36) NOT NULL,
  `device_vendor_uuid` varchar(36) NOT NULL,
  `device_type` varchar(15) NOT NULL,
  `device_name` varchar(64) NOT NULL,
  `device_slugify` varchar(64) NOT NULL,
  `device_enabled` tinyint(1) NOT NULL,
  `device_notes` text DEFAULT NULL,
  `device_eol` int(10) DEFAULT NULL,
  `device_extensions` text DEFAULT '[""]',
  `device_extra` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '{}',
  `device_create_timestamp` int(10) DEFAULT NULL,
  `device_modified_timestamp` int(10) DEFAULT NULL,
  `device_image` longblob DEFAULT NULL,
  `device_image_thumbnail` longblob DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `autop_devices`
--

INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('02b052d0-c88b-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T53/T53W/T53C', 't53t53wt53c', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":95}}', 1735768669, NULL, [encoded data, 325122 characters], [encoded data, 11570 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('0965c28f-c94f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'base', 'W70B', 'w70b', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 297106 characters], [encoded data, 9194 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('11656b7c-c886-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T40G', 't40g', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":76}}', 1735768669, NULL, [encoded data, 361426 characters], [encoded data, 12034 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('13b2b1fd-c87f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'CP860', 'cp860', 0, '', 1750279334, '[\"8654873f-c956-11ef-a4fe-7e99ed98b725\",\"a64ba0f5-ccd6-11ef-a4fe-7e99ed98b725\"]', 'null', 1735768669, 1749933734, [encoded data, 739450 characters], [encoded data, 14954 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('17e91edb-c887-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T42G', 't42g', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":29}}', 1735768669, NULL, [encoded data, 339554 characters], [encoded data, 12154 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('1bc2dfe0-c88a-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T48G', 't48g', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":35}}', 1735768669, NULL, [encoded data, 479538 characters], [encoded data, 14514 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('24bccf99-3749-11f0-9300-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'test', 'test', 1, 'tes', 1745871334, '[\"6e9830fa-c86f-11ef-a4fe-7e99ed98b725\"]', '{}', 1735768669, NULL, [encoded data, 58530 characters], [encoded data, 7722 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('262bdafd-c882-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T31/T31P/T31G', 't31t31pt31g', 0, '', NULL, '[\"e06d2cfb-c954-11ef-a4fe-7e99ed98b725\"]', '{\"yealink\":{\"common_config_number\":123}}', 1735768669, NULL, [encoded data, 295690 characters], [encoded data, 11922 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('299e523d-c889-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T43U', 't43u', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":107}}', 1735768669, NULL, [encoded data, 332442 characters], [encoded data, 10250 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('2f9906a6-c941-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'base', 'W56P', 'w56p', 1, '', NULL, '[\"58c8650c-c94f-11ef-a4fe-7e99ed98b725\",\"6230cd50-c94f-11ef-a4fe-7e99ed98b725\",\"69ea8aea-c94f-11ef-a4fe-7e99ed98b725\",\"710e459f-c957-11ef-a4fe-7e99ed98b725\"]', '{}', 1735768669, NULL, [encoded data, 556242 characters], [encoded data, 11506 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('3e796d1b-c82e-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T21 E2/T21P-E2', 't21-e2t21p-e2', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":52}}', 1735768669, NULL, [encoded data, 303242 characters], [encoded data, 11914 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('42690952-c886-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T40P', 't40p', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":54}}', 1735768669, NULL, [encoded data, 323962 characters], [encoded data, 12786 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('4e664d17-c889-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T44U', 't44u', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":173}}', 1735768669, NULL, [encoded data, 405090 characters], [encoded data, 14546 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('58c8650c-c94f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'W52H', 'w52h', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 178546 characters], [encoded data, 7898 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('5d1c92f9-c88a-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T48S', 't48s', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":65}}', 1735768669, NULL, [encoded data, 354506 characters], [encoded data, 13042 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('6230cd50-c94f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'W53H', 'w53h', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 222242 characters], [encoded data, 9322 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('64b7694c-c86f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'EXP40', 'exp40', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 279482 characters], [encoded data, 16402 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('69ea8aea-c94f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'W56H', 'w56h', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 223490 characters], [encoded data, 8690 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('6a44fa38-c887-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T42U', 't42u', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":116}}', 1735768669, NULL, [encoded data, 351554 characters], [encoded data, 12258 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('6a6034b8-c882-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T33P/T33G', 't33pt33g', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":124}}', 1735768669, NULL, [encoded data, 378978 characters], [encoded data, 11650 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('6da06750-c952-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'W57R', 'w57r', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 248170 characters], [encoded data, 7978 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('6dc39ffd-c886-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T41P', 't41p', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":36}}', 1735768669, NULL, [encoded data, 442394 characters], [encoded data, 14122 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('6e9830fa-c86f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'EXP43', 'exp43', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 210850 characters], [encoded data, 15170 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('710e459f-c957-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'RT30', 'rt30', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 103682 characters], [encoded data, 9042 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('72a7889a-c889-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T46G', 't46g', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":28}}', 1735768669, NULL, [encoded data, 387674 characters], [encoded data, 12530 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('735c636e-c88e-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T54W', 't54w', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":96}}', 1735768669, NULL, [encoded data, 316874 characters], [encoded data, 10746 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('73892e21-c94f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'W59R', 'w59r', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 249610 characters], [encoded data, 8610 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('770438ec-c87f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'CP930W', 'cp930w', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 351498 characters], [encoded data, 11386 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('844527a9-c94f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'W73H', 'w73h', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 284074 characters], [encoded data, 8978 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('8654873f-c956-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'WF50', 'wf50', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 148162 characters], [encoded data, 10970 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('87fe8d3b-c86f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'EXP50', 'exp50', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 219426 characters], [encoded data, 15322 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('8e780ebb-cc40-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T58W', 't58w', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":150}}', 1735768669, NULL, [encoded data, 414546 characters], [encoded data, 12354 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('96801cd3-cc45-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T31W', 't31w', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":172}}', 1735768669, NULL, [encoded data, 416050 characters], [encoded data, 11530 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('98575bd0-c88e-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T57W', 't57w', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":97}}', 1735768669, NULL, [encoded data, 304626 characters], [encoded data, 10786 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('9ae99e0c-c86f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'DD10K', 'dd10k', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 69218 characters], [encoded data, 6146 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('9c55bf87-c881-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T27P', 't27p', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":45}}', 1735768669, NULL, [encoded data, 349546 characters], [encoded data, 12962 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('9d49e31a-4960-11f0-9300-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'testPHon', 'testphon', 1, 'testing', 1749933975, '[\"6e9830fa-c86f-11ef-a4fe-7e99ed98b725\"]', '', 1749933975, NULL, NULL, NULL);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('a2c6b690-c88a-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T48U', 't48u', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":109}}', 1735768669, NULL, [encoded data, 364202 characters], [encoded data, 13090 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('a64ba0f5-ccd6-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'CPE80', 'cpe80', 1, '', NULL, '[\"\"]', 'null', 1735768669, NULL, [encoded data, 268130 characters], [encoded data, 9722 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('a6db0f89-c86f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'WF40', 'wf40', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 49666 characters], [encoded data, 9330 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('a7c17f80-c94f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'W78H', 'w78h', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 250514 characters], [encoded data, 8634 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('a865a067-c886-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T41S', 't41s', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":68}}', 1735768669, NULL, [encoded data, 381170 characters], [encoded data, 12810 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('a8da81e5-cd47-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T54S', 't54s', 1, '', NULL, '[\"\"]', '', 1735768669, NULL, NULL, NULL);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('ad8fd327-cc45-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T34W', 't34w', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":171}}', 1735768669, NULL, [encoded data, 367578 characters], [encoded data, 11930 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('b8e8e8db-c95d-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'EXP38', 'exp38', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 331250 characters], [encoded data, 17370 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('ba22d7a3-c95a-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'RT20U', 'rt20u', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 83914 characters], [encoded data, 5138 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('bb9fc773-cc45-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T44W', 't44w', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":174}}', 1735768669, NULL, [encoded data, 405090 characters], [encoded data, 14546 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('c675e9ac-c88e-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T58A', 't58a', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":58}}', 1735768669, NULL, [encoded data, 301826 characters], [encoded data, 10810 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('c686a64a-c881-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T29G', 't29g', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":46}}', 1735768669, NULL, [encoded data, 307130 characters], [encoded data, 10698 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('c6f3ce97-c95a-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'RT20', 'rt20', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 77362 characters], [encoded data, 4426 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('c8311a7f-c95b-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'RT10', 'rt10', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 197194 characters], [encoded data, 6626 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('c8d0eb89-c889-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T46S', 't46s', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":66}}', 1735768669, NULL, [encoded data, 361202 characters], [encoded data, 12346 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('d292daaa-cc45-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T23P/T23G', 't23pt23g', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":44}}', 1735768669, NULL, [encoded data, 359874 characters], [encoded data, 11666 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('da8d5bcf-c88a-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T52S', 't52s', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":70}}', 1735768669, NULL, [encoded data, 309218 characters], [encoded data, 10962 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('dcf35155-c87f-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T19 E2/T19P-E2', 't19-e2t19p-e2', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":53}}', 1735768669, NULL, [encoded data, 377858 characters], [encoded data, 13450 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('e05fc803-c889-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T46U', 't46u', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":108}}', 1735768669, NULL, [encoded data, 382650 characters], [encoded data, 13026 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('e06d2cfb-c954-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'module', 'EXP39', 'exp39', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 495034 characters], [encoded data, 15978 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('e9963d7d-c886-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T42S', 't42s', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":67}}', 1735768669, NULL, [encoded data, 317922 characters], [encoded data, 12346 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('ee3e1e33-c940-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'base', 'W60B', 'w60b', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 534074 characters], [encoded data, 9930 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('f5d77dfe-c952-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'handset', 'CP935W', 'cp935w', 1, '', NULL, '[\"\"]', '{}', 1735768669, NULL, [encoded data, 292786 characters], [encoded data, 9978 characters]);
INSERT INTO `autop_devices` (`device_uuid`, `device_vendor_uuid`, `device_type`, `device_name`, `device_slugify`, `device_enabled`, `device_notes`, `device_eol`, `device_extensions`, `device_extra`, `device_create_timestamp`, `device_modified_timestamp`, `device_image`, `device_image_thumbnail`) VALUES
('ffb7089e-cc3e-11ef-a4fe-7e99ed98b725', 'd3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'phone', 'T30/T30P', 't30t30p', 0, '', NULL, '[\"\"]', '{\"yealink\":{\"common_config_number\":127}}', 1735768669, NULL, [encoded data, 406386 characters], [encoded data, 11594 characters]);

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

--
-- Table structure for table `vc_feedback`
--

CREATE TABLE `vc_feedback` (
  `id` int(6) UNSIGNED NOT NULL,
  `user_id` varchar(30) NOT NULL,
  `feedback_text` mediumtext NOT NULL,
  `feedback_date` int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `system_permissions`
--

CREATE TABLE `system_permissions` (
  `permission_uuid` char(36) NOT NULL,
  `permission_name` varchar(255) NOT NULL,
  `permission_slugify` varchar(255) NOT NULL,
  `permission_description` varchar(512) DEFAULT NULL,
  `permission_create_timestamp` int(10) DEFAULT NULL,
  `permission_modified_timestamp` int(10) DEFAULT NULL,
  `module_uuid` varchar(36) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `system_permissions`
--

INSERT INTO `system_permissions` (`permission_uuid`, `permission_name`, `permission_slugify`, `permission_description`, `permission_create_timestamp`, `permission_modified_timestamp`, `module_uuid`) VALUES
('11abc93d-c265-11f0-95da-7e99ed98b725', 'office-stompjes', 'office-stompjes', 'When a user has RW permissions, they can view, add, modify, and delete stomps. When a user has RO permissions, they can only view stomps.', 1763239979, NULL, '46f0a6d8-21be-4f76-8a95-2e22be8f3878'),
('1425fa24-2b6b-11f0-9300-7e99ed98b725', 'admin-access-control-permissions', 'admin-access-control-permissions', 'superuser can create or delete permissions, regardless of a groups Read-Write (RW) access. While RW access allows a group to modify all existing permissions, it does not permit the creation or deletion of them. Use caution when assigning RW access only the highest-level administrative group should be granted this permission, as it effectively provides control over the entire portal.', 1749933229, 1749933229, '0f044275-1744-444c-9627-736310d7997e'),
('19795051-302e-11f0-9300-7e99ed98b725', 'admin-vendors', 'admin-vendors', 'Grants access to manage support for various VoIP phone vendors. It is recommended that only top-level administrators have Read/Write (RW) access, while all other administrators are granted Read-Only (RO) access.', 1749933229, NULL, 'f535daf2-a1fb-4e8e-acf1-009233cf97a2'),
('1d018159-3109-11f0-9300-7e99ed98b725', 'admin-portalsettings', 'admin-portalsettings', 'Grants access to modify the global settings. It is advisable to restrict this permission to only the highest-level administrators.', 1749933229, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('32541357-3814-11f0-9300-7e99ed98b725', 'admin-access-control-user-groups', 'admin-access-control-user-groups', 'Grants access to manage groups. Read/Write (RW) access allows users to create, modify, and delete groups. Read-Only (RO) access permits viewing groups without making changes.', 1749933229, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('36a615b1-374d-11f0-9300-7e99ed98b725', 'admin-devices-files', 'admin-devices-files', 'Grants permission to upload and remove files on the device, including firmware and document files.', 1749933229, NULL, 'f535daf2-a1fb-4e8e-acf1-009233cf97a2'),
('5f284b11-de7c-11f0-9d57-00155d00153f', 'office-stompjes-canstomp', 'office-stompjes-canstomp', 'Users with read-write (RW) permissions can stomp other users content but cannot delete stomps. Read-only (RO) permissions have no effect.', 1766328621, 1766328688, '46f0a6d8-21be-4f76-8a95-2e22be8f3878'),
('6846e77f-31c8-11f0-9300-7e99ed98b725', 'admin-devices', 'admin-devices', 'Grants access to view and manage devices within the portal. Read/Write (RW) access allows creating, editing, and deleting devices, while Read-Only (RO) access permits viewing devices only.', 1749933229, NULL, 'f535daf2-a1fb-4e8e-acf1-009233cf97a2'),
('6b434bee-3a73-11f0-9300-7e99ed98b725', 'admin-access-admins-resetpassword', 'admin-access-admins-resetpassword', 'Grants permission to initiate a password reset for administrator users. This action sends a reset code to the administrator&#039;s email, allowing them to set a new password. Only users with Read/Write (RW) access can perform this action.', 1749933229, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('7172efaa-2c35-11f0-9300-7e99ed98b725', 'user-apitoken-others', 'user-apitoken-others', 'Grants the ability to view, create, update, or revoke API tokens belonging to other users. It is recommended to assign Read-Only (RO) or Read-Write (RW) access for this permission only to administrators, due to its sensitive nature.', 1749933229, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('755c8a22-2f60-11f0-9300-7e99ed98b725', 'admin-platforms', 'admin-platforms', 'Grants access to manage the support of various VoIP platforms. It is recommended that only top-level administrators have Read/Write (RW) access, while other administrators should have Read-Only (RO) access.', 1749933229, 1762637524, 'f535daf2-a1fb-4e8e-acf1-009233cf97a2'),
('7588d486-3100-11f0-9300-7e99ed98b725', 'admin-mailsettings', 'admin-mailsettings', 'Grants access to modify the mail settings. It is advisable to restrict this permission to only the highest-level administrators.', 1749933229, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('9cf47631-d371-11f0-9d03-00155d00153f', 'servers', 'servers', 'Allow access to the server overview. Users with read-only (RO) permissions can view all servers, while users with read-write (RW) permissions can also modify, add or remove them.', 1765114538, 1765118618, 'ce86cab5-fb45-4e7c-8733-e9eb516bf3f5'),
('b21a0915-3a62-11f0-9300-7e99ed98b725', 'admin-access-admins-mfa', 'admin-access-admins-mfa', 'Grants permission to disable multi-factor authentication (MFA) for other administrator users. Users with Read/Write (RW) access can perform this action. Read-Only (RO) access does not permit changes.', 1749933229, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('b816b7e8-38d8-11f0-9300-7e99ed98b725', 'admin-access-admins', 'admin-access-admins', 'Grants permissions for managing administrator accounts. Users with Read/Write (RW) access can create, modify, and delete administrator users. Users with Read-Only (RO) access can view administrator accounts and read their details, but cannot make changes. ', 1749933229, 1766327515, '0f044275-1744-444c-9627-736310d7997e'),
('d0578d4f-bcea-11f0-95da-7e99ed98b725', 'admin-modules', 'admin-modules', 'Grants permission to enable or disable modules within the portal. Users with Read/Write (RW) access can both enable and disable modules, while users with Read-Only (RO) access can only view them. This permission should be assigned only to the highest-level administrative group.', 1762637715, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('e6741033-c589-11f0-9a78-00155d00153f', 'admin-sources', 'admin-sources', 'This permission controls access to the sources from which Sentri retrieves information. With read-only (RO) access, a user can view the sources and their settings. With read-write (RW) access, a user can create, modify, and delete sources.', 1763585651, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('e7c4dba8-23a2-11f0-9300-7e99ed98b725', 'user-apitoken-self', 'user-apitoken-self', 'Allows users to create, view, revoke, and delete their own API tokens via the user profile page.', 1749933229, NULL, '0f044275-1744-444c-9627-736310d7997e'),
('f1fd6629-c717-11f0-9a78-00155d00153f', 'customer-companies', 'customer-companies', 'Allow access to view customer information. Users with read-only (RO) permissions can view companies, while users with read-write (RW) permissions can modify them.', 1763756611, NULL, '247aa89e-2ffa-4cba-8672-3fef451255b7');

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

--
-- Table structure for table `autop_platforms`
--

CREATE TABLE `autop_platforms` (
  `platform_uuid` char(36) NOT NULL,
  `platform_name` varchar(64) NOT NULL,
  `platform_slugify` varchar(64) DEFAULT NULL,
  `platform_description` text DEFAULT NULL,
  `platform_enabled` tinyint(1) NOT NULL DEFAULT 1,
  `platform_create_timestamp` int(10) DEFAULT NULL,
  `platform_modified_timestamp` int(10) DEFAULT NULL,
  `platform_image` longblob DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `autop_platforms`
--

INSERT INTO `autop_platforms` (`platform_uuid`, `platform_name`, `platform_slugify`, `platform_description`, `platform_enabled`, `platform_create_timestamp`, `platform_modified_timestamp`, `platform_image`) VALUES
('1e7fd677-c620-11ef-a4fe-7e99ed98b725', 'Broadsoft', 'broadsoft', 'BroadSoft (now part of Cisco) is a leading cloud communications and collaboration platform. It offers a comprehensive suite of VOIP, Unified Communications, and contact center solutions for service providers and enterprises. BroadSoft is known for its scalability, robust API integrations, and carrier-grade reliability.', 0, 1735509469, 1750103253, [encoded data, 64442 characters]);
INSERT INTO `autop_platforms` (`platform_uuid`, `platform_name`, `platform_slugify`, `platform_description`, `platform_enabled`, `platform_create_timestamp`, `platform_modified_timestamp`, `platform_image`) VALUES
('28ee9d92-c626-11ef-a4fe-7e99ed98b725', '3CX', '3cx', '3CX is a software-based VOIP phone system that runs on Windows, Linux, or in the cloud. It supports SIP-based telephony and includes features like video conferencing, call center solutions, and mobile apps. It is widely used for its easy setup, management, and cost-effectiveness.', 1, 1735509469, 1748033869, [encoded data, 286242 characters]);
INSERT INTO `autop_platforms` (`platform_uuid`, `platform_name`, `platform_slugify`, `platform_description`, `platform_enabled`, `platform_create_timestamp`, `platform_modified_timestamp`, `platform_image`) VALUES
('6d0224e2-c61e-11ef-a4fe-7e99ed98b725', 'Kwebbl', 'kwebbl', 'Kwebbl is a cloud-based VOIP and Unified Communications platform that focuses on simplicity and flexibility. It provides seamless integration with CRM systems and offers features like advanced call management, collaboration tools, and scalable communication services tailored for enterprises and service providers.', 1, 1735509469, 1747256269, [encoded data, 19890 characters]);
INSERT INTO `autop_platforms` (`platform_uuid`, `platform_name`, `platform_slugify`, `platform_description`, `platform_enabled`, `platform_create_timestamp`, `platform_modified_timestamp`, `platform_image`) VALUES
('a76ea917-c61c-11ef-a4fe-7e99ed98b725', 'FreePBX', 'freepbx', 'FreePBX is an open-source VOIP PBX (Private Branch Exchange) platform built on Asterisk. It provides a user-friendly web-based interface to manage phone systems and features like call routing, voicemail, conferencing, and more. It is highly customizable and suitable for businesses of all sizes.', 1, 1735509469, 1735595869, [encoded data, 238354 characters]);

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

--
-- Table structure for table `system_settings`
--

CREATE TABLE `system_settings` (
  `portal_uuid` varchar(36) NOT NULL DEFAULT uuid(),
  `portal_name` varchar(64) NOT NULL DEFAULT 'CallConfig',
  `portal_slugify` varchar(64) NOT NULL DEFAULT 'call-config',
  `portal_provider_name` varchar(64) NOT NULL DEFAULT 'CallConfig Reseller',
  `portal_provider_slugify` varchar(64) NOT NULL DEFAULT 'mooijme',
  `admin_auth_methods` varchar(100) NOT NULL DEFAULT 'database_auth',
  `cacert_url` varchar(255) NOT NULL DEFAULT 'http://vcs-dev.mooij.me/CA.crt',
  `autop_url` varchar(255) NOT NULL DEFAULT 'https://vcs-dev.mooij.me/atop',
  `mail_from_name` varchar(50) DEFAULT NULL,
  `mail_from_address` varchar(100) DEFAULT NULL,
  `mail_smtp_host` varchar(100) DEFAULT NULL,
  `mail_smtp_secure` enum('tls','ssl','no') DEFAULT NULL,
  `mail_smtp_port` int(5) DEFAULT NULL,
  `mail_smtp_auth` tinyint(4) DEFAULT 1,
  `mail_smtp_user` varchar(100) DEFAULT NULL,
  `mail_smtp_pass` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `system_settings`
--

INSERT INTO `system_settings` (`portal_uuid`, `portal_name`, `portal_slugify`, `portal_provider_name`, `portal_provider_slugify`, `admin_auth_methods`, `cacert_url`, `autop_url`, `mail_from_name`, `mail_from_address`, `mail_smtp_host`, `mail_smtp_secure`, `mail_smtp_port`, `mail_smtp_auth`, `mail_smtp_user`, `mail_smtp_pass`) VALUES
('effda0c0-0830-11f0-9300-7e99ed98b725', 'Sentri', 'sentri', 'sentri', 'sentri', 'database_auth', 'N/A', 'N/A', 'Sentri', 'sentri@example.invalid', '', 'tls', 587, 1, '', '');

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

--
-- Table structure for table `system_users`
--

CREATE TABLE `system_users` (
  `user_uuid` char(36) NOT NULL,
  `user_group_uuid` char(36) NOT NULL,
  `user_email` varchar(255) NOT NULL,
  `user_first_name` varchar(100) NOT NULL,
  `user_last_name` varchar(100) NOT NULL,
  `user_full_name` varchar(201) DEFAULT NULL,
  `user_phone_number` varchar(20) DEFAULT NULL,
  `user_password` varchar(512) NOT NULL,
  `user_password_reset_token` varchar(255) DEFAULT NULL,
  `user_password_reset_expires` int(11) DEFAULT NULL,
  `user_two_factor_enabled` tinyint(1) DEFAULT 0,
  `user_two_factor_secret` varchar(255) DEFAULT NULL,
  `user_profile_picture` mediumblob DEFAULT '[encoded data, 21104 characters]',
  `user_profile_picture_thumbnail` blob DEFAULT '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',
  `user_status` enum('active','inactive','banned','pending') DEFAULT 'pending',
  `user_verified_email` tinyint(1) DEFAULT 0,
  `user_verified_phone` tinyint(1) DEFAULT 0,
  `user_create_timestamp` int(10) DEFAULT NULL,
  `user_modified_timestamp` int(10) DEFAULT NULL,
  `user_last_login_timestamp` int(10) DEFAULT NULL,
  `user_login_attempts` int(11) DEFAULT 0,
  `user_pref_language` enum('en','nl') NOT NULL DEFAULT 'en',
  `user_stompable` int(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `system_users`
--

INSERT INTO `system_users` (`user_uuid`, `user_group_uuid`, `user_email`, `user_first_name`, `user_last_name`, `user_full_name`, `user_phone_number`, `user_password`, `user_password_reset_token`, `user_password_reset_expires`, `user_two_factor_enabled`, `user_two_factor_secret`, `user_profile_picture`, `user_profile_picture_thumbnail`, `user_status`, `user_verified_email`, `user_verified_phone`, `user_create_timestamp`, `user_modified_timestamp`, `user_last_login_timestamp`, `user_login_attempts`, `user_pref_language`, `user_stompable`) VALUES
('0eda6269-0da5-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'superuser', 'superuser', 'superuser', 'superuser', NULL, '$2y$12$Ldsfpmff2dge8Tasys8aC.KIeEa4lsWtQRxrnb.Tg6zJDQcYiLdVi', NULL, NULL, 0, NULL, [encoded data, 42210 characters], [encoded data, 6658 characters], 'active', 1, 0, 1750021069, NULL, 1776943991, 0, 'en', 0);

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

--
-- Table structure for table `system_user_groups`
--

CREATE TABLE `system_user_groups` (
  `user_group_uuid` varchar(36) NOT NULL,
  `user_group_name` varchar(64) NOT NULL,
  `user_group_slugify` varchar(64) NOT NULL,
  `user_group_type` enum('user','admin') NOT NULL DEFAULT 'user',
  `user_group_weight` int(2) NOT NULL DEFAULT 10,
  `user_group_create_timestamp` int(10) DEFAULT NULL,
  `user_group_modified_timestamp` int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `system_user_groups`
--

INSERT INTO `system_user_groups` (`user_group_uuid`, `user_group_name`, `user_group_slugify`, `user_group_type`, `user_group_weight`, `user_group_create_timestamp`, `user_group_modified_timestamp`) VALUES
('0e1c6269-0da5-11f0-9300-7e99ed98b725', 'superuser', 'superuser', 'admin', 1, 1742680669, 1749939827),
('1b754548-0760-11f0-9300-7e99ed98b725', 'Standard User', 'standard-user', 'user', 31, 1742680669, NULL),
('2334626a-0760-11f0-9300-7e99ed98b725', 'Advanced Users', 'advanced-users', 'user', 20, 1742680669, NULL),
('26623d51-0760-11f0-9300-7e99ed98b725', 'Administrators', 'administrators', 'admin', 10, 1742680669, NULL),
('f2235ecf-de78-11f0-9d57-00155d00153f', 'Engineers', 'engineers', 'admin', 15, 1766327149, 1766327275);

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

--
-- Table structure for table `system_user_group_permissions`
--

CREATE TABLE `system_user_group_permissions` (
  `permission_uuid` char(36) NOT NULL,
  `user_group_uuid` char(36) NOT NULL,
  `permission_value` enum('NA','RO','RW') NOT NULL DEFAULT 'NA',
  `permission_restrict_to_tenant` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `system_user_group_permissions`
--

INSERT INTO `system_user_group_permissions` (`permission_uuid`, `user_group_uuid`, `permission_value`, `permission_restrict_to_tenant`) VALUES
('11abc93d-c265-11f0-95da-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('11abc93d-c265-11f0-95da-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('11abc93d-c265-11f0-95da-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('11abc93d-c265-11f0-95da-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('11abc93d-c265-11f0-95da-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RO', 0),
('1425fa24-2b6b-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('1425fa24-2b6b-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('1425fa24-2b6b-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('1425fa24-2b6b-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RO', 0),
('1425fa24-2b6b-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('19795051-302e-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('19795051-302e-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('19795051-302e-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('19795051-302e-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('19795051-302e-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('1d018159-3109-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('1d018159-3109-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('1d018159-3109-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('1d018159-3109-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('1d018159-3109-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RO', 0),
('32541357-3814-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('32541357-3814-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('32541357-3814-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('32541357-3814-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('32541357-3814-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RO', 0),
('36a615b1-374d-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('36a615b1-374d-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('36a615b1-374d-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('36a615b1-374d-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RO', 0),
('36a615b1-374d-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('5f284b11-de7c-11f0-9d57-00155d00153f', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('5f284b11-de7c-11f0-9d57-00155d00153f', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('5f284b11-de7c-11f0-9d57-00155d00153f', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('5f284b11-de7c-11f0-9d57-00155d00153f', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('5f284b11-de7c-11f0-9d57-00155d00153f', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RW', 0),
('6846e77f-31c8-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('6846e77f-31c8-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('6846e77f-31c8-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'RO', 0),
('6846e77f-31c8-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RO', 0),
('6846e77f-31c8-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('6b434bee-3a73-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('6b434bee-3a73-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('6b434bee-3a73-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('6b434bee-3a73-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('6b434bee-3a73-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('7172efaa-2c35-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('7172efaa-2c35-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('7172efaa-2c35-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('7172efaa-2c35-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RO', 0),
('7172efaa-2c35-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('755c8a22-2f60-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('755c8a22-2f60-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('755c8a22-2f60-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('755c8a22-2f60-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('755c8a22-2f60-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('7588d486-3100-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('7588d486-3100-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('7588d486-3100-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('7588d486-3100-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('7588d486-3100-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('9cf47631-d371-11f0-9d03-00155d00153f', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('9cf47631-d371-11f0-9d03-00155d00153f', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('9cf47631-d371-11f0-9d03-00155d00153f', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('9cf47631-d371-11f0-9d03-00155d00153f', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('9cf47631-d371-11f0-9d03-00155d00153f', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RW', 0),
('b21a0915-3a62-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('b21a0915-3a62-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('b21a0915-3a62-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('b21a0915-3a62-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('b21a0915-3a62-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'NA', 0),
('b816b7e8-38d8-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('b816b7e8-38d8-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('b816b7e8-38d8-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('b816b7e8-38d8-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('b816b7e8-38d8-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RO', 0),
('d0578d4f-bcea-11f0-95da-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('d0578d4f-bcea-11f0-95da-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('d0578d4f-bcea-11f0-95da-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('d0578d4f-bcea-11f0-95da-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('d0578d4f-bcea-11f0-95da-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RO', 0),
('e6741033-c589-11f0-9a78-00155d00153f', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('e6741033-c589-11f0-9a78-00155d00153f', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('e6741033-c589-11f0-9a78-00155d00153f', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('e6741033-c589-11f0-9a78-00155d00153f', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('e6741033-c589-11f0-9a78-00155d00153f', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RO', 0),
('e7c4dba8-23a2-11f0-9300-7e99ed98b725', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('e7c4dba8-23a2-11f0-9300-7e99ed98b725', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('e7c4dba8-23a2-11f0-9300-7e99ed98b725', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('e7c4dba8-23a2-11f0-9300-7e99ed98b725', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('e7c4dba8-23a2-11f0-9300-7e99ed98b725', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RW', 0),
('f1fd6629-c717-11f0-9a78-00155d00153f', '0e1c6269-0da5-11f0-9300-7e99ed98b725', 'RW', 0),
('f1fd6629-c717-11f0-9a78-00155d00153f', '1b754548-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('f1fd6629-c717-11f0-9a78-00155d00153f', '2334626a-0760-11f0-9300-7e99ed98b725', 'NA', 0),
('f1fd6629-c717-11f0-9a78-00155d00153f', '26623d51-0760-11f0-9300-7e99ed98b725', 'RW', 0),
('f1fd6629-c717-11f0-9a78-00155d00153f', 'f2235ecf-de78-11f0-9d57-00155d00153f', 'RW', 0);

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

--
-- Table structure for table `autop_vendors`
--

CREATE TABLE `autop_vendors` (
  `vendor_uuid` varchar(36) NOT NULL,
  `vendor_name` varchar(64) NOT NULL,
  `vendor_slugify` varchar(64) DEFAULT NULL,
  `vendor_description` text DEFAULT NULL,
  `vendor_enabled` tinyint(1) DEFAULT 1,
  `vendor_create_timestamp` int(10) DEFAULT NULL,
  `vendor_modified_timestamp` int(10) DEFAULT NULL,
  `vendor_image` longblob DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `autop_vendors`
--

INSERT INTO `autop_vendors` (`vendor_uuid`, `vendor_name`, `vendor_slugify`, `vendor_description`, `vendor_enabled`, `vendor_create_timestamp`, `vendor_modified_timestamp`, `vendor_image`) VALUES
('d3bd3f21-c6e2-11ef-a4fe-7e99ed98b725', 'Yealink', 'yealink', 'Yealink is a leading SIP phone vendor, offering a wide range of high-quality, reliable, and cost-effective IP phones. Their devices support advanced features, excellent audio quality, and seamless compatibility with major SIP-based platforms, making them ideal for businesses of all sizes.', 1, 1735595869, 1762551719, [encoded data, 66610 characters]);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
  ADD PRIMARY KEY (`company_uuid`),
  ADD UNIQUE KEY `company_source_id` (`company_source_id`),
  ADD KEY `FK_companies_system_sources` (`source_uuid`);

--
-- Indexes for table `office_stompjes`
--
ALTER TABLE `office_stompjes`
  ADD PRIMARY KEY (`stomp_uuid`),
  ADD KEY `user_uuid_users` (`user_uuid`) USING BTREE;

--
-- Indexes for table `servers`
--
ALTER TABLE `servers`
  ADD PRIMARY KEY (`server_uuid`),
  ADD UNIQUE KEY `server_vm_id` (`server_vm_id`),
  ADD KEY `FK_servers_companies` (`company_uuid`);

--
-- Indexes for table `system_modules`
--
ALTER TABLE `system_modules`
  ADD PRIMARY KEY (`module_uuid`),
  ADD UNIQUE KEY `module_slugify` (`module_slugify`);

--
-- Indexes for table `system_pages`
--
ALTER TABLE `system_pages`
  ADD PRIMARY KEY (`page_uuid`),
  ADD KEY `FK_system_pages_system_modules` (`module_uuid`);

--
-- Indexes for table `system_sources`
--
ALTER TABLE `system_sources`
  ADD PRIMARY KEY (`source_uuid`),
  ADD UNIQUE KEY `source_name` (`source_name`);

--
-- Indexes for table `system_api_tokens`
--
ALTER TABLE `system_api_tokens`
  ADD PRIMARY KEY (`api_token_uuid`),
  ADD UNIQUE KEY `api_token` (`api_token`),
  ADD UNIQUE KEY `unique_api_token` (`api_token`),
  ADD KEY `user_uuid` (`user_uuid`);

--
-- Indexes for table `autop_devices`
--
ALTER TABLE `autop_devices`
  ADD PRIMARY KEY (`device_uuid`),
  ADD UNIQUE KEY `autop_devices_unique` (`device_slugify`),
  ADD KEY `autop_devices_autop_vendors_FK` (`device_vendor_uuid`);

--
-- Indexes for table `vc_feedback`
--
ALTER TABLE `vc_feedback`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `system_permissions`
--
ALTER TABLE `system_permissions`
  ADD PRIMARY KEY (`permission_uuid`),
  ADD UNIQUE KEY `permission_slugify` (`permission_slugify`);

--
-- Indexes for table `autop_platforms`
--
ALTER TABLE `autop_platforms`
  ADD PRIMARY KEY (`platform_uuid`),
  ADD UNIQUE KEY `autop_platforms_unique` (`platform_slugify`);

--
-- Indexes for table `system_settings`
--
ALTER TABLE `system_settings`
  ADD PRIMARY KEY (`portal_uuid`);

--
-- Indexes for table `system_users`
--
ALTER TABLE `system_users`
  ADD PRIMARY KEY (`user_uuid`),
  ADD UNIQUE KEY `user_email` (`user_email`),
  ADD KEY `fk_user_group` (`user_group_uuid`);

--
-- Indexes for table `system_user_groups`
--
ALTER TABLE `system_user_groups`
  ADD PRIMARY KEY (`user_group_uuid`);

--
-- Indexes for table `system_user_group_permissions`
--
ALTER TABLE `system_user_group_permissions`
  ADD PRIMARY KEY (`permission_uuid`,`user_group_uuid`),
  ADD KEY `user_group_uuid` (`user_group_uuid`);

--
-- Indexes for table `autop_vendors`
--
ALTER TABLE `autop_vendors`
  ADD PRIMARY KEY (`vendor_uuid`),
  ADD UNIQUE KEY `autop_vendors_unique` (`vendor_slugify`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `vc_feedback`
--
ALTER TABLE `vc_feedback`
  MODIFY `id` int(6) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `companies`
--
ALTER TABLE `companies`
  ADD CONSTRAINT `FK_companies_system_sources` FOREIGN KEY (`source_uuid`) REFERENCES `system_sources` (`source_uuid`);

--
-- Constraints for table `office_stompjes`
--
ALTER TABLE `office_stompjes`
  ADD CONSTRAINT `office_stompjes_users` FOREIGN KEY (`user_uuid`) REFERENCES `system_users` (`user_uuid`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `servers`
--
ALTER TABLE `servers`
  ADD CONSTRAINT `FK_servers_companies` FOREIGN KEY (`company_uuid`) REFERENCES `companies` (`company_uuid`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `system_pages`
--
ALTER TABLE `system_pages`
  ADD CONSTRAINT `FK_system_pages_system_modules` FOREIGN KEY (`module_uuid`) REFERENCES `system_modules` (`module_uuid`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `system_api_tokens`
--
ALTER TABLE `system_api_tokens`
  ADD CONSTRAINT `system_api_tokens_ibfk_1` FOREIGN KEY (`user_uuid`) REFERENCES `system_users` (`user_uuid`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `autop_devices`
--
ALTER TABLE `autop_devices`
  ADD CONSTRAINT `autop_devices_autop_vendors_FK` FOREIGN KEY (`device_vendor_uuid`) REFERENCES `autop_vendors` (`vendor_uuid`);

--
-- Constraints for table `system_users`
--
ALTER TABLE `system_users`
  ADD CONSTRAINT `fk_user_group` FOREIGN KEY (`user_group_uuid`) REFERENCES `system_user_groups` (`user_group_uuid`);

--
-- Constraints for table `system_user_group_permissions`
--
ALTER TABLE `system_user_group_permissions`
  ADD CONSTRAINT `system_user_group_permissions_ibfk_1` FOREIGN KEY (`permission_uuid`) REFERENCES `system_permissions` (`permission_uuid`) ON DELETE CASCADE,
  ADD CONSTRAINT `system_user_group_permissions_ibfk_2` FOREIGN KEY (`user_group_uuid`) REFERENCES `system_user_groups` (`user_group_uuid`) ON DELETE CASCADE;
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 */;
