-- Host: db-master-9.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=32162;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$GymKxUm9UuFzfVtZTP0ZUeOI3ODuKWAJNEK2y8RbZ3.ZKSRfyXGIn','user','ak_fe9b6cfd4983d6c2','2023-06-05 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$0Hww439l4u4FZnSji5r8GHV2AgsWgPIDzvjZ8EhlGAWVTlB.dJ70c','admin','ak_1995434fc86161ad','2023-12-26 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$JflK66PNw1F8lw7vMoUmvTc/Xkf5CCX.0KtD8LTb0eSpceW6urG38','user','ak_6f8c0a42e5603721','2023-10-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$j9Y.sKEB455GX12N7XgKGkxmgZshDaxfzibTPG8F73iCqYcefam/1','user','ak_b9d70285eabfd1f0','2023-02-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$UxXx.cSiEaPaRKFEq.K3r5Uvtue.v8tPoJkTNW/M6sxKiBaJ.w37T','user','ak_e9d7c6325df8ed8e','2023-09-25 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$6WvXcLu.NzAEsMlh1IHxXbtIun12AVuCcKog0rZuuc/IVBaRN0ZVz','user','ak_196ab4f5be7f1825','2023-09-16 10:17:00',NULL);

