-- Host: db-master-5.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=8854;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$cr4wh1J5yD5tA4KjAb1lYxr9lIsfbrAreHVw9QQ10olTEhk4WaXsx','user','ak_0c1c4ef1a520b462','2023-01-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$pXQXtLt8fzK6YuMReS/g7ZVUC8E0dEJ0zNYhkkGmnSt717.g2HCmq','admin','ak_a746ae547a603d70','2023-01-13 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$5NRWfLJV5T4IUX/H/mzMpBGOqUT0Fg8xSUF77nctA6ngV9D9tQ2yl','user','ak_c2242894b010cf6a','2023-11-13 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$LyMFGcsvCa2QrxKKJVu.OMxFrc7yzF8jpwg9gu8tLj/0abUWpy6lx','admin','ak_b43ae386d1cb6cc6','2023-10-19 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$7cC4b2HzHKC6hk5sY2Up01dTLowJdNJk7y3rrOTtvKJXsojyIEy.w','user','ak_d0b8c757829049d6','2023-12-25 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$Cws8uL847/rY6WPd0MBsrT86SEkRArte3CaFzCSjyhPsqSK/W.y3a','user','ak_2b6463313cd9642e','2023-06-06 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=40487;

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


