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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$RYWJURAFjkZOoAV1AalkcZ8AkRlovXIRsHexF9W9o03dZ2Hldzs4j','user','ak_2cf20e29e06afbd9','2023-06-16 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$MQxgoC6fthrhblTjoPiWLVlV42ATCj2KcnWbKYuKvO1PdgwTvqaVd','user','ak_fca301c0db6f23ec','2023-05-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$wChTfd9fiEMb9KiKYg2gD6oh2ooI8tMLdV.qmNpTNdOIxD8Bd8eTo','user','ak_eea1ce46dadb91ac','2023-06-28 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$DLffeVpijGIx8QczOdqnHOQLF8E/4C1PEDuN3Ymc6RmymdnOFgDyS','admin','ak_a612f99b54a8b662','2023-01-14 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$yNBY.4Z.hWYymDQUIynzGJwcHD8ZhnDMNY9ov7fmQ7HVcA1UXLBmB','admin','ak_b89ebf53bdfe5941','2023-12-08 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$vgVgyT4.hcWipyrgSJ/EiWaMeddQqGtyTsScA9TEMnv0LFnNcGOKn','admin','ak_877381f57c578693','2023-12-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=21872;

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


