-- Host: db-master-8.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=38148;

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$T10ENX7BXepz2NBvL46NUyyo54PAQYw4yZ5v9oZ77XoyvM2BByHR7','user','ak_877be6539f902139','2023-12-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$cd6v749rJNnkQTjWk1PXN8tJ.vpkjdoygWDK1jeYrcSWrKDtLHOUP','user','ak_0de8a07c1d2e4227','2023-05-01 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$q4nwfmlVh8q12aQPdmoT.OYLejOHM62MSkWcgC6/c/6fXJn6O74Ew','user','ak_d6544f4d9d822660','2023-09-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$/LFtR07XrgallayvG4yiSra.kKNbuzFlsm88oRgM3M3EPs2BENtJu','user','ak_f25497dab33ba0ee','2023-05-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$/3c35ZbLgo2hYRTHEroI2Fj8DXFI50V6nbqRyYzR8oAHKxOF26k.x','user','ak_53720614c3e04d49','2023-12-02 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$dGOYtiFMTfuOlCqZIl6pKMZLzMWdKyHS1sIJoClsDaLjCqOkEkGLv','user','ak_1bdae90bb0da6477','2023-09-26 10:16:00',NULL);

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

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


