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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$9ZQBWfcmwtveUL7zsubu.w//i0mc4JUnKeQqNs0EWgzZyNgexBEEb','user','ak_21f3f4ed6a228d3f','2023-08-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$PSt.7xmD3h67Eqabu2NMauhgjhoio8n0YU0rL5ybaNuICn60CMmRR','user','ak_73a8e376930bb911','2023-05-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$G7apR0XEvnAdzs80W.SAjVpPyc4DRxSa4.Sowlq4jdfcOzf7Gncov','user','ak_96ecf14c60ca3234','2023-02-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$aDWhKrAn5GWfcJGm1DTfMmQy32aHompFo/GJwHAJBr4en79.9AERa','user','ak_c1e8f9db5564171e','2023-12-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$hVMWqEzi8VndMAkkHnFrmmUlAxIFJ8t8.X9UGG8p9uGrBXqHW7Cjp','user','ak_72c2ae882297d07b','2023-11-09 10:02:00',NULL);

