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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=29341;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$fU9HF4vk8wORrMHljSudJMgL0JTtzbneB5aLIy/ZEOfm0EJa8ztvl','admin','ak_14e5def64b8ab559','2023-06-04 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$rvNEogd9sqtqSvHVq8dUiSuFL7XumdmT0HrU26r1di7zLBEaDCiCa','user','ak_25e9d990bb11d2fb','2023-02-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$wSeltPDguAA7DCxQ0BDdrvbUDbYfzPZahIGk00Rfx2abwF2cj2QHH','admin','ak_0ec07804c6558c5d','2023-02-22 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$IaDXM7s9NJSK93cU6G2XwDwuzWwKJ0J9PRBjmr5xcD0pvyg3wEl3L','user','ak_a25695140d827a9b','2023-07-24 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$o20Bd.o6gJVNnm.FXNJSaFOL.5F5bGFRgl1Z3O66OWM1kMBRxvCzB','user','ak_df5a4c67c17d5802','2023-02-05 10:14: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=40121;

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


