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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$H/czvsCc3xKF3i41JnWDXae5rs6bNZMdC53WJ4lNbfuxDtMvFHN0n','admin','ak_bae15ec2034fe3de','2023-08-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$5EAwGMngqr517PJCqsT0kH7.dIyfOEwMSJ60l5SSr5o0B1DPxJlb2','user','ak_9cc748f882d53292','2023-07-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$P.3Lb7.aggZmcqcAmjMCRAOSUN8QevBHnU9ZVr2yQ6.IDaGK7/ybY','admin','ak_75bef746e6a6111d','2023-10-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$XGxq8QvYRQLHq21xBBOeYiwvBJUC5TvieQRsowjb0lQWrLLFTjLgU','user','ak_ae4c7173b87b582b','2023-03-04 10:11: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=4095;

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


