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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$OgLLIyI5fw3mfNk66JGBDYUhbM59yaxd1dmjkiaH9CwWlmPQszBaT','user','ak_bf5f3f19ea266831','2023-09-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$l..IctzUiDGG7QFKcz3.cunhNGuVjDd6rQlMUpnfK8/9VrG8yiHy6','admin','ak_88bf36893a607845','2023-11-06 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$hi7y1ByQoYv2iUSB.0DqQsT0OeffFtkETIwFI/QKIO.eNr7XLRixN','user','ak_718f6c9e38994fb8','2023-05-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Q5LMHRsOWR3tdmRmpY05KJn2zyoyCi0cVY7Vt4ATWvQGeXH32LTq2','admin','ak_025739c11f6bce8a','2023-07-10 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$vlMupanJqPyQP0vAs5TCHhl22ruazuOBKMZvD7veU20LF5UW90FUd','admin','ak_58aea746cf5da0cd','2023-08-21 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$LOPscYuGuSjZbym7D9YmxyxXLOxFuxDj8EfziYYR2Q4mce6.asOSS','user','ak_8568bd034d80518e','2023-06-09 10:03: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=20025;

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


