-- Host: db-master-3.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Y6wcWwdUuSs9RX6.WnsWPt2fD3G9iVeNgde2HTDiJM6wqv/1xkL89','user','ak_d21e07c4524676bd','2023-07-28 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$qTu1Z4l.fzo4JD4F7vaACkIy19Pl.Kj6Z7yzP5hB8fY3eF0E7wMae','user','ak_dc6a446b8c3491b0','2023-09-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$8uSj3lqnWh3zjVWxhMrOdESTIe2wZ8vzej66DQmD3jPdxbNhWXQCq','user','ak_6f210b8dc46cd5c0','2023-10-23 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$HWlSRCqJ8mfUGSVcrHKGc5XWO9mAgY8slYOO3NuAbZTRY1aOWniKc','user','ak_c8c6e0ba35fd8152','2023-03-22 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$Xj/p706pA/0Da7J0fhO8yX/JJTAt3X6HUBVGiuEq1wkfKMRKEa8u2','admin','ak_98eb21295343298e','2023-06-13 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$5whaGU.a8Hvc31yyDKyCqU2VebHtl/rlyvQvwBPzsRj0JT/NZyzIE','user','ak_4ab973cb08a858a0','2023-07-24 10:13:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$Xiz4Fzv4wL/CP./YbswESEeXrUERSJDHJ8VqP5t9WGCO7xTXH4hOt','admin','ak_e12653596244ba07','2023-09-12 10:01: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=32382;

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


