-- Host: db-master-5.internal    Database: customers


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=41326;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=29441;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$dwL55KPqgTsKuAqKbO//4JO6K4PezqEVs6ESS5ET8Nzar0RXTHI.t','user','ak_91a9432d0f267b6b','2023-07-19 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$dkklWVbDhi30VVSjgEU99eQdHOxilIRKICX944KbZJOXIx0qsJRhE','user','ak_7d3b587427da5020','2023-10-18 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$DW2UPEXDfXEr/HrCORWj/SzsS3/LsbFYhMh2oYFfKswzw5T0UTKoC','admin','ak_fa1a8981e16bfafd','2023-06-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$q4ELKcnLZF7n3ECyYtvGJhEfegpw7UlwsasPhYXV2.wBG1j0FZXRS','admin','ak_2a40609187c29ea2','2023-09-25 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$Hh/UHCLVKJvnat2v4gzr8f9oLS9UCJEsdiUiAc/Rvq9fgUeiIqbH4','admin','ak_eab12b13cdc01767','2023-12-22 10:19:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=11782;

--
-- Dumping data for table `products`
--


