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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$VFWR6pWucPWmeVRNGUCsBxoWTGuPGbspbKcn3iW7HjBX5a.5WBoOP','user','ak_6dee2283322475ed','2023-06-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$XSNcmh/NefeywN0kxJfA0VkNSou4sqluB8Uy..7Iu4w3OWvGPfWwc','user','ak_8b5ef0ffcfb16dae','2023-03-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$34J8c2MHXFQzYnNcMCtl0KGOhLb6AXIJkM.X4h1y.tUwiIHFb4JBa','user','ak_44bd42806ab925f2','2023-02-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$nzpdVSBW.0DibYCI70CnP1CrDiHXWTYuCjcOHACQhXAk/1F9Q8.4a','user','ak_3af011d88339fd74','2023-02-19 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$sWSTF1N.HDLtGEGuQwAB4HIOGxhR3ScTFHdx4x7.71t3udCWo8kUU','user','ak_fe8e627e93b720af','2023-01-18 10:00:00',NULL);

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

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


