-- Host: db-master-9.internal    Database: analytics


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$TYkFCX/0J48sa86eKXakf6opme2W5F37/cFHT849.pW2uZdljcxSB','user','ak_cf611d6d1f647df4','2023-05-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$vzm2lO3t8QjeNM9ht5xeA8vCWLVFv6go9EF1/ryciIATLdKqNPq7S','user','ak_cc64d92504bfb9e5','2023-10-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$MfedYTm61v5UAE4oJI0D2/IykNmPZ/305FxSGF3a8qHhy3IWScsVd','user','ak_7c15fec53b582e31','2023-03-17 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$aZa9YkhHbRYuszo23xqF0M/wIUf5jJDYhs3l9hXyDzGj0UiNg5hsd','user','ak_daf9a58212b556aa','2023-02-05 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$DgDr.HPtbfGCrMSEsb66mFumjUZ.hrR2OCK1lNDu8B4WleJ5WIkR9','user','ak_5fe79b03e9a32285','2023-06-11 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$5Qgi3f/8U.SiGVZNTRlGF9T1waShFM15ape9yFxqzK8Rb81nCjiGv','admin','ak_b81ae8695413399e','2023-09-28 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@company.com','$2b$12$z6vQIvSG/lvyWuDKMLrrOoGNoZB9pmZHfFdRLRAB9.11iM6Bx1aMG','user','ak_6e8d9cce5684ca06','2023-05-03 10:04:00',NULL);

