-- Host: db-master-4.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$eL/1hL/aOU/BtNFMBGJJPGd7s8J6A1tdp5gS50uGuWGUeweCy9GiK','user','ak_f6089cf433b220b5','2023-08-02 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$ED.BI/jpsSjHNGymub.I2LVBpV4LPDX.v3ydu1Gj4RKYPQppCZIny','user','ak_860c43fabd7ff55c','2023-02-22 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$AMQCUlXE1lW2zD.n5tUkXf8roobi9Q.d7viTELUTiNHSckWLL1xB6','admin','ak_a5051a585973134b','2023-03-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$1qJUKvpXfphBPyV983SDqq4OOWwAS8sVfxOYVwZQb8yFAsX4C9zJR','user','ak_aa48637d4718261e','2023-01-20 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$zvdpEIFUevbtLIy7nyGTZOAQiJKT7o6ByXGHMeHs163wkMmHDzd4X','user','ak_92fd3609850b1175','2023-01-12 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$0EEXuxM05JqScczHFlQZYWm0FCemgBzrmseKCGCoLHSzfRwJcyzBZ','user','ak_4100f44c6ef910b0','2023-06-22 10:07:00',NULL);

