-- Host: db-master-2.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=5223;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$mxRMGdqyf0aZYMPbGD8PBUZ3G9AkIM/61xmicRALg9uNVt7xgp1M/','user','ak_7e491a3957865b43','2023-11-26 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$4sI2CBVXNBy8hj8GxUqOjWWvdVjwatcGcpzQDfTFCSAJUsun.Mqzv','admin','ak_9ace8c1ec23cf438','2023-08-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$SflvdvQrHwIMDAD2Hd3AKkh/25vjnb7yl0d3VJosWdj4EnA0iIgLq','user','ak_7372d3dda6922e7c','2023-01-24 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$Ad5XJO.GRNioeaVUSbOz7TSRsapRUuuORtrED1Cs9py8u6Q7gmdaA','admin','ak_e507adc0202796f2','2023-07-26 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$5CVsx4CDmaNfATUpKVKjllWzyXE4l3.ntD7xLbL.1mGftasCS0JBq','user','ak_6527e4c304592087','2023-01-02 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$aKY49WS8BYCsHcNt5YWCo0VHtN6EP.UOWYY5Bfc6xPZmNzC9RjJUh','user','ak_df4c958062feedc5','2023-02-05 10:20:00',NULL);

