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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Tl/DX5Mwb6W2PNY8tfos80fEGJXsalODBHCorARlQDmL69a5gZ5zF','admin','ak_1a131dbd13b9f521','2023-09-05 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$VPRGdZOoD0Sm47sLKLVkt1KiR4zIpJKBTmQllZygQ24LXtdYyxeBX','admin','ak_a367030e2aaa5115','2023-07-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$80OIysABTtEnNVayAJv1oxE5rKZqj5WReMUX6UtL6S4/Ym2tFDCAZ','user','ak_5162d086956294cb','2023-05-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$zkJv.yiNUdYoBw8bE3OhdqaTW/9fVN5KXlgKSs.dzjHoxyfqAyZXc','admin','ak_0ef8b67ab3760818','2023-11-10 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$5mBfAKvnUo8YrF/3P.oS7FdaYBNZvpfg7yQRQ11QLlU7n5sa8IYvD','admin','ak_6e24cd724ad611cf','2023-02-13 10:12: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=15076;

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


