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


--
-- 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=22795;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Kkq5.9AQwmKAnquJa8jc3z8kE.oD5anodKPFz7BEUQSgA89m56BBy','user','ak_f094685e7eae7ea5','2023-09-13 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$pyFRBnIgO5fx2amcvq2iDJ/9iF.WcT9CtrcF2oTL94kX7GYOcirdr','admin','ak_7bbe991f7768d461','2023-03-27 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$1NOOlPMGBWQnMIYSoRkZQ.R6.ZUWBScQYW1FxbZiwld0.GBi/IjdP','user','ak_67afa1396169319d','2023-02-03 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$Vy8.ExCy7e4dJmLAZ6tBXuI1.FboS/H3ePQuJlGkwrHEGE7DHKfCL','user','ak_fb07ef6b573ad8c7','2023-05-09 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$klee77YzlFP80a/t1wVtd8F2v.gkBhsnS2cE.UXZjUGbSgLzaQrrz','admin','ak_9f4d09f033a58860','2023-10-05 10:05: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=28181;

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


--
-- 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=34747;

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


