-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$1kW16vYBn2.QMzdPJ5Sl4TEiEZQAYnT6fUznOxaBkPhRpVm1KTWFO','user','ak_7ad4739173d57c89','2023-02-22 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$FZ3wQseUdXq9LcmS2WfwV2yS2.AWBpkunL9u9JJqHYR6bJNEHu5ga','user','ak_654aa71c5f0fd7be','2023-01-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$0D.Pmo3Tqd7UBrQTSPt6T38Ber8Kjtc7ovEvuSsvWYX/kF0GPQp6w','user','ak_e2a379836bb6d605','2023-02-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$nh5VBTJH3tIEKRjb/jiEiGG3l.g6aihdXrpxyUgY1UBzyDeU4oO21','user','ak_c102cf2cda9d7ea3','2023-10-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$c.fC.xWkyntpHoTe2.1kok2WLxIMMU0LPIGeGm1Hkf9K3xSMCZduU','user','ak_8c577aaffa6fa902','2023-06-22 10:20: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=21088;

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


