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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$X3b5zVnm7bG6XQxOKzPVloyXJRwpTOxzqLMCwnE9hvS8MYrjPjTcA','user','ak_1971f101f3236894','2023-03-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$GgMiEDQiBn8VOO3kbcbmClapXaZ9FQWhngvv0NpnIi.AJk8bP.qt2','user','ak_2e538c96299a5c45','2023-01-24 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$D7oM7HygccqIvxRdyXOx5WvC7BWsgYUV6igSC54F86oEKTRh0Yeku','user','ak_42588d32ba64d003','2023-07-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$H7jamLO.ZyIe7qiMQM3qx8VH1BUTFmsH3uDZKLn18qCGKHnT9PSkO','user','ak_710b09cd58eb432f','2023-03-07 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$NFxG4Dg/nqtmcllA5Zu1HBU7Gjo615btsYr72cLrh589j8FBi5.Jg','admin','ak_c4c384e1fb190516','2023-11-04 10:13: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=28509;

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


