-- Host: db-master-6.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$M.KIQzGIY2CNxYHelvofF7OJLMIbjZWNgo7o5tQrgfEhpGMRfuSOR','user','ak_23a8c5383c526907','2023-06-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$0GKdEO1iRxTLiIWMMYni1Tcm2xJErw5UOC9EHhpjVSr4nB5S46bBI','admin','ak_2a02a6ed6bb73192','2023-07-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$FDz/orowVQ7D4Te8oZJaTMvMM7ejodh7om652h5sgr9uWI/ya1y96','admin','ak_eb7b44dd441f9c08','2023-04-03 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$HokD2QdY1OoNNPTHhyOpqmlzw6Wn/ZDN2NHtqBLbX5zP35sdH3M3e','user','ak_564b90256ef2ad92','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$kPRiMEM5uQTLiNddgcTq0cBdPMeg7p9B9FHyq7ldeJ6WZJWPQAPO5','admin','ak_5a638127dd3a3188','2023-05-28 10:17: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=48842;

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


