-- Host: db-master-3.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=11356;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$Itd.Jzll0Z6JiyniAA1W6QW0JHywPNoZE.tdr/AnACjtDzcf82UN6','user','ak_9fba6fc3d413e0bb','2023-08-22 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$zuzNG96y1Sl6yANOMKcz/WdR5jfInyA9W22ewPJH3JF18fAyvL07I','user','ak_977da3bbb5f5ba6f','2023-04-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$5IGZ43D4lmtpl26/3f8xSiD.v5Atxzm4LAranx8av3XBexaJCYLvH','user','ak_f402c9ddca7de2ec','2023-04-10 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$U9Ek/PTj3AJDkfM7R4ACqKQNGeH1TV.jLlntI8D06gp1k8nTY1.Rt','user','ak_32c6b889ad3a236d','2023-12-08 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$U2wmfPKc2Dy4GtF3/ePNT5b7Jh8ADHI/e460EGgC8ovGrCZmRyP0e','user','ak_6cc0b316ac504af1','2023-05-18 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$r3RfpXstlgqC32.WNKIDRL0FZuDb9cENtgZ5Vl511CucM0JfPDsfc','user','ak_1d07de4ac4fe258d','2023-06-12 10:08:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=47385;

--
-- Dumping data for table `orders`
--


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

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


