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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$yNpFlxbbCrj69j8QR4DugJXzIL.EIyhCqIDcsMUiD6QHeu8ZmSBby','user','ak_58f1d954d01523ae','2023-12-23 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$aBsXBzR6C144kjLJoOpH8ICbXkvmISjRNKiwCzigtnebCUhkusKTR','user','ak_b102eafd192734fc','2023-07-14 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$naab6VPRwTXFPGPVxWbScS3MvQUQrXO1lntvs0kUjTRy9eMbhJ30g','user','ak_30594f61722a2a3d','2023-09-03 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$XW0fiWOJR1lGHYdhltVhkNYu4HLdUA7qE84sS4y0uuGm9HXHlBOrj','admin','ak_ba6d7d4d9f790ac4','2023-07-26 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Y61cGJ5aSrhBYAFxGuY/yzt96FNFxmVDZaccSCIwGe9sWWXR2t3K7','user','ak_08ff88d7a19ba358','2023-12-24 10:16: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=32618;

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


