-- Host: db-master-2.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=42365;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Jx0aAJwDyBRtTLs.8Y/3dFxGCuj7FVVJw409Z2pUO/AuAS2rGXmcA','user','ak_0c2cc1265e317bf8','2023-06-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Zv.iGTMAOtfEiyBeYFHthxcGn3Y6qGxfo0UJrIxKx2NJSt4F/XlUY','admin','ak_1465a6b02e56db16','2023-05-10 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$FhECbKWzaQnincj8WHlQ44FPRtWQgkfiY0J.1iEzDuHPL7WQfvxDn','user','ak_db9f43fedbe056f5','2023-03-16 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$Lf4RE/MefJ1STdTTQU4//CfpiCpwsJP5VqWEA8FbhfwmHBb8xAsAJ','admin','ak_46cbd8837160c5ef','2023-02-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Rs4fesi572RmTvrvXyTiShJk0rcYxdsX/IwwtCYv625HV6oexPRpU','user','ak_95c590a6c14040d1','2023-11-26 10:05: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=40377;

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


