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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$z8bgcglkmW7y4Hs.TK7DU28KENSrxpR1jbANkSYfs8uYNBoVDtJnQ','user','ak_d37547321bb18a43','2023-10-07 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$l92JXuLzPokuaEe2CqfH2Z0dDAVycaJW3LyutTdFkO4IIK7aTIVoM','user','ak_ebca7145a5d226c9','2023-12-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$ySK6fz2imWlJKamLJvgQRcxptag/sFpvmxSGjTVTUYIojwmmbJKdO','admin','ak_885728a1ba50a641','2023-12-10 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$.aey9xRvbbJN0Ie9WCSpCmfW1Bg8hYV/dbQCZMNJ8am5Fi4/7hOn0','user','ak_f908b4283b733e72','2023-11-11 10:15:00',NULL);

